meta-validate-context
Use when auditing the freshness of `.claude/rules/subsystem-*.md` files against current codebase state, or when a subsystem has undergone significant change.
от ocx-sh★ 20 звёзд на GitHub
Установить meta-validate-context в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Validate Context Rules
Check .claude/rules/subsystem-*.md files match current codebase.
Workflow
For each subsystem-*.md rule file:
- Read the rule — Extract type names, module paths, function names, error variants
- Grep the codebase — Verify each reference exists
- Check for new additions — Find new public types/modules not in rule
- Report — List stale references + missing additions
Subsystem Rules to Check
| Rule | Key References to Verify |
|---|---|
subsystem-oci.md |
IndexImpl, SelectResult, RemoteIndex, LocalIndex, Identifier, Digest, Platform, Client |
subsystem-file-structure.md |
FileStructure, ObjectStore, ObjectDir, IndexStore, InstallStore, SymlinkKind, TempStore, ReferenceManager |
subsystem-package.md |
Metadata, Bundle, Env, Var, Modifier, Exporter, BundleBuilder, Version, Tag |
subsystem-package-manager.md |
PackageManager, PackageError, PackageErrorKind variants (NotFound, SelectionAmbiguous, etc.), task method names |
subsystem-cli.md |
Context, Command enum variants, Printable trait, Api struct |
subsystem-tests.md |
Fixture names in conftest.py, test file names, OcxRunner methods, make_package params |
subsystem-website.md |
component imports in src/content/docs, astro.config.mjs (sidebar, plugins), task commands, generated content paths |
Verification Commands
# Check if a type still exists
grep -r "pub struct TypeName" crates/
grep -r "pub enum TypeName" crates/
# Check if a module still exists
ls crates/ocx_<crate>/src/module_name/
# Check for new public types not in the rule
grep -rn "^pub struct\|^pub enum\|^pub trait" crates/ocx_<crate>/src/subsystem/ | grep -v test
Output Format
## Context Validation Report
### subsystem-oci.md
- OK: IndexImpl, SelectResult, RemoteIndex, ...
- STALE: [type] — renamed to [new_name] or removed
- MISSING: [new_type] — not documented in rule
### subsystem-file-structure.md
...
When to Run
- After big refactors
- Before major feature branches
- Part of
/code-checkaudits - Monthly
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл meta-validate-context?
Use when auditing the freshness of `.claude/rules/subsystem-*.md` files against current codebase state, or when a subsystem has undergone significant change.
Как установить скилл meta-validate-context?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл meta-validate-context запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet 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…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…