一键导入
anutron-install
Install the anutron (claude-skills) kit into the current project — symlinks or copies skills, registers hooks, compiles CLAUDE.md from snippets.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Install the anutron (claude-skills) kit into the current project — symlinks or copies skills, registers hooks, compiles CLAUDE.md from snippets.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | anutron-install |
| description | Install the anutron (claude-skills) kit into the current project — symlinks or copies skills, registers hooks, compiles CLAUDE.md from snippets. |
| disable-model-invocation | true |
| tags | ["personal"] |
Installs the anutron (claude-skills) kit into the current working directory: skills land in .claude/skills/, hook scripts in .claude/hooks/, and compiled snippets are injected into CLAUDE.md between BEGIN ANUTRON-INSTALL / END ANUTRON-INSTALL markers. A breadcrumb at .anutron-install.json records everything the uninstaller needs to reverse the operation.
Confirm the install mode and scope with the user before running — this writes skills/hooks into .claude/, injects a block into CLAUDE.md, and edits .claude/settings.json. Once confirmed:
bash "$(dirname "$SKILL_PATH")/install.sh"
Pass any combination of flags after install.sh. Print the script's output directly to the user. If the script exits non-zero, show the error and suggest a fix based on the message.
When run with no flags and no .anutron-install.config.json in the target:
~/.claude/anutron-cache (the read-only plugin cache).--mode=symlink|copy — install mode. symlink keeps live edits flowing from the source (skills are symlinks). copy produces self-contained files so the install works without the source repo present.--scope=full|spec-discipline|dev-tools|custom — which preset of skills and snippets to install (default: full).--interactive — force the mode/scope prompts even when other flags would suppress them.--for-contributors — shortcut for --mode=copy --scope=spec-discipline; post-install summary includes a commit reminder.--help / -h — print usage and exit.Preset definitions live in claude-rules/scope-presets.json in the source repo — that file is the authoritative source.
*) and all snippets (*), excluding personal/non-publishable entries.spec or quality, and snippets tagged spec, quality, or formatting with audience: shared. Recommended for contributor-facing repos.spec-discipline and adds skills tagged workflow or pr (parallel execution, PR shipping).includeSkills, excludeSkills, includeSnippets, excludeSnippets from .anutron-install.config.json in the target. Exits non-zero if the manifest is missing.Create .anutron-install.config.json at the target root to set non-interactive defaults:
{
"mode": "symlink",
"scope": "spec-discipline",
"includeSkills": ["my-extra-skill"],
"excludeSkills": ["bugbash"],
"includeSnippets": ["extra-snippet.md"],
"excludeSnippets": ["010-git-workflow.md"]
}
mode and scope — defaults used when no flag is passed.includeSkills / excludeSkills — add or drop skills from the resolved scope. includeSkills is the required input when scope=custom.includeSnippets / excludeSnippets — add or drop snippet files from the resolved set. includeSnippets is the required input when scope=custom.Use this flow to commit working skills into a repo so contributors get them on git clone, no source repo required.
In the target repo, run /anutron-install --for-contributors. This installs copy mode + spec-discipline scope.
Inspect the result before committing:
.claude/skills/ — skill directories (regular files, not symlinks)..claude/hooks/ — hook scripts (regular files)..claude/settings.json — verify anutronInstalled metadata and hook registrations look correct.CLAUDE.md — verify the BEGIN ANUTRON-INSTALL … END ANUTRON-INSTALL block contains the expected spec/quality snippets.Commit the entire produced tree so contributors get skills on clone:
git add .claude/skills .claude/hooks .claude/settings.json CLAUDE.md
git commit -m "Add anutron skills for spec-driven contribution workflow"
Do not add .claude/skills/ to .gitignore — committing is the whole point of copy mode.
(Optional) Add a CONTRIBUTING.md pointing contributors at /brainstorm, /execute-plan, and /save-w-specs as the intended workflow entry points.
To update later, re-run /anutron-install --for-contributors in the repo and commit any diffs. The post-install summary lists which skills changed since the last install (based on source commit tracking).
Re-running with the same flags is safe at any time:
SKILL.md contains an <!-- anutron-installed-from: <src>@<commit> --> comment; if the commit matches, the copy is skipped.CLAUDE.md always contains exactly one BEGIN ANUTRON-INSTALL block after a re-run..claude/settings.json never contains duplicate hook command entries.On a copy-mode re-run against a source that has advanced, the summary lists skills updated since the previous install.
Run /anutron-uninstall to reverse everything the installer did.
The installer resolves its source in priority order:
ANUTRON_SOURCE environment variable, if set.~/.claude/anutron-cache, if it exists (plugin cache path).install.sh back to its real path, then walks up until a directory containing both skills/ and claude-rules/snippets/global/ is found.If no source resolves, the installer exits non-zero and names all three options in the error message.
Use when the user wants to do a QA session or report multiple bugs — interactive session where bugs are reported conversationally and agents fix them in parallel
Use when executing implementation plans with independent tasks — orchestration pattern for worktree isolation, TDD discipline, and two-stage review. Referenced by execute-plan, fixit, and bugbash.
Use when the user reports a bug or issue that can be fixed without blocking their current work — backgrounds an agent in a worktree to fix and merge back without breaking stride
Use after implementing changes in an OpenSpec project to review implementation against the active change's deltas — auto-fixes confident issues, parks questions for the user
Uninstall the anutron (claude-skills) kit from the current project — reverses everything /anutron-install did.
Reference for bash patterns that trigger Claude Code permission guardrails (static-analysis flags that allowlist rules cannot silence). Load when about to run bash with `cd <repo> && git ...`, `$(...)`, backticks, heredocs, inline `python3 -c` / `node -e` / `ruby -e` / `perl -e`, multi-line shell logic with variables/conditionals, or before allowlisting a new script path. Also covers always-prompt verbs and the `git -C` known gap.