agentleFS
bruuuuucebruuuuuce/mana/skills/changed-files-risk-classifier/SKILL.md

changed-files-risk-classifier

Skill2 starsChanged 4 months agoMITView on GitHub

Classifies changed files by risk domain such as production code, tests, config, database, generated code, framework noise, cross-service contract, security/auth, and documentation so agents can focus only relevant skills.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before branch-ready, pr-ready, or requested-pr-review deep analysis.

    line 39
  2. Very specific:

    When a diff contains mixed application, test, config, database, dependency, generated, documentation, or Mana/bootstrap files.

    line 40
  3. Distinctive:

    When an agent needs to decide which specialist skills to load.

    line 42
  4. Distinctive:

    Read changed-file list from branch or PR diff.

    line 50
  5. Distinctive:

    Add risk tags from path, extension, package, annotations, API names, table names, queue/topic names, and engineering guards.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Changed Files Risk Classifier

Purpose

Classify changed files before deep analysis so agents load only relevant skills and reviewers focus on the risky parts of a diff.

When To Use It

  • Before branch-ready, pr-ready, or requested-pr-review deep analysis.
  • When a diff contains mixed application, test, config, database, dependency, generated, documentation, or Mana/bootstrap files.
  • When an agent needs to decide which specialist skills to load.

Outputs

  • changed_files_risk_map
  • skill_routing_recommendation
  • review_focus

Execution Logic

  1. Read changed-file list from branch or PR diff.
  2. Exclude known Mana/bootstrap noise unless explicitly in scope: .mana/**, AGENTS.md, CLAUDE.md, mana, generated Mana ignore changes.
  3. Classify each file: production code, test, config, database/migration, generated, docs, build/dependency, cross-service contract, security/auth, observability, or unknown.
  4. Add risk tags from path, extension, package, annotations, API names, table names, queue/topic names, and engineering guards.
  5. Recommend which skills should run and which should be skipped.

Decision Rules

  • blocker: protected path changed without approval, destructive DB/security surface changed without owner evidence, or diff base unclear.
  • warning: risky domain touched but specialist evidence missing.
  • info: low-risk classification and suggested reviewer focus.

Output Standard

Follow docs/standards/agent-skill-output-standard.md. Internal reasoning must use compact caveman mode: terse fragments, evidence-first notes, no long narrative, and no private chain-of-thought in final artifacts. Maintain a context budget: keep a short working summary and avoid accumulating raw diffs, repeated file dumps, or copied tool output.

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.