evaluate-context-engineering
БесплатноЗапускает вложенные скриптыНе проверенContext-engineering audit (C1-C6) of skills and always-loaded rules. Use when trimming context bloat, auditing a plugin, or after a new Claude model ships.
от laurigates★ 61 звезда на GitHubОб этом скилле
/evaluate:context-engineering
Audit a plugin, a single skill, or the always-loaded surface against the six context-engineering shifts Anthropic named for Claude 5 generation models, and report a C1–C6 card.
Two channels, deliberately kept apart:
| Channel | What it is | Cost |
|---|---|---|
| M — mechanical | check-context-engineering.py, deterministic proxies over the tree |
free |
| J — judgment | an isolated agent scoring the frozen 1–5 rubric with quoted evidence | one subagent, --judge only |
Channel M ranks candidates; it cannot tell a load-bearing safety constraint from a restatement of a model default. Channel J makes that call. Never blend the two into one score — a mechanical proxy and a judgment answer different questions, and averaging them hides which one is driving a recommendation.
When to Use This Skill
| Use this skill when... | Use alternative when... |
|---|---|
| Auditing whether a skill or rule is written for the old context rules | Checking structure/frontmatter/size lint → scripts/plugin-compliance-check.sh |
| A new Claude model shipped and the corpus needs re-reading | Measuring whether a skill still works → /evaluate:matrix |
Deciding what to cut from CLAUDE.md and .claude/rules/ |
Actually migrating rules into skills → agent-patterns-plugin:meta-context-diet |
| You want ranked, evidence-backed cut candidates | Checking a skill reads clearly to a fresh agent → /evaluate:legibility |
The six dimensions
| Dim | Shift | What the scanner measures |
|---|---|---|
| C1 | rules → judgment | Constraint markers per 1k chars, and how many sit next to a safety/irreversibility word |
| C2 | examples → interface design | Fenced-block share of the body; whether args enumerates its alternatives |
| C3 | upfront → progressive disclosure | Body size vs supporting files; disclosure levels (body → references → scripts) |
| C4 | repetition → single source of truth | 8-word shingle overlap between skills, rules, and CLAUDE.md |
| C5 | (the >80% claim) | Always-loaded chars: CLAUDE.md + rules with no paths: scope; plus a per-rule size ceiling that applies to every rule, scoped or not |
| C6 | simple specs → rich references | Multi-line shell blocks with no bundled script |
Context
- Repo root: !
git rev-parse --show-toplevel - Plugins present: !
find . -maxdepth 2 -name plugin.json -path '*/.claude-plugin/*' - Always-loaded rules: !
find . -maxdepth 3 -path '*/.claude/rules/*.md'
Parameters
Parse $ARGUMENTS:
| Parameter | Default | Description |
|---|---|---|
plugin |
whole repo | Scope to one plugin directory, e.g. git-plugin |
plugin/skill |
— | Scope to one skill, e.g. git-plugin/skills/git-commit |
--always-loaded |
off | Score only CLAUDE.md and the unscoped rules |
--judge |
off | Also run Channel J on the target (one subagent per unit, max 3 units) |
--budget N |
100000 | Always-loaded char budget for the C5 ratchet |
Execution
Execute this audit:
Step 1: Run Channel M
python3 "${CLAUDE_SKILL_DIR}/scripts/check-context-engineering.py" --top 10
Add --target <plugin-or-skill-path> when the user scoped the run, and
--always-loaded-budget <N> when they passed --budget.
When the user asks about the cost of a session that loads several repos
(a portfolio checkout, sibling repos open together), add one --also <repo>
per extra root plus --portfolio-budget <N>. Only the C5 surface is summed;
C1–C4 and C6 stay scoped to --project-dir, since they measure authoring
quality inside one marketplace. --also and --target are mutually exclusive.
Read the KEY=VALUE block. STATUS=ERROR means one of two things: an
always-loaded surface is over budget — the primary repo's, or the portfolio's
(C5_PORTFOLIO_*, with a per-repo C5_PORTFOLIO_BREAKDOWN) — or a single rule
is over the per-rule ceiling (TYPE=rule_over_size_ceiling,
C5_RULES_OVER_CEILING, --rule-size-ceiling, default 50000). The ceiling
exists because the budget sums unscoped rules only, while a path-scoped rule
still loads whole into every agent that touches a matching path; a 513 KB
scoped rule once pushed a haiku subagent past its window unseen (#2667). ERRORs
are always listed first, so --max-issues never hides the reason. Every other
finding is a WARN candidate, not a verdict.
Step 2: Report the C1–C6 card
Render one row per dimension: the measured value, the count of flagged units,
and the top offender. State the totals for C5_ALWAYS_LOADED_EST_TOKENS and
SKILL_BODY_EST_TOKENS separately — they have different cost models and must
not be summed.
Rank findings by always-loaded cost × frequency, never by raw size. An
always-loaded rule costs on every turn; a skill body costs only when the skill
fires; a references/ file or script costs only when read or run. A large skill
body is a smaller prob
Установить evaluate-context-engineering в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(python3 *)Bash(bash *)ReadGlobGrepTaskTodoWriteВложенные файлы
FAQ
Что делает скилл evaluate-context-engineering?
Context-engineering audit (C1-C6) of skills and always-loaded rules. Use when trimming context bloat, auditing a plugin, or after a new Claude model ships.
Как установить скилл evaluate-context-engineering?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл evaluate-context-engineering запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set 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…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic