跳到正文
cccskills
免费在 GitHub 公开

documentation

Write a document an agent consumes — a skill, an AGENTS.md, a README, a docblock, or any file reached by a pointer.

中文简介正在准备中。当前显示原文说明。

集成工具WordPress
查看安装方法

包含的文件(1)

  • SKILL.md5.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Documentation

Reference for writing any document an agent reads: a skill, an AGENTS.md, a docblock, a line in a README. The packaging differs; the levers do not.

Distilled from mattpocock/skills/writing-for-agents — see .agents/docs/DISTILLATION.md for what was kept, dropped, and added.

Context pointers

A context pointer is a reference held in the agent's context that names out-of-context material and encodes the condition for reaching it. A skill's description is one; a line in AGENTS.md naming a doc is the same object. The pointer's wording, not its target, decides when the agent reaches the material and how reliably. A must-have target behind weakly worded pointer is a variance bug: sharpen the wording first, inline the material only if sharpening fails.

A pointer does two jobs: state what the material is, and list the branches that should trigger reaching it. Every word of an always-loaded pointer costs on every turn:

  • Front-load the leading word. The pointer is where it does its work.
  • One trigger per branch. Synonyms renaming a single branch are one branch written twice; collapse them.
  • Cut identity the body already carries.

The two loads

  • Context load is always-loaded material on the agent's window: an AGENTS.md line, a skill description, anything spending tokens whether or not it fires.
  • Cognitive load is the cost on the human: which documents exist and when to reach for each. The human is the index. Not a cost to minimise; spend it where human judgement matters.

Information hierarchy

Two content types: steps (ordered actions) and reference (facts consulted on demand). The core decision is where each piece sits:

  1. In-file step — what the agent does, in order.
  2. In-file reference — consulted on demand. Often a legitimately flat peer-set, which is a fine arrangement, not a smell.
  3. Disclosed reference — pushed into a separate file behind a pointer.

Progressive disclosure is the move down the ladder. Branching is the cleanest test: inline what every branch needs, disclose what only some reach.

Co-location decides what sits beside what. Keep a concept's definition, rules and caveats under one heading. Grouped material reads as documentation; scattered material does not.

Sprawl is the failure mode: a document too long even when every line is live. The cure is the ladder.

Completion criteria

Every step ends on a completion criterion. Two properties make it a lever:

  • Clarity — can the agent tell done from not-done? A vague bound invites premature completion. Sharpen the bound first, locally and cheaply.
  • Demand — how much it requires. "Every modified model accounted for" forces thorough work where "produce a change list" does not.

The strongest criteria are both checkable and exhaustive.

Leading words

A leading word is a compact concept already in the model's pretraining that the agent thinks with: lesson, fog of war, tracer bullets. Repeated as a token, never as a sentence, it anchors a whole region of behavior in the fewest tokens by recruiting priors the model already holds. A coined word recruits no priors: you pay in definition tokens what a pretrained word gives free.

Negation is the failure mode beside this lever. Steering by prohibition drags the forbidden behavior into context and makes it more available. Don't think of an elephant. Prompt the positive: "write one-line comments" so the banned one is never spoken. A prohibition earns its place only as a hard guardrail you cannot phrase positively, and even then pair it with the target.

Pruning

  • Single source of truth. Duplication costs maintenance and tokens, and inflates a meaning's prominence past its real rank. A leading word repeats a token on purpose; duplication repeats a meaning by accident.
  • The environment is a source of truth too — package.json scripts, config, directory layout, --help. A document restating it is a cache, and earns its load only when the lookup is expensive. Cache the unwritten convention, the reason behind a choice, the gotcha no config confesses.
  • Relevance, line by line. The default fate without this discipline 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 model-relative, not reader-relative. When a sentence fails, delete the sentence rather than trim words from it.

In this fleet

  • US English. User-facing prose belongs to the writing skill: it carries the WordPress Documentation Style Guide rules in references/ and hands the draft to humanizer or humaniseur-fr. This skill is for the documents an agent consumes.
  • A docblock states what the code does, not what it should do. The fleet's most common documentation defect is a docblock that disagrees with the code — 'WordPress' where the function returns 'wordpress', a fixed array shape a failure path contradicts. WPCS checks that a docblock is present and shaped right; nothing checks that it is true. That is this skill's job.
  • Do not restate the signature. @param int $id under function f( int $id ) is a no-op. Say what the value means, or say nothing.
  • @return describes what comes back, including when it is nothing. "Empty string when the term has no archive" is worth a line; "the link" is not.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

architect

免费

Run a full dev cycle on one change: clarify, plan, execute, lint, fix. Start every change here.

中文简介正在准备中。当前显示原文说明。

quentin-ld/zenpress92026年10月17日 更新

graft

免费

Locate and understand code through the project's graft graph before reading: where-is-X, how-does-Y or what-calls-Z.

中文简介正在准备中。当前显示原文说明。

quentin-ld/zenpress92026年10月17日 更新

grilling

免费

Stress-test the owner's plan, decision or idea by interviewing them to a shared understanding before any work starts.

中文简介正在准备中。当前显示原文说明。

quentin-ld/zenpress92026年10月17日 更新

Remove AI tells from French prose without lowering its register — a reply, a `.po` target, a French post.

中文简介正在准备中。当前显示原文说明。

quentin-ld/zenpress92026年10月17日 更新

humanizer

免费

Remove AI tells from English prose — a README, a comment, a user-facing string, a review. French is `humaniseur-fr`.

中文简介正在准备中。当前显示原文说明。

quentin-ld/zenpress92026年10月17日 更新

Turn surviving mutants into better tests or bug reports: on a survivor, a red MSI gate, or before a threshold drops.

中文简介正在准备中。当前显示原文说明。

quentin-ld/zenpress92026年10月17日 更新

查看 quentin-ld 的全部技能

报告此技能的问题