一键导入
ralphai-planning
Write Ralphai plan files for autonomous execution. Use when asked to create a plan, task, or backlog item for Ralphai.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write Ralphai plan files for autonomous execution. Use when asked to create a plan, task, or backlog item for Ralphai.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Explore a codebase to find architectural improvement opportunities, focusing on deepening shallow modules for better testability. Use when the user wants to improve code structure, reduce coupling, or make modules more testable.
Break a PRD into independently-grabbable GitHub issues linked as native sub-issues using vertical slices. Use when the user has a PRD issue and wants to decompose it into implementable work items.
Create a detailed refactor plan with tiny, independently-verifiable commits via user interview. Use when the user wants to restructure code without changing behavior, or requests a refactoring plan.
Investigate a bug or issue, find its root cause, and create a GitHub issue with a TDD-based fix plan. Use when the user reports a bug, wants to triage a problem, or needs root cause analysis.
Create a product requirements document (PRD) through interactive interview, codebase exploration, and module design. Use when the user wants to plan a new feature, write a PRD, or design a system before implementation.
基于 SOC 职业分类
| name | ralphai-planning |
| description | Write Ralphai plan files for autonomous execution. Use when asked to create a plan, task, or backlog item for Ralphai. |
Plans are markdown files that Ralphai executes autonomously. Each task gets a fresh agent session containing only the plan and a progress log, so plans must be self-contained and specific.
ralphai config backlog-dir to get the output
directory, then write your plan as <slug>.md there.- [ ] checkboxes that describe
observable behavior. Without them, Ralphai declares victory early or
skips edge cases.Bad: "Update the types file to add prompt support."
Good: "Add 'prompt' to the ConfigType union in src/types.ts (line 106)."
Ralphai rebuilds things that already exist if you don't tell it. List existing infrastructure explicitly:
The install pipeline (`src/installer.ts`) already handles this case —
it checks `item.type === 'foo'` at line 104. No changes needed here.
Each task is one logical commit with implementation, tests, and doc updates together. The same context window that writes the code should also write the tests and update docs.
Bad:
Task 1: Add parser
Task 2: Test parser
Task 3: Document parser
Good:
Task 1: Add parser with tests and doc updates
When a task has multiple logical steps, list them as subtasks inside the task. The agent handles all subtasks in a single session. Subtasks are guidance, not separate iterations.
Task 1: Extract parser into its own module
- **Move functions:** relocate `parse()` and `validate()` from `src/main.ts`
to `src/parser.ts`
- **Update imports:** fix all import paths in files that reference the moved
functions
- **Verify:** run existing tests to confirm no regressions
Use subtasks when the steps within a task have a natural order or when listing them helps the agent stay organized. Don't use subtasks for trivial tasks where the steps are obvious.
depends-on frontmatterFor cross-plan ordering. A plan is runnable only when all dependencies are
archived in pipeline/out/.
---
depends-on: [foundation.md, wiring.md]
---
When pulling GitHub issues, blocking references in the issue body (e.g. "Blocked
by #42", "Depends on #15") are automatically translated to depends-on entries
using issue-based slugs like gh-42. These are matched by issue number prefix
against plan files in the pipeline.
source frontmatter (auto-generated)Ralphai adds this automatically when it pulls a GitHub issue into a plan. On completion, Ralphai comments on the linked issue and removes the in-progress label. You don't need to add this manually.
scope frontmatter (monorepo)For plans that target a specific package in a monorepo. The runner derives scoped feedback commands automatically. For Node.js projects, this uses the package manager's workspace filter. For .NET projects, the scope path is appended to dotnet commands.
---
scope: packages/web
---
When scope is set, Ralphai rewrites feedback commands (e.g.,
pnpm --filter @org/web build for Node.js, or dotnet build src/Api for
.NET) and adds a hint to the agent prompt to focus on the scoped directory.
Use the workspaces key in config.json for custom per-package overrides
when automatic derivation is insufficient.