CtrlK
BlogDocsLog inGet started
Tessl Logo

strategic-compact

建议在逻辑间隔处手动压缩上下文,以在任务阶段中保留上下文,而非任意的自动压缩。

50

Quality

55%

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

Fix and improve this skill with Tessl

tessl review fix ./docs/zh-CN/skills/strategic-compact/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

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

The strategic-compaction core is well-crafted: actionable hook configuration, concrete thresholds, and excellent decision tables on when to compact and what survives. Its weaknesses are the large off-topic "token optimization patterns" section that dilutes the skill's single purpose, and references to script/hook files that are not actually present in the bundle, leaving the manual-install path non-executable end-to-end.

Suggestions

Remove or relocate the "令牌优化模式" section (trigger tables, context composition, MCP tools) — it describes other skills' concerns, not this skill's purpose, and adds ~25% token overhead.

Ship `suggest-compact.js`, `hooks/hooks.json`, and `install.sh` in the bundle (or reference their authoritative source) so the referenced hook actually resolves for manual installers.

Add a brief verification step after hook setup (e.g., how to confirm the PreToolUse hook fires and `COMPACT_THRESHOLD` is respected) to close the workflow's feedback loop.

DimensionReasoningScore

Conciseness

The core compaction sections (decision table, what-is-preserved table, best practices, hook setup) are lean and dense, but the entire "令牌优化模式" section (~35 lines: trigger-table lazy loading, context composition awareness, duplicate instruction detection, MCP optimization tools) is off-scope padding unrelated to strategic compaction, and the "相关" section links to an unverifiable external post. This fits "mostly efficient but includes some unnecessary explanation," though the padding is substantial enough to keep it well below 4.

3 / 5

Actionability

The manual-install hook configuration is copy-paste-ready JSON, the plugin path explicitly warns against double registration, and `COMPACT_THRESHOLD` plus the 50-call/25-call defaults are concrete. It is not 5 because `suggest-compact.js`, `hooks/hooks.json`, and `install.sh` are referenced but not present in any bundle directory, so a manual installer cannot actually obtain the script from this skill.

4 / 5

Workflow Clarity

Setup flow is clearly branched (plugin vs. manual install) with an explicit warning about duplicate registration, the script's operating sequence is enumerated (track calls → threshold detection → periodic reminders), and the phase-transition decision table serves as an effective checklist. It misses 5 because there is no explicit validation/feedback loop (e.g., how to verify the hook fired or the threshold was picked up).

4 / 5

Progressive Disclosure

The body is organized into clearly headed sections, but no bundle files exist (no references/, scripts/, or assets/) while the body references `suggest-compact.js`, `hooks/hooks.json`, and `install.sh` as if they shipped alongside — references that are neither resolvable nor clearly signaled as external. Additionally, the token-optimization material is inlined content that belongs in a separate reference or a different skill, fitting the anchor for "some structure but could be better organized; references present but not clearly signaled."

3 / 5

Total

14

/

20

Passed

Description

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

The description states a clear, specific behavior in third person, but it functions as a one-sentence mission statement rather than an activation surface: it answers "what" well while providing no explicit "when" guidance and no natural trigger terms a user would say. Adding a "Use when..." clause with trigger phrases (long sessions, approaching the context limit, switching tasks, /compact) would lift it substantially.

Suggestions

Add an explicit activation clause, e.g. "Use when running long sessions near the context limit, working through multi-stage tasks, or switching between unrelated tasks."

Include natural trigger terms users would actually say — "/compact", "context limit", "long session", "out of context" — so the skill matches real requests.

Enumerate the concrete capabilities (when-to-compact decision table, compaction threshold hook, what is preserved vs. lost) so the description previews what the skill offers.

DimensionReasoningScore

Specificity

The description names the domain (context compaction) and one concrete action — "建议在逻辑间隔处手动压缩上下文" — with a rationale (preserving context across task phases vs. arbitrary auto-compaction). It matches the anchor for 1-2 concrete actions without comprehensive coverage, and lacks the several specific actions needed for 4.

3 / 5

Completeness

There is a clear "what" (suggest manual compaction at logical boundaries instead of arbitrary auto-compaction) but no "when" clause or equivalent explicit trigger guidance, which caps completeness at 3 per the judging guidelines. It is above 2 because the "what" is concrete and unambiguous, but below 4 because activation conditions must be inferred.

3 / 5

Trigger Term Quality

Only generic/domain terms appear ("压缩上下文", "自动压缩", "逻辑间隔"); the natural phrases a user would actually say — "/compact", "context limit", "long session", "approaching the limit" — are absent. It has domain keywords but misses the common variations, fitting the anchor for missing natural phrases.

2 / 5

Distinctiveness Conflict Risk

The niche is clear — manual compaction at logical task boundaries, explicitly contrasted with auto-compaction — so overlap risk with other skills is minor. It falls short of 5 because no concrete trigger phrases are given to fully distinguish when this skill (vs. a generic context-management skill) should activate.

4 / 5

Total

12

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

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

Warning

Total

15

/

16

Passed

Repository
affaan-m/ECC
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.