Command Palette

Search for a command to run...

Back to skills
skill № 84087

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.

FreeNo executable scripts
ocx-shby 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
Sign up freeI already have an account

About this skill

Validate Context Rules

Check .claude/rules/subsystem-*.md files match current codebase.

Workflow

For each subsystem-*.md rule file:

  1. Read the rule — Extract type names, module paths, function names, error variants
  2. Grep the codebase — Verify each reference exists
  3. Check for new additions — Find new public types/modules not in rule
  4. 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-check audits
  • 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

Compare meta-validate-context with