architect-impl-grounding
Skill146 starsChanged 3 months agoMITView on GitHub
Grounds the grill's settled decisions in the codebase — annotates impl.md with file paths, signatures, reference files, test specs, and LOC; re-grounds the next epic after each landing.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-decisionSkill
- agent-memorySkill
- architect-design-treeSkill
- bootSkill
- browser-inspectSkill
- code-coherence-reviewSkill
- code-quality-reviewSkill
- coder-self-reviewSkill
- code-sec-reviewSkill
- context-maintenanceSkill
- contextualizer-self-reviewSkill
- dispatchSkill
- grillSkill
- loop-recoverySkill
- plan-managementSkill
- reviewer-architect-adversarialSkill
- reviewer-handoffSkill
- reviewer-self-reviewSkill
- review-loopSkill
- task-trackingSkill
- web-searchSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Read .context.md files in affected directories.
- Very specific: line 25
Read docs/FEATURE-MAP.md if it exists.
- Distinctive: line 26
Read the project's architecture skill, if one exists.
- Very specific: line 27
Run ls on affected directories.
- Very specific: line 28
Verify assumptions — check library docs for capability claims, inspect handler code for API contracts, validate environment references …
- Distinctive: line 48
Test specifications (Good, Bad, Ugly) for each method.
- Distinctive: line 72
Never write code. You ground the plan.
- Distinctive: line 73
Never skip re-grounding the next epic in refresh mode.
- Distinctive: line 74
Never fold an escalate-class discovery as an adjust.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
The grill settles the decisions. This skill makes them concrete. It grounds the plan artifacts in the codebase and annotates impl.md with the details the coder implements from. The refresh procedure handles what lands: it verifies the shipped epic's discoveries, classifies them, and re-grounds the next epic against the codebase as it now stands.
Procedure
- Ground — the grill is done. Annotate
impl.md. - Refresh — an epic has landed. Classify its discoveries, then re-ground the next epic.
- Ground mode. Annotate
impl.md: a. Read the plan artifacts:plan.md— acceptance criteria.arch.md— directory structure, layer separation, reference projects.impl.md— epics grouped at one day of work. b. Ground the artifacts in the codebase:- Read
.context.mdfiles in affected directories. - Read
docs/FEATURE-MAP.mdif it exists. - Read the project's architecture skill, if one exists.
- Run
lson affected directories. - Verify assumptions — check library docs for capability claims, inspect handler code for API contracts, validate environment references against config files.
c. Annotate
impl.mdwith the annotation set for each epic. d. Respect current layer boundaries and dependency direction (follows:rules/code/general.md). For each file in the epic, verify its imports do not violate dependency direction. e. Write the annotatedimpl.mdback to disk. The coder works from this file.
- Refresh mode. Handle the landed epic's discoveries, then re-ground:
a. Read
impl.mdand the coder's handoff for the epic that landed. b. Verify each discovery against the changed files. Usegit diff --statto see what shipped, then read the files the discovery claims to affect. Discard a discovery that does not match the implementation — note the mismatch. c. Classify each verified discovery:- adjust — changes how the remaining work is built, not what the user wants. Fold it into the remaining epics inline. No user gate.
- escalate — contradicts a settled decision, or reveals a decision the user should make. Flag it for the Maestro. Do not guess.
d. Re-ground the next pending epic with step 1 against the current codebase. Verify its file paths, method signatures, and reference files. Re-annotate what drifted.
e. Write the updated
impl.mdback to disk.
Annotation Set
Each epic in impl.md carries:
- File paths to create or modify.
- Method signatures following
rules/code/naming conventions. - Reference files for style matching.
- Test specifications (Good, Bad, Ugly) for each method.
- Information flow tracing the request path through layers.
- Estimated LOC, within the 600 soft cap and the 900 hard cap.
Handoff
Ground mode delivers the annotated impl.md. Refresh mode delivers the re-grounded impl.md:
## Summary
[One sentence: what was done]
## Grounding (ground mode)
- Epic N: [files identified, methods named, references listed]
## Discoveries (if any)
- [discovery] — action: adjust | escalate — [effect on remaining epics, or the question for the user]
## Re-grounding (refresh mode)
- [what drifted, what was re-annotated]Guardrails
- Never write code. You ground the plan. The coder implements.
- Never skip re-grounding the next epic in refresh mode.
- Never fold an escalate-class discovery as an adjust. The user's gate is not yours to close.
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
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.

