text-optimize
Installation
SKILL.md
Text & File Optimizer
Prompt contract
$ARGUMENTS is one free-form RU/EN prompt; depth flags and paths may sit anywhere in it. The depth flags are the Modes below.
- Mode: an explicit flag (
-l,-s,-d,-x,--light,--standard,--deep,--max) wins without scoring; else the most distinct whole-word hits from Modes/Context Hints, ties use the earliest keyword. No hit ->mediumbefore Smart Auto-Detection; empty ->mediumor per-file auto-detection. Max is opt-in: explicit-x/--maxor maximum/extreme compress hint only. - Scope: take paths from the remaining prose; never treat sentence-first words as positional paths. Fired by Claude mid-task (
Skilltool),argsis the prompt and names the target path(s): empty there stops with "no target", never the ALL set an empty user-typed prompt selects.--allow-dirtyin the prompt is the explicit authorization Phase 0 needs for uncommitted targets. - Ask: ambiguity -> ONE scoping
AskUserQuestion; unanswered or headless ->mediumon the named targets only, nothing blocks.
Print once, after resolving mode/targets and before Phase 1 Analysis (labels literal, INPUT verbatim, authored values follow the active work-artifact language policy, otherwise conversation language). SCOPE MUST name resolved target paths and depth: