snr-writing
Skill0 starsChanged 7 days agoMITView on GitHub
Reader model and compression criteria for Japanese explanations, answers, self-review / acceptance write-ups, code comments and commit messages. Explanations are written for the requester, who prefers established terminology and asks about anything unfamiliar; comments and commit messages for the maintainer who opens the file or the log later. Use when the requester asks to explain a concept or a book chapter, answer a technical question, write a self-review / acceptance document, or write or rewrite code comments (JSDoc, inline comments) and commit messages, and whenever they say "S/N", "圧縮して" or "短く". Lowers extraneous cognitive load without dumbing down the subject. Not for book or article manuscripts, which follow their medium's own style guide.
In this repository23 other files it gives its agents.
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- agent-status-hubSkill
- claude-code-docker-sandboxSkill
- cloudflare-api-token-permissionsSkill
- cloudflare-cron-to-discordSkill
- cloudflare-d1-drizzle-migrationSkill
- cloudflare-d1-keyless-host-backupSkill
- cloudflare-d1-weekly-backup-via-prSkill
- cloudflare-mcp-claude-toolingSkill
- cloudflare-r2-private-image-uploadSkill
- cloudflare-workers-bot-scan-defenseSkill
- cloudflare-workers-builds-keyless-deploySkill
- cloudflare-workers-deploy-skeletonSkill
- cloudflare-workers-e2e-playwrightSkill
- cloudflare-workers-host-synthetic-checkSkill
- cloudflare-workers-passkey-authSkill
- cloudflare-workers-pat-bearer-authSkill
- cloudflare-workers-space-membership-inviteSkill
- cloudflare-workflows-for-long-tasksSkill
- playwright-e2e-in-docker-sandboxSkill
- sandboxed-agent-github-token-via-1passwordSkill
- sandboxed-agent-git-relaySkill
- vercel-react-best-practicesSkill
The file
Files
読者に合わせて圧縮する
読者
会話の解説と検収文書の読者は、この文章を依頼した本人である。 定着した用語で受け取り、知らない語は自分で質問する。 下げるのは外在性負荷だけである。題材の内在性負荷は下げない(認知負荷理論)。 初学者向けの足場は、この読者には熟達者逆転効果で負荷になる。
基準
- シグナル/ノイズ比。一文を外しても読者の理解や判断が変わらないなら、その文は書かない。
- 可逆圧縮。定着した用語は可逆圧縮、言い換えや噛み砕きは非可逆。説明の道具として使う用語には定義を添えない。説明の対象である用語だけを説明する。対象の構成要素は対象に含める。正式名称で書く。
- 冗長性効果。同じ情報を本文と表、本文と用語表、本文と図のように二つの形で出さない。一つの形を選ぶ。読者の手元にある図やアニメーションも一つの形に数え、本文で描き直さない。
- 結論先行。答え、判定、差分を最初の文に置く。根拠はその後に置く。
- 形は情報の形に従う。並列は表か箇条書き、手順は番号付き、論証は地の文。
- データインク比。太字と記号は、外すと意味が変わる箇所にだけ使う。
- 一文一義。圧縮するのは文の数であって文法ではない。主語と述語を省かない。表のセルは断片でよい。箇条書きは文で書く。
- 確信度の較正。言い切りの強さを根拠に合わせ、実測・出典・推測を書き分ける。
コードコメントとコミットメッセージ
読者は、落ちたとき・直すときにそのファイルを開く保守者である。コメントはコードと一緒に読まれ、コミットメッセージは git log で経緯を引くときに読まれる。
- コメントに残すもの
- コードが依存する不変条件と、それが成り立つ版の範囲を書く(例: Element Plus 2.14 の select は automatic-dropdown なしではフォーカスで開かない)。
- コードから読み取れない「なぜそうしたか」を書く。
- コメントから削るもの
- 旧版との比較と変更の経緯は、コミットメッセージへ移す。
- コードや expect のメッセージを言い直さない。
- 同じ趣旨の定型文は、ファイル内に既にあれば繰り返さない。
- 丸括弧を入れ子にしない。
- 追加差分でコメント行がコード行を超えたら見直す。
- 圧縮したあとは、圧縮前後の文が同じ意味かを、書いた文脈を持たないレビュアー(サブエージェントなど)に照合させる。「閉じていても」を「閉じても」に縮めて意味がずれた例がある。
- コミットメッセージはコメントの逆で、経緯と判断の根拠を書く場所である。
原稿との関係
書籍や記事の原稿には、その媒体の文章規範を優先する。この skill は会話の解説、検収文書、コードコメントとコミットメッセージに使う。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

