agentleFS
KhaledSaeed18KhaledSaeed18/dotclaude/skills/engineering/grill-with-docs/SKILL.md

grill-with-docs

Skill5 starsChanged 5 months agoMITView on GitHub

Stress-test a plan against the project's existing domain model by challenging terminology, surfacing contradictions with code, and updating CONTEXT.md and ADRs inline as decisions crystallise. Use when a plan or design needs to be checked against the project's documented domain model before implementation.

195 other projects use a version of this, 67 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-matt-pocock-skills, writing-beats and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AWSSkill

    setup-matt-pocock-skills

    Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

    Also in 88 projects that use this

  • RoentekSkill

    writing-beats

    Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.

    Also in 27 projects that use this

  • qhuang20Skill

    migrate-to-shoehorn

    Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.

    Also in 31 projects that use this

  • RoentekSkill

    writing-shape

    Writing, exploit — shape raw material into an article, paragraph by paragraph.

    Also in 25 projects that use this

  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 17 projects that use this

  • AnasX7Skill

    scaffold-exercises

    Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

    Also in 31 projects that use this

  • +3 more from Roentek

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 12 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 178 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If arguments were passed, treat them as the subject to grill.

    line 9
  2. Distinctive:

    NEVER: use the AskUserQuestion tool.

    line 11
  3. Very specific:

    ONE question per turn. Then STOP. Wait for reply: No lists. No "and also". No follow-ups.

    line 25
  4. Distinctive:

    If a question leads to more nested branches, move those to a new question.

    line 27
  5. Distinctive:

    Ask exactly one question.

    line 34
  6. Distinctive:

    Before starting the session, explore the codebase for existing documentation:

    line 51
  7. Very specific:

    If a CONTEXT-MAP.md exists at the root, the repo has multiple bounded contexts.

    line 65
  8. Very specific:

    Create files lazily, only when you have something to write.

    line 81
  9. Very specific:

    When the user uses a term that conflicts with the existing language in CONTEXT.md, call it out immediately.

    line 87
  10. Distinctive:

    When the user uses vague or overloaded terms, propose a precise canonical term.

    line 91
  11. Distinctive:

    When domain relationships are being discussed, invent edge-case scenarios that probe the boundaries and force precision.

    line 95
  12. Distinctive:

    When the user states how something works, check whether the code agrees.

    line 99
  13. Very specific:

    When a term is resolved, update CONTEXT.md right away.

    line 103
  14. Distinctive:

    Only offer to create an ADR when all three are true:

    line 109
  15. Distinctive:

    If any of the three is missing, skip the ADR.

    line 115
  16. Distinctive:

    All critical decisions are resolved,

    line 119
  17. Distinctive:

    Resolved decisions: every key decision made and its rationale.

    line 130

“Common” is measured: kept by at least 6 in 10 of the 178 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

Interview me relentlessly about every aspect of this plan until we reach a shared understanding. Walk down each branch of the decision tree, resolving dependencies between decisions one by one.

If arguments were passed, treat them as the subject to grill. Otherwise, ask what to stress-test before starting. If a question can be answered by exploring the codebase or reading existing files, do that instead of asking.

NEVER use the AskUserQuestion tool; ask questions as plain text output.

Your goals

  • Discover every major decision and dependency.
  • Walk the decision tree branch-by-branch.
  • Resolve high-impact decisions before low-impact ones.
  • Challenge assumptions and identify weaknesses, especially against the existing domain model.
  • Surface risks, tradeoffs, and alternatives.
  • Maintain a running model of unresolved questions.
  • Make temporary assumptions when necessary and state them explicitly.

Hard rule: one question per turn

ONE question per turn. Then STOP. Wait for reply. No lists. No "and also". No follow-ups. No bundled sub-questions. One ? per response. Violating this defeats the skill; the user needs space to think, not a wall of questions.

If a question leads to more nested branches, move those to a new question. Never nest question numbers.

For every question

Index each question as Q1, Q2, Q3, …

  1. Explain why the question matters.
  2. Ask exactly one question.
  3. Present the options as labeled choices (A, B, C, …) covering the realistic alternatives. Mark your recommended option with ← recommended. Example:

    A. Option one ← recommended B. Option two C. Option three

    The user can reply with just a letter. If they pick a non-recommended option, acknowledge the tradeoff before moving on.

After each answer

  • Update your understanding.
  • Summarize any newly resolved decisions.
  • Identify the next highest-priority unresolved dependency.

Domain awareness

Before starting the session, explore the codebase for existing documentation:

Most repos have a single context:

/
├── CONTEXT.md
├── docs/
│   └── adr/
│       ├── 0001-event-sourced-orders.md
│       └── 0002-postgres-for-write-model.md
└── src/

If a CONTEXT-MAP.md exists at the root, the repo has multiple bounded contexts. The map points to where each one lives:

/
├── CONTEXT-MAP.md
├── docs/
│   └── adr/                        ← system-wide decisions
└── src/
    ├── ordering/
    │   ├── CONTEXT.md
    │   └── docs/adr/               ← context-specific decisions
    └── billing/
        ├── CONTEXT.md
        └── docs/adr/

Create files lazily, only when you have something to write. If no CONTEXT.md exists, create one when the first term is resolved. If no docs/adr/ exists, create it when the first ADR is needed.

During the session

Challenge against the glossary

When the user uses a term that conflicts with the existing language in CONTEXT.md, call it out immediately. Example: "Your glossary defines 'cancellation' as X, but you seem to mean Y; which is it?"

Sharpen fuzzy language

When the user uses vague or overloaded terms, propose a precise canonical term. Example: "You're saying 'account'; do you mean the Customer or the User? Those are different things in your glossary."

Stress-test with concrete scenarios

When domain relationships are being discussed, invent edge-case scenarios that probe the boundaries and force precision.

Cross-reference with code

When the user states how something works, check whether the code agrees. If you find a contradiction, surface it. Example: "Your code cancels entire Orders, but you just said partial cancellation is possible; which is right?"

Update CONTEXT.md inline

When a term is resolved, update CONTEXT.md right away; don't batch. Use the format in docs/CONTEXT-FORMAT.md.

CONTEXT.md is a glossary and nothing else, totally devoid of implementation details, specs, or architecture notes.

Offer ADRs sparingly

Only offer to create an ADR when all three are true:

  1. Hard to reverse: the cost of changing your mind later is meaningful.
  2. Surprising without context: a future reader will wonder "why did they do it this way?"
  3. Real trade-off: there were genuine alternatives and you picked one for specific reasons.

If any of the three is missing, skip the ADR. Use the format in docs/ADR-FORMAT.md.

Stop only when

  • All critical decisions are resolved,
  • remaining uncertainties are documented,
  • major risks are identified,
  • CONTEXT.md reflects all resolved terminology,
  • and a coherent plan can be restated end-to-end.

Final output

Produce a decision record covering:

  1. Restated plan: the full plan as understood, end-to-end.
  2. Resolved decisions: every key decision made and its rationale.
  3. Open questions: anything still unresolved, with the risk if left open.
  4. Risks & mitigations: identified risks and suggested mitigations.
  5. Glossary changes: terms added or updated in CONTEXT.md during this session.
  6. ADRs created: list any ADRs written, with a one-line summary of each.

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.