agentleFS
fritzprixfritzprix/ak5/.agents/skills/audit-local/SKILL.md

audit-local

Skill2 starsChanged 44 days agoApache-2.0View on GitHub

Audit uncommitted local working-tree changes for bugs, security issues, regressions, and missing tests. Use when the user asks to audit/review local changes, dirty tree, uncommitted diff, ``/audit-local``, or wants a hands-on review instead of only launching Bugbot.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. keep-starknet-strange/starknet-skills★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 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.

  • 3

    Very specific

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

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

    Default scope: uncommitted changes (staged + unstaged + untracked that belong to the change).

    line 15
  2. Distinctive:

    Do not fix findings or commit unless the user explicitly asks next.

    line 19
  3. Very specific:

    If there is no staged/unstaged/untracked change: say so in one sentence and stop.

    line 48
  4. Distinctive:

    Run a focused pytest subset only when it clearly validates the audit claim and is cheap.

    line 72
  5. Distinctive:

    Start with 1–2 sentences: overall risk / theme of the change.

    line 77
  6. Very specific:

    If no issues: one line, e.g.

    line 94

≈ “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 Local Changes

You review the local diff. Do not only spawn a subagent and wait — read the diff, open the touched code, and report findings yourself.

Default scope: uncommitted changes (staged + unstaged + untracked that belong to the change). If the user asks for branch / committed work vs dev/*.x or master, widen the scope accordingly.

Do not fix findings or commit unless the user explicitly asks next.


Workflow

Audit-Local Progress:
- [ ] 1. Collect diff
- [ ] 2. Read critical new/changed code
- [ ] 3. Check tests & call sites
- [ ] 4. Report findings table

1. Collect diff (parallel)

From the repo root:

git status
git diff          # unstaged
git diff --cached # staged
git diff --stat HEAD

Also list untracked files from git status and read new source/test files that are part of the change (do not skip them because they are absent from git diff).

If there is no staged/unstaged/untracked change: say so in one sentence and stop.

Empty or tiny formatting-only diffs: say so briefly; still flag risk if relevant.

2. Read critical code

Prioritize (in order):

  1. New modules / public APIs / auth / DB / crypto / filesystem / shell exec
  2. Control-flow changes (error handling, gates, migrations, defaults)
  3. Routers/CLI entrypoints and clients that must stay in sync with API auth
  4. Tests that claim to lock the new behavior

Open full files when the hunk is insufficient (imports, helpers, callers).

3. Check tests & call sites

For each behavior change ask:

  • Is there a regression test that would fail if this were reverted?
  • Did callers (CLI, MCP, frontend, Docker/env) get updated with the new contract?
  • Can import-time / startup side effects break recovery paths (e.g. migrate)?
  • Are defaults safe (auto-restore, destructive flags, open auth)?

Run a focused pytest subset only when it clearly validates the audit claim and is cheap; do not block the report on a full suite.

4. Report

Start with 1–2 sentences: overall risk / theme of the change.

Then a markdown table, severity highest first:

SeverityLocation (file:line)Finding
High/Medium/Lowpath:lineImperative, concrete, actionable

Severity guide:

  • High — data loss, auth bypass, RCE, broken recovery path, silent wrong DB
  • Medium — incorrect behavior under realistic use, security hygiene, multi-worker footgun
  • Low — dead code, docs/test gaps, minor robustness

Also include a short Coverage gaps bullet list when tests clearly miss a new gate or failure mode.

If no issues: one line, e.g. Audit: no blocking issues in local diff (N files).

Optional: if the user also wants Bugbot, run it after (or in parallel with) your own audit and merge unique findings into the same table — never replace your own review with Bugbot alone.


Anti-patterns

  • Launching Bugbot / another agent and producing no direct analysis
  • Reviewing only git diff hunks while ignoring new untracked files
  • Vague findings (“looks fine”, “consider improving”) without location + reason
  • Auto-fixing or committing as part of the audit

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.