agentleFS
sschemelsschemel/second-brain-starter/.agents/skills/toggle-danger/SKILL.md

toggle-danger

Skill0 starsChanged 15 days agoMITView on GitHub

Toggles "danger mode" (auto-approve all agent actions) on or off for Claude Code, the Cursor CLI, or Antigravity (agy) by running 99 - System/scripts/toggle-danger.sh. Use only when the user types /toggle-danger or explicitly asks to flip auto-approve or permission mode.

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 bash "99 - System/scripts/toggle-danger.sh" <harness> <action> from the vault root.

    line 13
  2. Very specific:

    If danger mode was enabled some other way, or the config can't be read, off refuses and explains.

    line 16
  3. Very specific:

    Use status to report the state without changing anything: enabled (all wildcard rules present), partial (some), disabled, or unknown.

    line 22
  4. Distinctive:

    Never run this on your own initiative, even to get past a permission prompt.

    line 24

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

Toggle Danger

Arguments: $ARGUMENTS. The first is the harness; if it's missing, use the one you are running in (claude in Claude Code, cursor in Cursor, antigravity in agy). The second is the action: on, off, toggle (the default), or status. status on its own reports every harness.

  1. Run bash "99 - System/scripts/toggle-danger.sh" <harness> <action> from the vault root. It needs jq.
    • on checks the config first, then saves a timestamped backup (*.bak-YYYYMMDD-HHMMSS, never overwritten) and a restore record in ~/.local/state/second-brain/toggle-danger/<harness>.json (user-only permissions, shared across vaults), and only then edits the config. The file's permissions are preserved.
    • off undoes only those changes, so rules or modes you had before stay intact.
    • If danger mode was enabled some other way, or the config can't be read, off refuses and explains.
  2. Relay the script's output verbatim. Don't claim a state the script didn't print.
  3. Explain the scope in one line:
    • Claude Code: it changes the default mode for new sessions (~/.claude/settings.json). The current session keeps its mode; Shift+Tab cycles it right now.
    • Cursor: it changes Cursor CLI rules only. The IDE's auto-run toggle is in Settings > Agents.
    • Antigravity: it edits the allow-list in ~/.gemini/antigravity-cli/settings.json. For a one-off session, use agy --dangerously-skip-permissions instead.
  4. Use status to report the state without changing anything: enabled (all wildcard rules present), partial (some), disabled, or unknown. It exits 2 if a config is unreadable or has unexpected types, or if jq is missing.

Never run this on your own initiative, even to get past a permission prompt.

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.