Skip to content

Instantly share code, notes, and snippets.

View babarot's full-sized avatar
🇯🇵
Wa

Masaki ISHIYAMA babarot

🇯🇵
Wa
View GitHub Profile
@babarot
babarot / SKILL.md
Created November 19, 2026 08:51 — forked from k16shikano/SKILL.md
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、翻訳調の比喩と擬人化の禁止(「運ぶ」「効く」「開かれた問い」など)、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。
license Unlicense(https://gist.github.com/k16shikano/67625f2a7d96e3bbdfae8d571a936063)

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

@babarot
babarot / herdr-space-switch.ts
Created October 7, 2026 09:04
herdr-space-switch: pick a herdr space with fzf, worktrees shown under their repository, and switch to it
#!/usr/bin/env -S deno run --allow-run=herdr,fzf,git
// herdr-space-switch: pick one of herdr's spaces (workspaces) with fzf and
// switch to it. Each worktree a space holds in the sidebar is a space of its
// own, so this reaches them all. The preview shows the space's panes and the
// last lines of its agent's pane, or of its first pane when it has no agent.
//
// With --git, each space on a git checkout shows its status as marks, as
// zsh-mini-prompt's are, and its branch, from one `git status` per
// checkout, run together.
//
@babarot
babarot / herdr-worktree-ctl.ts
Created October 7, 2026 03:34
herdr-worktree-ctl: list herdr's worktrees with whether a space is open, uncommitted changes, commits not in the default branch, processes and last activity, and remove the ones no longer needed
#!/usr/bin/env -S deno run --allow-run=git,herdr,lsof,fzf,trash --allow-read --allow-write --allow-env
// herdr-worktree-ctl: list herdr's worktrees under ~/.herdr/worktrees with
// what tells whether one can go (an open space, uncommitted changes,
// processes working in it, commits not in the default branch, the last
// activity), and remove the ones picked with fzf. Closing a worktree space in
// herdr leaves its checkout and its git registration behind; this is what
// cleans them up.
//
// Every git command runs with -C on the worktree or its repository's main
// checkout, never on the caller's cwd. Spaces open in herdr are never
@babarot
babarot / gist-ctl.ts
Created October 5, 2026 14:47
gist-ctl: count your gists by visibility, list them with their files, stars, comments and forks, and delete the ones no longer needed
#!/usr/bin/env -S deno run --allow-run=gh,gum,fzf
// gist-ctl: see how many of your gists are public or secret, list them with
// their files, stars, comments and forks, and delete the ones no longer
// needed, picked with fzf with the gist shown in the preview. Gists cannot
// be archived, and a public gist cannot be made secret, so deleting is the
// only way to put one away.
//
// Every call to GitHub is a gh command; on a terminal, gum spin shows a
// spinner and the error when it fails. No imports, so nothing is fetched
// when it runs. Tests: deno test -A gist-ctl_test.ts
@babarot
babarot / repo-cleanup.ts
Created October 5, 2026 13:36
repo-cleanup: see which of your GitHub repositories are still exposed, and archive them or make them private
#!/usr/bin/env -S deno run --allow-run=gh,gum,fzf
// repo-cleanup: see how many of your GitHub repositories are archived,
// public or private, list the ones still exposed (public and not archived)
// with their open PRs, issues and Dependabot alerts, and archive them or
// make them private, picked with fzf.
//
// Every call to GitHub is one gh command, run under gum spin on a terminal,
// which shows the spinner and the error when it fails. No imports, so
// nothing is fetched when it runs. Tests: deno test -A repo-cleanup_test.ts
@babarot
babarot / deadlink
Created October 5, 2026 02:37
deadlink: remove the broken symlinks in a directory, asking before each one

import --into 設計(改訂版 v3)

コンセプト

import が「GitHub → stdout(新規YAML生成)」なのに対し、import --into は「GitHub → ローカルマニフェスト(既存YAML更新)」。apply の逆方向。

gh infra import owner/repo --into=./repos/manifest.yaml  # 特定ファイル
gh infra import owner/repo --into=./repos/               # ディレクトリ検索
@babarot
babarot / gh-infra-coverage.json
Last active November 3, 2026 10:21
Coverage badge for gh-infra
{"label":"coverage","message":"86.3%","schemaVersion":1,"color":"hsl(103, 100%, 40%)"}
{"label":"coverage","message":"79.8%","schemaVersion":1,"color":"hsl(95, 100%, 40%)"}
@babarot
babarot / oksskolten-client-coverage.json
Last active July 12, 2026 08:36
oksskolten coverage badges
{"label":"client coverage","message":"70.54%","schemaVersion":1,"color":"hsl(84, 100%, 40%)"}