Writing For Agentsのロゴ

Writing For Agents

コミュニティ
timharris707
writing-for-agents

Write and prune documents an agent consumes: a SKILL.md, an AGENTS.md or CLAUDE.md, a rules file, a reference file reached by a pointer. Use when authoring or revising a skill, editing standing agent instructions or recording a decision as a rule agents will follow (a CLAUDE.md, AGENTS.md, CODE-RULES, or conduct-rules entry), or diagnosing why a document fires unreliably or gets skimmed.

概要

公開者timharris707
リポジトリskills
スキル名writing-for-agents
スター
45
フォーク
7
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    timharris707がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Writing For Agents」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/timharris707/skills/tree/main/skills/author/writing-for-agents
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/timharris707/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/author/writing-for-agents .claude/skills/writing-for-agents
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでWriting For Agentsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にWriting For Agentsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Writing For Agentsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Writing for Agents

Every document an agent reads is a behavior lever, not prose. The packaging differs across a skill, a standing instruction file, and a reference reached by a pointer, but the writing does not: the same levers make each one predictable. Predictable means the agent takes the same process every run. It does not mean the agent produces the same output.

This skill is reference, not a sequence: consult the rung that matches what you're writing. For frontmatter, invocation modes, a step that must load another skill, and this repo's catalog invariants, read references/skill-mechanics.md. When the reader is a human, as on a landing page, a README's front half, or a launch post, these levers read cold; use writing-for-humans instead.

Context pointers

An agent often holds a short line that points at material it has not loaded: a skill's description, or a line in AGENTS.md naming a doc. That line is a context pointer: a reference the agent already holds that names material it does not, plus the condition for going and getting it.

The pointer's wording, not its target, decides whether the agent reaches the material. A must-have target behind a weakly worded pointer is a variance bug: the material is right and the firing is a coin flip. Sharpen the wording first; inline the material only when sharpening has already failed.

A pointer does two jobs: say what the material is, and name the branches that should trigger reaching it. A branch is a distinct case the document handles: different runs take different paths through it. Because an always-loaded pointer costs on every turn, it earns harder pruning than the body:

  • Front-load the trigger. The pointer's opening words are where it does its work.
  • One trigger per branch. Synonyms that rename a single branch are one branch written twice.
  • Cut identity the body already carries. The pointer says when to come, not who you are.

The two budgets

Every document and every pointer spends one of two budgets:

  • Context load. Always-loaded material occupying the window: a skill description, an AGENTS.md line, anything present every turn whether or not it fires. Paid in tokens and in attention.
  • Cognitive load. The cost on the human: knowing which documents exist and when to reach for each. The human is the index.

Cognitive load is not a cost to minimize. It is the price of human agency: spend it where human judgment matters, remove it where it does not. Material behind a pointer escapes context load at the price of the pointer's own line; material with no pointer rides entirely on cognitive load.

The information hierarchy

A document mixes two content types: steps (ordered actions the agent performs) and reference (definitions, rules, and facts consulted on demand). A document may be all steps, all reference, or both. The decision that matters is where each piece sits on a ladder ranked by how immediately the agent needs it:

  1. In-file step. The primary tier: what the agent does, in order.
  2. In-file reference. Consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung). That is an arrangement, not a smell.
  3. Disclosed reference. Pushed into a separate file behind a pointer, loaded only when the pointer fires. Ranges from a sibling in references/ to material any document can point at.

Push too little down and the top bloats; push too much and you hide what the agent actually needs. That tension is the whole decision.

Progressive disclosure is the move down the ladder. It is not primarily a token optimization. It is how the top stays legible. The cleanest test is branching: inline what every branch needs, disclose what only some branches reach. When a document has steps, undisclosed in-file reference buries them, and attending to them becomes a coin flip.

Co-location is the within-file companion. The ladder decides how far down a piece sits; co-location decides what sits beside it once there. Keep a concept's definition, rules, and caveats under one heading so reading one part brings its neighbors along. Scattering fragments one meaning across many places; duplication, a distinct failure, repeats one meaning in two.

Sprawl is the failure mode: a document simply too long, even when every line is live and unique. Attention thins across the excess. The cure is the ladder: disclose reference behind pointers, and split by branch or sequence so each path carries only what it needs.

Completion criteria

Every step ends on a completion criterion, the condition telling the agent the work is done. Two properties make it a lever:

  • Clarity. Can the agent tell done from not-done? A vague bound ("understanding reached") invites premature completion: ending early as attention slips toward being done. Visible later steps supply the pull; the criterion's clarity is the resistance. Sharpen the bound first; it is local and cheap. Only when a bound is irreducibly fuzzy and you observe the rush should you hide later steps by splitting the sequence, and hiding works only across a real context boundary (a handoff, a subagent dispatch). An inline call leaves the later steps in context and clears nothing.
  • Demand. How much the criterion requires. "Every modified model accounted for" forces thorough work where "produce a change list" does not. Demand drives the digging the agent does inside the work, and it is not step-bound: "every rule applied" binds a body of flat reference exactly as "every step done" binds a sequence. That is how an all-reference document still carries an exhaustiveness bar.

The strongest criteria are both checkable and exhaustive. In this catalog they surface as the ## Done when (checkable) section every task-shaped skill carries; a skill with no discrete run to complete (a menu, a standing role) is exempt, and the exemption is a deliberate call, not an omission.

When to split

Splitting one document into two spends one of the two budgets, so split only when the cut earns it:

  • By sequence. Hide later steps whose visibility tempts the agent to rush the one in front of it, only under the completion-criteria conditions above. Beware the reverse: merging sequences exposes each step to what follows it, inviting premature completion.
  • By invocation. Skill-specific: when different triggers should reach different material, each invocation path becomes its own skill. The mechanics live in references/skill-mechanics.md.

Leading words

A leading word is a compact concept already living in the model's pretraining that the agent thinks with while running the document: frontier, fog, tracer bullet, lane. Repeated as a token and never as a sentence, it accumulates a distributed definition and anchors a whole region of behavior in the fewest tokens, by recruiting priors the model already holds.

It anchors twice. In the body it anchors execution: the agent reaches for the same behavior every time the word appears. In a pointer it anchors invocation: when the same word lives in your prompts, your docs, and your codebase, the agent links that shared language to the material and reaches it more reliably.

Coining your own works if you define it clearly, but a made-up word recruits no priors: you pay in definition tokens what a pretrained word gives free. Reach for an existing word first. Hunt for passages begging to collapse into one token: "fast, deterministic, low-overhead" becomes tight; "a loop you believe in" becomes red, turning a fuzzy gate into a binary observable state.

Negation is the failure mode beside this lever. Steering by prohibition drags the forbidden behavior into context and makes it more available. The ban half-reads as an instruction to do the thing, because a negation is a weak modifier that the strongly-activated concept overruns. Prompt the positive: state the target behavior so the banned one is never spoken. A prohibition earns its place only as a hard guardrail you cannot phrase positively, and even then it pairs with the positive target.

Punctuation

The em dash never appears in skill prose: it is a top AI tell, and the prose an agent reads leaks into the prose it writes (plainspoken's tell catalog, pattern 13). Separate thoughts with periods, commas, and colons instead.

Pruning

  • Single source of truth. Keep each meaning in exactly one authoritative place, so changing the behavior is a one-place edit. Duplication costs maintenance and tokens, and inflates a meaning's rank on the ladder past its real one. It is the accidental inverse of a leading word, which repeats a token on purpose and never the meaning.
  • The environment is a source of truth too. package.json scripts, config files, directory layout, --help output. A document restating it is a cache, and a cache earns its load only when the lookup is expensive. Cache what the agent cannot find by looking: the unwritten convention, the reason behind a choice, the gotcha no config confesses. Leave one-command lookups to the environment, where they cannot go stale.
  • Relevance. A line loses it by never bearing on the task (exposition, or a branch that should be disclosed) or by going stale as the world it describes changes. Without a pruning discipline the default fate is sediment: stale layers that settle because adding feels safe and removing feels risky.
  • No-ops. An instruction the model already obeys by default pays load to say nothing. The test is whether the line changes behavior versus the default, and it is model-relative, not reader-relative. Two people disagreeing about a no-op disagree about the default, and settle it by running the document, not by debating. When a sentence fails, delete the whole sentence rather than trimming words from it. The test also grades leading words: a word too weak to beat the default (be thorough, when the agent is already thorough-ish) is a no-op, and the fix is a stronger word (relentless), not a different technique.

Done when (checkable: verify each line before reporting complete)

  • Every pointer names its branches, front-loads its trigger, and carries no identity the body repeats.
  • Every piece of content sits on a deliberate rung: inlined because every branch needs it, or disclosed because only some branches reach it.
  • Every step ends on a criterion you can evaluate as done or not-done, and the document carries an exhaustiveness bar.
  • No meaning appears in two places, and nothing restates a lookup the environment answers in one command.
  • Every prohibition either states a positive target beside it or is a hard guardrail that cannot be phrased positively.
  • No em dash appears outside a code block or inline code span.
  • The no-op test has been run sentence by sentence, and what failed was deleted rather than trimmed.

Attribution

This skill is a lightly edited adaptation of Matt Pocock's writing-for-agents (MIT). Not just the vocabulary but the body: context pointers, the two budgets, the information hierarchy, completion criteria, when to split, leading words, and pruning follow his text section by section, much of it near-verbatim. What this repo adds: the checkable Done-when list, the punctuation rule, and the mechanics reference with its catalog invariants. The reference's rule for loading another skill follows his repo's invocation convention (MIT): "call the Skill tool" is his phrasing, as are one skill per call and the user-invoked exception.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Writing For Agents」では何ができますか?

Write and prune documents an agent consumes: a SKILL.md, an AGENTS.md or CLAUDE.md, a rules file, a reference file reached by a pointer. Use when authoring or revising a skill, editing standing agent instructions or recording a decision as a rule agents will follow (a CLAUDE.md, AGENTS.md, CODE-RULES, or conduct-rules entry), or diagnosing why a document fires unreliably or gets skimmed.

TypingMindでWriting For Agentsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Writing For Agentsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにWriting For Agentsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/timharris707/skills/tree/main/skills/author/writing-for-agentsを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Writing For Agentsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Writing For Agentsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもWriting For Agentsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Writing For Agents」は無料ですか?

はい。timharris707がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇