@rallycry/conveyor-skills 1.0.18 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/package.json +1 -1
- package/skills/conveyor-brainstorm-review/SKILL.md +81 -0
- package/skills/conveyor-consensus/SKILL.md +1 -1
- package/skills/conveyor-local-loop/SKILL.md +6 -3
- package/skills/conveyor-manager/SKILL.md +261 -0
- package/skills/conveyor-manager/references/briefs.md +155 -0
- package/skills/conveyor-manager/references/charter.md +150 -0
- package/skills/conveyor-manager/references/landing.md +111 -0
- package/skills/conveyor-manager/references/lanes.md +211 -0
- package/skills/conveyor-manager/references/owner.md +114 -0
- package/skills/conveyor-manager/references/recovery.md +122 -0
- package/skills/conveyor-plan/SKILL.md +42 -11
- package/skills/conveyor-plan/references/plan-format.md +5 -1
- package/skills/conveyor-prune/SKILL.md +4 -1
- package/skills/conveyor-spike/SKILL.md +218 -0
- package/skills/conveyor-spike/references/handoff.md +161 -0
- package/skills/conveyor-start/SKILL.md +25 -2
- package/skills/conveyor-workflows/SKILL.md +16 -2
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# State and recovery — surviving compaction, crashes and limits
|
|
2
|
+
|
|
3
|
+
Part of [conveyor-manager](../SKILL.md), step 1. A manager session runs for
|
|
4
|
+
days. One was compacted 32 times, lost eight hours to an API error, a night to
|
|
5
|
+
a power cut and 31 hours to a usage limit. It recovered in minutes wherever the
|
|
6
|
+
state was on the board, and lost hours wherever it was somewhere else.
|
|
7
|
+
|
|
8
|
+
## What lives where
|
|
9
|
+
|
|
10
|
+
| Kind of state | Lives | Never |
|
|
11
|
+
| --- | --- | --- |
|
|
12
|
+
| A card's status, plan, branch, pull request, pod | The board and origin. Read fresh. | Copied into notes |
|
|
13
|
+
| The owner's instructions | The manager card's plan, verbatim and dated | Paraphrased; in this session's memory only |
|
|
14
|
+
| What is waiting on the owner | The card it concerns, open decision cards, and the latest digest on the manager card | A private list |
|
|
15
|
+
| A ruling, a fix request, a merge record | Posted self-contained on its card | In a local file only |
|
|
16
|
+
| A finding put off for later | A named card, created when it is put off | "Later" in chat |
|
|
17
|
+
| Helper ids, armed waits, the read cursor, queued starts | The ledger | In context only |
|
|
18
|
+
| Work in progress | Committed and pushed | On this disk only |
|
|
19
|
+
| Helper scripts | Beside the ledger | Under `/tmp` |
|
|
20
|
+
| How this owner likes to work | The session's long-term memory, with why | The ledger |
|
|
21
|
+
|
|
22
|
+
Anything that is on the board is never also carried by hand: hashes, pull
|
|
23
|
+
request numbers, pod states and the ids of merged cards do not belong in notes
|
|
24
|
+
or summaries.
|
|
25
|
+
|
|
26
|
+
## The ledger
|
|
27
|
+
|
|
28
|
+
One small file, `ledger.md` in the directory below, overwritten in place — not
|
|
29
|
+
a diary.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
mkdir -p "$(git rev-parse --git-dir)/conveyor-manager"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
It sits in the git dir, like the checkout claim, so it is never committed,
|
|
36
|
+
never shows in `git status`, and survives a reboot. Write it at the end of
|
|
37
|
+
every wake, with the time read from `date` in that same command.
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
updated: <output of date>
|
|
41
|
+
cursor: <the asOf of the last board digest, exactly as it printed>
|
|
42
|
+
manager card: <slug>
|
|
43
|
+
seen: <slugs of Planning and Open cards already taken in>
|
|
44
|
+
|
|
45
|
+
## In flight
|
|
46
|
+
| card | lane | helper id or pod | last instruction, and was it taken | next step, and its condition |
|
|
47
|
+
|
|
48
|
+
## Queue
|
|
49
|
+
<cards waiting for a slot, in order>
|
|
50
|
+
|
|
51
|
+
## Asks open
|
|
52
|
+
| card | what was asked | default | asked at | blocks |
|
|
53
|
+
|
|
54
|
+
## Checks each wake
|
|
55
|
+
<a blocker's trace to test; the base branch's CI after a merge>
|
|
56
|
+
|
|
57
|
+
## Armed
|
|
58
|
+
<the exact wait and fallback commands that must be running: the
|
|
59
|
+
`conveyor-wait --watch … --since <cursor>` line and the ScheduleWakeup>
|
|
60
|
+
|
|
61
|
+
## Local
|
|
62
|
+
checkout claim: <held for which card | free>; worktrees to remove: <paths>;
|
|
63
|
+
unpushed commits: <none | which>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
A *next step* names its condition ("merge when #92 is green on `abc123`") so a
|
|
67
|
+
later wake checks the condition instead of trusting the note.
|
|
68
|
+
|
|
69
|
+
## Full orient
|
|
70
|
+
|
|
71
|
+
After a compaction, a restart, or any gap longer than your fallback wake. Finish
|
|
72
|
+
it before any write to the board: two minutes after one compaction, a manager
|
|
73
|
+
posted to three pods that had already handed back, working from the summary.
|
|
74
|
+
|
|
75
|
+
1. `date`. Compare with the ledger's `updated`. The difference is how long the
|
|
76
|
+
board ran without you.
|
|
77
|
+
2. Reload the Conveyor tools in one ToolSearch. Re-read the manager card (the
|
|
78
|
+
charter and standing orders) and the ledger. The context summary tells you
|
|
79
|
+
where to look; it is not what is true.
|
|
80
|
+
3. **People first.** Step 2 of the wake routine, in full: every thread with an
|
|
81
|
+
open ask, every changed card, every new card, open decisions.
|
|
82
|
+
4. **The board.** Status and pod state of everything in flight. Where the board
|
|
83
|
+
and the ledger disagree, the board wins.
|
|
84
|
+
5. **Git.** `git fetch`; the base branch's head and its last CI run; open pull
|
|
85
|
+
requests; push anything that exists only here.
|
|
86
|
+
6. **Each card in flight:** read its last three messages before you post to it.
|
|
87
|
+
An instruction sent just before the gap may never have been taken — send it
|
|
88
|
+
again, whole.
|
|
89
|
+
7. **Re-arm** everything under *Armed*. A wait dies with the process that
|
|
90
|
+
started it; a resume notice naming dead tasks is an instruction to restart
|
|
91
|
+
them.
|
|
92
|
+
8. Write the ledger, refresh the status line, and tell the owner in one message
|
|
93
|
+
how long you were away and what waited — the first sentence, not the last.
|
|
94
|
+
|
|
95
|
+
## After an outage
|
|
96
|
+
|
|
97
|
+
- Survey before restarting anything: the checkout, origin, the pods, the cards.
|
|
98
|
+
- Put a recovery note on each affected card before its pod restarts: where its
|
|
99
|
+
branch stands, what to pick up.
|
|
100
|
+
- Start ONE pod and watch it authenticate and work before the rest. Three pods
|
|
101
|
+
restarted together onto a dead credential cost an hour.
|
|
102
|
+
- If the fix is the owner's, add a check of its trace to the ledger, so you see
|
|
103
|
+
it land.
|
|
104
|
+
|
|
105
|
+
## Before you might stop
|
|
106
|
+
|
|
107
|
+
A usage limit ends the session mid-sentence. So, at all times:
|
|
108
|
+
|
|
109
|
+
- No promise on a card depends on this session surviving. Say what will happen
|
|
110
|
+
and on what event, never by when.
|
|
111
|
+
- Before a fan-out of helpers, write the ledger and the status line first.
|
|
112
|
+
- When a limit warning shows, stop launching, finish landing what is reviewed,
|
|
113
|
+
set the manager card `Open` and post `[manager] off duty` with what is in
|
|
114
|
+
flight.
|
|
115
|
+
|
|
116
|
+
## If you write a script
|
|
117
|
+
|
|
118
|
+
Prefer not to. If a sequence must be repeatable, it is a file beside the
|
|
119
|
+
ledger, run with `bash`, starting `set -euo pipefail`. A git sequence typed
|
|
120
|
+
into the shell built an empty commit and threw away a tree's edits; the same
|
|
121
|
+
sequence as a checked script did not. Never pipe a gate or a push through
|
|
122
|
+
`tail` or `head`: the exit code you read is the pipe's.
|
|
@@ -14,10 +14,11 @@ The research and drafting below are identical everywhere. Only the two ends
|
|
|
14
14
|
differ — resolving which project you are in, and where the finished plan lands
|
|
15
15
|
— and both carry an **Environment** note.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
Conveyor identifies the card when it opens, assigning the icon, agent, and
|
|
18
|
+
tags if you set none. When creating a card from a local session, recommend
|
|
19
|
+
story points in chat and let identification set them. In a pod, set the
|
|
20
|
+
initial estimate before saving the plan. Never set the icon or call
|
|
21
|
+
`start_task` unless the user asks.
|
|
21
22
|
|
|
22
23
|
## Goal and finish line
|
|
23
24
|
|
|
@@ -25,8 +26,11 @@ icon or story points yourself, and never `start_task` unless the user asks.
|
|
|
25
26
|
batched round of questions for a human when scope is genuinely ambiguous.
|
|
26
27
|
**Finish line:** the plan is saved with `mcp__conveyor__update_task` AND the
|
|
27
28
|
recommendation is posted with `mcp__conveyor__post_to_chat` and
|
|
28
|
-
`milestone: "plan_ready"`. In a pod, story points
|
|
29
|
-
|
|
29
|
+
`milestone: "plan_ready"`. In a pod, set story points, risk, and title with
|
|
30
|
+
`mcp__conveyor__update_task_properties` before saving the final plan. Follow
|
|
31
|
+
the runner's completion instructions: Claude's Discovery planner also calls
|
|
32
|
+
its native plan-exit tool after posting the milestone. Codex and OpenCode end
|
|
33
|
+
the turn after the milestone. Conveyor handles the card transition.
|
|
30
34
|
**A turn may end only when:** (a) the finish line above is true, or (b) an
|
|
31
35
|
`AskUserQuestion` is pending. Nothing else. Anything else is a stalled run, not
|
|
32
36
|
a paused one.
|
|
@@ -104,11 +108,24 @@ Scale to the idea's size; a one-file tweak needs minutes, not a survey.
|
|
|
104
108
|
parent when the card is a pack child (in a pod pass `task_id`; the local
|
|
105
109
|
surface takes `taskId`). Source documents, screenshots and worksheets usually
|
|
106
110
|
live there, and a plan written without reading them plans the wrong work.
|
|
111
|
+
- **The card's own context**: on an existing card, read the chat with
|
|
112
|
+
`mcp__conveyor__read_task_chat` (locally pass `full: true`, or long messages
|
|
113
|
+
are cut at 2,000 characters) and read its attachments. Human context and
|
|
114
|
+
`/conveyor-spike` briefs live there. A spike brief's Settled list is
|
|
115
|
+
decided; its Still open list is yours. If the card records a `githubBranch`
|
|
116
|
+
that is not the base, research THAT code without checking it out: run
|
|
117
|
+
`git fetch origin <branch>:refs/remotes/origin/<branch>`, then read it with
|
|
118
|
+
`git diff origin/<base>...origin/<branch>` and
|
|
119
|
+
`git show origin/<branch>:<path>`. Cite its lines, write the plan as a delta
|
|
120
|
+
on that branch, and record `Planned against <sha> of <branch>` in Notes.
|
|
107
121
|
- **Prior art**: `mcp__conveyor__search_tasks` on 2-3 keyword variants
|
|
108
122
|
(`typeFilters` to include incidents/suggestions when relevant), then
|
|
109
123
|
`mcp__conveyor__get_task` on the closest hits. You're looking for duplicates
|
|
110
124
|
(stop and surface), related shipped work (reuse its patterns), and
|
|
111
125
|
cancelled attempts (learn why before re-proposing).
|
|
126
|
+
When the project runs brainstorm tables, `mcp__conveyor__list_brainstorms`
|
|
127
|
+
then `mcp__conveyor__get_brainstorm` show whether the idea was pitched
|
|
128
|
+
before and where the team ranked it.
|
|
112
129
|
- **Prod signals** (only when the feature touches live behavior):
|
|
113
130
|
`mcp__conveyor__query_gcp_logs` / `mcp__conveyor__query_grafana_logs` for
|
|
114
131
|
error rates, actual usage, current behavior. **Environment:** these are
|
|
@@ -197,21 +214,27 @@ touching Conveyor, unless they asked you to just ship it.
|
|
|
197
214
|
> does not exist in a pod. In a pod, the card exists and you are on it: save
|
|
198
215
|
> the plan with `mcp__conveyor__update_task` (`plan`, and `description` if it
|
|
199
216
|
> needs sharpening), post the same recommendation message to chat with
|
|
200
|
-
> `milestone: "plan_ready"`, and
|
|
201
|
-
>
|
|
217
|
+
> `milestone: "plan_ready"`, and follow the runtime-specific finish line
|
|
218
|
+
> above. End the turn without asking about starting work. The Builder is a
|
|
202
219
|
> separate session the system spawns, and every later turn here is a plan
|
|
203
220
|
> iteration. A pod does not promote its own card to
|
|
204
221
|
> Open. A parked plan is never `blocked`: that milestone means you cannot
|
|
205
222
|
> continue until a human acts, and it pages nobody. To page a person, ask them
|
|
206
|
-
> with AskUserQuestion.
|
|
207
|
-
> plan mode, note that `update_task` carries no story points or risk; those go
|
|
208
|
-
> through `mcp__conveyor__update_task_properties`. Everything in Phases 1-3 is
|
|
223
|
+
> with AskUserQuestion. Everything in Phases 1-3 is
|
|
209
224
|
> identical in both environments. To break a large pod card into a pack, use
|
|
210
225
|
> `mcp__conveyor__create_subtask` rather than `create_task`, and set child→child
|
|
211
226
|
> ordering through its `dependsOn` field — `mcp__conveyor__add_dependency` is
|
|
212
227
|
> scoped to the session's OWN task in a pod and cannot draw an edge between two
|
|
213
228
|
> children.
|
|
214
229
|
>
|
|
230
|
+
> **Locally, an existing card is planned in place, too.** When the argument
|
|
231
|
+
> names an existing card (a slug, URL or id: a `/conveyor-spike` handoff card,
|
|
232
|
+
> or any Planning card), plan ONTO it. Replace step 1's `create_task` with
|
|
233
|
+
> `mcp__conveyor__update_task` (`taskId`, `plan`, and `description` if it
|
|
234
|
+
> needs sharpening). Steps 2-5 apply unchanged, except when the caller said to
|
|
235
|
+
> stop in Planning (a `/conveyor-manager` planner brief does): then skip step
|
|
236
|
+
> 3's status flip.
|
|
237
|
+
>
|
|
215
238
|
> **In a pod, create every child BEFORE you save the parent plan.** The parent
|
|
216
239
|
> plan save is what triggers the handoff, and the handoff reads the card's child
|
|
217
240
|
> count at that instant to decide what to spawn: children present → a pack
|
|
@@ -220,6 +243,14 @@ touching Conveyor, unless they asked you to just ship it.
|
|
|
220
243
|
> therefore: children (with their plans and `dependsOn` edges) → parent plan
|
|
221
244
|
> LAST.
|
|
222
245
|
|
|
246
|
+
**Loop in a tag's Consulted people.** The card's Reference Guides list each
|
|
247
|
+
card tag's RACI people, and `get_tag` returns them with mention tokens. When
|
|
248
|
+
the plan changes how a tag's area behaves (not a refactor, test-only or
|
|
249
|
+
docs-only plan), end the `plan_ready` post with the mention token of each
|
|
250
|
+
Consulted person on that tag and one line on what changes for them. Skip
|
|
251
|
+
anyone already in the card's conversation. Responsible and Accountable people
|
|
252
|
+
are the ones to ask when scope is unclear.
|
|
253
|
+
|
|
223
254
|
Identification fires the moment the card lands beyond Planning and reads task
|
|
224
255
|
chat for your recommendation — so chat BEFORE the status flip:
|
|
225
256
|
|
|
@@ -33,6 +33,7 @@ Already stored? The existing field or relation that holds this fact today, or "n
|
|
|
33
33
|
|
|
34
34
|
## Notes
|
|
35
35
|
- Dependencies, risks, blockers, or files likely touched.
|
|
36
|
+
- Planned against <short sha> of <base>, <date>.
|
|
36
37
|
|
|
37
38
|
## Builder briefing
|
|
38
39
|
- **Start here:** the one or two files to open first.
|
|
@@ -71,6 +72,9 @@ touches code:
|
|
|
71
72
|
than paraphrasing it.
|
|
72
73
|
- For a file that does not exist yet, write `NEW: path/to/new-file.ts` and
|
|
73
74
|
describe the module it fits into.
|
|
75
|
+
- Record the commit the citations were read at: `Planned against <short sha>
|
|
76
|
+
of <base>, <date>` in Notes. One `git log <sha>..origin/<base> -- <cited
|
|
77
|
+
files>` then shows a later reader what moved under the plan.
|
|
74
78
|
|
|
75
79
|
## The Testing section is a definition of done
|
|
76
80
|
|
|
@@ -165,4 +169,4 @@ one card.
|
|
|
165
169
|
|
|
166
170
|
`Planning -> Open -> InProgress -> ReviewPR -> ReviewDev -> ReviewLive -> Complete`
|
|
167
171
|
|
|
168
|
-
`Cancelled` is terminal. A task must be `Open` before `start_task
|
|
172
|
+
`Cancelled` is terminal. A task must be `Open` before `start_task`, except a Plan + Build start (`planAndBuild: true`) of an unplanned Planning card.
|
|
@@ -73,7 +73,10 @@ mutation applied before the reply — is a stalled run, not a paused one.
|
|
|
73
73
|
the parent's disposition;
|
|
74
74
|
- rows with a non-null `workspaceStatus` — something is running on it;
|
|
75
75
|
- rows with a `githubPRUrl` — work exists; that is a review question, not
|
|
76
|
-
a prune question
|
|
76
|
+
a prune question;
|
|
77
|
+
- rows whose title starts `[manager]` — a `/conveyor-manager` run's duty
|
|
78
|
+
card; its status says whether a manager is on duty, so it is never
|
|
79
|
+
backlog.
|
|
77
80
|
5. `mcp__conveyor__list_tags` once — the project's vocabulary, and whether a
|
|
78
81
|
`duplicate` tag exists (step 3 uses it, and never creates it).
|
|
79
82
|
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: conveyor-spike
|
|
3
|
+
description: Prototype an idea as fast as possible in the local checkout — no tests, lint, gates or code-quality bar — get it on the user's screen, iterate with them live, then drop it or hand it off as a new unplanned Conveyor card that carries the spike's findings (and optionally its branch) for /conveyor-plan or Plan + Build. Use when the user says "/conveyor-spike <idea>", "spike this idea", "hack it together so I can see it", "quick and dirty prototype", "try this idea fast". Needs a person watching the screen; never run it headless, from a loop, a manager or a subagent. Local surface only; inside a pod it says so instead of failing. Not for work meant to ship as written — that is /conveyor-plan then /conveyor-build.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Conveyor Spike
|
|
7
|
+
|
|
8
|
+
Speed is the only bar. Get the idea onto the user's screen in minutes, ugly
|
|
9
|
+
code and all, so they can see how hard it is and which direction is right. The
|
|
10
|
+
screen is the question: build first, ask second. The output is a verdict and a
|
|
11
|
+
set of findings, never shippable code.
|
|
12
|
+
|
|
13
|
+
> **Environment — this skill does not apply inside a pod.** Check the
|
|
14
|
+
> environment first, before any tool call, so the first cut never waits for
|
|
15
|
+
> the Conveyor MCP to connect: if `CONVEYOR_TASK_ID`, `CONVEYOR_AGENT_VERSION`
|
|
16
|
+
> or `CONVEYOR_POD_IMAGE` is set, you are in a pod. Say so and stop. A pod is
|
|
17
|
+
> bound to its own card, and `mcp__conveyor__create_task` does not exist
|
|
18
|
+
> there. Today the cloud way to iterate live with an agent is an Interactive
|
|
19
|
+
> card. Locally, the Conveyor MCP is needed only at the handoff.
|
|
20
|
+
|
|
21
|
+
## Goal and finish line
|
|
22
|
+
|
|
23
|
+
**Goal:** the idea working on the user's screen as fast as possible, then the
|
|
24
|
+
user's verdict on it.
|
|
25
|
+
|
|
26
|
+
**Finish line,** one of two:
|
|
27
|
+
|
|
28
|
+
- **Dropped.** The checkout is back on the starting branch. The logged side
|
|
29
|
+
effects are undone, or named to the user. The checkout claim is released.
|
|
30
|
+
The spike branch stays unless the user says to delete it.
|
|
31
|
+
- **Handed off.** A card sits in Planning with the spike brief attached and
|
|
32
|
+
summarized in its chat. The branch decision is applied. The card URL and
|
|
33
|
+
next steps are reported. The checkout is back on the starting branch (unless
|
|
34
|
+
the user asked to stay), and the claim is released.
|
|
35
|
+
|
|
36
|
+
**A turn may end only when:**
|
|
37
|
+
|
|
38
|
+
1. a new result is visible and you asked the user for their reaction;
|
|
39
|
+
2. an AskUserQuestion is pending; or
|
|
40
|
+
3. the finish line is true.
|
|
41
|
+
|
|
42
|
+
**Runtime:** *Codex CLI* — do NOT create a thread goal. A spike is a
|
|
43
|
+
conversation, and a goal would keep iterating without the user. Ask the user to
|
|
44
|
+
run the dev server in their own terminal, because a held command session blocks
|
|
45
|
+
the conversation. Codex sets no session id, so pass one stable
|
|
46
|
+
`--session <id>` to every checkout command and record it in the spike log.
|
|
47
|
+
*Claude Code* — there is no goal tool; the turn endings above are the loop.
|
|
48
|
+
|
|
49
|
+
## Ground rules
|
|
50
|
+
|
|
51
|
+
- **Quality rules are suspended.** Tests, lint, typecheck, formatting, repo
|
|
52
|
+
gates, contracts-first and service patterns, docs regeneration, file-size
|
|
53
|
+
rules, i18n and polish all wait for the real build. Invoking this skill is
|
|
54
|
+
the user's instruction to skip them, git hooks included: commit and push with
|
|
55
|
+
`--no-verify`. The repo's own quality and verification rules do not apply to
|
|
56
|
+
a spike.
|
|
57
|
+
- **Safety rules stay.**
|
|
58
|
+
- Never touch production, or shared data and infrastructure.
|
|
59
|
+
- Never commit secrets.
|
|
60
|
+
- Never push to the base branch or to anyone else's branch.
|
|
61
|
+
- Never open a pull request, and never merge.
|
|
62
|
+
- Never send real outbound effects (email, Slack or Discord posts, GitHub
|
|
63
|
+
writes, payments). Stub them.
|
|
64
|
+
- Never reset the shared dev database or change it destructively.
|
|
65
|
+
- Harness hooks still apply.
|
|
66
|
+
- **Show, don't ask.** Build the most plausible reading of the idea first. Ask
|
|
67
|
+
before the first cut only when no reasonable cut exists without the answer.
|
|
68
|
+
- **Take the cheapest path to something visible.**
|
|
69
|
+
- Use inline fake data, hardcoded values, copy-paste and inline styles.
|
|
70
|
+
- Reuse existing components, and call existing endpoints directly.
|
|
71
|
+
- Add no service methods, schema changes or migrations unless the backend IS
|
|
72
|
+
the idea. Fake missing data in the client first.
|
|
73
|
+
- A schema change needs the user's OK. Make it on an isolated dev database
|
|
74
|
+
when the repo has one, for example a second dev-stack configuration with
|
|
75
|
+
its own database.
|
|
76
|
+
- **No ceremony.** No plan mode, TODO lists, research sweeps or subagents.
|
|
77
|
+
Read only the one to three files the idea plugs into.
|
|
78
|
+
- **Time-box.** Aim for the first visible result in about 15 minutes. Past
|
|
79
|
+
that, stop, name what is slow, and offer a cheaper cut that fakes the hard
|
|
80
|
+
part. The slowness is a finding.
|
|
81
|
+
- **Commit every iteration, and log it.** Each iteration is a checkpoint
|
|
82
|
+
commit. Log every side effect the moment it happens: database writes or
|
|
83
|
+
schema pushes, installed dependencies, generated code, env or config edits,
|
|
84
|
+
and extra processes. The brief and the clean-up are built from the log.
|
|
85
|
+
- **"Visible" depends on the idea.** It can be a page in the user's browser, a
|
|
86
|
+
response body, or command output and numbers.
|
|
87
|
+
|
|
88
|
+
## Every turn starts here
|
|
89
|
+
|
|
90
|
+
Run `checkout verify --card spike-<slug>` and read the tail of the spike log.
|
|
91
|
+
The log survives context compaction; your memory does not.
|
|
92
|
+
|
|
93
|
+
On `lost` or `branch-moved`, stop and tell the user: another session took the
|
|
94
|
+
checkout or switched its branch.
|
|
95
|
+
|
|
96
|
+
## Phase 0 — Set up (under a minute)
|
|
97
|
+
|
|
98
|
+
1. Pick a short kebab-case slug for the idea.
|
|
99
|
+
2. Record the starting point: `git branch --show-current`,
|
|
100
|
+
`git rev-parse --short HEAD` and `git status --porcelain`.
|
|
101
|
+
3. Take the checkout claim with `--card spike-<slug>`, using the forms in
|
|
102
|
+
[checkout-claim.md](../conveyor-build/references/checkout-claim.md)
|
|
103
|
+
("How to call it").
|
|
104
|
+
- On `held`: name the holder (card, branch and host) and offer
|
|
105
|
+
`checkout wait`. Never use a git worktree. The provisioned checkout, with
|
|
106
|
+
its dependencies, env and running stack, is the whole value of working
|
|
107
|
+
locally.
|
|
108
|
+
- On `dirty`: ask the user to commit, stash or discard the changes, or to
|
|
109
|
+
say that they belong to the idea. Never stash for them.
|
|
110
|
+
4. Run `git switch -c spike/<slug>` from the current HEAD. It is instant, and
|
|
111
|
+
a running dev stack keeps serving. Then run
|
|
112
|
+
`checkout acquire --card spike-<slug> --branch spike/<slug>`. If the branch
|
|
113
|
+
already exists, treat it as a resume (below) or add a `-2` suffix.
|
|
114
|
+
5. Start the spike log. Run
|
|
115
|
+
`mkdir -p "$(git rev-parse --git-path conveyor-spike)"`, then write
|
|
116
|
+
`<that dir>/<slug>.md`. A file in the git dir is never committed and never
|
|
117
|
+
shows in `git status`. The header holds:
|
|
118
|
+
- the idea, in the user's own words;
|
|
119
|
+
- the starting branch and sha;
|
|
120
|
+
- the base branch;
|
|
121
|
+
- the date;
|
|
122
|
+
- the Codex session id, when there is one.
|
|
123
|
+
6. Get the app running. Find how this repo runs locally, in this order:
|
|
124
|
+
1. a repo skill that stands it up (a `*-standup` or `run` skill);
|
|
125
|
+
2. `.claude/launch.json` through `preview_start`, when the harness has it;
|
|
126
|
+
3. the dev command in the repo's CLAUDE.md or README.
|
|
127
|
+
|
|
128
|
+
Reuse a stack that already runs. Start a missing one in the background.
|
|
129
|
+
Prefer a hot-reload dev server over a production build.
|
|
130
|
+
|
|
131
|
+
## Phase 1 — First cut on screen
|
|
132
|
+
|
|
133
|
+
1. Find the seam with the repo's code graph or with grep. Open only what you
|
|
134
|
+
must edit.
|
|
135
|
+
2. Make the change the simplest way that works.
|
|
136
|
+
3. Make it visible. When you cannot see the screen, check it with a cheap text
|
|
137
|
+
probe (`curl`, the page text). Give the user the exact URL and click path.
|
|
138
|
+
Take a screenshot only when the user cannot see the screen, or for the
|
|
139
|
+
handoff.
|
|
140
|
+
4. Checkpoint, in ONE shell call:
|
|
141
|
+
`<checkout verify --card spike-<slug>> && git add <paths> && git commit --no-verify -m "spike(<slug>): v1 — <what>"`.
|
|
142
|
+
Stage by path, never with `git add -A`: in a shared checkout an untracked
|
|
143
|
+
file can belong to another session.
|
|
144
|
+
5. Log what v1 does, what is faked (with `file:line`), what was hard, the time
|
|
145
|
+
it took, and any side effects.
|
|
146
|
+
6. Report in 10 lines or fewer, then end the turn:
|
|
147
|
+
- what you built, and where to look;
|
|
148
|
+
- what is faked;
|
|
149
|
+
- a difficulty read: what made it easy, and what a real version needs;
|
|
150
|
+
- one to three concrete next iterations.
|
|
151
|
+
|
|
152
|
+
## Phase 2 — Iterate
|
|
153
|
+
|
|
154
|
+
- **For each reaction:** make the smallest change, make it visible, checkpoint
|
|
155
|
+
it (v2, v3, …), log the user's words and the change, report, and end the
|
|
156
|
+
turn.
|
|
157
|
+
- **"Go back to vN":** run `git restore --source <vN sha> -- <paths>`, then
|
|
158
|
+
commit it as a new version.
|
|
159
|
+
- **"Show me another take":**
|
|
160
|
+
- For a different take, cut a sibling branch `spike/<slug>-alt-<n>` from the
|
|
161
|
+
starting sha. Run `checkout acquire --branch` after every switch.
|
|
162
|
+
- For a side-by-side comparison, add a temporary toggle in the page instead
|
|
163
|
+
(`?spike=a|b`).
|
|
164
|
+
- Log which take the user preferred, and why.
|
|
165
|
+
- **A change needs a restart** (server code without watch, env, dependencies):
|
|
166
|
+
say so, and restart only that process.
|
|
167
|
+
- **The real version needs heavy work** (a schema change, a new service,
|
|
168
|
+
permissions): say so. That is a finding. Offer to keep faking it.
|
|
169
|
+
- **Ask for a verdict** when the reactions settle, or when a few iterations
|
|
170
|
+
bring no new direction.
|
|
171
|
+
|
|
172
|
+
## Phase 3 — Verdict
|
|
173
|
+
|
|
174
|
+
Follow the user's words when they are clear. Otherwise ask one
|
|
175
|
+
AskUserQuestion: Keep iterating / Drop it / Move it forward.
|
|
176
|
+
|
|
177
|
+
**Drop it:**
|
|
178
|
+
|
|
179
|
+
1. Undo the logged side effects: reinstall dependencies from the lockfile,
|
|
180
|
+
regenerate generated code, restore the schema from the starting branch. Or
|
|
181
|
+
tell the user exactly what is left.
|
|
182
|
+
2. Run `git switch <starting branch>`.
|
|
183
|
+
3. Keep `spike/<slug>` and its log unless the user says to delete them. Run
|
|
184
|
+
`git branch -D` only on their word.
|
|
185
|
+
4. Release the checkout claim.
|
|
186
|
+
5. If the spike found something worth remembering, offer to file it with
|
|
187
|
+
`mcp__conveyor__create_suggestion`. Do not file it unasked.
|
|
188
|
+
|
|
189
|
+
**Move it forward:** follow [references/handoff.md](references/handoff.md).
|
|
190
|
+
|
|
191
|
+
**Keep iterating:** back to Phase 2.
|
|
192
|
+
|
|
193
|
+
## Resume
|
|
194
|
+
|
|
195
|
+
`/conveyor-spike resume [slug]`:
|
|
196
|
+
|
|
197
|
+
1. With no slug, list the logs in the spike-log directory
|
|
198
|
+
(`git rev-parse --git-path conveyor-spike`) and ask which one.
|
|
199
|
+
2. Read the log.
|
|
200
|
+
3. Run `git switch spike/<slug>`, then
|
|
201
|
+
`checkout acquire --card spike-<slug> --branch spike/<slug>`. The same
|
|
202
|
+
`--card` lets you take over a stale claim on the spike's own dirty tree.
|
|
203
|
+
4. Check that the dev stack runs.
|
|
204
|
+
5. Continue at Phase 2.
|
|
205
|
+
|
|
206
|
+
## What this skill is not
|
|
207
|
+
|
|
208
|
+
- **Not a builder.** Nothing it writes ships as written. The real build is
|
|
209
|
+
`/conveyor-plan`, then `/conveyor-build` or `/conveyor-start`.
|
|
210
|
+
- **Not a planner.** The brief is input for `/conveyor-plan`, never a plan.
|
|
211
|
+
- **Not a launcher.** Never call `mcp__conveyor__start_task` unless the user
|
|
212
|
+
asks for it after the handoff.
|
|
213
|
+
|
|
214
|
+
## Improve This Skill
|
|
215
|
+
|
|
216
|
+
If this skill was insufficient or slowed the work down, file it with
|
|
217
|
+
`mcp__conveyor__create_suggestion` on the Conveyor project: the issue,
|
|
218
|
+
evidence, and proposed fix.
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# Spike handoff — move a spike forward as an unplanned card
|
|
2
|
+
|
|
3
|
+
The "Move it forward" half of [conveyor-spike](../SKILL.md). The spike becomes
|
|
4
|
+
a NEW card in Planning with no plan. The card carries the spike brief, a short
|
|
5
|
+
chat summary of it, and optionally the spike branch as its starting point.
|
|
6
|
+
Planning belongs to `/conveyor-plan`, and Plan + Build boots a Planner only for
|
|
7
|
+
a card with no plan, so never write the brief into the card's `plan`.
|
|
8
|
+
|
|
9
|
+
Every Conveyor tool below is the local MCP surface, fully qualified.
|
|
10
|
+
|
|
11
|
+
## 1. Look for an existing card
|
|
12
|
+
|
|
13
|
+
Resolve the project first: `mcp__conveyor__get_connection_context`; if it
|
|
14
|
+
reports no default project, call `mcp__conveyor__list_projects` and match
|
|
15
|
+
`githubRepoOwner/Name` to the checkout's `git remote`. Ambiguous → ask.
|
|
16
|
+
|
|
17
|
+
If the user named a card, or `mcp__conveyor__search_tasks` on two or three
|
|
18
|
+
keywords of the idea finds a near-duplicate, offer to hand off onto that card
|
|
19
|
+
instead. Then attach the brief and post the summary there (step 5, items 3-5),
|
|
20
|
+
and skip `mcp__conveyor__create_task`.
|
|
21
|
+
|
|
22
|
+
## 2. Decide the branch
|
|
23
|
+
|
|
24
|
+
You propose; the user confirms. Two options:
|
|
25
|
+
|
|
26
|
+
- **Starting point.** The code sits in the right files and layers, and what is
|
|
27
|
+
left is hardening: replace the fakes, add tests, handle the edge cases. The
|
|
28
|
+
Builder keeps the behavior and removes the shortcuts.
|
|
29
|
+
- **None.** The real build belongs elsewhere, or the spike is mostly fakes.
|
|
30
|
+
The brief's snippets carry what matters.
|
|
31
|
+
|
|
32
|
+
If the user preferred an alt take, that branch is the one to push.
|
|
33
|
+
|
|
34
|
+
## 3. Prepare a starting point
|
|
35
|
+
|
|
36
|
+
Only for the starting-point option. Every check must pass; if one fails, fall
|
|
37
|
+
back to none and say why.
|
|
38
|
+
|
|
39
|
+
1. Run `git fetch origin <base>`. Then `git log --oneline origin/<base>..<branch>`
|
|
40
|
+
must list only spike commits. If the starting HEAD was not the base, run
|
|
41
|
+
`git rebase --onto origin/<base> <start-sha> <branch>`. On any conflict,
|
|
42
|
+
run `git rebase --abort` and fall back to none.
|
|
43
|
+
2. Read `git diff origin/<base>...<branch>`. Look for secrets, tokens,
|
|
44
|
+
personal data and stray debug files. Check `.npmrc`, `bunfig.toml` and
|
|
45
|
+
every `.env*` file by name. Remove anything you find in a final spike
|
|
46
|
+
commit. `--no-verify` skipped any commit-time secret guard the repo has, so
|
|
47
|
+
this read replaces it.
|
|
48
|
+
3. Run `git ls-remote --heads origin <branch>`. It must print nothing; if the
|
|
49
|
+
name is taken, add a suffix. Keep the `spike/` prefix. Never use a name of
|
|
50
|
+
the shape `conveyor/new-card-…`, `conveyor/task-…` or
|
|
51
|
+
`conveyor/untitled-…`: Conveyor treats those as placeholders and renames
|
|
52
|
+
them.
|
|
53
|
+
4. Run `git push --no-verify -u origin <branch>`. A local pre-push hook can
|
|
54
|
+
run the repo's whole gate, and spike code fails it by design.
|
|
55
|
+
|
|
56
|
+
## 4. Confirm with the user
|
|
57
|
+
|
|
58
|
+
Show it in one message, then wait for their yes:
|
|
59
|
+
|
|
60
|
+
- **Title:** imperative, naming the real feature. Never "Spike: …".
|
|
61
|
+
- **Description:** 255 characters or fewer, in plain words, ending
|
|
62
|
+
"Prototyped in a spike; the brief is attached."
|
|
63
|
+
- **The brief's outline** (below).
|
|
64
|
+
- **The branch decision.**
|
|
65
|
+
|
|
66
|
+
## 5. File the card
|
|
67
|
+
|
|
68
|
+
Every call after the create uses the returned task **id**, not the slug.
|
|
69
|
+
|
|
70
|
+
1. `mcp__conveyor__create_task` with `title` and `description`. Do NOT pass
|
|
71
|
+
`plan`, and omit `status` (it defaults to Planning). Omit `tags` unless you
|
|
72
|
+
are certain: pre-set tags make identification skip choosing them.
|
|
73
|
+
2. For a starting point, call `mcp__conveyor__update_task` with
|
|
74
|
+
`{ taskId, githubBranch: <branch> }` straight away. Do it BEFORE anyone
|
|
75
|
+
starts the card: a start mints a branch of its own, and a live environment
|
|
76
|
+
then refuses a new one. If the write fails, say so, and mark the branch
|
|
77
|
+
"reference only" in the brief.
|
|
78
|
+
3. Write the brief to `<spike-log dir>/<slug>-brief.md`. Call
|
|
79
|
+
`mcp__conveyor__upload_attachment` with
|
|
80
|
+
`{ taskId, path, comment: "Spike brief — read this before planning" }`.
|
|
81
|
+
The `comment` posts the file to the card's chat, which is what puts the
|
|
82
|
+
brief in front of a cloud Planner when it starts.
|
|
83
|
+
4. Call `mcp__conveyor__post_to_chat` with `{ taskId, content }`: a summary
|
|
84
|
+
under 2,000 characters. Include the Settled list, the number of open
|
|
85
|
+
questions, the branch line, and "full brief attached". Chat posts can be
|
|
86
|
+
mirrored to Slack or Discord, so keep it short.
|
|
87
|
+
5. For a visual spike, take a screenshot of the final state with the repo's
|
|
88
|
+
screenshot tool or Playwright. Upload it with a `comment`. Never set
|
|
89
|
+
`showcase: true`: a showcase file is appended to the eventual pull
|
|
90
|
+
request's body, and this is not the finished result.
|
|
91
|
+
6. Do not move the card to Open. Do not set story points, an agent or an
|
|
92
|
+
icon. Do not start the card.
|
|
93
|
+
|
|
94
|
+
## 6. Report and finish
|
|
95
|
+
|
|
96
|
+
1. Give the card URL (`<project url>/cards/<slug>`) and say what is on it.
|
|
97
|
+
2. Give the next step. It runs in a FRESH session or in the web app, never in
|
|
98
|
+
this one: this session's context is full of shortcuts. Either:
|
|
99
|
+
- plan it locally: `/conveyor-plan <card url>`, then `/conveyor-build` or
|
|
100
|
+
`/conveyor-start`;
|
|
101
|
+
- or run Plan + Build in the cloud: the card's Plan popover → Plan + Build,
|
|
102
|
+
or `/conveyor-start <card>` asking for Plan + Build.
|
|
103
|
+
3. Switch back to the starting branch, unless the user wants to stay on the
|
|
104
|
+
spike.
|
|
105
|
+
4. Release the checkout claim.
|
|
106
|
+
5. Keep the local spike branch until the card ships. Cancelling the card
|
|
107
|
+
deletes its branch on origin.
|
|
108
|
+
|
|
109
|
+
## 7. No Conveyor MCP connected
|
|
110
|
+
|
|
111
|
+
Write the brief to the spike-log directory, then print the title, the
|
|
112
|
+
description and the brief for the user. Point them to
|
|
113
|
+
[mcp-setup.md](../../conveyor-workflows/references/mcp-setup.md) to connect
|
|
114
|
+
the MCP, then run step 5. Never improvise another way to file the card.
|
|
115
|
+
|
|
116
|
+
## The brief
|
|
117
|
+
|
|
118
|
+
Fixed headings, under about 4,000 characters:
|
|
119
|
+
|
|
120
|
+
```markdown
|
|
121
|
+
## Spike brief — <idea>
|
|
122
|
+
|
|
123
|
+
Filed by /conveyor-spike from a local session on <date>. Input for
|
|
124
|
+
/conveyor-plan, not a plan.
|
|
125
|
+
|
|
126
|
+
### The idea
|
|
127
|
+
<the user's own words>
|
|
128
|
+
|
|
129
|
+
### What the spike proved
|
|
130
|
+
- <bullets; refer to the screenshot when there is one>
|
|
131
|
+
|
|
132
|
+
### Settled with <user> — do not relitigate
|
|
133
|
+
- <decision> — <the user's reason>
|
|
134
|
+
|
|
135
|
+
### Still open
|
|
136
|
+
- <questions the planner owns>
|
|
137
|
+
|
|
138
|
+
### Difficulty and direction
|
|
139
|
+
- Easy because: <…>
|
|
140
|
+
- Faked, and what the real build needs instead: <…>
|
|
141
|
+
- Size guess: <one card | a pack>
|
|
142
|
+
- Riskiest unknown: <…>
|
|
143
|
+
|
|
144
|
+
### How the spike did it
|
|
145
|
+
<`git diff --stat <start-sha>..<branch>`, then the 1-3 snippets that carry the idea>
|
|
146
|
+
|
|
147
|
+
### De-spike checklist
|
|
148
|
+
- [ ] <every fake, hardcode, toggle and stub, with file:line>
|
|
149
|
+
|
|
150
|
+
### Side effects left behind
|
|
151
|
+
- <only when there are any>
|
|
152
|
+
|
|
153
|
+
### Branch
|
|
154
|
+
<one of:>
|
|
155
|
+
starting point `<branch>`, cut from `<base>` at `<sha>`. Cancelling this card deletes it on origin.
|
|
156
|
+
reference only `<branch>`
|
|
157
|
+
none
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
With a starting point, the de-spike checklist is exactly what the Builder
|
|
161
|
+
removes.
|