Skip to content

feat(writing-for-agents): add a skill for writing text agents read - #40

Merged
mastro993 merged 1 commit into
mainfrom
feat/writing-for-agents-skill
Nov 28, 2026
Merged

mastro993 merged 1 commit into
mainfrom
feat/writing-for-agents-skill

Conversation

@mastro993

Copy link
Copy Markdown
Owner

Why

Agents read SKILL.md files, AGENTS.md and CLAUDE.md, system prompts, subagent briefs and tool descriptions, and they try to follow every line. When these files are padded, shout in capitals, or contradict themselves, agents take longer and do worse. fstack had no skill for writing them.

What

A new writing-for-agents skill. Its 60-line SKILL.md keeps only the rules with the most effect:

Part What it asks
1. Keep only lines that change behavior Cut what the agent already knows or can find, generic advice, and date-bound notes. Collect surprising facts about the environment under a Gotchas heading.
2. Phrase each rule Say what to do and why, write in a calm voice, be stricter where a mistake costs more, use one word per idea, keep one version of each rule, and use exact names.
3. Shape the document Separate rules from data, use a few varied examples, keep the main file short and link detail files with a note on when to read each.
4. Per kind of text Skill descriptions say only when to use the skill. Also covers subagent briefs, AGENTS.md and CLAUDE.md, tool descriptions, and when an agent stops or asks first.
5. Check before handing it over A review pass and a short test loop. A rewrite lists what was cut, added or loosened.

Three eval cases come with it: trimming a bloated AGENTS.md, writing a brief for a research subagent, and drafting a release skill whose publish step can't be undone. The README gets an "Agent instructions" row, and the plugin moves to 0.18.0 in every manifest and the badge.

Merge danger

Reversible: yes. A revert removes the skill and restores 0.17.2; nothing is stored or migrated.

Blast radius: contained. The skill loads only when its description matches a request about text for agents. No other skill refers to it, and no existing skill changes.

How to test

Automated: none run. The Manifests workflow checks that the four version strings match.

Evals: each case ran once with the skill and once without, scored by a grader who didn't know which run was which.

With skill Without
Checks passed 23 of 23 22 of 23
Preferred by the grader 3 of 3 cases 0 of 3
Time per run 50 s 43 s
Tokens per run 58k 55k

The first round showed one problem: the AGENTS.md rewrite with the skill quietly loosened its legacy/ rule. Part 5 now asks a rewrite to keep each rule's meaning and to list anything added or loosened. A rerun of that case kept the rule strict and listed its two additions.

Manual

  • Ask an agent with the plugin installed to "tighten up our AGENTS.md" and check that it loads writing-for-agents.

Covers SKILL.md files, AGENTS.md and CLAUDE.md, system prompts,
subagent briefs and tool descriptions. It keeps only the rules that
change what an agent does: cut lines the agent doesn't need, phrase
each rule as what to do with its reason, set strictness by the cost
of a mistake, load detail only when needed, and check the draft
before handing it over. Rewrites list what was cut, added or loosened.

Three eval cases: trimming a bloated AGENTS.md, briefing a research
subagent, and drafting a release skill with an irreversible publish.

Bumps the plugin to 0.18.0.
@mastro993
mastro993 marked this pull request as ready for review November 28, 2026 11:24

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Approach: sound — a standalone, self-contained skill that follows the layout of the existing skills (SKILL.md, agents/openai.yaml, evals/<case>/{case.yaml,prompt.md,graders,place-files.sh}), with no changes to other skills.

Reviewed changes: the full diff of the single commit, plus a check of the repo's conventions and version consistency.

  • writing-for-agents/SKILL.md: 60-line skill in five parts. The frontmatter description is trigger-only, has no # or : YAML hazards, and is well under 1,024 characters. The body follows its own rules.
  • Evals: three cases (research-subagent brief, release skill draft, bloated AGENTS.md trim) with 23 graders. They use the same schema_version: "1.1", grader frontmatter and place-files.sh scaffold pattern as pr-open's evals. The files/package.json packageManager correctly backs the pnpm-only grader.
  • Version bump to 0.18.0: grep shows .claude-plugin/plugin.json, plugin.json, gemini-extension.json and the README badge all agree, which is what the Manifests workflow checks.
  • README: new "Agent instructions" row linking the skill.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@mastro993
mastro993 merged commit 15b96ac into main Nov 28, 2026
2 checks passed
@mastro993
mastro993 deleted the feat/writing-for-agents-skill branch November 28, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant