CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

text-optimize

Optimizes text, docs and LLM prompts (AGENTS.md, rules, agent/skill files) for token efficiency in place, snapshot-backed, without losing facts. Use when asked to optimize, compress or cut tokens of named files. Triggers - optimize, reduce tokens, compress, deep compress, сожми, оптимизируй.

Quality

88%

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

88%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.

An exceptionally rigorous, execution-ready orchestration skill: every phase has concrete commands, exit-code semantics, independent verification, and recovery paths, and all referenced bundle files exist. The remaining weaknesses are internal redundancy (gate budgets and dedup rules restated in several sections) and a still-long body that inlines per-mode detail which belongs in its references.

Suggestions

Consolidate the repeatedly stated gate/budget numbers (>=98%, >=95%, 100% sub-gate) and dedup rule sets into one authoritative table, and have the per-mode pipelines, Mode-to-Rules mapping, and Iron Rules reference it instead of restating it.

Remove the duplicate H1 ('# Text & File Optimizer') and merge the 'Complete native workflow' intro with 'Phased Execution' so the file has a single overview and one phase-numbering context.

Move the Deep/Max/Standard pipeline internals into the corresponding references/*-compression.md files, keeping SKILL.md orchestration-only, and either reference scripts/test-optimize.sh in the body or remove it from the bundle.

DimensionReasoningScore

Conciseness

The body explains nothing Claude already knows and is maximally compressed ("Every `text-guard.sh` call is ONE command of its fence shape: unquoted script path, each value single-quoted, no `cd`, `VAR=`, `;`, `&&`, `|` or `$(…)`"), but gate percentages (>=98%, >=95%, 100% sub-gate) and dedup/mode rules repeat across the Modes table, Loss Budget table, Mode-to-Rules mapping, per-mode pipelines, and Iron Rules, and two H1 headings ("# Optimize text for tokens" / "# Text & File Optimizer") create overlapping intros. Efficient with minor trims available — matches anchor 4, not the 'every token earns its place' of 5.

4 / 5

Actionability

Fully concrete, executable guidance: exact command shapes with exit-code semantics ("bash <skill-directory>/scripts/text-guard.sh snapshot '<file>'...", "verify --no-restore --run-dir '<RUN_DIR>'", exits 0/1/2 each with a defined response), copy-paste spawn briefs carrying all six labeled fields (GOAL/ROLE/SCOPE/CONTEXT/CONSUMER/DONE), a literal PLAN block template, a 10-row usage-examples table, and a report template naming the measurement commands (`wc -w`/`wc -c`/`wc -m`). Placeholders like <skill-directory> have explicit resolution instructions, so examples cover the common cases.

5 / 5

Workflow Clarity

Explicitly sequenced Phase 0-3 with MANDATORY labels, STOP conditions, and per-exit-code handling, plus exceptional validation for a destructive in-place batch operation: mechanical sub-gate, independent per-file semantic verifier ("the writer never accepts itself"), patch-and-re-verify loops, a refusal-not-warning rule ("The 100% semantic sub-gate is a REFUSAL, not a warning"), and Safe recovery with ownership-proof checkpoints and RESTORE_REFUSED semantics. The per-mode pipeline phase numbering is explicitly reconciled with orchestration phases ("independent acceptance is the skill's Phase 3"), so no real ambiguity remains.

5 / 5

Progressive Disclosure

References are one level deep, all real (references/rules-review.md, standard-compression.md, deep-compression.md, max-compression.md, and scripts/text-guard.sh all exist in the bundle), and clearly signaled — Step 0 marks rules-review.md as REQUIRED with a hard stop, and the Mode-to-Rules table maps each mode to its compression reference. Not 5: the ~320-line body still inlines per-mode pipeline and dedup-pass detail that could live in the mode references, carries a duplicate H1, and never mentions the bundled scripts/test-optimize.sh; not 3 because the split between orchestration and technique tables is appropriate and navigation is easy.

4 / 5

Total

18

/

20

Passed

Description

83%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: third-person, concrete, with an explicit 'Use when...' clause and a bilingual (EN/RU) trigger list of natural user phrasings. Its only gaps are a single-capability action list and a few missing common synonyms such as 'shorten' or 'trim'.

DimensionReasoningScore

Specificity

"Optimizes text, docs and LLM prompts (AGENTS.md, rules, agent/skill files) for token efficiency in place, snapshot-backed, without losing facts" names a narrow domain plus several concrete operational properties (in-place mutation, snapshot backing, fact preservation). Not 5 because it describes one capability family rather than multiple distinct actions; not 3 because the operational detail clearly exceeds the '1-2 concrete actions' anchor.

4 / 5

Completeness

Both halves are explicit: what — "Optimizes text, docs and LLM prompts ... for token efficiency in place, snapshot-backed, without losing facts"; when — "Use when asked to optimize, compress or cut tokens of named files" reinforced by a concrete trigger list. This directly matches the 5 anchor (clear what AND when with concrete trigger phrases).

5 / 5

Trigger Term Quality

The trigger list — "optimize, reduce tokens, compress, deep compress" plus "Use when asked to optimize, compress or cut tokens" and Russian "сожми, оптимизируй" — gives good natural-phrase coverage matching what a user would actually say. Not 5 because common synonyms like 'shorten', 'trim', 'slim', or 'minify' are absent; not 3 because coverage goes well beyond 'some relevant keywords'.

4 / 5

Distinctiveness Conflict Risk

The niche is clear — token-efficiency compression of AGENTS.md/rules/agent/skill files — with triggers unlikely to fire for unrelated skills. Not 5 because the generic word "compress" carries minor overlap risk with archive/compression (zip/gzip) skills and "optimize" with code-optimization skills; far above the 2-3 anchors given the narrow scoped targets.

4 / 5

Total

17

/

20

Passed

Validation

100%

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

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

kochetkov-ma/claude-brewcode

Path

.codex/plugins/brewtools/skills/text-optimize/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.