Codebase reality check. Verify active entrypoints, real callers/consumers, and existing tests before modifying code to prevent editing dead copies or duplicating functionality.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Code Grounding?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/yjfkpyu-code-grounding)
---
name: code-grounding
description: Codebase reality check. Verify active entrypoints, real callers/consumers, and existing tests before modifying code to prevent editing dead copies or duplicating functionality.
---
# Code Grounding — Active Entrypoint & Consumer Verification
## Steps (Hands off to `atomic-tdd`)
1. **Inspect Working Tree**: Check branch and uncommitted changes; protect others' work. `SESSION.md` never overrides live workspace facts.
2. **Trace Active Call Paths**: Confirm target files are wired into active routes, exports, or registries—exclude dead duplicate files.
3. **Reuse Before Creating**: Missed search does not prove absence; check aliases, ignore patterns, and generated files first.
4. **Separate Three Fact Types**: Accepted requirements ("should be") != live code ("currently is") != verification evidence ("tested under X").
## Anti-Rationalization Table
| Common Rationalization | Mandatory Counter-Action |
| :--- | :--- |
| "The filename matches, I'll edit it directly" | Trace at least 1 active caller or public export confirming the file is on the live execution path |
| "Old code and tests do X, so I'll edit the spec" | Investigate defect origin first; **never rewrite a valid spec to match buggy code** |