CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

optimize-claude-md

Audits CLAUDE.md files and `.claude/rules/` for context bloat and emits ranked fixes — trim inventory entries, extract sections, flag rarely-used skills for slash-only. Invoke with /optimize-claude-md [audit|trim|extract] for "CLAUDE.md is too big" or the large-CLAUDE.md warning.

Quality

86%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

77%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-architected, terse slash-command index with an explicit phased workflow, strong validation checkpoints, and genuine load-on-demand discipline. Its main weaknesses are minor redundancy between the Workflow and Required Reading tables and — more seriously — that nearly all referenced rule files are missing from the bundle, leaving the skill's core mechanics unreachable.

Suggestions

Include the seven missing rules/*.md files (hard-rules, measurement, classification, invocation-review, audit-mode, trim-mode, extract-mode) in the bundle, or inline the critical gates (e.g. the preservation invariant) so the workflow is executable without them.

Merge the 'Workflow' and 'Required Reading by Phase' tables into a single table (Phase | Name | Rule file | Gate) and drop the repeated 'load on demand' admonitions to remove the duplication.

Reduce reliance on cross-skill paths (../create-skill/rules/invocation-control.md, ../docs/SKILL.md) by summarizing the invocation-conversion criteria inline, since those files are outside this skill's control and may not exist in the user's installation.

DimensionReasoningScore

Conciseness

The body is lean and assumes Claude's competence (no basic-concept explanations, terse tables and one-liners), but the Workflow table and the 'Required Reading by Phase' table duplicate the same phase-to-file mapping, and 'load on demand — do not preload' is stated three times (blockquote, workflow section, required-reading header). Not 5: these redundant passages could be trimmed; not 3: everything else earns its tokens.

4 / 5

Actionability

Concrete, executable directives throughout: exact '$ARGUMENTS' parsing rules, a mode table with explicit trigger keywords, a required one-line output format ('Mode: audit / Target: /abs/path/to/CLAUDE.md (43,012 chars / ~10,750 tokens)'), per-phase gates, and a Definition of Done checklist. Not 5: the actual report format and trim/extract mechanics are deferred to rules/ files that are not present in the bundle, so an agent could not fully execute from what is written.

4 / 5

Workflow Clarity

The five phases (0-4) are explicitly sequenced with named gates, a preflight refusal rule ('< 10k chars'), user approval before any diff is applied, a Phase 4 verification gate ('Before/after metrics shown; no content lost in trim or extract'), an abort-and-ask fallback ('Never delete silently'), and a completion checklist — explicit validation steps plus feedback loops, matching the top anchor. The destructive/batch cap does not apply since validation is present.

5 / 5

Progressive Disclosure

The design is exemplary — a self-declared 'thin index' with one-level-deep, clearly signaled, per-phase load-on-demand references — but scored against the actual bundle structure, seven of the eight referenced local files (all rules/*.md: hard-rules, measurement, classification, invocation-review, audit-mode, trim-mode, extract-mode) do not exist in the bundle; only references/bloat-patterns.md is present. Not 4: the referenced navigation does not resolve in the provided bundle; not 2: the structure that is present (including bloat-patterns.md, itself one level deep) is well organized.

3 / 5

Total

16

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description in third person that states concrete capabilities and pairs them with an explicit invocation clause and concrete trigger phrases. Its only weakness is modest synonym coverage of the natural phrases users might use to request it.

DimensionReasoningScore

Specificity

'Audits CLAUDE.md files and `.claude/rules/` for context bloat and emits ranked fixes — trim inventory entries, extract sections, flag rarely-used skills for slash-only' lists multiple concrete actions covering all three modes (audit/trim/extract) plus the slash-conversion lever — comprehensive coverage. Not 4: there are no meaningful gaps in what the skill does.

5 / 5

Completeness

Both halves are explicit: the 'what' ('Audits CLAUDE.md files ... emits ranked fixes — trim inventory entries, extract sections, flag rarely-used skills for slash-only') and a concrete 'when' clause ('Invoke with /optimize-claude-md [audit|trim|extract] for "CLAUDE.md is too big" or the large-CLAUDE.md warning'). Not 4: the 'when' is explicit with concrete trigger phrases, not merely implied.

5 / 5

Trigger Term Quality

Good natural-phrase coverage: 'CLAUDE.md is too big', the literal 'large-CLAUDE.md warning' string, 'trim', 'audit', 'extract', and 'context bloat'. Not 5: common synonyms a user would naturally say — 'shrink', 'reduce', 'too long' — appear only in the body, not the description.

4 / 5

Distinctiveness Conflict Risk

A clear niche — recurring token cost of CLAUDE.md and .claude/rules/ context bloat — with triggers (the size warning, 'CLAUDE.md is too big') that no other plausible skill would claim; minimal conflict risk. Not 4: the domain and triggers are sharply scoped rather than broadly overlapping.

5 / 5

Total

19

/

20

Passed

Validation

81%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 13 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_field

'metadata' should map string keys to string values

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

relative_links

Relative link issues: 18 missing, 2 suspicious

Warning

Total

13

/

16

Passed

Repository

mthines/agent-skills

Path

skills/authoring/optimize-claude-md/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.