mkcontext-audit

Solid

Read-only audit of `.claude/` structural overhead. Reports prioritized "remove X save Y tokens" recommendations against the model context window. NOT for monetary cost tracking — that's /mk:budget. NOT for transcript size monitoring — long-session continuity defers to Claude Code native compaction. NOT for runtime context decisions (what to read, when to compact) — see mk:context-engineering. Use when planning to add context capacity, diagnosing perceived slowdowns, or auditing health.

AI & Automation 14 stars 2 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
39
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /mk:context-audit — Context Window Structural Audit Read-only audit of `.claude/` structural overhead. Surfaces what is loaded into every host-runtime session and how much of the context window it consumes, then recommends the highest-leverage trims. Complementary lens: `mewkit inventory --substrate` shows the same artifact set grouped by the responsibility each serves (covered / partial / missing), so a trim can be checked against responsibility coverage before removing an artifact. The per-phase read budget that bounds what an audit-driven session should load lives in `rules/context-budget-rules.md`. ## When to Use Three concrete triggers: 1. **Pre-add capacity check** — before adding a new agent, skill, or rule file, confirm the project is below the 25% structural-overhead threshold. 2. **Post-degradation diagnostic** — when sessions feel slow, off-topic, or over-compacted, audit to see if structural overhead has grown past 10%. 3. **Periodic health audit** — quarterly or on model upgrades, confirm the always-on bundle still pays its keep (paired with the dead-weight audit in `harness-rules.md` Rule 7). ## Context vs Cost (Boundary) | Concern | Mechanism | Unit | | ------------------------------- | -------------------------------------------------------- | ------------- | | Monetary cost | `/mk:budget` + `../autobuild/scripts/budget-tracker.sh` | USD ...

Details

Author
ngocsangyem
Repository
ngocsangyem/MeowKit
Created
5 months ago
Last Updated
1 months ago
Language
TypeScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category