agentleFS
jazz1xjazz1x/galmuri/skills/self-audit/SKILL.md

self-audit

Skill3 starsChanged 7 months agoMITView on GitHub

Meta-gate that audits the current session's own actions before any commit — philosophy, scope, convention, and token-budget violations. Read-only on session state; emits a single inline table verdict. Use as the final step of any multi-edit / multi-cycle task. Triggers: "self-audit", "audit yourself", "self-check", "셀프 점검", "셀프 감사", "내 행동 점검", "before commit"

5 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. faizkhairi/claude-code-blueprint★ 71same name
    2. cropsgg/skills★ 15same name
    3. jamestexas/agents★ 2same name
    4. poa-box/poa-cli★ 2same name
    5. amansingh909/claude-bounty-skills★ 1same 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 repository9 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 5

    Distinctive

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

    Before any commit on a feature branch

    line 39
  2. Very specific:

    After any multi-cycle task (polish / ralphi / audit loop) completes

    line 40
  3. Distinctive:

    When the user says "audit yourself" / "self-check" / "셀프 점검"

    line 41
  4. Distinctive:

    If invoked bare on a quiet diff, ask: *"Anything in this session you want me to scrutinise specifically?

    line 44
  5. Distinctive:

    Do not read full file contents — only the diff and stat.

    line 57
  6. Very specific:

    No raw px / hex values outside design-token files

    line 80
  7. Distinctive:

    No deep imports bypassing a public API surface

    line 81

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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

galmuri:self-audit — session action gate

"검증 없이 완료 선언하지 않는다." A pre-commit meta-gate. Audits Claude's own actions in the current session, not external code.

When to run

  • Before any commit on a feature branch
  • After any multi-cycle task (polish / ralphi / audit loop) completes
  • When the user says "audit yourself" / "self-check" / "셀프 점검"
  • Automatically as the final step of any multi-edit task

If invoked bare on a quiet diff, ask: "Anything in this session you want me to scrutinise specifically? e.g. a scope decision you weren't sure about, a refactor you want double-checked."

Step 1: Survey

Collect the audit surface for this session:

git status --short
git diff --stat
git branch --show-current
git log -1 --pretty=%H            # baseline SHA for comparisons

Do not read full file contents — only the diff and stat. The point is to check what changed in this session, not to review the whole codebase.

Step 2: Check (4 axes)

2-A. Philosophy violations (highest severity)

CheckPattern (rg over git diff)
ROP — no withTimeout or defensive {timeout: N} introducedrg -nP 'withTimeout|timeout:\s*\d+'
ROP — no silent try/catch wrappers addedrg -nP 'catch\s*\([^)]*\)\s*\{[^}]*$'
SSOT — no hardcoded version-specific field namesrg -nP 'v\d+\.\w+|schema_v\d'
"compress" preserved structure (no H2 / step removal)manual diff inspection
Locale separation — en / ko / jp content in correct filerg -l '[가-힣]' diff filtered by .md$ (not .ko.md/.jp.md)

2-B. Scope violations

  • Did I act on an ambiguous affirmative ("예", "ok", "그래") while a pending follow-up question was open?
  • Did I invent tooling, helpers, or abstractions not asked for?
  • Did I delete or modify at scale (>5 files) without proposing the candidate set first?

2-C. Convention violations

  • testid constants are UPPER_SNAKE_CASE — rg 'data-testid="[a-z]' over diff
  • No raw px / hex values outside design-token files
  • No deep imports bypassing a public API surface

2-D. Token-efficiency violations

  • Did I output > 30 lines of report content directly to chat (should be a file under docs/reports/ or tmp/)?
  • Did I quote entire functions or files in verifier output?
  • Did I batch multiple cycles into a single commit?
  • Did I retry a failing command in a sleep loop instead of diagnosing the root cause?

Step 3: Verdict (inline table)

Output exactly this table — one row per check, ✓ or ✗ only. Evidence is a path / line / rg pattern, never a quoted block.

| Check                                              | Status | Evidence                       | Fix                            |
|----------------------------------------------------|--------|--------------------------------|--------------------------------|
| ROP — no withTimeout / defensive timeout           | ✓/✗    | file:line                      | revert + use Result type       |
| ROP — no silent try/catch                          | ✓/✗    | file:line                      | rethrow or convert to Result   |
| SSOT — no hardcoded version field names            | ✓/✗    | file:line                      | parse-don't-validate           |
| Compress preserved structure                       | ✓/✗    | section diff stat              | restore deleted section        |
| Locale separation respected                        | ✓/✗    | file:line                      | move content to correct file   |
| Scope confirmed before ambiguous affirmative       | ✓/✗    | conversation turn              | revert action, re-confirm      |
| No invented tooling                                | ✓/✗    | file path                      | remove invented helper         |
| Bulk modify proposed before applying              | ✓/✗    | files changed count            | revert + propose list          |
| testid UPPER_SNAKE_CASE                            | ✓/✗    | file:line                      | rename constant                |
| No raw px / hex outside tokens                     | ✓/✗    | file:line                      | use design token               |
| No deep imports bypassing public API               | ✓/✗    | file:line                      | use public re-export           |
| Chat output ≤ 30 lines                             | ✓/✗    | last report length             | move to docs/reports/          |
| No entire-file quoting in verifier output          | ✓/✗    | output line range              | summarize + link               |
| One cycle = one commit                             | ✓/✗    | `git log` last N commits       | split commit                   |
| No sleep-loop retry of failing command             | ✓/✗    | shell history                  | diagnose root cause            |

Step 4: Halt-or-Pass

  • 0 violations → emit one line: self-audit clean, proceed to commit.
  • 1+ violations → halt. List violations + propose fixes. Wait for explicit "go" / "proceed" / "이대로 가" before any further action.

Token budget

  • Inline table ≤ 1500 tokens. If the diff is too large for an inline pass, write the report to tmp/self-audit-<ts>.md and emit only a one-line summary + path to chat.

What this skill does NOT do

  • ✗ Modify any session file
  • ✗ Audit other repos / other sessions
  • ✗ SSL-decompose a SKILL.md (that is galmuri:skill-audit)
  • ✗ Replace galmuri:polish (which gates UI/code-completion claims) or galmuri:ralphi (which budgets quality loops)

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.