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.
by ocx-sh★ 20 GitHub stars
Install meta-validate-context in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
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
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the meta-validate-context skill do?
Use when auditing the freshness of `.claude/rules/subsystem-*.md` files against current codebase state, or when a subsystem has undergone significant change.
How do I install the meta-validate-context skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the meta-validate-context skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
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…