Skip to content
Back to skills

Meta Validate Context

ASecurity

Use when auditing the freshness of `.claude/rules/subsystem-*.md` files against current codebase state, or when a subsystem has undergone significant change.

  • 17 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 25, 2026
ai-agentsgobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add grimoire-rs/grimoire --skill meta-validate-context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Meta Validate Context?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Meta Validate Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/grimoire-rs-meta-validate-context/badge)](https://www.skillsdirectory.com/skills/grimoire-rs-meta-validate-context)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: meta-validate-context
description: Use when auditing the freshness of `.claude/rules/subsystem-*.md` files against current codebase state, or when a subsystem has undergone significant change.
user-invocable: true
argument-hint: "all | subsystem-name"
triggers:
  - "validate context"
  - "audit subsystem rules"
  - "check subsystem rules"
  - "freshness of rules"
---

# 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-cli.md` | CLI context struct, command enum variants, output trait |
| `subsystem-cli-api.md` | Report data types, output trait conventions |
| `subsystem-cli-commands.md` | Documented command surface vs implemented commands |
| `subsystem-file-structure.md` (+ its parts: `subsystem-install-layout-*.md`, `subsystem-vendor-paths.md`, `subsystem-client-detection.md`, `subsystem-install-state.md`, `subsystem-path-anchors.md`) | Storage layout, data-root constraints; install layout, anchors and state in the parts |
| `subsystem-tests.md` | Fixture names in conftest.py, test file names, runner methods, helper params |

Subsystem rules are provisional placeholders while the implementation is
scaffolded — verify against current `src/` as code lands.

## Verification Commands

```bash
# Check if a type still exists
grep -r "pub struct TypeName" src/
grep -r "pub enum TypeName" src/

# Check if a module still exists
ls src/module_name/

# Check for new public types not in the rule
grep -rn "^pub struct\|^pub enum\|^pub trait" src/ | grep -v test
```

## Output Format

```markdown
## Context Validation Report

### subsystem-cli.md
- OK: [type] still present
- STALE: [type] — renamed to [new_name] or removed
- MISSING: [new_type] — not documented in rule

### subsystem-file-structure.md and its parts
...
```

## When to Run

- After big refactors
- Before major feature branches
- Part of `/code-check` audits
- Monthly

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.