agentleFS
Tamircohen28Tamircohen28/tamirs-superpowers/CLAUDE.md

tamirs-superpowers

CLAUDE.md2 starsChanged 4 months agoMITView on GitHub

Claude Code and Claude Desktop specifics for contributors. Everything that is not Claude-specific lives elsewhere — start with AGENTS.md, which is the shared entrypoint into core/ and rules/. This file adds only what is true of the Claude platform's two surfaces. When this file and a canonical rule disagree, the canonical rule wins. A multi-platform agent plugin (skills, agents, hooks, MCP stubs) shipped to six supported surfaces across five platforms: Claude (Claude Code, Claude Desktop), Codex (Codex CLI), Cursor (Cursor…

  • Deletes or force-pushes
  • Commits and pushes

The file

We split this CLAUDE.md into the rules it gives an agent

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

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When this file and a canonical rule disagree, the canonical rule wins.

    line 5
  2. Very specific:

    Do not assume these exist on other providers — check core/capabilities/platforms.json before relying on any of them, and degrade explicitly …

    line 19

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md

CLAUDE.md — tamirs-superpowers

Claude Code and Claude Desktop specifics for contributors. Everything that is not Claude-specific lives elsewhere — start with AGENTS.md, which is the shared entrypoint into core/ and rules/. This file adds only what is true of the Claude platform's two surfaces.

When this file and a canonical rule disagree, the canonical rule wins.

What this repo is

A multi-platform agent plugin (skills, agents, hooks, MCP stubs) shipped to six supported surfaces across five platforms: Claude (Claude Code, Claude Desktop), Codex (Codex CLI), Cursor (Cursor IDE), Gemini (Gemini CLI), and OpenCode (OpenCode CLI). No build step, no package.json, no compiled output — Markdown, JSON, and Bash.

Claude Code and Claude Desktop are one distribution, not two formats: the same .claude-plugin/plugin.json, the same skills/, the same agents/. They are two surfaces of one platform: what differs is the runtime (installation path, no CLI flags, and the capability rows Desktop has never had measured), documented in docs/user/install/claude-desktop.md.

Commands

See AGENTS.md for the full list. make validate before every push.

Claude-only capabilities

Do not assume these exist on other providers — check core/capabilities/platforms.json before relying on any of them, and degrade explicitly per core/policies/safety.md.

  • Subagents (Agent tool) — parallel worker execution, measured on Claude Code; not exercised on Desktop. Other providers run tasks sequentially or through their own mechanism. Since Claude Code 2.1.243, /tasks and the agent detail dialogs also show which model and effort level each subagent ran on — useful for spot-checking orchestrate-dev/worker-dev fan-outs without instrumenting anything here. The same release fixed background subagents not waking when their last background Bash task finished; if a fanned-out worker previously seemed to hang after its shell command completed, that was a host bug, not this repo's orchestration. Since Claude Code 2.1.246, a subagent that stops because it hit its own maxTurns limit now returns its output marked partial with a hint to continue it via SendMessage — this repo's own handoff vocabulary (completed/partial/failed/blocked, see worker-dev) already treats partial as "decide, never quietly integrate around it," so a maxTurns-truncated worker now surfaces the same way a worker that self-reports partial does — no orchestrator change needed, but worth knowing the label can now come from the host, not just from the worker's own handoff file. Since Claude Code 2.1.247, a subagent whose first model call 404s no longer dies outright — it now falls back through the session's own fallback model chain with a detailed error, the same reliability class of fix as the two above; a fanned-out worker-dev task that previously looked like a hard failure on a transient model-routing error may now simply continue on a fallback model instead. Since Claude Code 2.1.251, CLAUDE_CODE_SUBAGENT_MODEL sets only the default subagent model instead of overriding every spawn: an agent definition's own model: field (every agents/*.md here pins one explicitly, e.g. model: sonnet) and an explicit per-spawn model now take precedence over it. Before this fix, a user or CI environment exporting CLAUDE_CODE_SUBAGENT_MODEL could silently run every specialist agent on the wrong model regardless of its frontmatter pin; that can no longer happen. Since Claude Code 2.1.257, CLAUDE_CODE_SUBAGENT_MODEL_FORCE is the deliberate opposite: set it and every subagent runs on CLAUDE_CODE_SUBAGENT_MODEL (or the main model) regardless of an agents/*.md frontmatter model: pin or an explicit per-spawn model — the 2.1.251 guarantee above holds only when _FORCE is unset. Nothing in this repo sets it; it is documented here so a user or CI environment that does set it understands why a specialist agent is suddenly running on an unexpected model. Since Claude Code 2.1.259, two related bugs are fixed: auto mode no longer runs an unsupported model when an agent's frontmatter model: field names one, and interactive sessions no longer silently ignore that same field — both are exactly the agents/*.md model: pin this repo relies on (see the 2.1.251/2.1.257 notes above), so this closes latent unreliability in a mechanism already documented here rather than requiring any change to it. Since Claude Code 2.1.265, resuming a foreground-spawned subagent no longer rewrites its tool list or system prompt and no longer breaks prompt-cache reuse — a worker-dev task that gets resumed mid-fan-out previously risked a silent tool-surface drift or a full re-cache cost on resume; neither can happen now. The same release fixed agent teammates and resumed subagents moving SubagentStart hook context out of the prompt prefix — this repo does not currently wire a SubagentStart hook (hooks/hooks.json declares SessionStart, SessionEnd, PreToolUse, PostToolUse, Stop, StopFailure, SubagentStop, UserPromptSubmit, Notification, DirectoryAdded, WorktreeCreate and WorktreeRemove, not SubagentStart), so the fix changes nothing here today but is worth knowing before anyone adds one. Also since 2.1.265, a forked skill's kickoff prompt and text turns now stream as progress events instead of arriving silently — this repo ships exactly one forked skill, targeted-debug (context: fork, agent: Explore), so its fan-out is now visible turn-by-turn rather than looking idle until it returns. Since Claude Code 2.1.271, agent frontmatter (and --agents JSON) gained omitClaudeMd, letting a custom or plugin subagent run without the user/project/local CLAUDE.md files loading (managed policy files still load). Reviewed against all ten agents/*.md here and deliberately left unset: every one of them already loads its own canonical contract explicitly via a relative link to core/roles/*.md and core/policies/*.md rather than depending on CLAUDE.md for that, but each still relies on the target project's own CLAUDE.md for the domain conventions a role judges against — implementer matching house style, security-reviewer knowing a project's declared security posture, and so on. Setting omitClaudeMd: true would cut every one of them off from exactly the context they need, so this is recorded as reviewed-and-declined, not silently skipped. Since Claude Code 2.1.274, a sub-agent's progress summary is no longer replaced by a runaway multi-paragraph reply — directly relevant to this plugin's own handoff vocabulary (completed/partial/failed/blocked, see worker-dev) and any orchestrate-dev fan-out that reads a worker's summary back to decide what happened, since a runaway reply previously risked obscuring exactly the status line that vocabulary depends on. The same release fixed claude agents (the standalone CLI subcommand, distinct from the in-session Agent tool) losing --model/--effort/--permission-mode/--allow-dangerously-skip-permissions/--agent after an auto-update — no script here shells out to claude agents directly, so this is not exercised by anything in the repo, but it is relevant to a contributor invoking one of the ten agents/*.md from that CLI subcommand by hand with an explicit flag. Also reviewed and not applicable: a fix for a subagent with model: "opus" leaving the wrong session model behind on Bedrock/Vertex/Foundry — every agents/*.md here pins model: sonnet, and this repo targets direct Claude Code/Desktop sessions, not a Bedrock/Vertex/Foundry gateway. Since Claude Code 2.1.277, the deprecated TaskOutput tool is removed — grepped every agents/*.md tools: line and every skill/hook/doc in this repo for TaskOutput; zero references, so nothing here relied on it. Since Claude Code 2.1.278, Auto mode for API/Enterprise/Bedrock/Vertex/Foundry/gateway users defaults to a server-side classifier instead of billing the classifier as normal usage (opt-out via CLAUDE_CODE_AUTO_MODE_SERVER=0 on Bedrock/Vertex/Foundry/gateways) — reviewed and not applicable, same as every other Bedrock/Vertex/Foundry/gateway item above. Since Claude Code 2.1.280, Claude Opus 5.5 is the default Opus model — reviewed and not applicable, since every one of the ten agents/*.md here pins model: sonnet explicitly (see the 2.1.251/2.1.257/2.1.259 notes above), so a change to what opus resolves to changes nothing this plugin spawns.
  • Project instructions (CLAUDE.md / AGENTS.md) — Claude Code loads a project's CLAUDE.md for house rules and conventions; Claude Desktop, Cursor, Codex and OpenCode read AGENTS.md instead (this repo's own CLAUDE.md line 1 is @AGENTS.md, importing the portable file rather than duplicating it — see Skill frontmatter on Claude and AGENTS.md). Since Claude Code 2.1.277, a project with no CLAUDE.md at all now has Claude Code read its AGENTS.md instead, configurable under "Project instructions" in /config. This repo's own root always ships both files, and repo-scaffold/multi-agent-repo always scaffold both together for any new target repo they generate (see the Root file checklist in repo-scaffold), so no project this toolkit touches or creates is ever missing a CLAUDE.md for the fallback to actually engage on — reviewed and recorded as not applicable, not silently skipped. It is still worth knowing before recommending this toolkit's specialist agents/*.md (each of which reads the target project's own CLAUDE.md for domain conventions, see the omitClaudeMd note above) against a third-party repo that ships only an AGENTS.md: since 2.1.277, that repo's instructions now load automatically where they previously would not have.
  • Hooks — hooks/hooks.json is loaded by Claude Code and the Codex CLI only; Cursor loads a separate Cursor-format bundle, platforms/cursor/hooks.json (see below); Gemini CLI and OpenCode CLI have their own or none. Why Cursor does not, verified 2026-09-23: Cursor can import Claude Code hooks, and the setting that enables it (Settings -> Agents -> Third-Party Imports, "Include Third-Party Plugins, Skills, and Other Configs") is on by default - but it reads them from exactly three paths, .claude/settings.local.json, .claude/settings.json and ~/.claude/settings.json, and never from a plugin's own hooks.json. So Cursor gets none of this plugin's hooks through the Claude-format file. Since plugin 4.7.0 (#221) it gets them through a Cursor-format bundle instead: .cursor-plugin/plugin.json declares "hooks": "./platforms/cursor/hooks.json", wiring enforce-worktree-edits.sh and guard-sensitive-files.sh to preToolUse/beforeShellExecution and cursor-agent-tools-guard.sh to preToolUse/postToolUse. The bundle sits at a non-default path deliberately: Cursor's discovery otherwise falls back to hooks/hooks.json, the Claude-format file it cannot read, and an undeclared component binds to that wrong default rather than disabling itself. (.cursor/hooks.json in this repo is a third, separate thing — a project-root file with one advisory beforeShellExecution hook for contributors working on this repo in Cursor; Cursor reads it because it is the open project, not because the plugin was installed.) Cursor's published mapping also covers 8 Claude events, of which this repo wires 6 (PreToolUse, PostToolUse, UserPromptSubmit, Stop, SessionStart, SessionEnd); the other 4 this repo wires - Notification, DirectoryAdded, WorktreeCreate, WorktreeRemove - have no Cursor equivalent at all. #179's E1 tracked the Cursor-native bundle and shipped in 4.7.0. The blocker recorded here — that Cursor's edit-tool names and tool_input shape were undocumented, so a guard wired against Claude's Edit/Write names might match nothing and silently allow every write while appearing installed — was resolved by measuring rather than by documentation: Cursor's preToolUse uses tool_name Read/Write/Shell with tool_input.file_path, the same field Claude uses, and write-targets.py already treated Shell like Bash. The guards run unmodified. Verified end to end on cursor-agent 2026.07.17-3e2a980: a write to .github/workflows/ci.yml was blocked with the guard's own reason reaching the agent and the file unchanged, while an ordinary write succeeded — so the guard is selective, not blanket. Extending coverage to Cursor-only events beyond those three is #179's E8. Since Claude Code 2.1.247, hook and background-task error output that previously could overflow the conversation with a "Prompt is too long" error, or leak memory unboundedly on repeated output-file write failures, is fixed host-side — relevant here given the volume of hooks this plugin wires (26 scripts across PreToolUse/PostToolUse/SessionStart/SessionEnd/UserPromptSubmit/StopFailure/worktree events), though no hook here needed a change: none of them write to an unbounded log file themselves. Since Claude Code 2.1.251, SessionStart payloads for a resumed or forked session can also carry seconds_since_last_response/context_tokens (staleness) and prompt_cache_likely_expired/estimated_cache_write_usd (estimated re-cache cost); hooks/session-init.sh now adds a one-line additionalContext note when the resumed cache has likely expired, so that shows up before the first request re-caches rather than being inferred afterward from an unexplained cost/latency spike. The same release added PreModelSwitch/PostModelSwitch hook events (block, confirm, or annotate a model switch) — not wired here, since nothing in this repo's orchestration currently needs to gate or observe a model switch; noted for Tamir's judgment rather than wired speculatively. Since Claude Code 2.1.259, a blocking Stop hook no longer discards the turn's reasoning or forces a prompt-cache miss on the next turn — relevant given hooks/check-done.sh runs on Stop and hooks/handoff-reminder.sh, hooks/release-agent-claims.sh and hooks/session-end.sh on SessionEnd, though none of them block by design (they inform; they never gate), so this removes a host-side cost/latency tax this repo was already avoiding rather than one it was paying. The same release also fixes worktree isolation refusing hook-created worktrees on some machines, and worktree-isolated sessions wrongly refusing Bash loops, xargs pipelines, and launcher-wrapped commands — hooks/worktree-create.sh creates every worktree here and hooks/enforce-worktree-edits.sh gates every Edit/Write/MultiEdit/NotebookEdit inside one, so both fixes land squarely on this repo's core-safety-invariant hooks; there was no repo-side workaround for either to remove, just fewer false-positive refusals going forward. Since Claude Code 2.1.281, claude plugin validate warns when a shell-form hook leaves ${CLAUDE_PLUGIN_ROOT} unquoted, because the command splits on a plugin path containing a space; it fired on all 27 hooks/hooks.json commands here, so every one is now written bash "${CLAUDE_PLUGIN_ROOT}"/hooks/x.sh (docker-guard.py was already quoted) and the same release's mcp_tool-hook wait-for-connect fix and /batch-under-a-WorktreeCreate-hook support are noted but need no change (no mcp_tool hooks are wired, and hooks/worktree-create.sh is such a hook, so /batch now also runs where that hook provides the agent worktrees). StopFailure is wired as of plugin 4.5.0 with "matcher": "rate_limit" -> hooks/rate-limit-handoff.sh. The matcher is a documented error-type value (alongside overloaded, authentication_failed, billing_error, server_error and others), so the hook fires on rate-limit exhaustion specifically and stays silent for every other API failure. It emits systemMessage, not hookSpecificOutput.additionalContext, for the same reason handoff-reminder.sh does: the turn has already failed, so there is no model turn left to read injected context, and the person who needs the message is the user. It exists because switch-dev was invoked zero times across 953 sessions - the moment you need a handoff is the moment you cannot ask for one. Since Claude Code 2.1.260, permissions.blockReadsOutsideWorkingDirectories on macOS no longer hides the user's git config from sandboxed git, nor a worktree-isolated sub-agent's own checkout — this repo does not set that permission itself (it was reviewed and left out of platforms/claude/settings.d/ in an earlier cycle as a personal auto-mode preference, not a plugin default), but the fix directly benefits worktree isolation for anyone who enables it alongside hooks/worktree-create.sh/hooks/enforce-worktree-edits.sh. Since Claude Code 2.1.268, PermissionRequest hooks now fire in --print (headless) mode — not exercised here, since hooks/hooks.json wires no PermissionRequest event — and CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS now actually extends a SessionEnd hook that declares no per-hook timeout of its own (previously still cancelled at 1.5 seconds regardless of the env var); every SessionEnd hook this repo ships (session-end.sh, handoff-reminder.sh, release-agent-claims.sh) already sets an explicit per-hook timeout in hooks/hooks.json, so this fix changes nothing here today, but matters before anyone adds a SessionEnd hook without one. The same release also fixed /mcp//plugin server details, claude mcp list/get, and MCP login errors showing a secret resolved from a ${VAR} placeholder in an MCP config — this repo's .mcp.json passes the github server its token through ${user_config.github_token} in the server's env (since 4.11.0; scripts/github-mcp.sh itself reads nothing off the machine, because the plugin directory's policy forbids a plugin forwarding a credential it found there), which is exactly the kind of resolved secret the fix keeps those surfaces from printing. And a respawned in-process teammate no longer picks up tools or a system prompt from a same-named agent file in an untrusted folder — this repo's agents/*.md live inside the trusted, versioned plugin checkout, so not a scenario this repo's own orchestration creates, but relevant to anyone fanning out orchestrate-dev/worker-dev from a workspace that also contains untrusted agent definitions. Since Claude Code 2.1.261, resuming a session no longer loses hook output that was produced around parallel tool calls — relevant given the volume of hooks this plugin wires, though nothing here needed a workaround: no hook depended on output surviving a resume mid-parallel-call. The same release improved the host's dangerous-rm confirmation prompt to also catch rm -rf invoked on a positional parameter (e.g. f="$1"; rm -rf "$f") rather than only a literal path — this is a built-in confirmation shown to the user before the tool call runs, independent of PreToolUse hooks, so it does not change what hooks/enforce-worktree-edits.sh or hooks/guard-sensitive-files.sh see; it is a second, host-side layer that now covers a shell pattern those hooks' PreToolUse matching does not specifically target. Since Claude Code 2.1.269, a PreToolUse deny rule and the write-path check behind Edit() now also apply to a file a Bash tee command writes — previously a tee-based write could slip past a deny rule matched only against the editing tools — and a Bash(tee:*) allow rule is now scoped the way its glob implies instead of over-matching. This closes, at the host-permission layer, precisely the gap hooks/guard-sensitive-files.sh's own header comment names and was built to cover independently: that hook keys on write targets, not the tool doing the writing, via hooks/lib/write-targets.py's dedicated tee argument parsing, so it never depended on this host-level check being correct. platforms/claude/settings.d/permissions-allow.json and permissions-ask.json declare no Bash(tee:*) rule of either kind, so neither bug was ever exposed here — the host now simply agrees with what this repo's own hook already enforced. The same release fixed a deny/ask permission rule beginning with a bare ! leaking beyond the settings source that declared it (a lone ! is now ignored); reviewed against every rule in both permission files — none starts with !. And the attribution-reminder text that appends a Co-Authored-By trailer no longer overrides a project's CLAUDE.md/memory instruction against adding one — this repo's own instruction (see Commit trailer, below) asks for the trailer, so the two policies were never in conflict, but a downstream fork that opts out via its own CLAUDE.md will now actually have that honored. Since Claude Code 2.1.270 (a regression in 2.1.269, fixed the next day): read-only git commands in Bash no longer unexpectedly ask for permission after a session has been running for a while — relevant because permissions-allow.json deliberately pre-allows several git commands (git add, git commit, git push, git tag, git remote add, git init) specifically to avoid this class of friction; nothing here needed a workaround, but a session that hit the regression mid-cycle would have seen exactly the prompt this pre-allow list exists to prevent. Since Claude Code 2.1.271, a stale .git/config.lock left behind after a sandboxed Bash command failed to start no longer breaks git checkout -b, git push -u or git config for the rest of the session (Linux) — directly relevant, since permissions-allow.json's pre-allowed git push */git remote add */git init and hooks/worktree-create.sh's git worktree add -B both run through the same sandboxed Bash surface this bug affected; no repo-side workaround existed, so a session that hit it on Linux previously had to restart to regain reliable git access, and now doesn't. The same release fixed Claude starting a second copy of a background command (such as a watch loop) that was still running after the conversation was compacted — relevant to a long orchestrate-dev/worker-dev fan-out that compacts mid-run with a background task in flight; host-side fix, nothing here to change. And cross-session messages held by the receiving session's permission-mode policy no longer vanish without a trace: a headless sender now gets a delivery notice, and a SendMessage result no longer implies the message was read — this extends the cross-session SendMessage reliability work already tracked in docs/user/cross-platform-workflow.md, see that file for the dated note. Claude Code 2.1.272 was bug-fixes-and-reliability-only, per the official changelog — nothing to record. Claude Code 2.1.273 reverts a 2.1.268 change that had started checking Read/Edit deny rules on Bash lines the permission checker cannot fully analyze (eval, env -C, and similar): such a line now prompts for approval again instead of being silently denied. Neither permissions-allow.json nor permissions-ask.json here name an eval/env -C rule pattern, so this changes generic host behavior, not anything this repo declares — reviewed and found not applicable.
  • Mods (Claude Code 2.1.287+) — mod/register.tsx is a module of function hooks the engine runs in-process, named by the modules key of the same hooks/hooks.json the settings hooks live in, with its $.state contract at mod/types/index.d.ts (manifest types). It is additive: every bash hook stays canonical because a mod runs on Claude Code and the Claude Desktop Code tab only (its hooks also run under claude -p/VS Code/cloud, nothing it draws does; allowManagedModsOnly and --safe-mode drop it while settings hooks keep running). It does what bash hooks cannot: draws the live orchestration state (/objective, an objective pane, worker count on the spinner, compact task rows), reacts to the rate-limit windows session.measure pushes after every turn with a handoff-reminder band at rate_limit_warn_percent (the moment switch-dev is needed and cannot be asked for — rate-limit-handoff.sh only fires after the turn died), draws the statusline figures on Desktop where no status line exists, optionally classifies long prompts against the skill names (semantic_skill_suggest, off by default), adds a DoD line under answers that wrote files, folds a working-state snapshot into compaction, and enforces this file's commit trailer on the attribution text where a repo declares one. Validated by claude plugin validate .claude-plugin/plugin.json (the . form validates only the marketplace manifest and never reads the mod) and claude plugin test . (make test-mods, 21 tests, both in CI); make typecheck-mods type-checks against the build's claude-code.d.ts where one is present. The modules key is also read by the Codex CLI through .codex-plugin/plugin.json; whether Codex ignores it is unverified and recorded in core/capabilities/platforms.json. Full design, the per-feature fallback table and the validator's rules (helpers taking $ must be top-level functions; one unmatched registration per event): docs/engineering/architecture/mods.md. The same release added the opt-in built-in cc-plugin-you-should-know side-agent mod and made /diff and AGENTS.md loading built-in mods — reviewed, nothing here to change. Since 2.1.285, claude plugin configure <plugin> shows and sets a plugin's userConfig values from the shell — the way to set the two mod options outside /config.
  • MCP — .mcp.json declares one stdio server (github, via scripts/github-mcp.sh). Since Claude Code 2.1.265, an MCP server declared "type": "http" with only legacy HTTP+SSE support now auto-falls-back to that transport instead of never connecting — this repo's own server is stdio, so the fix changes nothing here, but it is worth knowing before adding or recommending an http-type server in a downstream .mcp.json. Since Claude Code 2.1.274, CLAUDE_CODE_MCP_STARTUP_WAIT_MS extends how long the host waits for a slow-starting MCP server before giving up on it — worth setting if scripts/github-mcp.sh's Docker fallback path (docker run ... ghcr.io/github/github-mcp-server stdio) is slow to start on your machine, e.g. after a cold image pull; this is not set as a repo default, since the right wait time is workstation-dependent, not something the plugin can know in advance. The same release switched Bedrock/Vertex/Foundry and telemetry-disabled sessions to MCP client v2 by default — not applicable here, since this repo targets direct Claude Code/Desktop sessions rather than a Bedrock/Vertex/Foundry gateway. Since Claude Code 2.1.280, CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH bounds how much of an MCP tool's description the host reads — reviewed against this repo's one MCP server (github) and, same as CLAUDE_CODE_MCP_STARTUP_WAIT_MS above, not set as a repo default since the right bound is workstation/model-dependent; documented here as an available knob.
  • Output styles — output-styles/evidence.md ships one style, Evidence, discovered from the default output-styles/ path (no manifest field needed). It sets keep-coding-instructions: true, because the default of false strips Claude Code's own software-engineering instructions, and deliberately omits force-for-plugin, which would override the user's own outputStyle whenever this plugin is enabled. Opt in with /output-style Evidence. Claude Code only — no other supported surface reads output styles.
  • Statusline — wired via .claude-plugin/plugin.json settings.statusLine → scripts/statusline.sh. Claude Code only — Desktop has no terminal chrome to render into. Test with piped JSON: echo '<session-json>' | bash scripts/statusline.sh — it blocks forever on unpiped stdin. Since Claude Code 2.1.251, the payload can also carry rate_limits.spend_limit (behind a Claude apps gateway with a spend limit configured); the statusline renders it as a fourth line using the exact same only-when-present pattern as the existing 7-day line, so nobody outside a gateway with a spend limit configured sees any change. A prompt_cache block (warm, hit_ratio, misses, recache_tokens_if_cold) renders as a fifth line under the same rule — a host that does not report it prints nothing rather than a misleading 0%, and the cold-rebuild token cost is shown only while the cache is actually cold. Schema and colour thresholds: docs/engineering/statusline.md.
  • Monitor — wraps a long-running Bash watch loop with per-line notifications. skills/dev-workflow/pr-dev/references/ci-monitor-loop.md's CI-rollup wrapper is the one place this repo calls it, with timeout_ms: 1800000 (30 minutes) and no persistent flag. Since Claude Code 2.1.271, every Monitor watch now always carries a deadline — at most 30 minutes (10 in single-prompt -p runs) — and Claude is notified to re-arm it, replacing the old no-timeout persistent option entirely; this repo's one documented Monitor call was already inside that ceiling and never set persistent, so nothing here needed to change. The same release added per-command allowed_domains to Bash, PowerShell and Monitor in auto mode with sandboxing (only the hosts a command needs are reviewed and opened for it) — reviewed against platforms/claude/settings.d/: no PowerShell rules ship here, no Bash rule is network-scoped beyond gh/git's own auth, and no doc here recommends running this plugin under auto mode with sandboxing, so there is no allowed_domains list to declare.
  • EnterWorktree — automates worktree creation under .claude/.worktrees/<name>. That is the legacy layout; it stays supported and is never orphaned, but new objectives use .agent-worktrees/<objective>/ per rules/dev/git-worktree-agent-workflow.md. resolve-worktree.sh understands both.
  • Plugin state — ${CLAUDE_PLUGIN_DATA} is a per-plugin directory the host exports to hook processes and MCP/LSP subprocesses; it survives plugin updates, unlike ~/.claude/cache/. hooks/lib/plugin-state.sh resolves it with a mandatory fallback, because hooks/hooks.json is loaded by the Codex CLI too and Codex exports no such variable — a hook that assumes it writes to the filesystem root. Session state and the shared pip/poetry cache deliberately stay where they are.
  • Project memory — .claude/memory/ (versioned backup, reviewable in PRs) mirrored into a per-project transcript directory (auto-loaded each session). Keep them in sync; commit new memory files to .claude/memory/. The transcript directory name is normally derived from the clone's absolute path (-Users-<you>-Projects-tamirs-superpowers), which shifts per machine/username and breaks if the clone moves. Since Claude Code 2.1.234, CLAUDE_CODE_PROJECT_DIR_NAME overrides that derivation — pin it (e.g. in ~/.zshrc/~/.bashrc, or per-session) for a stable, machine-independent name:

    export CLAUDE_CODE_PROJECT_DIR_NAME=tamirs-superpowers

    Restoring memory on a new machine prefers the pin when set, falling back to the derived path otherwise — the fallback assumes the standard ~/Projects/tamirs-superpowers clone location, so set the pin explicitly on any other layout (headless/Linux checkouts, a different parent directory, a different username than the one Claude derived from):

    MEMORY_DIR=~/.claude/projects/${CLAUDE_CODE_PROJECT_DIR_NAME:--Users-$(whoami)-Projects-tamirs-superpowers}/memory
    mkdir -p "$MEMORY_DIR" && cp .claude/memory/* "$MEMORY_DIR/"

Claude Code CLI baseline

Root .claude-code-version is a machine-readable pin for the Claude Code host CLI version this repo's narrative docs are written against — not to be confused with plugin-version.json, which is this plugin's own release version and has nothing to do with which claude build a contributor or CI runner has installed. It exists because the two prose sources that track host-version-gated behavior — this file's "Claude-only capabilities" section and core/capabilities/platforms.json's since/notes fields — never state a single current baseline in one machine-readable place; a script or a future review pass had to reverse-engineer "the highest version mentioned in prose" to find one.

The detailed, evidence-backed version of the same claim — validated_against (last live-CLI run) vs. reviewed_through/latest_known (changelog read, no live run required) as two distinct fields, plus the full per-release verification notes — lives in docs/engineering/build-and-release/platform-targets.json's targets.claude_code block; .claude-code-version is a thin, always-current mirror of that block's three version fields for a consumer that wants one file at a known root path rather than a JSON-path lookup. Treat platform-targets.json as authoritative on any disagreement and update .claude-code-version to match.

This deliberately does not repeat the .codex-version/.cursor-version pattern uncritically. Those two root files are documented as unread, hand-maintained drift risk (docs/engineering/refactor/file-inventory.md §2.3/§6.12: "read by no script at all," "orphan truth"). .claude-code-version is referenced here specifically so it is not silently orphaned the same way; no script parses it yet, which is the same gap those two have, and closing it — a small scripts/check-platform-version-pins.sh, or folding all three root pins into check-platform-targets.sh — is a reasonable follow-up rather than something this pass invents unasked.

Anthropic's plugin directory

The directory tracks the tag claude, not master. release.yml builds the Claude-only subset of this tree (scripts/build-claude-dist.sh: no tests, docs/engineering, evals, fixtures, platform mirrors or symlinks, around 420 files) from each release tag, commits it with the previous generated commit as parent, tags it v<version>-claude and moves claude onto it. Nobody develops on that tree; every change lands here and is rebuilt. make check-claude-dist (part of make validate, and CI's claude-dist job) holds the built tree to the directory's rules so a change that would block or hold the listing fails on the pull request. The source rules the directory imposed and that now hold everywhere: every credential is a sensitive userConfig option and nothing shipped reads one off the machine (github_token, pushover_token, pushover_user); no bare Bash or Skill in any allowed-tools; the mod writes every $ call at its call site, hands $ to no helper and runs no process; privacyPolicyUrl, documentationUrl and supportUrl in the manifest, with PRIVACY.md naming everything that leaves the machine. The mod makes no network call (its Pushover post went in 4.11.1; the Notification hook is the one Pushover path) and the distribution ships a listing icon in listing/ (a folder nothing else names: an image any script can reach is held as unread code), no CHANGELOG.md, no docs/engineering/ and no other platform's docs, because the scanner reads prose about what the plugin used to do as what it does; no shipped shell script uses eval, and no shipped file pairs a URL host with a credential-looking identifier ($PWD and TARGET_KEYS included) because the scanner holds the pair. tests/test-claude-dist.sh plants each of those shapes and asserts the check catches it. Design, tag ruleset, rollback and the resubmission steps: docs/engineering/build-and-release/directory-distribution.md.

Marketplace cache

The installed copy lives under ~/.claude/plugins/cache/tamirs-marketplace/tamirs-superpowers/<version>/. Claude uses the manifest version as the update cache key — pushing commits without a bump does not reach installed users. After a release:

/plugin marketplace update tamirs-marketplace
/plugin update tamirs-superpowers@tamirs-marketplace

/reload-plugins reloads the local cache only; it never fetches from GitHub. For local development, symlink the cache directory at your clone or run with --plugin-dir — never hand-edit files under the cache. Full mechanics, including the version-glob failure mode: rules/dev/plugin-version-bump.md. Since Claude Code 2.1.265, --plugin-dir also accepts a folder of plugins — each child folder with a manifest loads, and the set hot-reloads while running. This repo ships a single plugin, so the existing single-plugin --plugin-dir . form still applies unchanged; the folder form only matters to a contributor who develops this plugin alongside another local plugin in a shared parent directory, in which case pointing --plugin-dir at that parent picks up both. Since Claude Code 2.1.268, installing, enabling or disabling a plugin through the interactive /plugin menu takes effect as soon as the menu closes — /reload-plugins is no longer needed afterward. That is specifically about the menu flow, not about hand-editing plugin files during local development: hooks/plugin-reload-reminder.sh still reminds you to run /reload-plugins after editing plugin.json/hooks.json/marketplace.json under a --plugin-dir symlink, and that reminder is unaffected. The same release added --json to claude plugin install/uninstall/update/enable/disable (one machine-readable result line: command, outcome, plugin, scope, message, failureCode) and errorDetails/noteDetails to claude plugin list --json rows — scripts/update.sh and scripts/uninstall.sh now request --json from claude plugin update/uninstall and print the returned message/failureCode on failure, falling back to the previous generic instruction only if the CLI predates 2.1.268 or the output does not parse as JSON. It also fixed plugin/marketplace errors printing a token or password embedded in a git source URL, and hardened marketplace entry-path containment against a backslash bypass — both host-side, and this plugin's marketplace.json source is a plain https://github.com/... URL with no embedded credential, so neither was ever exposed here. Since Claude Code 2.1.269, plugin archives extracted for a session are no longer readable by other local users, no longer leave world-writable bits, and no longer leave stale files behind a re-extraction — host-side hardening of the extraction step itself, with nothing in this plugin's manifest or install path to change. Since Claude Code 2.1.271, claude plugin install/claude plugin update accept --accept-command <sha256> to confirm exactly the command a previous --json run displayed, instead of the blanket -y. Reviewed against scripts/update.sh's and scripts/uninstall.sh's existing claude plugin update/uninstall ... --json calls (added for the 2.1.268 --json diagnostics above): neither script passes -y or hits an interactive confirmation today, so there is no blanket-accept behavior here for --accept-command to tighten — not adopted this cycle, recorded rather than silently skipped. Since Claude Code 2.1.275, /plugin install <plugin> --marketplace <source> installs from a named marketplace in one step; reviewed against the two-step /plugin marketplace add + /plugin install sequence this file and docs/user/install/claude-code.md both document and left as a Future opportunity rather than rewritten this cycle, since the two-step form still works and every existing doc reference assumes it. The same release added syncing of skills and plugins enabled on a user's claude.ai account into their terminal sessions, opt-out per-kind via the syncClaudeAiSkills: false / syncClaudeAiPlugins: false settings — worth knowing if a name collision ever shows up between a synced claude.ai skill and one of this plugin's 29 SKILL.md names, since the opt-out is how you would resolve it. It also fixed plugin/marketplace messages leaking a secret embedded in a URL (host-side; this plugin's marketplace.json source is a plain credential-free https://github.com/... URL, so nothing here was ever exposed) and fixed claude plugin marketplace update deleting the local marketplace copy on a failed fetch — directly relevant to the /plugin marketplace update tamirs-marketplace step documented just above, since a flaky fetch previously risked wiping the installed cache instead of leaving it untouched; no repo-side workaround existed for that, and none is needed now. Since Claude Code 2.1.280, a skill whose name collides with another skill's on manifest.json is no longer wrongly trashed — the host previously moved ~/.claude/skills/<name> to .trash/ on that collision. This directly closes the data-loss shape of the 2.1.275 name-collision risk noted above: a claude.ai-synced skill sharing a name with one of this plugin's 29 SKILL.md names could previously get one of the two trashed outright, not just shadowed; the syncClaudeAiSkills: false opt-out documented above is still the way to avoid the collision in the first place, but a collision that does happen is no longer destructive. The same release fixed installed_plugins.json losing its recorded commit info after a GitHub-repo plugin update — this plugin installs exactly that way (a plain https://github.com/... marketplace source), so an install's recorded commit now survives /plugin update tamirs-superpowers@tamirs-marketplace where it previously could be dropped; host-side fix, nothing here to change.

The version itself is edited in one place, plugin-version.json, then propagated with bash scripts/check-version-truth.sh --sync. Never hand-edit .claude-plugin/plugin.json's version.

Security note (2.1.267): Claude Code hardened marketplace entry-path handling against a backslash bypass of its symlink/containment check (mirroring an equivalent 2.1.265 fix for plugin paths). This is a host-side fix in Claude Code's marketplace-loading code, not something Tamircohen28/tamirs-marketplace or this repo's manifest can trigger or needs to change — recorded here because this plugin ships through a marketplace listing, so the hardening is directly protective of its distribution path even though no action is required on this side.

Skill frontmatter on Claude

Every SKILL.md validates against the portable schema, core/schemas/skill-frontmatter.json. Claude Code's own frontmatter fields are a documented extension of that schema — they add Claude behavior (invocation gating, tool allowlists, model hints) and are validated when present. They are not a universal requirement, and a skill is not invalid for omitting a field no other provider understands. Authoring rules: rules/dev/skill-quality-standards.md. Never hand-write a SKILL.md — use skill-creator.

Twenty-nine of this repo's SKILL.md files set the Claude-only effort: field (low/medium/high); no agents/*.md sets it. Before Claude Code 2.1.267, effort: frontmatter on a custom command, skill or subagent was silently ignored on a model with a pinned default effort — every effort: value shipped here could have been a no-op on such a model, with no error surfaced. The fix makes the frontmatter authoritative again; no repo-side change is needed, but it is worth knowing that these values may not have taken effect before upgrading past it. The same release added maxEffortLevel, an org/user-configured ceiling on /effort — this repo does not set one (it is a host/account setting, not a plugin default), but a user or CI environment with a low maxEffortLevel will silently cap a skill's effort: high (deliver-dev, orchestrate-dev, plan-dev, pr-dev, start-dev, switch-dev, worker-dev, cleanup, github-policy, multi-agent-repo, repo-scaffold, repo-standards, retro, platform-sync) to whatever ceiling is set, the same way CLAUDE_CODE_SUBAGENT_MODEL_FORCE overrides an agents/*.md model: pin (see the 2.1.257 note above) — worth knowing rather than assuming a requested effort level was honored.

Eval suite. Since Claude Code 2.1.269, claude plugin eval runs a plugin's own eval suite (evals/**/case.yaml or prompt.md + graders/*.md) against the plugin and reports scored, reproducible results. This repo ships one in evals/: eight cases covering a single flow, skill-creator, each run with and without the plugin so the headline number is the uplift (Δ). It is a different harness from the per-skill evals/evals.json/trigger-evals.json pairs under skills/toolkit/skill-creator/evals/, which are that skill's own trigger-accuracy format (scripts/run_eval.py); the two coexist and are not interchangeable. Three things to know before running it. Write, Edit and Bash cannot be granted by a case's allowed_tools or by a skill's own allowed-tools frontmatter — only the operator's --allow-tools grants them, and that grant reaches both arms, which is what keeps Δ honest. Pass --judge-model sonnet: the default judge is haiku and marks correct-but-differently-formatted answers wrong. And never point a case at a path under .claude/ — it is protected in the run sandbox, every write to it is denied, and the result looks exactly like the plugin failing (it cost this suite a full calibration cycle to find). The suite's own calibrated findings, including a real Δ −0.25 regression on fix-weak-description and a context: fork gap that fails in both arms, are recorded in evals/README.md.

Invocation tiers (Claude-specific)

The two flags are independent — not a package deal:

  • user-invocable: false — blocks the user typing /skill-name. Other skills, sub-agents and workflows can still call it via the Skill tool. This alone is what an internal companion wants.
  • disable-model-invocation: true — blocks context-based auto-triggering and sub-agent invocation. It is a much heavier flag than it looks.
Tieruser-invocabledisable-model-invocationExamples
User + auto-trigger (default)truefalseplan-dev, start-dev, pr-dev, switch-dev, repo-standards, cleanup, retro
Explicit-only (slash, no auto)truetrue(none — see below)
Internal companionfalsefalsedocs-review, mcp-pagination, changelog-review

No skill is Explicit-only today. switch-dev was, and the gate cost the repo the skill's whole point: it is what an agent should reach for when a session hits a rate limit mid-objective, which is precisely when the user is not in a position to type /switch-dev, and the gate also made it unreachable from orchestrate-dev/worker-dev — so an orchestrated run that hit a limit could not hand off and simply died. Zero invocations across 953 sessions was the measured result.

Gating warning: disable-model-invocation: true also blocks subagent and workflow orchestration — a subagent invoking a skill is model invocation, so a gated skill cannot be fanned out across subagents. Gate only a skill that must never run autonomously. Prefer putting safety inside the skill: cleanup stays model-invocable with confirmation gates, a dry-run, and a script that only touches provably-safe targets; retro stays model-invocable because it only proposes changes and never writes without approval.

Internal-only skills today: changelog-review, docs-review, mcp-pagination. All three carry user-invocable: false and disable-model-invocation: false — hidden from the slash surface, still reachable from repo-standards and mcp-builder when those run under orchestration. docs-review mutates files, so it confirms before its first write when no parent skill invoked it; that confirmation is the safety, not a gate.

Surface skills at the moment they apply

Canonical, with the trigger table and the reasoning behind it: AGENTS.md. The rule applies unchanged on Claude Code and Claude Desktop — it is written down precisely because skill_auto_invocation cannot be relied on everywhere, so a surface where auto-invocation does work is not exempt from it.

Commit trailer

Claude sessions append:

Co-Authored-By: Claude <noreply@anthropic.com>

Format and scopes are in AGENTS.md.

Remote and headless Claude sessions

Same validation commands as the cloud runbook in AGENTS.md. Hooks in hooks/hooks.json apply in Claude Code sessions only; a remote session without hook support must not assume worktree hooks ran. Since Claude Code 2.1.260, /reload-plugins also works in headless (-p/SDK) sessions and appears in the Desktop/SDK command lists — previously interactive-only. Relevant to any headless automation, including this repo's own nightly platform-sync review, that dev-installs the plugin via --plugin-dir or a cache symlink and needs to pick up a local change without an interactive terminal. Since Claude Code 2.1.269, /output-style [name] can list or switch output styles over Remote Control and in cloud/headless sessions too — an interactive convenience with nothing for this repo's manifest to adopt, noted here only because this section is where a headless-only capability gets recorded. The same release fixed two other headless/remote paths that do not apply to this repo today: organization plugins distributed via managed settings not loading in headless sessions (this plugin is installed by a user running /plugin marketplace add + /plugin install, not pushed via an org's managed settings), and a synced plugin's MCP servers not reconnecting when a remote session resumes (the one server this plugin declares, github, is its own stdio server bundled with the plugin, not a separately "synced" one) — both are recorded here in case a future distribution model for this plugin ever does route through either mechanism. Since Claude Code 2.1.271, fast mode is available in Claude Code Remote sessions (cloud and self-hosted runners): the host's fast-mode setting or /fast typed in the session applies where the organization allows it — an interactive/account-tier convenience with nothing for this repo's manifest to adopt, noted here because this section is where a headless/remote-only capability gets recorded.

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.