agentleFS
ku5icku5ic/claude-kit/skills/audit-flags/SKILL.md

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

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
  1. Distinctive:

    Read-only. No flag changed in the service, no code edited, no cleanup tool run.

    line 42

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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.

BeforeRead
Finding the flag referencesreference/sdk-detection.md
Judging staleness and removalreference/flag-practice.md

Procedure

  1. Scope, the argument's path or the repo. The flag SDK comes from the manifests kit detect-stack names, else the project's own flag helper found with rg. None, say so and stop.
  2. The flag service's connector, per skills/kit-rules/reference/tooling.md section 4. None, the audit is code-only, and the report says which checks that skipped.
  3. 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.
  4. The service's flags, compared with the code both ways, with each flag's kind, age, owner, expiry, and the variations it serves.
  5. Each flag classed by kind and judged against that kind's lifetime per reference/flag-practice.md.
  6. 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.