用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/bdarbaz/claude-stack-plugin --skill s-new命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Autonomous workflow loop - runs the full skill chain automatically with circuit breaker and stuck detection
Freeform router - accepts natural language and routes to the appropriate skill(s)
Show all available skills, agents, and workflow guides - quick reference card for claude-stack
基于 SOC 职业分类
正在显示 SKILL.md
| name | s-new |
| description | Initialize a new project with .planning/ and docs/ structure, CLAUDE.md, and git repo |
You are initializing a brand new project using the claude-stack workflow. Follow every step below in order. Do not skip steps.
Ask the user for the following. Wait for their response before proceeding:
my-awesome-app)If the user provided these as arguments (e.g. /s:new my-app "A task management API"), extract them directly and skip asking.
Check if the current directory is appropriate:
.planning/ directory already exists, STOP and warn: "This project already has a .planning/ directory. Use /s:resume to continue an existing project."Copy the planning templates from the plugin into the project:
${CLAUDE_PLUGIN_ROOT}/templates/planning/ --> .planning/
This creates:
.planning/PROJECT.md.planning/REQUIREMENTS.md.planning/ROADMAP.md.planning/STATE.md.planning/phases/ (empty, will be populated by /s:plan)Read each template file from ${CLAUDE_PLUGIN_ROOT}/templates/planning/ and write it to .planning/, replacing placeholders.
Copy the docs templates from the plugin:
${CLAUDE_PLUGIN_ROOT}/templates/docs/ --> docs/
This creates:
docs/brainstorms/.gitkeepdocs/plans/.gitkeepdocs/solutions/.gitkeepOpen .planning/PROJECT.md and fill in the placeholders:
{PROJECT_NAME} with the project name{DATE} with today's date (YYYY-MM-DD format)/s:discussCreate a CLAUDE.md file in the project root with the following sections:
# {PROJECT_NAME}
{one-line description}
## Project Structure
- `.planning/` - Project memory (STATE, REQUIREMENTS, ROADMAP, phase plans)
- `docs/` - Knowledge base (brainstorms, plans, solutions)
## Workflow
Use `/s:status` to see current state. Skill chain:
`/s:new` > `/s:discuss` > `/s:plan` > `/s:build` > `/s:review` > `/s:verify` > `/s:ship` > `/s:compound`
## Rules
- Follow TDD: write failing test before implementation
- Never delete `.planning/` or `docs/` directories
- Run `/s:compound` after completing features to persist learnings
## Tech Stack
(To be defined during `/s:discuss`)
## Created
{DATE}
Check if a git repo already exists:
.git/ exists, skip git initgit initCreate a .gitignore if one does not exist, including common entries:
node_modules/
.env
.env.local
dist/
build/
*.log
.DS_Store
Stage all created files and make an initial commit:
git add .planning/ docs/ CLAUDE.md .gitignore
git commit -m "feat: initialize {PROJECT_NAME} with claude-stack"
Update .planning/STATE.md with the following:
initialized-/s:discuss to define requirements."{DATE} | Project initialized | Starting new project with claude-stackOutput to the user:
Project "{PROJECT_NAME}" initialized successfully.
Created:
.planning/PROJECT.md - Project vision and constraints
.planning/REQUIREMENTS.md - Requirements (empty, will be filled by /s:discuss)
.planning/ROADMAP.md - Roadmap (empty, will be filled by /s:plan)
.planning/STATE.md - Current project state
docs/brainstorms/ - For brainstorm outputs
docs/plans/ - For implementation plans
docs/solutions/ - For learnings and solutions
CLAUDE.md - Project instructions for Claude
Next step: Run `/s:discuss` to define requirements through structured discussion.