| name | spec-init |
| description | Unified skill that guides spec creation through structured, interactive process. |
| version | 1.0.0 |
| model | sonnet |
| invoked_by | user |
| user_invocable | true |
| tools | ["Read","Write","Edit"] |
| verified | true |
| lastVerifiedAt | "2026-02-22T00:00:00.000Z" |
| source | builtin |
| trust_score | 100 |
| provenance_sha | 1f279769b48bd8e3 |
SKILL: spec-init
Overview
Unified skill that guides spec creation through structured, interactive process.
Wraps these existing skills:
- context-compressor (progressive disclosure mode for requirements gathering)
- plan-generator (plan from spec)
Workflow
1. Type Detection
Question: "What are you building?"
Auto-detect from description:
- Feature: "Build X functionality" →
type: feature
- Bug: "Fix X issue" →
type: bug
- Chore: "Update X component" →
type: chore
- Refactor: "Reorganize X" →
type: refactor
- Docs: "Document X" →
type: docs
2. Progressive Disclosure v2 (Adaptive, 5-7 questions)
Invoke context-compressor (progressive disclosure mode) with adaptive algorithm:
const { AdaptiveQuestioner } = require('.claude/lib/utils/adaptive-discloser.cjs');
const { ContextAccumulator } = require('.claude/lib/utils/context-accumulator.cjs');
const domainMap = {
feature: 'general',
bug: 'debugging',
chore: 'general',
refactor: 'architecture',
docs: 'documentation',
};
const domain = domainMap[detectedType] || 'general';
const aq = new AdaptiveQuestioner(domain);
const ca = new ContextAccumulator();
let history = [];
let questionCount = ;
(questionCount < ) {
context = ca.();
result = aq.(context, history);
readiness = aq.(history, context);
(readiness.) {
;
}
answer = ({ : result. });
ca.(result., answer, { domain, : });
history.({ : result., answer });
questionCount++;
}
summary = ca.();