@skilly-hand/skilly-hand 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +23 -0
  3. package/README.md +107 -0
  4. package/catalog/README.md +30 -0
  5. package/catalog/catalog-index.json +6 -0
  6. package/catalog/skills/agents-root-orchestrator/SKILL.md +135 -0
  7. package/catalog/skills/agents-root-orchestrator/assets/AGENTS-ROOT-TEMPLATE.md +67 -0
  8. package/catalog/skills/agents-root-orchestrator/manifest.json +34 -0
  9. package/catalog/skills/skill-creator/SKILL.md +176 -0
  10. package/catalog/skills/skill-creator/assets/SKILL-TEMPLATE.md +94 -0
  11. package/catalog/skills/skill-creator/manifest.json +36 -0
  12. package/catalog/skills/spec-driven-development/SKILL.md +168 -0
  13. package/catalog/skills/spec-driven-development/agents/apply.md +26 -0
  14. package/catalog/skills/spec-driven-development/agents/orchestrate.md +25 -0
  15. package/catalog/skills/spec-driven-development/agents/plan.md +27 -0
  16. package/catalog/skills/spec-driven-development/agents/verify.md +24 -0
  17. package/catalog/skills/spec-driven-development/assets/delta-spec-template.md +51 -0
  18. package/catalog/skills/spec-driven-development/assets/design-template.md +31 -0
  19. package/catalog/skills/spec-driven-development/assets/spec-template.md +56 -0
  20. package/catalog/skills/spec-driven-development/assets/validation-checklist.md +32 -0
  21. package/catalog/skills/spec-driven-development/manifest.json +41 -0
  22. package/catalog/skills/token-optimizer/SKILL.md +141 -0
  23. package/catalog/skills/token-optimizer/manifest.json +33 -0
  24. package/catalog/skills/token-optimizer/references/complexity-indicators.md +138 -0
  25. package/catalog/templates/AGENTS.template.md +37 -0
  26. package/package.json +41 -0
  27. package/packages/catalog/package.json +6 -0
  28. package/packages/catalog/src/index.js +223 -0
  29. package/packages/cli/package.json +9 -0
  30. package/packages/cli/src/bin.js +144 -0
  31. package/packages/core/package.json +6 -0
  32. package/packages/core/src/index.js +304 -0
  33. package/packages/detectors/package.json +6 -0
  34. package/packages/detectors/src/index.js +169 -0
@@ -0,0 +1,36 @@
1
+ {
2
+ "id": "skill-creator",
3
+ "title": "Skill Creator",
4
+ "description": "Create and standardize AI skills with reusable structure, metadata rules, and templates.",
5
+ "portable": true,
6
+ "tags": ["core", "workflow", "authoring"],
7
+ "detectors": ["always"],
8
+ "detectionTriggers": ["always"],
9
+ "installsFor": ["all"],
10
+ "agentSupport": ["codex", "claude", "cursor", "gemini", "copilot"],
11
+ "skillMetadata": {
12
+ "author": "skilly-hand",
13
+ "last-edit": "2026-03-27",
14
+ "license": "Apache-2.0",
15
+ "version": "1.2.3",
16
+ "changelog": "Metadata updated to ensure compliance with current standards; maintains skill integrity and version tracking; affects metadata section",
17
+ "auto-invoke": "Creating a new skill",
18
+ "allowed-tools": [
19
+ "Read",
20
+ "Edit",
21
+ "Write",
22
+ "Glob",
23
+ "Grep",
24
+ "Bash",
25
+ "WebFetch",
26
+ "WebSearch",
27
+ "Task",
28
+ "SubAgent"
29
+ ]
30
+ },
31
+ "files": [
32
+ { "path": "SKILL.md", "kind": "instruction" },
33
+ { "path": "assets/SKILL-TEMPLATE.md", "kind": "asset" }
34
+ ],
35
+ "dependencies": []
36
+ }
@@ -0,0 +1,168 @@
1
+ # Spec-Driven Development Guide
2
+
3
+ ## When to Use
4
+
5
+ Use this skill when:
6
+
7
+ - Work spans multiple commits or phases.
8
+ - Requirements are easy to misinterpret without written constraints.
9
+ - You need a repeatable plan that can be reviewed before coding.
10
+ - Several contributors or sessions may touch the same feature.
11
+
12
+ Do not use this skill for:
13
+
14
+ - Trivial one-file edits.
15
+ - Emergency fixes where immediate response matters more than process.
16
+ - Tasks with no meaningful verification path.
17
+
18
+ ---
19
+
20
+ ## Core Workflow
21
+
22
+ 1. Define the spec in `.sdd/active/<feature-name>/spec.md`.
23
+ 2. Review and refine scope, constraints, and tasks.
24
+ 3. Execute one small task at a time.
25
+ 4. Verify each task and the end-to-end outcome.
26
+ 5. Archive to `.sdd/archive/` when complete.
27
+
28
+ Recommended task size:
29
+
30
+ - Up to 3 files per task.
31
+ - Around 30 minutes of implementation effort.
32
+ - Clear, concrete verify step.
33
+
34
+ ---
35
+
36
+ ## Spec Structure
37
+
38
+ A practical spec includes:
39
+
40
+ - `Why`: problem and urgency.
41
+ - `What`: concrete deliverable.
42
+ - `Constraints`: `MUST`, `MUST NOT`, out-of-scope boundaries.
43
+ - `Current State`: relevant code context.
44
+ - `Tasks`: small implementation units with verify steps.
45
+ - `Validation`: full feature checks after all tasks.
46
+
47
+ For existing features with behavior changes, use a delta format (`ADDED`, `MODIFIED`, `REMOVED`) instead of rewriting everything.
48
+
49
+ ---
50
+
51
+ ## When to Use Delta vs Full Spec
52
+
53
+ | Use Full Spec | Use Delta Spec |
54
+ | --- | --- |
55
+ | New feature with no previous spec | Behavior change to an existing feature |
56
+ | Greenfield implementation | Bug fix or requirement adjustment |
57
+ | No requirement baseline exists | Existing requirements already exist |
58
+
59
+ ## Archive Behavior
60
+
61
+ When archiving a delta spec, apply changes to the base specification:
62
+
63
+ - `ADDED`: append new requirements.
64
+ - `MODIFIED`: replace the previous requirement text.
65
+ - `REMOVED`: delete the requirement and keep a short reason in commit history.
66
+
67
+ Then move work from `.sdd/active/<feature-name>/` to `.sdd/archive/<feature-name>/`.
68
+
69
+ ## Task Design Principles
70
+
71
+ - Keep task scope small: if a task touches more than 3 files or needs more than about 30 minutes, split it.
72
+ - Keep verification fast: each task should be verifiable in 2 minutes or less.
73
+ - Keep completion explicit: each task must have a one-sentence definition of done.
74
+
75
+ ## Decision Tree: When to Break Tasks Smaller
76
+
77
+ ```text
78
+ Does the task touch > 3 files?
79
+ YES -> split it
80
+
81
+ Will the task take > 30 minutes?
82
+ YES -> split it
83
+
84
+ Can the task be verified in <= 2 minutes?
85
+ NO -> add a tighter verify step
86
+
87
+ Can "done" be described in one sentence?
88
+ NO -> task is too vague; split it
89
+ ```
90
+
91
+ ## Common Mistakes to Avoid
92
+
93
+ ### 1) Vague Constraints
94
+
95
+ ```text
96
+ WRONG:
97
+ Must use best practices.
98
+
99
+ RIGHT:
100
+ MUST use existing auth middleware.
101
+ MUST NOT add new runtime dependencies.
102
+ ```
103
+
104
+ ### 2) Oversized Tasks
105
+
106
+ ```text
107
+ WRONG:
108
+ T1: Build the whole authentication feature.
109
+
110
+ RIGHT:
111
+ T1: Add token verification middleware.
112
+ T2: Add login endpoint behavior.
113
+ T3: Add integration test for login flow.
114
+ ```
115
+
116
+ ### 3) Missing Verification
117
+
118
+ ```text
119
+ WRONG:
120
+ Verify: It works.
121
+
122
+ RIGHT:
123
+ Verify: npm test -- src/auth/login.test.ts
124
+ ```
125
+
126
+ ### 4) Mixed Concerns in One Task
127
+
128
+ ```text
129
+ WRONG:
130
+ T1: Create component and migrate all pages to it.
131
+
132
+ RIGHT:
133
+ T1: Create component.
134
+ T2: Migrate page A.
135
+ T3: Migrate page B.
136
+ ```
137
+
138
+ Use the full preflight and pre-archive checks in [assets/validation-checklist.md](assets/validation-checklist.md).
139
+
140
+ ---
141
+
142
+ ## Modes
143
+
144
+ Use these mode guides for role-focused execution:
145
+
146
+ - Planning mode: [agents/plan.md](agents/plan.md)
147
+ - Implementation mode: [agents/apply.md](agents/apply.md)
148
+ - Verification mode: [agents/verify.md](agents/verify.md)
149
+ - Orchestrator mode: [agents/orchestrate.md](agents/orchestrate.md)
150
+
151
+ ---
152
+
153
+ ## Templates
154
+
155
+ - Feature spec: [assets/spec-template.md](assets/spec-template.md)
156
+ - Delta spec: [assets/delta-spec-template.md](assets/delta-spec-template.md)
157
+ - Design decisions: [assets/design-template.md](assets/design-template.md)
158
+ - Validation checklist: [assets/validation-checklist.md](assets/validation-checklist.md)
159
+
160
+ ---
161
+
162
+ ## Commands
163
+
164
+ ```bash
165
+ mkdir -p .sdd/active/<feature-name>
166
+ cp .skilly-hand/catalog/spec-driven-development/assets/spec-template.md .sdd/active/<feature-name>/spec.md
167
+ cp .skilly-hand/catalog/spec-driven-development/assets/design-template.md .sdd/active/<feature-name>/design.md
168
+ ```
@@ -0,0 +1,26 @@
1
+ # SDD Mode: Apply
2
+
3
+ ## Purpose
4
+
5
+ Implement approved spec tasks in small, verifiable increments.
6
+
7
+ ## Inputs
8
+
9
+ - Spec name/path under `.sdd/active/`.
10
+ - Task range or specific task IDs.
11
+
12
+ ## Procedure
13
+
14
+ 1. Read `spec.md` and `design.md` (if present).
15
+ 2. Execute one task at a time.
16
+ 3. Keep changes scoped to the assigned task.
17
+ 4. Run the task verify step before marking done.
18
+ 5. Record progress against task IDs.
19
+ 6. Stop and report blockers when constraints conflict.
20
+
21
+ ## Quality Bar
22
+
23
+ - Behavior matches task intent.
24
+ - Verify steps pass before moving on.
25
+ - No hidden scope creep.
26
+ - Progress summary lists completed tasks and changed files.
@@ -0,0 +1,25 @@
1
+ # SDD Mode: Orchestrate
2
+
3
+ ## Purpose
4
+
5
+ Coordinate planning, implementation, and verification through explicit checkpoints.
6
+
7
+ ## Inputs
8
+
9
+ - High-level request.
10
+ - Context and constraints.
11
+
12
+ ## Workflow
13
+
14
+ 1. PLAN: Produce or update the spec.
15
+ 2. REVIEW CHECKPOINT: Confirm the plan is approved.
16
+ 3. APPLY: Execute agreed task batch.
17
+ 4. VERIFY CHECKPOINT: Validate outputs against the spec.
18
+ 5. REPEAT: Continue by phase or task batch.
19
+ 6. ARCHIVE: Move completed work from `.sdd/active/` to `.sdd/archive/`.
20
+
21
+ ## Coordination Rules
22
+
23
+ - Pause at checkpoints before continuing.
24
+ - Keep phase summaries short and decision-oriented.
25
+ - Surface blockers with options, not ambiguity.
@@ -0,0 +1,27 @@
1
+ # SDD Mode: Plan
2
+
3
+ ## Purpose
4
+
5
+ Turn a request into an executable, reviewable spec before implementation starts.
6
+
7
+ ## Inputs
8
+
9
+ - Goal or problem statement.
10
+ - Known constraints.
11
+ - Current state references (files, systems, behaviors).
12
+
13
+ ## Procedure
14
+
15
+ 1. Clarify scope and success criteria.
16
+ 2. Decide full spec vs delta spec.
17
+ 3. Fill spec sections: Why, What, Constraints, Current State, Tasks, Validation.
18
+ 4. Break tasks into small units with explicit verify commands.
19
+ 5. Add `design.md` if architecture decisions or trade-offs are non-obvious.
20
+ 6. Return the spec summary for review and approval.
21
+
22
+ ## Quality Bar
23
+
24
+ - Constraints are enforceable, not vague.
25
+ - Every task has files and a verify step.
26
+ - Out-of-scope items are explicit.
27
+ - Another engineer can execute without guessing intent.
@@ -0,0 +1,24 @@
1
+ # SDD Mode: Verify
2
+
3
+ ## Purpose
4
+
5
+ Validate that implementation matches the approved spec and passes quality checks.
6
+
7
+ ## Inputs
8
+
9
+ - Spec path.
10
+ - Implementation result from apply mode.
11
+
12
+ ## Procedure
13
+
14
+ 1. Read acceptance intent from `spec.md` and `design.md` (if present).
15
+ 2. Run task-level verification evidence checks.
16
+ 3. Run feature-level validation commands.
17
+ 4. Confirm constraints (`MUST`, `MUST NOT`) were respected.
18
+ 5. Report pass/fail per area with concrete evidence.
19
+
20
+ ## Quality Bar
21
+
22
+ - End-to-end validation is explicit.
23
+ - Gaps are tied to exact tasks or constraints.
24
+ - Report separates blockers from non-blocking warnings.
@@ -0,0 +1,51 @@
1
+ # [Feature Name] - Delta Spec
2
+
3
+ Use this template when changing behavior in an existing feature.
4
+
5
+ ## Why
6
+
7
+ [Why this behavior change is needed now.]
8
+
9
+ ## What
10
+
11
+ [Concrete behavior change and expected outcome.]
12
+
13
+ ## ADDED Requirements
14
+
15
+ ### Requirement: [Name]
16
+
17
+ [MUST/SHOULD/MAY statement]
18
+
19
+ #### Scenario: [Name]
20
+
21
+ - GIVEN [initial state]
22
+ - WHEN [action]
23
+ - THEN [expected outcome]
24
+
25
+ ## MODIFIED Requirements
26
+
27
+ ### Requirement: [Name]
28
+
29
+ [New requirement text]
30
+
31
+ (Previously: [old requirement text])
32
+
33
+ ## REMOVED Requirements
34
+
35
+ ### Requirement: [Name]
36
+
37
+ (Reason: [why removed])
38
+
39
+ ## Tasks
40
+
41
+ ### T1: [Title]
42
+
43
+ **What:** [Specific implementation]
44
+
45
+ **Files:** `path/to/file`, `path/to/test`
46
+
47
+ **Verify:** [Command or manual check]
48
+
49
+ ## Validation
50
+
51
+ - [Checks that prove the delta behavior is correct]
@@ -0,0 +1,31 @@
1
+ # Design: [Feature Name]
2
+
3
+ Use with `spec.md` when implementation includes meaningful architectural decisions.
4
+
5
+ ## Context
6
+
7
+ [Current system state, constraints, and why a decision is needed now.]
8
+
9
+ ## Goals
10
+
11
+ - [Primary outcome]
12
+ - [Secondary outcome]
13
+
14
+ ## Non-Goals
15
+
16
+ - [Explicitly excluded area]
17
+ - [Another excluded area]
18
+
19
+ ## Decisions
20
+
21
+ ### Decision: [Name]
22
+
23
+ [What was chosen and why]
24
+
25
+ ### Alternatives Considered
26
+
27
+ - [Alternative option and why not chosen]
28
+
29
+ ## Risks / Trade-offs
30
+
31
+ - **[Risk]:** [Impact + mitigation or acceptance rationale]
@@ -0,0 +1,56 @@
1
+ # [Feature Name]
2
+
3
+ ## Why
4
+
5
+ [1-2 sentences on the problem and why it matters now.]
6
+
7
+ ## What
8
+
9
+ [Concrete, testable deliverable.]
10
+
11
+ ## Constraints
12
+
13
+ ### Must
14
+
15
+ - [Required patterns, architecture, or conventions]
16
+ - [Required dependency or existing system usage]
17
+
18
+ ### Must Not
19
+
20
+ - [Disallowed approaches]
21
+ - [Disallowed dependencies or behavioral changes]
22
+
23
+ ### Out of Scope
24
+
25
+ - [Adjacent but excluded features]
26
+
27
+ ## Current State
28
+
29
+ - [Relevant existing files and behavior]
30
+ - [Known dependencies and integration points]
31
+
32
+ ## Tasks
33
+
34
+ ### T1: [Title]
35
+
36
+ **What:** [Specific implementation change]
37
+
38
+ **Files:** `path/to/file`, `path/to/test`
39
+
40
+ **Verify:** [Command or manual check]
41
+
42
+ ---
43
+
44
+ ### T2: [Title]
45
+
46
+ **What:** [Specific implementation change]
47
+
48
+ **Files:** `path/to/file`
49
+
50
+ **Verify:** [Command or manual check]
51
+
52
+ ## Validation
53
+
54
+ - [Feature-level automated check]
55
+ - [Feature-level manual scenario]
56
+ - [Additional release-specific verification]
@@ -0,0 +1,32 @@
1
+ # Spec Validation Checklist
2
+
3
+ Use this checklist before implementation and again before archive.
4
+
5
+ ## Spec Quality
6
+
7
+ - [ ] Title is specific and unambiguous.
8
+ - [ ] `Why` explains urgency and value.
9
+ - [ ] `What` is concrete and testable.
10
+ - [ ] Constraints are enforceable (`Must`, `Must Not`, `Out of Scope`).
11
+ - [ ] `Current State` references real files or systems.
12
+
13
+ ## Task Quality
14
+
15
+ - [ ] Tasks are small and scoped.
16
+ - [ ] Each task has `What`, `Files`, and `Verify`.
17
+ - [ ] Task verification can be completed quickly.
18
+ - [ ] No task mixes unrelated concerns.
19
+
20
+ ## Implementation Readiness
21
+
22
+ - [ ] Success criteria are explicit.
23
+ - [ ] No critical ambiguity remains.
24
+ - [ ] Architecture decisions are captured in `design.md` if needed.
25
+
26
+ ## Pre-Archive Verification
27
+
28
+ - [ ] All planned tasks are complete.
29
+ - [ ] Feature-level validation passes.
30
+ - [ ] Constraints were respected.
31
+ - [ ] No unintended scope creep.
32
+ - [ ] Work is moved from `.sdd/active/` to `.sdd/archive/`.
@@ -0,0 +1,41 @@
1
+ {
2
+ "id": "spec-driven-development",
3
+ "title": "Spec-Driven Development",
4
+ "description": "Plan, execute, and verify multi-step work through versioned specs with small, testable tasks.",
5
+ "portable": true,
6
+ "tags": ["core", "workflow", "planning"],
7
+ "detectors": ["always"],
8
+ "detectionTriggers": ["always"],
9
+ "installsFor": ["all"],
10
+ "agentSupport": ["codex", "claude", "cursor", "gemini", "copilot"],
11
+ "skillMetadata": {
12
+ "author": "skilly-hand",
13
+ "last-edit": "2026-04-03",
14
+ "license": "Apache-2.0",
15
+ "version": "1.0.1",
16
+ "changelog": "Added explicit delta/full guidance, archive rules, task sizing decision tree, and common mistakes section; improves planning clarity and reduces execution ambiguity; affects spec-driven-development SKILL.md usage guidance",
17
+ "auto-invoke": "Planning or executing feature work, bug fixes, and multi-phase implementation",
18
+ "allowed-tools": [
19
+ "Read",
20
+ "Edit",
21
+ "Write",
22
+ "Glob",
23
+ "Grep",
24
+ "Bash",
25
+ "Task",
26
+ "SubAgent"
27
+ ]
28
+ },
29
+ "files": [
30
+ { "path": "SKILL.md", "kind": "instruction" },
31
+ { "path": "agents/plan.md", "kind": "instruction" },
32
+ { "path": "agents/apply.md", "kind": "instruction" },
33
+ { "path": "agents/verify.md", "kind": "instruction" },
34
+ { "path": "agents/orchestrate.md", "kind": "instruction" },
35
+ { "path": "assets/spec-template.md", "kind": "asset" },
36
+ { "path": "assets/delta-spec-template.md", "kind": "asset" },
37
+ { "path": "assets/design-template.md", "kind": "asset" },
38
+ { "path": "assets/validation-checklist.md", "kind": "asset" }
39
+ ],
40
+ "dependencies": []
41
+ }
@@ -0,0 +1,141 @@
1
+ # Token Optimizer Guide
2
+
3
+ ## When to Use
4
+
5
+ Use this skill when:
6
+
7
+ - Starting a task and deciding the right reasoning depth.
8
+ - Balancing response quality against speed and token budget.
9
+ - Choosing how much context gathering is actually needed.
10
+ - Reassessing scope when a task becomes more complex than expected.
11
+
12
+ Do not use this skill for:
13
+
14
+ - Cases where the user explicitly requests a fixed reasoning level.
15
+ - Mid-task rewrites that would reset already-correct progress.
16
+ - Emergency actions where immediate execution is the only priority.
17
+
18
+ ---
19
+
20
+ ## Critical Patterns
21
+
22
+ ### Pattern 1: Classify Complexity First
23
+
24
+ Pick a complexity tier before doing substantial work:
25
+
26
+ | Tier | Typical Shape |
27
+ | --- | --- |
28
+ | Trivial | Single lookup, deterministic answer, no ambiguity |
29
+ | Simple | 2-3 clear steps, minimal context, low risk |
30
+ | Moderate | Multiple files or decisions, some trade-offs |
31
+ | Complex | Broad impact, cross-cutting behavior, non-trivial edge cases |
32
+ | Expert | Security/performance critical, architecture-level consequences |
33
+
34
+ ### Pattern 2: Match Effort to Complexity
35
+
36
+ Use the lightest viable approach, then escalate only if needed:
37
+
38
+ | Tier | Reasoning Style | Context Gathering | Response Depth |
39
+ | --- | --- | --- | --- |
40
+ | Trivial | None or minimal | Direct targeted read/search | 1-2 sentences |
41
+ | Simple | Light | 1-2 focused operations | Brief factual answer |
42
+ | Moderate | Selective | 3-5 targeted operations | Concise rationale |
43
+ | Complex | Regular | Systematic exploration | Detailed explanation |
44
+ | Expert | Deep | Broad investigation + explicit trade-offs | Thorough analysis |
45
+
46
+ ### Pattern 3: Progressive Escalation
47
+
48
+ Escalate one tier when you discover:
49
+
50
+ 1. Hidden dependencies or wider blast radius.
51
+ 2. Conflicting constraints or unclear acceptance criteria.
52
+ 3. Additional non-functional requirements (security, performance, compatibility).
53
+
54
+ Do not jump to the highest-effort tier by default.
55
+
56
+ ### Pattern 4: Token-Saving Defaults
57
+
58
+ Always prefer:
59
+
60
+ - Batched independent reads/searches.
61
+ - Targeted pattern matching (`rg`) before broad scans.
62
+ - Reuse of already-collected context over repeated calls.
63
+ - Brief outputs unless rationale materially improves decisions.
64
+
65
+ Avoid:
66
+
67
+ - Reading full files when a narrow section is enough.
68
+ - Re-running identical commands without new signal.
69
+ - Long-form explanations for straightforward checks.
70
+
71
+ ---
72
+
73
+ ## Decision Tree
74
+
75
+ ```text
76
+ Single lookup with known target? -> Trivial
77
+ Needs 2-3 clear actions and limited context? -> Simple
78
+ Touches multiple files or design choices? -> Moderate
79
+ Needs architectural/refactor trade-offs? -> Complex
80
+ Impacts security/performance/core reliability? -> Expert
81
+ ```
82
+
83
+ Upgrade one tier if:
84
+
85
+ - User asks to optimize, harden, or redesign.
86
+ - Public API or user-facing behavior changes.
87
+ - Scope expands beyond expected files/components.
88
+
89
+ Downgrade one tier if:
90
+
91
+ - User provides exact file paths and acceptance criteria.
92
+ - Existing patterns make implementation mostly mechanical.
93
+
94
+ ---
95
+
96
+ ## Examples
97
+
98
+ ### Example 1: Trivial
99
+
100
+ ```text
101
+ Request: "What version is in package.json?"
102
+ Approach: single file read, no extra reasoning, direct answer.
103
+ ```
104
+
105
+ ### Example 2: Simple
106
+
107
+ ```text
108
+ Request: "Check whether alert component has tests."
109
+ Approach: targeted file search, return yes/no + location.
110
+ ```
111
+
112
+ ### Example 3: Moderate
113
+
114
+ ```text
115
+ Request: "Add disabled state to button component."
116
+ Approach: inspect component + styles + tests, apply existing patterns, summarize key decisions.
117
+ ```
118
+
119
+ ### Example 4: Complex
120
+
121
+ ```text
122
+ Request: "Refactor validation flow to support async checks."
123
+ Approach: analyze architecture and compatibility constraints, propose phased changes, verify behavior end-to-end.
124
+ ```
125
+
126
+ ---
127
+
128
+ ## Commands
129
+
130
+ ```bash
131
+ rg --files
132
+ rg -n "<pattern>" <path>
133
+ rg -n "TODO|FIXME" src
134
+ ```
135
+
136
+ ---
137
+
138
+ ## Resources
139
+
140
+ - Complexity heuristics: [references/complexity-indicators.md](references/complexity-indicators.md)
141
+ - Related planning workflow: [../spec-driven-development/SKILL.md](../spec-driven-development/SKILL.md)
@@ -0,0 +1,33 @@
1
+ {
2
+ "id": "token-optimizer",
3
+ "title": "Token Optimizer",
4
+ "description": "Classify task complexity and right-size reasoning depth, context gathering, and response detail to reduce wasted tokens.",
5
+ "portable": true,
6
+ "tags": ["core", "workflow", "efficiency"],
7
+ "detectors": ["always"],
8
+ "detectionTriggers": ["always"],
9
+ "installsFor": ["all"],
10
+ "agentSupport": ["codex", "claude", "cursor", "gemini", "copilot"],
11
+ "skillMetadata": {
12
+ "author": "skilly-hand",
13
+ "last-edit": "2026-04-03",
14
+ "license": "Apache-2.0",
15
+ "version": "1.0.3",
16
+ "changelog": "Migrated token-optimizer into portable catalog format with curated model-agnostic guidance; improves default reasoning and token-efficiency behavior across installs; affects skill discovery, auto-invoke routing, and install baseline",
17
+ "auto-invoke": "Classifying task complexity and choosing reasoning depth/token budget",
18
+ "allowed-tools": [
19
+ "Read",
20
+ "Edit",
21
+ "Write",
22
+ "Glob",
23
+ "Grep",
24
+ "Bash",
25
+ "Task"
26
+ ]
27
+ },
28
+ "files": [
29
+ { "path": "SKILL.md", "kind": "instruction" },
30
+ { "path": "references/complexity-indicators.md", "kind": "reference" }
31
+ ],
32
+ "dependencies": []
33
+ }