/foundry:manage create <agent|skill|rule> <name> "desc" | update <name> [new-name|"change"|spec.md] [--local] | delete <name> | add perm <rule> "desc" "use-case" | remove perm <rule>from foundry
Creates, updates, deletes agents, skills, rules, and hooks in .claude/ with cross-reference propagation. Routes content edits by file type and manages settings.json permissions atomically.
Ships in foundry. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Note:
disable-model-invocation: true—/foundry:manageuser-invoked only, noSkill()chaining from orchestrators. When suggesting/foundry:manageas follow-up, invoking skill must present as user-run command, not auto step.
Manage lifecycle of agents, skills, rules, hooks in .claude/; plugin-source Markdown content-edits with --local. Handles creation with rich domain content, atomic renames with cross-ref propagation, content editing (routed by file type — Step 4), clean deletion with broken-ref cleanup.
$ARGUMENTS: required, one of:
create agent <name> "description" — create new agent with generated domain contentcreate skill <name> "description" — create new skill with workflow scaffoldcreate rule <name> "description" — create new rule file with frontmatter and sectionsupdate <name> <new-name> — rename; type auto-detected from diskupdate <name> "change description" — content-edit (routing: Step 4)update <name> <spec-file.md> — content-edit from spec file (routing: Step 4)delete <name> — delete; type auto-detected from disk (agents, skills, rules, hooks); asks user if ambiguousadd perm <rule> "description" "use case" — add permission to settings.json allow list and permissions-guide.mdremove perm <rule> — remove permission from settings.json allow list and permissions-guide.mdNames must be kebab-case (lowercase, hyphens only)
Descriptions must be quoted when containing spaces
Permission rules use Claude Code format: WebSearch, Bash(cmd:*), WebFetch(domain:example.com)
--skip-audit — optional flag: skip Step 9 /foundry:audit validation (use inside audit fix loop to avoid recursion)
--local — resolve plugin-source agents, skills or rules for update content-edit only; use a quoted directive or spec file. Creation, rename, deletion, hooks and permission operations reject this flag. foundry:curator owns source agent/skill Markdown edits; the parent owns rule Markdown edits. The installed cache is never an edit target.
Spec-file paths must be quoted — update <name> <spec-file.md> requires spec path quoted if it contains any whitespace (e.g. update my-agent "docs/My Spec.md"); unquoted paths with spaces split into multiple arguments, trigger argument-shape mismatch. Recommended: keep spec filenames free of spaces.
Update/delete mode — name looked up across agents, skills, rules and hooks automatically:
AskUserQuestion in Step 1Update second-argument discrimination:
.md extension) → rename mode, confirmed interactively before any write (Step 1 rename confirmation gate) — an unquoted change directive such as update my-agent add-error-handling has this exact shape and would otherwise delete my-agent.md → content-edit mode (routing: Step 4)Examples:
/foundry:manage create agent task-planner "Planning specialist for decomposing epics into actionable tasks"/foundry:manage update my-agent "add a section on error handling patterns"/foundry:manage update optimize docs/specs/YYYY-MM-DD-<spec-name>.md/foundry:manage delete old-agent-name/foundry:manage add perm "Bash(jq:*)" "Parse and filter JSON" "Extract fields from REST API responses"AGENTS_DIR: .claude/agents
SKILLS_DIR: .claude/skills
RULES_DIR: .claude/rules
HOOKS_DIR: .claude/hooks
AVAILABLE_COLORS: red, blue, green, yellow, purple, orange, pink, cyan
AGENT_WATCH_DIR: .temp/manage · deadlines: web-explorer 300 s · sw-engineer 900 s · curator 900 s
Every spawn in this skill (Step 4 mode files, Step 5 cross-ref curator, Step 9 targeted curator, challenger gate) follows _shared/agent-spawn-protocol.md §Deadlines. Spawns here are sequential, one agent in flight at a time, so every spawn response overwrites .temp/manage/agent-watch-manage.tsv with that one agent's row (<name>\t<deliverable or ->\t<deadline>) via the Write tool — never a waiting tool (ScheduleWakeup, ListAgents, Monitor), probe, or sleep. On its completion notification run the check block once, before reading its output:
PLUGIN_ROOT=$(python "${CLAUDE_PLUGIN_ROOT}/bin/resolve_plugin_root.py" --plugin-name foundry) || exit $?; export PLUGIN_ROOT
python "$PLUGIN_ROOT/bin/agent_watch.py" --state-dir ".temp/manage" # timeout: 5000
done → continue · notification arrived but row not done (deliverable empty/missing, or idle without its envelope) → ⏱ timed_out now: surface it in the Step 10 report; a web-explorer ⏱ means default frontmatter fields (the existing missing-schema fallback). A ⏱ never answers, skips or defaults any question or gate below.
Colors in use are read from live Grep in Step 3 (authoritative) — no static used-color list to maintain. AVAILABLE_COLORS is the candidate pool for a new agent (the valid agent color: values); pick first entry not already in Step-3 set. All eight in use → reuse the least-used color and note the reuse in Step 10.
Task hygiene — task tools may be deferred; load before first use: ToolSearch(query="select:TaskList,TaskCreate,TaskUpdate,TaskGet", max_results=4). Call TaskList first and triage each task it returns: completed if work clearly done, deleted if orphaned, keep in_progress only if genuinely continuing. Never spend a turn on bookkeeping alone — every TaskCreate/TaskUpdate ships in the same response as the next substantive tool call; one exception, TaskUpdate(completed) immediately before a long output block (rules/task-lifecycle.md).
Task tracking: create tasks for each major phase; mark in_progress/completed throughout.
Extract operation, type, name, optional arguments from $ARGUMENTS.
PLUGIN_ROOT=$(python "${CLAUDE_PLUGIN_ROOT}/bin/resolve_plugin_root.py" --plugin-name foundry) || exit $?; export PLUGIN_ROOT
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}"
# --keep-state: no eval, persists manage-skip-audit-${CSID} (Check 43) + clean-args; --inlined: manage keeps no compaction contract, so it clears none
python "$PLUGIN_ROOT/bin/parse-skill-flags.py" --flags skip-audit,local --keep-state manage --inlined -- "$ARGUMENTS" >/dev/null # timeout: 5000
IFS= read -r ARGUMENTS < "${TMPDIR:-/tmp}/manage-clean-args-${CSID}" 2>/dev/null || ARGUMENTS=""
IFS= read -r LOCAL < "${TMPDIR:-/tmp}/manage-local-${CSID}" 2>/dev/null || LOCAL="false"
printf "Local source mode: %s\n" "$LOCAL"
echo "${TMPDIR:-/tmp}/manage-skip-audit-${CSID}" > "${TMPDIR:-/tmp}/manage-skip-audit-path-${CSID}"
Local operation check — when LOCAL=true, require update with a quoted directive or a spec path. Any other operation or argument shape: report ! UNSUPPORTED — --local supports update content-edits only and stop before permission validation or entity resolution.
Unsupported flag check — after all supported flags extracted (--skip-audit, --local), scan $ARGUMENTS for remaining --<token> tokens. Found: invoke AskUserQuestion with question text ! Unknown flag(s): `--<token>`. Supported: `--skip-audit`, `--local`. — (a) Abort (stop, re-invoke with correct flags) · (b) Continue ignoring (skip unknown flags, proceed). On Abort: stop.
Out-of-scope guard — fires before validation when either holds: (a) first command word(s) in $ARGUMENTS are not create, update, delete, add perm, or remove perm (shape errors on recognized command words go to validation, not here); (b) request targets application source, a bug, or a feature outside agents/skills/rules/hooks/permissions. Deliver per Decline delivery below: **! UNSUPPORTED — /foundry:manage manages agents, skills, rules, hooks, permissions only** plus one redirect line (/develop:fix or /develop:feature (requires develop plugin)), then stop. Block + redirect = entire decline content: no diagnosis, root cause, patch, code snippet, test, or Step 2 onward. Decline delivery: when the spawn prompt names a deliverable or output file, first write the bold line, any required redirect, and status: unsupported, reason and owner to that file — never skip a mandated file; when it demands an envelope (Return ONLY:), return only "status": "unsupported", "reason" and "owner" (agent/skill or "none"), plus "file" when a deliverable was written; a demanded fixed closing line (e.g. Wrote: <id>) takes precedence over an envelope and is the whole reply. With neither envelope nor fixed closing line required, reply only with the bold line and any required redirect. A decline is not an analysis, so it carries no Confidence block.
Validation rules:
^[a-z][a-z0-9-]*$ (kebab-case)create: name must NOT already exist on disk; description requiredupdate/delete: name MUST already exist on diskupdate rename: new-name must NOT already exist on diskadd perm: rule must NOT already exist in settings.json allow list; description and use case requiredremove perm: rule MUST already exist in settings.json allow listFor permission operations, run perm.md §Permission validation (add/remove) before either mutation mode; its lookup distinguishes an absent rule from an unavailable tool or invalid settings. Do not run the entity-resolution checks for permissions.
Type auto-detection (for update and delete): with --local, first require update with a quoted directive or a spec path; reject other operation shapes before any write. If the working directory contains .claude-plugin/plugin.json, Glob agents/<name>.md, skills/<name>/SKILL.md, claude-skills/<name>/SKILL.md, and rules/<name>.md there. Otherwise Glob plugins/*/agents/<name>.md, plugins/*/skills/<name>/SKILL.md, plugins/*/claude-skills/<name>/SKILL.md, and plugins/*/rules/<name>.md from the project root. Keep only candidates under a source plugin root containing .claude-plugin/plugin.json; never search or edit an installed cache. No matches: report the missing source entity and stop. Multiple plugin roots: ask which concrete plugin path to use, then apply the type-selection gate below if needed. Set model-context ENTITY_PATH to the selected concrete file and SOURCE_ROOT to its plugin root; substitute these literal paths in content-edit prompts. Skip the .claude/ guard and project Globs below for this branch.
Without --local, first verify post-install context exists:
[ -d .claude ] || { printf "! .claude/ not found — confirm working directory is project root\n"; exit 1; } # timeout: 3000
Then run all four Glob checks in parallel:
agents/<name>.md, path .claude/skills/<name>/SKILL.md, path .claude/rules/<name>.md, path .claude/hooks/<name>.js, path .claude/Results:
AskUserQuestion: "Multiple entities named <name> found. Which one? (a) agent (b) skill (c) rule (d) hook" — note: (d) hook valid for update and delete only; create hook not yet implemented (use Edit tool on hooks/<name>.js directly until create-hook mode added)<name> found; for plugin-source Markdown content-edits use --local", stopFor a project match set model-context ENTITY_PATH to its concrete file and SOURCE_ROOT to .claude/. Use the selected source root for subsequent scoped reads, references and integrity checks.
For create, check only relevant type's path.
Delete confirmation gate — when $MODE is delete, immediately after type resolution invoke AskUserQuestion: "Delete <name> (<type>)? This cannot be undone. (a) Confirm · (b) Abort". On Abort: stop. On Confirm: proceed to Step 4.
Hook rename guard — when the resolved type is hook and the argument shape is rename, stop before the rename confirmation or any write: "Hook rename is unsupported; use a quoted directive for content-edit, or explicitly deregister and recreate the hook registration." Never route a hook into rename.md or rely on Step 5 to repair its registration.
Rename confirmation gate — when the argument shape resolves to rename, the second token is ambiguous by construction: update my-agent add-error-handling and update my-agent new-agent-name parse identically, and rename deletes the old file. Immediately after type resolution, before any write, invoke AskUserQuestion: "<name> → <second-arg>: rename the file, or apply <second-arg> as an edit directive?" — (a) Rename (write <second-arg>, delete <name>, propagate cross-refs) · (b) Content-edit (keep the name; set MODE=content-edit and DIRECTIVE=<second-arg>, continue from the edit-complexity classifier) · (c) Abort (stop, nothing written). Place (b) second — it is the recommended reading whenever the second token is not a plausible entity name.
Update second-argument discrimination — apply after type resolved. Set MODE from parsed operation — a model-context value, not a shell variable (shell state does not persist across Bash calls); consumed by delete confirmation gate above, edit-complexity classifier below, and per-mode workflow branches in Step 4. Recognised values: create, rename, content-edit, delete, add-perm, remove-perm.
| Argument shape | MODE |
|---|---|
create <type> <name> "..." | create |
update <name> <new-name> (two bare kebab-case args; second has no spaces, no .md) | rename (validate new-name does NOT already exist; destructive — rename confirmation gate above must pass first) |
update <name> "<change>" (one name + quoted string) | content-edit (validate spec non-empty; set DIRECTIVE = the quoted string) |
update <name> <spec>.md (one name + path ending in .md; must be quoted if path contains spaces) | content-edit (validate spec file exists on disk and path ends in .md; report error if not found; set DIRECTIVE = contents of the spec file via Read tool) |
delete <name> | delete |
add perm <rule> "..." "..." | add-perm |
remove perm <rule> | remove-perm |
Validation fails: report error, stop.
Edit complexity classification (content-edit mode only):
For a hook, always set EDIT_TRIVIAL=false and route to foundry:sw-engineer, regardless of directive length or wording. Apply the classifier below only to Markdown entities.
Classify $DIRECTIVE as trivial (EDIT_TRIVIAL=true; otherwise false — model-context value, like MODE) when ALL conditions hold:
| Condition | Required |
|---|---|
| Word count ≤ 10 | ✓ |
Matches pattern: typo, spelling, rename X to Y, change X to Y, replace X with Y, fix (a/the)? (typo/bug/error), add missing, remove [word], correct | ✓ |
Both must hold — either failing: substantive. Trivial edits: apply inline with Edit tool — no agent spawn.
Step skip rules:
--local): skip Steps 2, 3 and 6; Steps 5 and 8 use SOURCE_ROOT and its README, Step 7 updates only that plugin README when description/model changed.Before creating, check whether existing agents/skills already cover requested functionality:
Read(file_path=..., limit=3) on each .md in agents/) and skills (use Read(file_path=..., limit=3) on each SKILL.md)AskUserQuestion with the findings in its question text (not reply text before the call) — the overlapping agent/skill and the coverage vs what new one adds: "Extend existing (Recommended)" / "Proceed" / "Abort"Skip for update, delete, perm operations.
Snapshot current roster for later comparison. Steps 2 and 3 are independent reads — issue Glob calls for both in the same response.
Use Glob (pattern agents/*.md, path .claude/) for agents and Glob (pattern skills/*/, path .claude/) for skills. Use Grep (pattern ^color:, glob agents/*.md, path .claude/, output mode content) to collect colors in use.
Extract names inline from Glob results — strip .claude/agents/ prefix and .md suffix for agents; strip .claude/skills/ prefix and trailing / for skills; strip .claude/rules/ prefix and .md suffix for rules. Sort alphabetically when building roster string.
Load the mode file for MODE (<MODE_FILE> from the table), then execute the ### Mode: section matching the resolved entity type — each file holds every type variant of its mode. Then continue per the Step 1 skip rules.
MODE | Mode file |
|---|---|
create | create.md |
rename | rename.md |
content-edit | content-edit.md |
delete | delete.md |
add-perm, remove-perm | perm.md |
PLUGIN_ROOT=$(python "${CLAUDE_PLUGIN_ROOT}/bin/resolve_plugin_root.py" --plugin-name foundry) || exit $?; export PLUGIN_ROOT
MODE_FILE='<MODE_FILE>'
case "$MODE_FILE" in *'<'*'>'*|"") echo "! BLOCKED — <MODE_FILE> not substituted (create.md | rename.md | content-edit.md | delete.md | perm.md)"; exit 1;; esac
python "$PLUGIN_ROOT/bin/load_mode.py" manage modes "$MODE_FILE" --fallback-source # timeout: 5000
Search Markdown under the resolved SOURCE_ROOT plus its README for changed name and update references. Default project scope is .claude/ plus project README.md; with --local use only the selected source plugin and its README. Include supporting skill Markdown (skills/**/*.md), not only SKILL.md.
For rename, skip directly to Rename occurrence validation below before any reference edit; it classifies all occurrences against the entity's canonical forms and is the only rename propagation path. The generic searches below apply to delete and content-edit operations. Substitute concrete SOURCE_ROOT paths before searching; its README is project README.md when SOURCE_ROOT=.claude/, otherwise <SOURCE_ROOT>/README.md.
Use Grep to find all references:
<name>, glob agents/*.md, path <SOURCE_ROOT>, output mode content<name>, glob skills/**/*.md, path <SOURCE_ROOT>, output mode content<name>, glob rules/*.md, path <SOURCE_ROOT>, output mode content<name>, file <SOURCE_ROOT>/CLAUDE.md, output mode content<name>, file the README selected from SOURCE_ROOT above, output mode contentFor update (rename): The validation mode handles confirmed genuine references only: ≤3 files inline, >3 files through foundry:curator, with exact classified occurrences. Hook renames were rejected in Step 1.
Apply these cross-reference updates (<old-name> → <new-name>):
<list each classified genuine file:line, exact old token and required substitution>
Use the Edit tool for only the listed occurrences; do not replace all bare-name matches in a file.
Return ONLY: {"status":"done","files_updated":N}
For delete: Review each reference. Deleted name in:
For create: No cross-ref propagation needed.
For content-edit: Run propagation only if entity's description: frontmatter changed — propagate new description to any README summary lines that quote it. Skip if only internal content changed.
Severity/priority labeling — for every cross-reference decision above (rename fix, delete flag, content-edit propagate-or-skip), state a priority: high (genuine reference — invocation, routing, or discovery breaks if missed) or low (cosmetic/consistency-only, e.g. mention inside a code example or an unrelated similarly-named entity). Carry priority into Step 10 report (Files Changed table / Rename Occurrence Validation buckets).
# loads: rename-validation.md
PLUGIN_ROOT=$(python "${CLAUDE_PLUGIN_ROOT}/bin/resolve_plugin_root.py" --plugin-name foundry) || exit $?; export PLUGIN_ROOT
python "$PLUGIN_ROOT/bin/load_mode.py" manage modes rename-validation.md --fallback-source # timeout: 5000
Execute the mode loaded above.
Refresh inventory from disk for the Step 10 report:
Use Glob (agents/*.md, path .claude/) for agents, Glob (skills/*/, path .claude/) for skills, Glob (rules/*.md, path .claude/) for rules. Extract names inline from returned paths (strip path prefix and .md/trailing-/ suffix), join as comma-separated string.
README.md (project root):
Every README rename uses only classified genuine occurrences from Step 5; preserve its false positives and user decisions. If Step 5 already updated the row, leave it unchanged; classify any newly discovered occurrence before editing.
### Agents table — columns: | **name** | Short tagline | Key capabilities |### Skills table — columns: | **name** | `/name` | Description |.claude/README.md (config README) — Rules table only:
| rule-file | Applies to | What it governs |Keep descriptions concise (one line), consistent in tone with surrounding rows. Don't add/remove table columns.
For content-edit (agent/skill): Update README if description OR model field changed. Model changes update the Model column only; description changes update the description column.
Confirm no broken references remain:
Use Grep (pattern [a-z]+:[a-z]+(-[a-z]+)* to find cross-plugin references, or See [a-z-]+ agent for cross-references, glob {agents/*.md,skills/**/*.md}, path SOURCE_ROOT, output mode content). Avoid broad kebab-case patterns — they match code examples, produce false positives. Inventory Globs below use SOURCE_ROOT in place of .claude/ for --local.
Use Glob (agents/*.md, path .claude/) and Glob (skills/*/, path .claude/) for on-disk inventory; extract names inline. Use Grep to search for changed name and confirm:
Add rules to on-disk inventory check: Glob (rules/*.md, path .claude/), extract names inline.
For create and update (rename): verify tool efficiency — cross-check agent/skill's declared tools (tools: or allowed-tools:) against tool names in workflow body. Declared tool not referenced anywhere: flag as cleanup candidate in Step 10 report (report only — don't block operation).
/foundry:audit and /foundry:calibrate are disable-model-invocation: true — this skill cannot invoke them. Validation runs through the direct owner spawn below; both skills are printed as user-run commands. Skip the targeted spawn and the printed audit command only if invoked with --skip-audit — outer audit covers it.
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}"
IFS= read -r _SKIP_FILE < "${TMPDIR:-/tmp}/manage-skip-audit-path-${CSID}" 2>/dev/null || _SKIP_FILE="${TMPDIR:-/tmp}/manage-skip-audit-${CSID}"
IFS= read -r SKIP_AUDIT < "$_SKIP_FILE" 2>/dev/null || SKIP_AUDIT="false" # reload (Check 43)
[[ "$SKIP_AUDIT" == "true" ]] && { echo "[--skip-audit] skipping Step 9 audit"; }
For targeted check of only affected file, spawn foundry:curator directly:
Hook operations: use subagent_type="foundry:sw-engineer" with the same read-only prompt, artifact, envelope and deadline below; curator excludes hooks. Include hook exit-code and registration integrity checks in its operation-specific checks.
create: audit new file for structural completeness, cross-ref validity, content qualityupdate rename: audit renamed file, verify no stale references remain; for content-edit: audit every concrete file in the returned changed-file list (or ENTITY_PATH for a single-file edit)delete: audit remaining files for broken references to deleted nameSubstitute the concrete affected paths and requested checks from the operation list above. Spawn sequentially with the normal deadline protocol; in the spawn response Write .temp/manage/agent-watch-manage.tsv = manage-targeted-audit\t.temp/manage/targeted-audit.md\t900.
Agent(subagent_type="foundry:curator", name="manage-targeted-audit", description="Audit affected manage configuration", prompt="Read-only validation of <affected concrete paths> within <SOURCE_ROOT>. Check <operation-specific checks above>, structural completeness, cross-reference validity and content quality. Do not edit files or invoke manage. Write full findings with severity, file:line and suggested action to .temp/manage/targeted-audit.md. Return ONLY: {\"status\":\"done\",\"file\":\".temp/manage/targeted-audit.md\",\"findings\":N,\"critical\":N,\"confidence\":0.N}")
Include audit findings in Step 10. If any critical findings remain, mark the operation incomplete and stop after the Step 10 report, before the challenger gate. Otherwise print as a REQUIRED user-run step: /foundry:audit --skip-gate (requires foundry plugin; add --local for a plugin-source edit) — full-sweep validation without the interactive follow-up gate.
Calibration — after audit passes, print /foundry:calibrate <name> as a user-run command (requires foundry plugin), never run it here. Mandatory only when the edit changes the routing surface — an agent/skill description: field, or a TRIGGER/SKIP/NOT-for line. For pure body/prose edits leaving routing surface untouched (workflow steps, examples, <notes>, wording polish), calibration is optional — suggest it, don't force it. Routing accuracy is unaffected by non-routing edits, so the 10–30 min run rarely pays off; skipping keeps small polishes cheap.
Then, only when routing surface changed, also print /foundry:calibrate routing --fast as a user-run command to confirm overall routing accuracy unaffected (requires foundry plugin). Skip this for pure body/prose edits.
Skip calibration entirely for: trivial edits, renames, deletes, rule operations, perm operations.
Report outcome fields below only — no Step 1…Step 10 execution trace; skipped steps and gates show only as the n/a values in their fields.
critical findings mean incomplete — end after this report and Confidence block, before the challenger gatesettings.json and permissions-guide.md updated and report the selected scope. Project-only leaves the shipped allow list unchanged; an explicitly selected plugin permissions-allow.json source edit reaches ~/.claude/ only after plugin update/reinstall followed by /foundry:setupEnd response with ## Confidence block per CLAUDE.md output standards.
Challenger review gate — after emitting summary report and Confidence block, invoke AskUserQuestion to offer adversarial review of just-completed changes. Skip this gate entirely when: MODE is delete, add-perm, or remove-perm; OR EDIT_TRIVIAL=true; OR MODE is rename (structural change only, no content to challenge). Gate is mandatory for: create (agent, skill, rule), non-trivial content-edit (agent, skill, rule).
AskUserQuestion: "Run foundry:challenger to adversarially review the changes just made?"
(a) Skip — done [default]
(b) Challenge — spawn foundry:challenger on modified file(s)
On (b): spawn foundry:challenger — background like every spawn; in the same response Write .temp/manage/agent-watch-manage.tsv = challenger\t.temp/manage-challenger-<YYYY-MM-DD>.md\t900, end the turn, and on its notification run the <constants> deadline check block once (⏱ timed_out → report it in place of the findings):
Agent(subagent_type="foundry:challenger", name="challenge-manage-edits", description="Challenge manage edits", prompt="Adversarially review the changes just made to <list modified file paths>. Challenge: correctness of design decisions, completeness, potential regressions, and whether the stated goal was achieved. Read-only. Write full findings to .temp/manage-challenger-<YYYY-MM-DD>.md using the Write tool. Return ONLY: {\"status\":\"done\",\"file\":\".temp/manage-challenger-<YYYY-MM-DD>.md\",\"findings\":N,\"confidence\":0.N}")
Print challenger's findings count and confidence; note any HIGH findings warranting a follow-up /foundry:manage update pass. On (a): print → Done., stop.
Cycle guard: this challenger dispatch is from orchestrator (manage skill itself), not from a sub-agent — cycle detection in <notes> doesn't apply here. Do NOT spawn challenger from inside foundry:curator or foundry:sw-engineer sub-agents spawned by manage.
settings.json and permissions-guide.mdbin/jq_write.py (perm.md) — avoids fragile sed/awk on JSONREADME.md; rules table in .claude/README.md — keep row format consistent with existing rows.md file (agent, skill, rule) via Edit/Write, apply two checks from bin-authoring-guide.md: (1) extraction gate — verdict MEDIUM or HIGH: write a bin/ script instead; verdict LOW: inline is acceptable; (2) Prose over Code — tokens(block) > tokens(equivalent prose/table/schema) at identical precision: write prose/table instead. Exempt: examples, templates, exact-syntax blocks. Same rules enforced in spawn prompts to foundry:curator and foundry:sw-engineer (see content-edit.md). This note applies to orchestrator-level inline edits./foundry:audit --skip-gate → /foundry:calibrate <name> (mandatory when routing surface changed) → /foundry:calibrate routing --fast/foundry:audit --skip-gate → /foundry:calibrate routing --fast (if description changed)permissions-allow.json edit reaches ~/.claude/ after plugin update/reinstall plus /foundry:setupmodes/content-edit.md (opens in a new tab)modes/create.md (opens in a new tab)modes/delete.md (opens in a new tab)modes/perm.md (opens in a new tab)modes/rename-validation.md (opens in a new tab)modes/rename.md (opens in a new tab)templates/agent-scaffold.md (opens in a new tab)templates/skill-scaffold.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
mediumnpx claudepluginhub borda/ai-rig --plugin foundry11 skills in this plugin
/auditFull-sweep quality audit of .claude/ config — cross-references, permissions, model tiers, docs freshness. Scope tokens select what to audit; --upgrade applies docs-sourced improvements; --adversarial runs foundry:challenger + Codex adversarial review; --efficiency sweeps model tiers, token bloat, spawn patterns, boilerplate duplication, and bin/ extraction candidates (extraction performed separately via /foundry:distill executables); --consolidate proposes merging overlapping narrow rules into fewer broader ones and sharpening overlapping skill notes and agent clauses (advisory, edits nothing). Fix level chosen via conditional follow-up gate after report./brainstormIterative brainstorming skill for turning fuzzy ideas into approved tree documents. Diverges into branches, deepens and prunes them over many rounds, saves a tree doc. Run breakdown on the tree to distill it into a spec via guided questions. SKIP: a content outline to co-create, or one already approved and awaiting finished content (use foundry:create — create co-creates the outline, foundry:creator writes the finished artifact; brainstorm is for idea generation before an outline exists); a code-level implementation plan derived from an existing spec (use develop:plan (requires `develop` plugin))./calibrateCalibration testing for agents and skills. Generates synthetic problems with known outcomes (quasi-ground-truth), runs targets against them, measures recall, precision, confidence calibration — reveals whether self-reported confidence scores track actual quality./createInteractive outline co-creation for developer advocacy content — collects format, audience profile, story arc (Problem→Journey→Insight→Action), and voice/tone; detects out-of-scope requests (FAQs, comparison tables); surfaces conflicts between user brief and audience needs. Writes approved outline to .plans/content/<slug>-outline.md for foundry:creator to execute. Use when starting a blog post, Marp slide deck, social thread, talk abstract, lightning talk, animated SVG, or short video (HyperFrames HTML composition; render stays user-run). SKIP: idea generation before an outline exists (use foundry:brainstorm — brainstorm explores directions into a tree; create co-creates the outline, foundry:creator writes the finished artifact)./distillOne-time snapshot extracting patterns from work history and accumulated lessons, distills into concrete improvements — new agent/skill suggestions, memory pruning, consolidating lessons into rules/agent updates, or performing bin/ extraction from /foundry:audit --efficiency candidates. Roster boundary analysis → /foundry:audit agents (Check 46)./humanizerStrip AI-writing tells from prose destined for humans — docs, PR/commit bodies, reports, release notes, blog posts, Slack/email drafts. Removes LLM-vocabulary clichés (delve, boasts, testament, underscore, robust, tapestry...), banned constructions (not just X but Y, rule-of-three triads, "-ing" superficial-analysis clauses, vague-attribution weasel words), and formatting tells (title-case headings, mechanical bolding, em-dash overuse, curly quotes, bare-bullet inline-header lists). TRIGGER when: user asks to humanize/polish/de-AI a piece of text or file; before finalizing a substantial human-facing prose artifact drafted as part of the current task (docs, PR/commit body, report, blog post, release notes, external message) — self-review pass, best-effort model-initiated, not a guaranteed intercept. SKIP when: output is a terse conversational chat reply, code, JSON/YAML/config, a machine-parsed agent envelope ("Return ONLY:"), a `.reports/` file or a file with report-schema frontmatter (report format needs the block and bold labels intact), or the target is an ultra-caveman-tier handover file (`.temp/`, inter-agent prose per `plugins/CLAUDE.md` compression tiers). Preserve ordinary publishing frontmatter and edit only the prose body.Other plugins' skills for the same job