원클릭으로
sdd-init
Initialize SDD harness for a project — scan codebase, generate config, full-spec, full-design
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Initialize SDD harness for a project — scan codebase, generate config, full-spec, full-design
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Harness 主入口 — 从想法到交付的一站式流程
Restore state, health check, determine current phase, suggest next step
Explain Harness plugin and available commands
Initialize Harness for your project — learn repo, team norms, generate customized framework
Start a new feature proposal — guided spec + design generation
Execute all tasks with auto-loop until completion — Stop Hook driven
| name | sdd-init |
| description | Initialize SDD harness for a project — scan codebase, generate config, full-spec, full-design |
| argument-hint | [--type fullstack|api|library|clone|mobile] |
You are initializing the SDD (Spec-Driven Development) harness for this project. This is a one-time setup that scans the codebase and creates the foundational documents.
Parameter: $ARGUMENTS — optional project type override
ls .harness/config.json 2>/dev/null
If .harness/config.json already exists:
/proposal to start a new feature."mkdir -p .harness/specs .harness/designs .harness/evidence .harness/reviews .harness/evolution
Analyze the repository to auto-detect:
Project type: Check for indicators:
package.json with both client/server dirs → fullstackpackage.json with express/fastify/koa → apipackage.json with main/exports fields, no server → library.harness/baseline/ exists → clonepubspec.yaml or React Native config → mobilesetup.py / pyproject.toml with FastAPI/Django → apigo.mod with net/http → apiTech stack: List languages, frameworks, databases detected
Test framework: Check for jest, vitest, mocha, pytest, go test, etc.
Build/lint commands: Read package.json scripts, Makefile, etc.
If $ARGUMENTS includes --type, use that override instead of auto-detection.
Present findings to user via AskUserQuestion:
Write .harness/config.json:
{
"project_type": "{detected or user-specified}",
"tech_stack": ["{list of detected technologies}"],
"eval_dimensions": "{project_type mapping: fullstack→fullstack, api→api-service, library→library, clone→clone-visual}",
"test_framework": "{detected}",
"test_command": "{detected, e.g. npm test}",
"build_command": "{detected, e.g. npm run build}",
"lint_command": "{detected, e.g. npm run lint}",
"dev_url": "{if applicable, e.g. http://localhost:3000}",
"stewardship_enabled": true,
"entropy_cleanup_enabled": true,
"evolution": {
"spec_template_version": 1,
"iteration_count": 0
}
}
Scan the codebase and generate .harness/full-spec.md — a high-level specification of the EXISTING project:
# Project Specification — {project name}
## Generated: {ISO timestamp}
## Status: baseline
## Overview
{1-2 paragraph description of what this project does, based on README, code structure, and key files}
## Module Inventory
| Module | Path | Responsibility | Key Dependencies |
|--------|------|---------------|-----------------|
{one row per top-level module/directory}
## Existing Features
{List of existing features/capabilities detected from code, routes, components, etc.}
## Architecture Summary
{High-level architecture: monolith/microservice, frontend framework, backend framework, DB, etc.}
## Conventions Detected
- Naming: {camelCase/snake_case/etc.}
- File organization: {by feature/by type}
- Error handling pattern: {detected pattern}
- State management: {if applicable}
Generate .harness/full-design.md — a high-level design document of the existing architecture:
# Project Design — {project name}
## Generated: {ISO timestamp}
## Status: baseline
## Architecture Diagram
{ASCII diagram of major components and their relationships}
## Module Dependency Graph
{ASCII diagram showing module dependencies}
## Data Model Summary
{Key entities and their relationships, if detectable}
## API Surface
{List of routes/endpoints/public APIs, if applicable}
Show the user:
Then:
📋 SDD Harness 初始化完成
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 项目配置: .harness/config.json
✅ 全量规格: .harness/full-spec.md
✅ 全量设计: .harness/full-design.md
✅ 评估维度: {eval_dimensions} ({N} 个维度)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Ask: "初始化完成。是否要开始一个新 Feature?(我会引导你进入需求设计阶段)"
If user confirms → execute /proposal logic directly (Auto-Navigate).