
Description
grounding-before-coding is an agent skill from the riekelt/principal-engineer collection, listed on skills.sh. It is used before starting any non-trivial change, investigating a bug or working in unfamiliar code, before the first line is written. The skill asks the agent to map the real code and data first, quoting file and line for every claim it relies on, and running the query behind every number. Its discipline has several parts. Read the implementations, not the names, because a method called validate that does not validate is the default assumption. Quote the evidence for each load-bearing claim, and say so out loud when a claim cannot be backed. Never guess the repository's conventions, which can be discovered in minutes. Trust code and history over a document's or ticket's self-reported status, checking with git log and search. Reproduce a bug before fixing it. Fix where the callers converge: when a defect lives in something shared, the guard belongs in the shared place, which also covers sibling paths the report never mentioned. Map the invariants a change must not break, including tests named after old bugs and guards that carry explanatory comments. The output of grounding is a map of touchpoints, current behavior quoted from the code, and invariants. The skill also explains the limits of grounding, and it covers pure investigation work. The listing shows it as free, and its audits all show Pass results.…
Highlights
- Maps real code and data before changing it
- Quotes file and line for each claim
- Reproduces bugs before fixing them
- Fixes shared defects where callers converge
Ratings & Reviews
No ratings yet
Be the first to rate grounding-before-coding.
People also visit
grounding-before-coding FAQ
What does the grounding-before-coding skill do?
It has an AI agent investigate the real code and data before it plans or writes a change.
How do I install it?
Run: npx skills add https://github.com/riekelt/principal-engineer --skill grounding-before-coding
What evidence does it require?
A file and line reference, an exact query result, or a command output for each load-bearing claim.
Does it trust ticket status?
No. The skill says to adjudicate with the code and history rather than a document's self-reported state.
Should bugs be reproduced first?
Yes. The skill says to see the failure happen before changing anything.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best grounding-before-coding alternatives?
Popular alternatives to grounding-before-coding include principal-engineering, diagnose and correct. See all grounding-before-coding alternatives
















