From project
Updates project AGENTS.md, CLAUDE.md, and .rules/ files from latest templates without overwriting customizations. Compares sections and rule files, reports missing/changed/custom items, and previews changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/project:update-rulesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Update existing AGENTS.md/CLAUDE.md and .rules/ files from the latest plugin templates. Non-destructive: never overwrite user customizations, always preview changes before applying.
Update existing AGENTS.md/CLAUDE.md and .rules/ files from the latest plugin templates. Non-destructive: never overwrite user customizations, 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.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/*.mdAGENTS.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 project-diff-rules <level> to get structured comparison data. 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-templates-path)/claude/rules/<file>" ".rules/<file>" for each changed ruleFor 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[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.
@AGENTS.md) and preserve Claude-only additions.Run project-diff-rules <level> again to confirm all approved changes were applied.
For 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.npx claudepluginhub neuromechanist/research-skills --plugin projectAudits and syncs AI agent configuration files (CLAUDE.md, CODEX.md, AGENTS.md, .cursorrules) across workspaces. Use when configs drift, rules duplicate, or files go stale.
Adds a new rule, convention, or instruction to the project's agent configuration, analyzing placement in root CLAUDE.md, docs/agents/ files, or a new skill.
Generates tailored rules and instruction files for 13+ AI coding agents (Claude Code, Cursor, Copilot, etc.) via interactive questionnaire. Use when setting up agent rules or establishing team coding standards.