agentleFS
christophecapelchristophecapel/claude-mechanisms-tools/skills/press1-check/SKILL.md

press1-check

Skill1 starsChanged 7 months agoMITView on GitHub

Audit which Bash commands required manual approval ("press 1") in Claude Code sessions. Use when the user says "press1-check", "press 1 check", "permission audit", or wants to review which commands need allow-listing.

The file

We split this skill into the rules it gives an agent

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

  • 3

    Very specific

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

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

    Run: python3 audit-permissions.py with any arguments the user provided.

    line 28
  2. Very specific:

    If LOW-risk suggestions appear, add them to ~/.claude/settings.json (read-only commands are safe).

    line 30
  3. Distinctive:

    Do NOT auto-add MEDIUM or HIGH risk commands without explicit approval.

    line 31
  4. Very specific:

    After editing ~/.claude/settings.json, re-run the audit and report before/after counts so the user can see the coverage delta.

    line 32

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

/press1-check -- Permission Audit

Audit which Bash commands triggered manual approval prompts in Claude Code sessions.

How it runs

Two paths:

  • Manual: type /press1-check to force a re-audit. Default mode is since the last run (state-tracked at ~/.claude/state/press1-check.json), so the typical run only surfaces new ground.
  • Auto (optional): the script supports --auto-stop-hook mode designed to be wired as a Claude Code Stop hook. State at ~/.claude/state/press1-check.json. 6-hour cooldown bounds compute. When LOW-risk additions are found, a one-shot summary at ~/.claude/hooks-state/press1-check-pending.json surfaces in the next session-start priority snapshot. See README for setup.

Usage

  • /press1-check -- since the last run (default, state-tracked)
  • /press1-check --days N -- last N days across all project dirs
  • /press1-check --latest-session -- only the single most recent session
  • /press1-check --all-recent -- all sessions from the last 24h
  • /press1-check --since YYYY-MM-DD -- all sessions since a date
  • /press1-check <session-id> -- specific session

Steps

  1. Run: python3 audit-permissions.py with any arguments the user provided. Default audits since ~/.claude/state/press1-check.json#last_run_ts (bootstraps to last 3 days when state is missing, e.g. on a new machine).
  2. Display the output to the user exactly as printed (it includes color-coded risk levels).
  3. If LOW-risk suggestions appear, add them to ~/.claude/settings.json (read-only commands are safe). Skip env-var-prefix suggestions like Bash(WT=*) -- they don't generalize because the actual command follows the assignment.
  4. Do NOT auto-add MEDIUM or HIGH risk commands without explicit approval.
  5. After editing ~/.claude/settings.json, re-run the audit and report before/after counts so the user can see the coverage delta.
  6. Each successful interactive run updates the state file -- the next run is automatically scoped to "since now."

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.