agent-briefing
Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…
Use when creating a new skill, editing or renaming an existing skill, reviewing a skill someone else wrote, or when a skill is not triggering, is being ignored, or is being rationalised away by agents.
Claude Code
$ npx -y skills add NoobyGains/godmode --skill writing-skills --agent claude-code
Codex
$ npx skills add NoobyGains/godmode --skill writing-skills -a codex -y
Cursor
$ npx skills add NoobyGains/godmode --skill writing-skills -a cursor -y
Gemini CLI
$ npx skills add NoobyGains/godmode --skill writing-skills -a gemini-cli -y
GitHub Copilot
$ npx skills add NoobyGains/godmode --skill writing-skills -a github-copilot -y
OpenCode
$ npx skills add NoobyGains/godmode --skill writing-skills -a opencode -y
Windsurf
$ npx skills add NoobyGains/godmode --skill writing-skills -a windsurf -y
name: writing-skills description: "Use when creating a new skill, editing or renaming an existing skill, reviewing a skill someone else wrote, or when a skill is not triggering, is being ignored, or is being rationalised away by agents."
A skill is code that runs on a model. Like code, it is written against a failing test: you first watch an agent get the task wrong without the skill, then write the smallest skill that fixes what you saw, then attack it until the agent stops finding ways around it. **If you never watched an agent fail without the skill, you do not know what the skill has to prevent.**
NO SKILL SHIPS WITHOUT A BASELINE FAILURE AND A VERIFIED PASS
No exceptions. No workarounds. No shortcuts.
This applies to edits too. A "small wording fix" to a discipline skill can open a loophole; re-run its scenarios.
**Required:**
**Skip:**
Write a skill when the technique is not obvious to a capable model, applies across projects, and agents get it wrong without help. Three kinds:
| Kind | Example | How to test it | |---|---|---| | Discipline (a rule agents are tempted to break) | test-first, completion-gate | Pressure scenarios: does the agent comply when it wants not to? | | Technique (a method with steps) | fault-diagnosis, performance-tuning | Application scenarios: does the agent apply it correctly to a new case? | | Reference (facts to look up) | platform command tables | Retrieval scenarios: does the agent find and use the right entry? |
1. **RED: capture the baseline failure.** Write three or more realistic scenarios for the behaviour the skill should produce (method and templates in [references/testing-skills.md](references/testing-skills.md)). Dispatch a fresh subagent per scenario with no access to the skill, or run the harness's eval tooling with a no-skill baseline. Record what each agent did and its rationalisations word for word. If the agents already behave correctly, stop: the skill is not needed.
2. **Write the description** from the triggers you observed (rules below), not from what the skill does.
3. **GREEN: write the smallest skill that fixes the observed failures**, using the GodMode template below. Address each recorded rationalisation explicitly; do not add rules for failures you did not see.
4. **Run the validator** from the repository root and fix every error for your skill:
node scripts/validate.js
The validator is the acceptance test for form: frontmatter, quoting, section order, length, cross-references, links and tool coupling. A skill with validator errors is not finished, whatever the scenarios say.
5. **Verify GREEN.** Run the same scenarios with the skill available. The agent must choose the right action and cite the skill's sections as its reason. Save the transcripts or the eval report.
6. **REFACTOR: close loopholes.** Run harder scenarios (three or more combined pressures). For every new rationalisation, add an explicit counter: a sentence in the protocol, a row in Cognitive Traps, an item in Guardrails, and, if it reveals a new trigger, a phrase in the description. Re-run until no new rationalisation appears.
7. **Check triggering separately.** Give a fresh agent a task that should trigger the skill without naming it, and one that should not. The skill must load for the first and stay out of the second.
8. **Record the evidence** in the pull request: the baseline failures, the passing runs, the rationalisations you countered, and the validator line.
Every SKILL.md follows this shape. The description is wrapped in double quotes so YAML never misreads a colon in it.
--- name: <directory-name> description: "Use when <triggering situations only; no workflow summary; third person; under 400 characters>" --- # <Title> <Overview: 2-4 sentences. What this skill is for and the **core principle** in bold.> ## The Prime Directive
<ONE LINE, CAPITALS, THE RULE THAT CANNOT BE BROKEN>
No exceptions. No workarounds. No shortcuts. ## When to Use **Required:** <bullets> **Skip:** <bullets> ## The Protocol <Numbered steps the agent follows. Add a dot digraph only where the flow genuinely branches. Each step says what to do and what evidence it leaves behind.> <Optional H2 sections specific to the skill: templates, checklists, decision tables.> ## Cognitive Traps | Rationalisation | Truth | |---|---| | <at least five rows> | | ## Guardrails **Never:** <bullets> **Always:** <bullets> ## Connections - `godmode:<skill>`: <when this skill hands off to it or depends on it> ```` Form rules the validator enforces: - `name` equals the directory name: lowercase letters, digits and single hyphens. - The four sections The Prime Directive, When to Use, Cognitive Traps and Guardrails exist and appear in that order. - 120 to 350 lines. Move tables, long examples and per-platform detail into `references/*.md` in the skill directory, linked with a relative link; every linked file must exist. Reference files over about 100 lines start with a short contents line, and references stay one level deep. - Under 20,000 bytes, with The Prime Directive and The Protocol inside the first 8,000. After a compaction the harness keeps only the start of each invoked skill (Claude Code: the first 5,000 t
Engineering discipline for AI coding agents: question the request, verify against current docs, plan, build test-first on the cheapest capable model, review with a second model family, prove it before saying done. One repo for Claude Code, Codex, Antigravity, Cursor, Gemini CLI and OpenCode.
Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…
Use when a task, feature or bug fix is implemented and before it is committed, merged or handed back to the user, and when the…
Use when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration,…
Use when about to say that work is done, fixed, passing, working, deployed or ready, before committing, opening or merging a pull…
Use when a reviewed change is about to land on a shared branch, be released or be deployed, and when the user asks for a second…
Use when a written implementation plan is ready to execute in the current session and its tasks are mostly independent, so each…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration