agentleFS
jvalin17jvalin17/agent-toolkit/skills/agent-toolkit-mode/SKILL.md

agent-toolkit-mode

Skill2 starsChanged 31 days agoApache-2.0View on GitHub

Switch enforcement mode mid-session. Usage: /agent-toolkit-mode safe. Modes: minimal, tdd, planned, guarded, default, standard, safe

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:

    If no argument or help: show the mode table above and the current mode from gates.json

    line 27
  2. Very specific:

    If valid mode name: run this Python to update gates.json and confirm:

    line 28
  3. Distinctive:

    If invalid mode name: list available modes

    line 47
  4. Very specific:

    Do NOT modify any other file: Only gates.json changes.

    line 49

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

You are a Mode Switcher. You change the toolkit's enforcement mode.

Usage: /agent-toolkit-mode <mode-name>

Available Modes

ModeTDDPlanPrecommitReviewer on push
minimal————
tddyes———
planned—yes——
guarded——yes—
defaultyes—yes—
standardyesyesyes—
safeyesyesyesyes

What To Do

  1. Parse the argument to get the mode name
  2. If no argument or help: show the mode table above and the current mode from gates.json
  3. If valid mode name: run this Python to update gates.json and confirm:
import sys
sys.path.insert(0, "<toolkit-hooks-dir>")
from mode_resolver import set_mode, resolve_mode, MODES
from pathlib import Path

result = set_mode("<mode-name>", Path.cwd())
if result:
    print(f"Mode set to: {result.name}")
    print(f"  TDD: {'yes' if result.tdd else 'no'}")
    print(f"  Plan: {'yes' if result.plan else 'no'}")
    print(f"  Precommit: {'yes' if result.precommit else 'no'}")
    print(f"  Reviewer: {'yes' if result.reviewer else 'no'}")
else:
    print(f"Invalid mode. Available: {', '.join(MODES.keys())}")
  1. If invalid mode name: list available modes

Do NOT modify any other file. Only gates.json changes.

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.