Skip to content

Commit a4b90fb

Browse files
committed
Merge branch 'master' into feat/REACT-850-message-timestamp-time-only
2 parents b3513d7 + 83dec93 commit a4b90fb

File tree

236 files changed

+9362
-4170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+9362
-4170
lines changed

.cursor/skills/make-plans/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ description: Structures plan.md files for parallel, non-overlapping agent work.
77

88
Plans enable **parallel, non-overlapping work**. Each task must be independent; agents work in a **dedicated git worktree** (see worktrees skill).
99

10+
**Where to keep plan.md and spec files:** Create and edit plan.md (and the other Ralph spec files: goal.md/spec.md, state.json, decisions.md) in a **dedicated folder** under the **specs** folder at the **repo root**: `specs/<feature-or-component-name>/`. Example: `specs/resizable-container/plan.md`. Do not place spec files next to source (e.g. not under `src/components/...`).
11+
1012
## Required plan.md Structure
1113

1214
1. **Worktree section** (top) — path, branch, base branch. See worktrees skill.

.cursor/skills/make-plans/reference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Source: `.ai/MAKE_PLAN.md`. Condensed in SKILL.md; details here.
44

5+
**Spec files location:** Create plan.md (and other Ralph spec files) under `specs/<feature-or-component-name>/` at repo root.
6+
57
## Execution Order Example
68

79
```md
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: ralph-protocol
3-
description: Collaboration protocol for Ralph loop (Plan → Act → Reflect → Refine). Use when working from goal.md, plan.md, state.json, decisions.md; when executing tasks in a shared plan; or when the user mentions Ralph, multi-agent, or file-based collaboration.
3+
description: Collaboration protocol for Ralph loop (Plan → Act → Reflect → Refine). Use when working from spec files in specs/<name>/ (goal.md/spec.md, plan.md, state.json, decisions.md); when executing tasks in a shared plan; or when the user mentions Ralph, multi-agent, or file-based collaboration.
44
---
55

66
# Ralph Protocol (Agent Collaboration)
@@ -9,27 +9,29 @@ Files are the source of truth. All agents share memory via files. No silent deci
99

1010
## Required Files
1111

12-
| File | Purpose |
13-
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
14-
| **goal.md** | What we achieve; success criteria; constraints; non-goals. Read first. Only change if goal actually changes. No implementation details. |
15-
| **plan.md** | How we achieve it. Ordered tasks, ownership, dependencies, status (`pending \| in-progress \| done \| blocked`). Propose changes before big deviations; don't rewrite completed sections. |
16-
| **state.json** | Current memory. Task statuses, flags (`blocked`, `needs-review`, etc.). Update immediately after acting. Read before assuming anything. |
17-
| **decisions.md** | Log of non-trivial decisions (what + why). Append only; never delete. Prevents reopening or contradicting past choices. |
12+
**Location:** Generate and keep spec files in a **dedicated folder** inside the **specs** folder at the **root of the repo**: `specs/<feature-or-component-name>/`. Example: `specs/resizable-container/goal.md`, `specs/resizable-container/plan.md`, `specs/resizable-container/state.json`, `specs/resizable-container/decisions.md`. One folder per feature or component; do not put spec files next to source (e.g. not under `src/components/...`).
13+
14+
| File | Purpose |
15+
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
16+
| **spec.md** or **goal.md** | What we achieve; success criteria; constraints; non-goals. Read first. Only change if goal actually changes. No implementation details. |
17+
| **plan.md** | How we achieve it. Ordered tasks, ownership, dependencies, status (`pending \| in-progress \| done \| blocked`). Propose changes before big deviations; don't rewrite completed sections. |
18+
| **state.json** | Current memory. Task statuses, flags (`blocked`, `needs-review`, etc.). Update immediately after acting. Read before assuming anything. |
19+
| **decisions.md** | Log of non-trivial decisions (what + why). Append only; never delete. Prevents reopening or contradicting past choices. |
1820

1921
## Workflow
2022

21-
**Before acting:** Read goal.md → plan.md → state.json → decisions.md.
23+
**Before acting:** Read the spec files in `specs/<name>/`: spec.md (or goal.md) → plan.md → state.json → decisions.md.
2224

2325
**During:** Follow the plan; no overlapping work unless coordinated; no undocumented decisions.
2426

25-
**After:** Update state.json → record decisions in decisions.md → update task status in plan.md. Optionally add learnings to observations.md.
27+
**After:** Update `specs/<name>/state.json` → record decisions in `specs/<name>/decisions.md` → update task status in `specs/<name>/plan.md`. Optionally add learnings to observations.md in the same folder.
2628

2729
**Prohibited:** Decisions without recording; using chat as memory; re-solving done problems; changing goals implicitly; overwriting files without explanation.
2830

2931
## Task ownership (critical)
3032

3133
- Work on **exactly one** task at a time.
32-
- That task must be in plan.md, marked `in-progress` and assigned to you.
34+
- That task must be in the plan file (`specs/<name>/plan.md`), marked `in-progress` and assigned to you.
3335
- Do not change files for other tasks, even if small.
3436

3537
## Commit scope
@@ -42,6 +44,6 @@ When acceptance criteria involve UI: use Playwright (MCP or project config). Tak
4244

4345
## Loop reminder
4446

45-
Each iteration: Plan (update plan.md if needed) → Act (scoped work) → Reflect (learnings) → Refine (plan or decisions).
47+
Each iteration: Plan (update `specs/<name>/plan.md` if needed) → Act (scoped work) → Reflect (learnings) → Refine (plan or decisions).
4648

4749
For decision log format and state.json example, see [reference.md](reference.md). Plan structure and worktrees: use make-plans and worktrees skills.

.cursor/skills/ralph-protocol/reference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Source: `.ai/RALPH.md`
44

5+
**Spec files location:** Keep all spec files (spec.md, plan.md, state.json, decisions.md) in a dedicated folder at repo root: `specs/<feature-or-component-name>/`.
6+
57
## state.json example
68

79
```json

.cursor/skills/worktrees/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ git worktree add ../stream-chat-react-worktrees/gallery-redesign -b feat/gallery
2323
- **Branch:** `feat/<descriptive-name>` (repo conventions)
2424
- **Base:** current branch when creating
2525

26-
Then in plan.md include a **Worktree** section with path, branch, base branch. Agent must `cd` into the worktree before any work.
26+
Then in the plan file (`specs/<plan-name>/plan.md`) include a **Worktree** section with path, branch, base branch. Agent must `cd` into the worktree before any work.
2727

2828
```bash
2929
cd ../stream-chat-react-worktrees/<plan-name>
@@ -69,7 +69,7 @@ git push origin agent/<branch-name>
6969
```
7070

7171
- Do this after each meaningful milestone or when someone needs to preview.
72-
- Document in plan.md: **Preview branch:** `agent/<branch-name>` — checkout to preview.
72+
- Document in `specs/<plan-name>/plan.md`: **Preview branch:** `agent/<branch-name>` — checkout to preview.
7373

7474
## Lifecycle
7575

0 commit comments

Comments
 (0)