meta-maintain-config
Use when creating or editing skills, rules, agents, or hooks under `.claude/`. Also when AI knowledge has drifted from project patterns, a new Claude Code…
от ocx-sh★ 20 звёзд на GitHub
Установить meta-maintain-config в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
AI Configuration Maintenance
Keep .claude/ directory living knowledge base. Stay current with project + AI tooling best practices.
Read .claude/rules/meta-ai-config.md first — defines conventions, budget constraints, anti-patterns this skill enforces.
Modes
create — New Artifact
Discover + Research — Invoke canonical multi-agent research primitive from
/swarm-plan(Phases 1-2). Spawn workers parallel:worker-explorer(1-2): existing.claude/patterns, conventions, cross-references, neighbors of artifactworker-researcher(1-3, split by axis): Claude Code docs (code.claude.com/docs), domain best practices, community patterns for artifact topic
Persist substantial findings as
.claude/artifacts/research_[topic].mdfor reuse. See/swarm-plan"Research as a Reusable Primitive".Draft — Follow
meta-ai-config.mdconventions:- Respect context budget (<200 lines rules, <500 lines skills)
- Use
paths:scoping for rules unless truly global - Skills: write description as "what + when to use" (max 1024 chars)
- Use progressive disclosure — SKILL.md overview, reference files for detail
- Add
disable-model-invocation: truefor action skills with side effects
Integrate — Update CLAUDE.md tables, meta-rule inventory
Validate — Run audit checks (see below)
audit — Check All Artifacts
Context budget audit:
- CLAUDE.md under 200 lines?
- Each global rule under 200 lines?
- Count global rules — too many degrades performance
- Skill descriptions total within 2% context budget?
Structural audit:
- Every SKILL.md has
name+description? - No
allowed-toolsin skill frontmatter? - All persona skills have
user-invocable: true? - Hook scripts executable?
Dead glob audit:
- For each scoped rule, do
paths:patterns match existing files? - After directory renames, glob patterns silently fail — verify with:
find . -path "pattern" | head -1
Cross-reference audit:
- Rules referencing other rules → targets exist?
- Skills referencing rules → correct filenames?
- Agents referencing rules → still valid?
Duplication audit:
- Same instruction in CLAUDE.md AND rule? (single source of truth)
- Same domain knowledge in skill AND rule? (skill for on-demand, rule for always-on)
refresh — Sync AI Knowledge with Codebase
Detect drift — Spawn
worker-exploreragents:- Public types in
subsystem-*.mdstill exist in code? - New modules/crates lacking subsystem rules?
- Error variants, trait names, method signatures still match?
- CLI commands changed (new flags, subcommands)?
deny.toml/.licenserc.tomlchanged?
- Public types in
Research updates — Spawn
worker-researcher:- Claude Code docs for new features (hooks, frontmatter, agents)
- New best practices in Rust, async, testing, security
- Check if
meta-ai-config.mdneeds updating
Update stale artifacts — Read current code, update with accurate info, preserve structure
Self-update — Check if this skill (
meta-maintain-config) ormeta-ai-config.mdoutdated per research findings. Update them too.Validate — Run
auditmode
review — AI Config Quality Review
Review recent changes to .claude/ for quality:
- Context budget — Change increase always-loaded context? Justified?
- Scoping — Could this global rule be path-scoped instead?
- Progressive disclosure — SKILL.md body under 500 lines? Move details to reference files?
- Description quality — Skill description specific enough for auto-discovery?
- Anti-patterns — Check against 8 anti-patterns in
meta-ai-config.md - Consistency — Change follow existing artifact conventions?
- Reusability — Hook more appropriate than rule? (deterministic + zero context cost)
catalog-sync — Catalog Drift Review
When auditing AI config, verify .claude/rules.md reflects reality:
- Every rule in
.claude/rules/*.mdhas entry in.claude/rules.md - Every catalog entry resolves to real file
CLAUDE.mdstill links to catalog- "By concern" table reflects current development axes (add rows for new concerns; remove for retired)
- "By auto-load path" table matches actual
paths:frontmatter in each rule file
Run task claude:tests — structural tests catch most drift automatically (test_catalog_covers_all_rules, test_catalog_references_resolve, test_claude_md_points_to_catalog). Manual review catches semantic drift (e.g., new concern worth catalog row even if no test complains).
research — Deep-Dive Topic
Invoke canonical multi-agent research primitive from /swarm-plan (Phases 1-2). No reinvent.
- Spawn workers parallel — per
/swarm-planPhase 2 axis-splitting:worker-researcher× 2-3, split by axis:- Tooling axis — Claude Code / AI tooling best practices
- Domain axis — Rust patterns, OCI spec, cargo-deny, etc.
- Community axis — how other project
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл meta-maintain-config?
Use when creating or editing skills, rules, agents, or hooks under `.claude/`. Also when AI knowledge has drifted from project patterns, a new Claude Code feature lands, or syncing artifacts to current state.
Как установить скилл meta-maintain-config?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл meta-maintain-config запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…