write-skill

Originally frominkeep/team-skills
Installation
SKILL.md

Writing for agents is test-first development, applied to text. The same loop ships every document that an agent reads: skills, AGENTS.md, CLAUDE.md, and system prompts.

  1. Run the baseline first. Run the scenario that the document targets on an agent WITHOUT the document. Record exactly how it fails, or what excuse it gives. Run the baseline in a fresh subagent that loads no skills and no context files, such as AGENTS.md. It keeps the base system prompt of your agent. When your agent cannot start such a subagent, use a new session without skills and context files. When you observe no failure, the document has nothing to teach.
  2. Write the minimum text that fixes those specific failures. Do not write a manual. Write the shortest process that changes the behavior.
  3. Run the scenario again with the document loaded. It passes, or the document is wrong.
  4. Close loopholes. When a new run shows a new excuse, block it in the text, and verify again.

Rules:

  • An eval script changes the mechanics, not the loop. When one exists, it runs the baseline and the second run.
  • A correction that the user makes a second time is a lesson that did not hold. Read encode lessons in structure. Fix its class at the highest level that holds: a mechanism before any text. Only what no mechanism can hold goes through steps 1 to 4.
  • When the document is a skill in this repo, follow the conventions for skills in this repo.
  • Skip this skill for work done once, or when standard practice is already well documented. Skip it also when a linter or hook could enforce the rule. In that case, build the linter or hook instead, as encode lessons in structure says.
Installs
110
Repository
pwguler/skills
GitHub Stars
10
First Seen
Aug 4, 2026