Skill站外收录 @skilllib/skill-2117939930272413883
setup-ralph
自动创建项目内的智能编码任务框架,将功能需求转化为可执行的用户故事并生成配套文件结构,引导用户手动启动自动化开发流程,适用于特性开发的初始化与任务拆解。
数据与分析 AI 技能
Skills.MD
<objective>
Set up the Ralph autonomous coding loop in any project. Ralph runs AI agents in a loop, picking tasks from a PRD, implementing one at a time, committing after each, and accumulating learnings until all tasks are complete.
**This skill ONLY sets up Ralph - you run the commands yourself.**
</objective>
<quick_start>
**Setup Ralph interactively (recommended):**
```bash
/setup-ralph -i
```
**Setup for specific feature:**
```bash
/setup-ralph -f 01-add-authentication
```
**What this does:**
1. Creates `.claude/ralph/` structure in your project
2. Runs setup script to create all Ralph files
3. (If -i): Brainstorms PRD with you interactively
4. Transforms PRD into user stories (prd.json)
5. Shows you the command to run Ralph (you run it yourself)
**After setup, you run:**
```bash
bun run .claude/ralph/ralph.sh -f <feature-name>
```
</quick_start>
<critical_rule>
🛑 NEVER run ralph.sh or any execution commands automatically
🛑 NEVER execute the loop - only set up files and show instructions
✅ ALWAYS let the user copy and run commands themselves
✅ ALWAYS end by showing the exact command to run
</critical_rule>
<when_to_use>
**Use this skill when:**
- Starting a new feature that can be broken into small stories
- Setting up Ralph in a new project
- Creating a new feature PRD interactively
**Don't use for:**
- Simple single-file changes
- Exploratory work without clear requirements
- Major refactors without acceptance criteria
</when_to_use>
<parameters>
| Flag | Description |
|------|-------------|
| `<project-path>` | Path to the project (defaults to current directory) |
| `-i, --interactive` | Interactive mode: brainstorm PRD with AI assistance |
| `-f, --feature <name>` | Feature folder name (e.g., `01-add-auth`) |
**Examples:**
```bash
/setup-ralph /path/to/project -i # Interactive PRD creation
/setup-ralph . -f 01-add-auth # Setup for specific feature
/setup-ralph -i -f 02-user-dashboard # Interactive with specific name
```
</parameters>
<state_variables>
| Variable | Type | Description |
|----------|------|-------------|
| `{project_path}` | string | Absolute path to target project |
| `{ralph_dir}` | string | Path to .claude/ralph in project |
| `{feature_name}` | string | Feature folder name (e.g., `01-add-auth`) |
| `{feature_dir}` | string | Path to task folder |
| `{interactive_mode}` | boolean | Whether to brainstorm PRD interactively |
| `{prd_content}` | string | PRD markdown content |
| `{user_stories}` | array | User stories extracted from PRD |
| `{branch_name}` | string | Git branch for the feature |
</state_variables>
<entry_point>
Load `steps/step-00-init.md`
</entry_point>
<step_files>
| Step | File | Purpose |
|------|------|---------|
| 00 | `step-00-init.md` | Parse flags, run setup script, create structure |
| 01 | `step-01-interactive-prd.md` | Interactive PRD brainstorming and creation |
| 02 | `step-02-create-stories.md` | Transform PRD into user stories (prd.json) |
| 03 | `step-03-finish.md` | Show run command (user runs it themselves) |
</step_files>
<scripts>
| Script | Purpose |
|--------|---------|
| `scripts/setup.sh` | Creates all Ralph files in the project |
</scripts>
<execution_rules>
1. **Progressive Loading**: Load one step at a time
2. **Script Execution**: Use scripts/setup.sh to create files atomically
3. **Interactive Mode**: If -i flag, run brainstorming conversation
4. **State Persistence**: Track progress in feature_dir/progress.txt
5. **Resume Support**: Detect existing PRD.md and resume from there
6. **NEVER RUN RALPH**: Only setup and show commands - user runs them
</execution_rules>
<success_criteria>
✅ Ralph structure created at {project_path}/.claude/ralph
✅ Feature folder created with PRD.md, prd.json, progress.txt
✅ User stories properly formatted in prd.json
✅ Clear run command provided to user (they run it themselves)
</success_criteria>
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「setup-ralph」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次