/project:update-rules runs instead · from project
Updates project rules, AGENTS.md, CLAUDE.md, and .rules/ from latest templates without overwriting customizations. Shows diffs and offers merge for changed or missing files.
This skill never runs in Claude Code
It ships in project at skills/, but /project:update-rules (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Update existing AGENTS.md/CLAUDE.md, .rules/, and project-memory scaffolding
from the latest plugin templates. Non-destructive: never overwrite user
customizations or memory facts, always preview changes before applying.
install-user-instructions instead./update-rules project)Update the current project's configuration:
.rules/ directory sync -- Compare each template rule file against the project's .rules/ directory:
MISSING -- new in templates, not in project. Show purpose and offer to add.CHANGED -- exists but differs from template. Show unified diff, suggest merge.CURRENT -- matches template. Report as up to date.CUSTOM -- user-added rule not in templates. Preserve completely, report.RETIRED -- a former template rule that a newer rule replaces (RULE_RETIRED=<old>:<new>, for example serena_mcp.md:lsp.md). Offer to delete the old file, add the replacement if missing, and update the .rules/ list in AGENTS.md. Show the old file first; keep it if the user declines..memory/ convention sync -- Check the template memory/README.md and
memory/INDEX.md against the project's .memory/ directory:
MISSING -- .memory/ or a template file is absent; offer to add it.CHANGED -- a tracked README or INDEX differs; show a unified diff and
suggest a merge.CURRENT -- the template file matches exactly.AGENTS.md section comparison -- Extract H2 headers from both template and project AGENTS.md. Identify missing sections. For matching sections, compare content and suggest updates. Preserve all project-specific customizations (replaced placeholders, custom guidelines, architecture maps). If the project only has CLAUDE.md, offer to migrate shared content into AGENTS.md and leave CLAUDE.md as the Claude adapter.
What gets compared:
rules/*.md vs .rules/*.mdmemory/*.md vs ./.memory/*.md, while preserving project fact filesAGENTS.md sections vs ./AGENTS.md sections (script emits PROJECT_SECTION_SOURCE=agents|claude so a CLAUDE.md fallback is never silently treated as AGENTS.md)@AGENTS.md and contains only Claude-specific additions), not part of the script output/update-rules user)Delegate to install-user-instructions. That skill detects and asks which of
Claude Code, Codex, GitHub Copilot CLI, and Cursor the user wants to configure,
previews non-destructive managed-block changes, and prevents general defaults
from being copied into downstream projects. Do not silently interpret user
as Claude-only.
Run the bundled <project-plugin-root>/scripts/project-diff-rules <level> helper by absolute path.
<project-plugin-root> is the project plugin directory that holds skills/, scripts/, and templates/:
the parent of the skills/ directory that contains this skill, which is ../.. from this SKILL.md's folder.
Confirm it with test -x <project-plugin-root>/scripts/project-preflight;
if that fails, report the path you resolved and stop.
Plugin helpers are not on PATH, so call them by absolute path.
The script outputs KEY=VALUE pairs categorizing each rule file and listing section headers from both sources.
For project level:
RULE_CHANGED file from both template and project to understand the differences@AGENTS.md and contains only Claude-specific additionsdiff --unified "<project-plugin-root>/templates/claude/rules/<file>" ".rules/<file>" for each changed rulediff --unified "<project-plugin-root>/templates/memory/<file>" ".memory/<file>" when the project file exists. Treat project fact files as user content, not template drift.For user level, stop this comparison workflow and use
install-user-instructions. Read only the selected systems' targets and
platform reference after the user chooses them.
Present a numbered list of proposed changes. Each change marked as:
[ADD] -- New content to add[UPDATE] -- Existing content to modify[REMOVE] -- Retired rule file to delete (only for RULE_RETIRED)[INFO] -- No change needed, already currentShow preview of what will change for each item. Ask user to confirm which changes to apply. Never apply changes without confirmation.
.memory/ or template memory files: create only the missing
directory/files. Never overwrite an existing memory fact or customized
README/INDEX; merge a changed template only after explicit approval.@AGENTS.md) and preserve Claude-only additions..rules/ file only after the user approved its [REMOVE] item.Run the bundled <project-plugin-root>/scripts/project-diff-rules <level> helper
again to confirm all approved changes were applied.
No RULE_RETIRED line should remain except for files the user chose to keep.
RULE_RETIRED rule file only after showing it and getting explicit approval; it is a former template file, not user-added contentFor rule files: if the user has not modified the rule since init, it matches an older template version. The diff shows what the template improved. If the user customized it, the diff shows both template changes AND user changes; present both clearly and let the user decide.
For AGENTS.md: sections that still contain {{PLACEHOLDERS}} were never customized. Sections with replaced placeholders contain user-specific content. Template-originated content (like the "[NEVER DO THIS]" list) can be compared item-by-item.
references/section-mapping.md -- Legacy Claude user-file mapping kept
for older installations. New cross-agent user setup belongs to
install-user-instructions.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
rules-sync, template-update, project-config, agents-md, claude-md
17 skills in this plugin
/agent-fanoutUse this skill when the user asks to "fan out agents", "spawn agents", "use an agent team", "parallel agents", "delegate to subagents", "act as team lead", "orchestrate implementation", "fan out teammates", or when a task decomposes into 2+ independent work items (parallel exploration, one implementer per issue, a multi-lens PR review panel). Covers the basic mechanics of spawning, briefing, supervising, and synthesizing subagents and teammates, plus the hard cap on fleet size./ci-scaffoldingThis skill should be used when the user says "set up CI", "create GitHub Actions", "scaffold CI pipeline", "add CI/CD", "configure continuous integration", "create test workflow", "create release workflow", "add pre-commit hooks", "set up linting pipeline", "configure ruff in CI", "configure biome in CI", "add typo checking", "CI is slow", "speed up CI", "shard tests", "make CI faster", or wants to add, update, or customize CI/CD pipelines for their project. For initial project setup including basic CI, see init-project. Use ci-scaffolding for adding or customizing CI/CD in existing projects./codebase-onboardingUse this skill when the user asks to "explore this codebase", "understand this repo", "map the architecture", "review our stack", "get up to speed", "break ground" on an unfamiliar project or research field, "what is the state of this project", "audit the architecture", or before planning changes in a codebase you have not worked in. Produces a verified reconnaissance report before any design or edit.npx claudepluginhub neuromechanist/research-skills --plugin projectOther plugins' skills for the same job