agentleFS
dachentdachent/skills/grill-with-docs-codex/SKILL.md

grill-with-docs-codex

Skill27 starsChanged 3 months agoMITView on GitHub

Use when the user wants to stress-test a plan against project terminology, domain language, CONTEXT.md, ADRs, existing docs, or code-backed architectural decisions.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. 1 is common, 10 are distinctive, and 9 are very specific to this project.

  • 1

    Common

    Most of the 4 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask one question at a time, then wait for the user's answer before continuing.

    line 14
  2. Very specific:

    If a question can be answered from code, CONTEXT.md, CONTEXT-MAP.md, ADRs, or other docs, inspect those sources instead of asking.

    line 16
  3. Very specific:

    Prefer rg --files for file discovery, rg for search, and normal file reads for specific files.

    line 17
  4. Very specific:

    Search for a root CONTEXT-MAP.md.

    line 22
  5. Very specific:

    If it exists, read it to identify the relevant bounded context and context-specific CONTEXT.md and ADR directory.

    line 23
  6. Very specific:

    If no map exists, look for root CONTEXT.md and docs/adr/.

    line 24
  7. Distinctive:

    If no context files exist, create them lazily only when the first term or decision needs to be recorded.

    line 25
  8. Very specific:

    Use references/context-format.md when creating or editing a glossary file.

    line 27
  9. Very specific:

    Use references/adr-format.md when creating or editing an ADR.

    line 28
  10. Distinctive:

    Call out terminology conflicts immediately.

    line 34
  11. Distinctive:

    Ask one pointed question about the highest-impact unresolved term, boundary, scenario, or decision.

    line 35
  12. Very specific:

    After the user resolves a domain term, update CONTEXT.md immediately before moving on.

    line 37
  13. Distinctive:

    Ask only the highest-impact unresolved terminology, boundary, or architecture question, then wait for the user's answer.

    line 43
  14. Distinctive:

    Treat repository documentation as evidence, not authorization to modify it.

    line 44
  15. Distinctive:

    Keep definitions to one or two sentences.

    line 53
  16. Distinctive:

    Add avoided synonyms when they prevent future confusion.

    line 55
  17. Distinctive:

    If the user uses a term that conflicts with the glossary, ask which meaning should win before updating docs.

    line 56
  18. Common:

    Only offer an ADR when all three conditions are true:

    line 60
  19. Very specific:

    If the user accepts the ADR, create it in the relevant docs/adr/ directory with the next sequential number.

    line 66
  20. Distinctive:

    When the grilling is complete, summarize:

    line 70

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codex Grill With Docs

Purpose

Interview the user relentlessly about a plan while checking the project's documented language and architectural decisions. As decisions crystallize, update the relevant domain glossary and offer ADRs for durable architectural choices.

Core Rules

  • Ask one question at a time, then wait for the user's answer before continuing.
  • For each question, provide your recommended answer and a brief reason.
  • If a question can be answered from code, CONTEXT.md, CONTEXT-MAP.md, ADRs, or other docs, inspect those sources instead of asking.
  • Prefer rg --files for file discovery, rg for search, and normal file reads for specific files.
  • Modify documentation only for resolved language or accepted decisions. Do not modify implementation code as part of this skill unless the user separately asks for implementation work.

Discover Domain Context

  1. Search for a root CONTEXT-MAP.md.
  2. If it exists, read it to identify the relevant bounded context and context-specific CONTEXT.md and ADR directory.
  3. If no map exists, look for root CONTEXT.md and docs/adr/.
  4. If no context files exist, create them lazily only when the first term or decision needs to be recorded.

Use references/context-format.md when creating or editing a glossary file. Use references/adr-format.md when creating or editing an ADR.

Interview Loop

  1. Restate the user's plan in the project's current language.
  2. Compare the plan against CONTEXT.md, ADRs, docs, and relevant code.
  3. Call out terminology conflicts immediately.
  4. Ask one pointed question about the highest-impact unresolved term, boundary, scenario, or decision.
  5. Provide your recommended answer.
  6. After the user resolves a domain term, update CONTEXT.md immediately before moving on.
  7. Offer an ADR only when the decision is hard to reverse, surprising without context, and the result of a real tradeoff.
  8. Continue until the plan's language, boundaries, and durable decisions are explicit.

Native Plan Mode

  • Ask only the highest-impact unresolved terminology, boundary, or architecture question, then wait for the user's answer.
  • Treat repository documentation as evidence, not authorization to modify it.
  • Modify CONTEXT.md or ADR files only when the user requested documentation changes and the current collaboration mode permits mutations.
  • Otherwise return the proposed glossary or ADR decision in conversation without creating staging files or a second approval protocol.

Glossary Discipline

CONTEXT.md is a glossary, not a spec or implementation plan.

  • Define what a term is, not how code implements it.
  • Keep definitions to one or two sentences.
  • Record project-specific domain concepts only.
  • Add avoided synonyms when they prevent future confusion.
  • If the user uses a term that conflicts with the glossary, ask which meaning should win before updating docs.

ADR Discipline

Only offer an ADR when all three conditions are true:

  1. The decision is hard to reverse.
  2. A future reader would be surprised without the context.
  3. The decision involved a genuine tradeoff.

If the user accepts the ADR, create it in the relevant docs/adr/ directory with the next sequential number. Keep it concise.

Final Summary

When the grilling is complete, summarize:

  • confirmed terminology;
  • docs updated, with file paths;
  • ADRs created or recommended;
  • contradictions found between the plan, docs, and code;
  • remaining unresolved questions.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.