audit-flags
Skill2 starsChanged 14 days agoMITView on GitHub
Feature flag audit, stale flags, flags code and the flag service disagree on, missing owners or expiry, and the dead branches behind them
In this repository81 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- add-languageSkill
- audit-a11ySkill
- audit-archSkill
- audit-ciSkill
- audit-debtSkill
- audit-doc-driftSkill
- audit-infraSkill
- audit-perfSkill
- audit-readinessSkill
- audit-securitySkill
- audit-slopSkill
- audit-testsSkill
- audit-tokensSkill
- audit-verifySkill
- backup-patternsSkill
- bash-patternsSkill
- claude-code-mods-patternsSkill
- code-challengeSkill
- code-contractSkill
- code-deep-reviewSkill
- code-evaluateSkill
- code-from-designSkill
- code-historySkill
- code-host-patternsSkill
- code-impactSkill
- code-migrateSkill
- code-tourSkill
- code-visualSkill
- depsSkill
- django-patternsSkill
- docker-patternsSkill
- drf-patternsSkill
- engineering-fundamentalsSkill
- fastapi-patternsSkill
- git-patternsSkill
- go-patternsSkill
- graphql-patternsSkill
- investigateSkill
- javascript-patternsSkill
- kit-rulesSkill
- logging-patternsSkill
- meta-conventionsSkill
- meta-promptSkill
- meta-refreshSkill
- meta-retroSkill
- meta-skillSkill
- monitoring-patternsSkill
- next-app-router-patternsSkill
- nuxt-patternsSkill
- opentofu-patternsSkill
- pr-descriptionSkill
- pr-publishSkill
- pr-queueSkill
- pr-replySkill
- pr-reviewSkill
- python-patternsSkill
- react-patternsSkill
- report-formatSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Read-only. No flag changed in the service, no code edited, no cleanup tool run.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
/audit-flags
Audit a codebase's feature flags against its flag service: which are stale, which the code and the service disagree on, which have no owner or expiry, and what code each removal would delete. Read-only on the repo and the service.
Loading this skill isn't enough. Before the step a row names, read its file.
| Before | Read |
| Finding the flag references | reference/sdk-detection.md |
| Judging staleness and removal | reference/flag-practice.md |
Procedure
- Scope, the argument's path or the repo. The flag SDK comes from the manifests
kit detect-stacknames, else the project's own flag helper found withrg. None, say so and stop. - The flag service's connector, per
skills/kit-rules/reference/tooling.mdsection 4. None, the audit is code-only, and the report says which checks that skipped. - Each code reference per reference/sdk-detection.md, with its key,
file:line, default, and type. Keys built at runtime go in their own list. - The service's flags, compared with the code both ways, with each flag's kind, age, owner, expiry, and the variations it serves.
- Each flag classed by kind and judged against that kind's lifetime per reference/flag-practice.md.
- For each stale or always-on flag, each reference read, naming the dead branch, its
file:line, the literal the condition becomes, and the tests and overrides that go with it.
Report
Load the report-format skill and use its format, written to the path kit scratch-dir flags <scope-slug> prints. Findings rank by how far past its lifetime a flag is, then by references touched. Each cites the service's field and value or the file:line.
Reply
The report path and the count per finding class.
Stop
Read-only. No flag changed in the service, no code edited, no cleanup tool run.
Arguments: $ARGUMENTS
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.

