ralph-sync
Reconcile project with changed objectives. Updates AGENTS.md and prd.json when requirements shift.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reconcile project with changed objectives. Updates AGENTS.md and prd.json when requirements shift.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deep project initialization using the Architect-Builder pattern. Use for large projects (20+ tasks, multiple domains) where a single task breakdown would be unwieldy or exceed context limits.
Detailed Ralph execution guidance. Load when running the Ralph autonomous loop to get step-by-step implementation protocol.
Creates AGENTS.md, prd.json, and progress.log to initialize the Ralph environment. Use when setting up a new project for autonomous execution.
Shared patterns for modifying an existing Ralph project environment. Load when adding tasks, pivoting project direction, or revising objectives.
Add a new task to an existing Ralph project. Use when requirements change during execution.
Deep initialization for large projects using Architect-Builder pattern.
| name | /ralph-sync |
| description | Reconcile project with changed objectives. Updates AGENTS.md and prd.json when requirements shift. |
Reconcile existing project with changed or expanded requirements.
New/changed objectives: $ARGUMENTS
Read all project files:
AGENTS.md — Current tech stack, standards, structureprd.json — Current task list and completion statusprogress.log — What's been done so farParse $ARGUMENTS to identify:
Compare current state vs new objectives:
| Change Type | Action |
|---|---|
| New feature | Add new tasks to prd.json |
| Removed feature | Mark obsolete tasks as status: "cancelled" |
| Tech stack change | Update AGENTS.md, add migration tasks |
| Priority shift | Update priority fields in prd.json |
If tech stack or standards changed:
## Technology Stack
- Framework: [updated]
- Language: [updated]
- Database: [updated]
## Build & Test Commands
- Build: [updated command]
- Test: [updated command]
{
"project": "Project Name",
"description": "Updated description",
"tasks": [
// Existing tasks (preserve completion status)
// New tasks (status: "pending")
// Cancelled tasks (status: "cancelled")
]
}
Append to progress.log:
[YYYY-MM-DD HH:MM:SS] === SYNC EVENT ===
[YYYY-MM-DD HH:MM:SS] New objectives: [summary]
[YYYY-MM-DD HH:MM:SS] Tasks added: X
[YYYY-MM-DD HH:MM:SS] Tasks cancelled: Y
[YYYY-MM-DD HH:MM:SS] AGENTS.md updated: [yes/no]
[YYYY-MM-DD HH:MM:SS] ==================
If a task is status: "in-progress" but now cancelled:
status: "cancelled"Report:
Sync complete.
Changes:
- Tasks added: X
- Tasks cancelled: Y
- Tasks modified: Z
- AGENTS.md updated: [sections changed]
Next: Run '/ralph' to continue with updated objectives.