update-rules
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "update rules", "sync rules", "update AGENTS.md", "update CLAUDE.md", "refresh rules", "update project…
Об этом скилле
Update Rules and Configuration
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.
When to Use
- After plugin templates have been updated with new rules or improvements
- When adding a rule file introduced after initial project setup
- When checking if project rules are current with latest best practices
- When checking existing project rules against newer templates. For installing
or updating user-level instructions across Claude, Codex, Copilot, or Cursor,
use
install-user-instructionsinstead. - When a user wants to know what changed in the templates since they last synced
Two Operating Levels
Project Level (/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 exampleserena_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 templatememory/README.mdandmemory/INDEX.mdagainst 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.- Any other Markdown files are project observations; preserve them completely and never replace them with a template.
AGENTS.mdsection 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:
- Template
rules/*.mdvs.rules/*.md - Template
memory/*.mdvs./.memory/*.md, while preserving project fact files - Template
AGENTS.mdsections vs./AGENTS.mdsections (script emitsPROJECT_SECTION_SOURCE=agents|claudeso a CLAUDE.md fallback is never silently treated as AGENTS.md) - The CLAUDE.md adapter check is performed as an LLM read step (verify it begins with
@AGENTS.mdand contains only Claude-specific additions), not part of the script output
- Template
User Level (/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.
Comparison Workflow
Step 1: Run Comparison Script
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.
Step 2: Read and Analyze
For project level:
- Read each
RULE_CHANGEDfile from both template and project to understand the differences - Read AGENTS.md from both sources to compare sections
- Read CLAUDE.md to verify it imports AGENTS.md with
@AGENTS.mdand contains only Claude-specific additions - Run
diff --unified "<project-plugin-root>/templates/claude/rules/<file>" ".rules/<file>"for each changed rule - Read each missing or changed memory template and run
diff --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.
Step 3: Present Update Plan
Present a numbered list of proposed changes. Each chan
Установить update-rules в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл update-rules?
This skill should be used when the user asks to "update rules", "sync rules", "update AGENTS.md", "update CLAUDE.md", "refresh rules", "update project config", "sync templates", "update vibe rules", "check for rule updates", "update user rules", "update global config", "refresh AGENTS.md", "refresh CLAUDE.md", "sync .rules directory", "what's new in templates", or wants to update existing agent/rules configuration from the latest templates without overwriting customizations.
Как установить скилл update-rules?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл update-rules запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic