Who it is forAn engineer who finds several overlapping readiness or status flags in one subsystem and wants to know whether they can be merged.
The problemOverlapping flags make the lifecycle hard to reason about, but merging them without tracing every reader and writer can break startup or shutdown behavior.
The outcomeA focused Survey answer that says whether each flag guards a different guarantee, with the consumers and lifecycle owners that justify the answer.
What you need first
- An AI coding agent that loads SKILL.md skills, such as Codex
- Git, to clone the skill into the Codex user skills folder
- The target repository checked out locally
- Node.js 18 or newer, only if you want the optional Cleanup Map visual report
Steps
- Make sure the skill is installed and a new task has loaded it.
- Point the agent at the subsystem that holds the flags and name the flags in your request.
- Ask the agent to trace every writer and reader of each flag, including dynamic and external consumers.
- Review the verdict: keep separate, merge, or unable to judge.
- Only after a merge verdict, ask for a Change run with a stated deletion boundary.
Prompt for your agent
Use $simplify-codebase in Focused Survey mode on <subsystem path> to decide whether the readiness flags <flag names> express different lifecycle guarantees or repeated state. Do not modify files. Expected output: one verdict per flag with its consumers and lifecycle owner. Verify that each verdict cites the readers and writers it traced.
Caveat. The skill recommends keeping code whenever a real consumer or boundary is not yet clear, so an unclear result is a valid outcome, not a failure.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for tt-a1i/simplify-codebase and "Decide if readiness flags are duplicate state"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer