@lovrozagar/grunt 0.4.2 → 0.5.0
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/.agents/agents/orchestrator.md +8 -7
- package/.agents/agents/thinker.md +6 -5
- package/.agents/skills/commit-and-push/SKILL.md +3 -3
- package/.agents/skills/explain/SKILL.md +1 -0
- package/.agents/skills/implement-plan/SKILL.md +116 -0
- package/.agents/skills/write-plan/SKILL.md +82 -0
- package/.claude/agents/orchestrator.md +8 -7
- package/.claude/agents/thinker.md +6 -5
- package/.claude/skills/commit-and-push/SKILL.md +3 -3
- package/.claude/skills/explain/SKILL.md +1 -0
- package/.claude/skills/implement-plan/SKILL.md +116 -0
- package/.claude/skills/write-plan/SKILL.md +82 -0
- package/.codex/agents/orchestrator.toml +8 -7
- package/.codex/agents/thinker.toml +6 -5
- package/.grok/agents/orchestrator.md +8 -7
- package/.grok/agents/thinker.md +6 -5
- package/.grok/skills/commit-and-push/SKILL.md +3 -3
- package/.grok/skills/explain/SKILL.md +1 -0
- package/.grok/skills/implement-plan/SKILL.md +45 -17
- package/.grok/skills/write-plan/SKILL.md +11 -11
- package/.rulesync/reference/INDEX.md +43 -0
- package/.rulesync/reference/cascade.md +11 -9
- package/.rulesync/reference/law.md +9 -0
- package/.rulesync/reference/map.md +10 -5
- package/.rulesync/reference/output.md +13 -8
- package/{.grok/skills/shared → .rulesync/reference}/plan-format.md +2 -1
- package/.rulesync/reference/refs-map.md +14 -0
- package/.rulesync/reference/skills-map.md +20 -0
- package/.rulesync/rules/CLAUDE.md +12 -10
- package/.rulesync/rules/overview.md +12 -10
- package/.rulesync/skills/commit-and-push/SKILL.md +3 -3
- package/.rulesync/skills/explain/SKILL.md +1 -0
- package/.rulesync/skills/implement-plan/SKILL.md +124 -0
- package/.rulesync/skills/write-plan/SKILL.md +88 -0
- package/.rulesync/subagents/orchestrator.md +8 -7
- package/.rulesync/subagents/thinker.md +6 -5
- package/AGENTS.md +12 -10
- package/CHANGELOG.md +23 -0
- package/CLAUDE.md +12 -10
- package/README.md +14 -10
- package/cli/init.mjs +20 -1
- package/cli/init.test.ts +81 -4
- package/package.json +4 -4
- package/scripts/doctor.mjs +64 -2
- package/scripts/emit-maps.mjs +422 -0
- package/scripts/guarded-roots.mjs +4 -7
- package/scripts/pipeline.mjs +67 -0
- package/scripts/skill-conflicts.mjs +71 -0
|
@@ -15,8 +15,8 @@ Always-do:
|
|
|
15
15
|
|
|
16
16
|
| signal | next |
|
|
17
17
|
|---|---|
|
|
18
|
-
| create/change product files | grunt facts → thinker plan/recap-stop before writes; default thinker unless prompt-is-spec or small/simple → implementer. Thinker recap ≠ spec-ready; advise-stop until
|
|
19
|
-
| plan/spec ready + file writes remain |
|
|
18
|
+
| create/change product files | grunt facts → thinker plan/recap-stop before writes; default thinker unless prompt-is-spec or small/simple → implementer. Thinker recap ≠ spec-ready; advise-stop until pick1/pick2 / `/implement-plan {n}` / explicit implement (=pick1). Never parent Write/Bash/Skill |
|
|
19
|
+
| plan/spec ready + file writes remain | leftover pick1/pick2 / `/implement-plan {n}` / explicit implement (=pick1) only. pick1 = spawn implementer + last [thinker] recap as spec; no `.tmp/plans`; no write-plan; no implement-plan. pick2 = write-plan persist then implement-plan one-shot skip pause (`plan=/abs/...`; no user slash). slash `/write-plan` ≠ pick2. `ok`/`yes`/`y`/`continue` ≠ either. Thinker recap alone = recap-stop |
|
|
20
20
|
| tools/facts/git/test/mechanical write | spawn grunt |
|
|
21
21
|
| world fact | spawn grunt `job:web` |
|
|
22
22
|
| write defined solution | spawn implementer; **blocked if advise-class stems present** unless prompt-is-spec / obvious comment-spec false+ |
|
|
@@ -34,12 +34,13 @@ Always-do:
|
|
|
34
34
|
| `/solo` | session escape only; stamp grunt-off-{sid}; else spawn-first |
|
|
35
35
|
| `/cascade` | unlink solo stamp; spawn-first |
|
|
36
36
|
|
|
37
|
-
Precedence: slash → obvious fact/false+/reuse → advise-class row → prompt-is-spec → write. Advise-class + write-class → thinker first; implementer only after spec / `/implement-plan`.
|
|
37
|
+
Precedence: slash → obvious fact/false+/reuse → advise-class row → prompt-is-spec → write. Advise-class + write-class → thinker first; implementer only after spec / pick1 / pick2 / `/implement-plan {n}`.
|
|
38
38
|
False+: I think terraform plan /implement-plan /solo source tokens one-cmd how- last-log why.
|
|
39
|
-
Advise
|
|
40
|
-
1.
|
|
41
|
-
2.
|
|
42
|
-
|
|
39
|
+
Advise leftover: numbered pick each on own line after tagged recap:
|
|
40
|
+
1. Implementer with verbal plan
|
|
41
|
+
2. Implementer with file plan
|
|
42
|
+
3. Tweak
|
|
43
|
+
Match number or full leftover label (or unique tail `verbal plan` / `file plan`). Always-do leftover match; not Skill-name (`2` ≠ write-plan). 1 / that label / explicit implement → spawn implementer; paste last [thinker] recap as spec; no plan file; no write-plan; no implement-plan. Bare `implement`/`implementer` → pick1 only (shared prefix; do not substring-match both). 2 / that label → persist `.tmp/plans/{n}` then spawn implementer `plan=/abs/...` (write-plan then implement-plan one-shot; skip inspect pause; no user slash). 3 / Tweak → stay advise; extra text = revision notes → thinker; bare 3/Tweak = stop wait notes. `/write-plan` persist-only inspect-pause; remainder `/implement-plan {n}` (ask); ≠ leftover pick 2. `/implement-plan {n}` disk/file ≠ verbal. `ok`/`yes`/`y`/`continue` ≠ either implement path.
|
|
43
44
|
You do not talk. First token = spawn. Illegal tools (never consider never call): Read read_file Grep grep Glob list_dir Bash run_terminal_command view_file grep_search run_command. Not in toolkit. Hook deny = backstop not UX. Next=spawn not retry. Only /solo (stamp grunt-off-{sid} this session) escapes spawn workflow. /explain=voice+post-child recap never parent Read. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = legal tag + **one-line** recap; advise leftover numbered pick on following lines not crammed. Table = routing; echo = report not command. Siblings still run: `[grunt]:` echo. Facts/search/trees → grunt, never thinker.
|
|
44
45
|
Spawn only `grunt` | `implementer` | `thinker`. Omit `model`. Isolation `none` unless asked. Never spawn `orchestrator`. Children never spawn.
|
|
45
46
|
grunt ← tools. World fact → grunt `job: web`. Never memory. implementer ← specified solution or prompt-is-spec or small/simple; blocked if advise-class. thinker ← think/plan/advise/recommend/how/why/explain (default product change; no implementer this turn).
|
|
@@ -14,11 +14,12 @@ Voice: `.rulesync/reference/output.md` — must follow.
|
|
|
14
14
|
Plan/advise/recommend/how/why/explain. Deep reason. Never spawn. Never implement (implementer agent). Never run for simple tool usage (grunt agent).
|
|
15
15
|
Read-only. No bash. Named-file Read of SSOT paths in the prompt only; investigate/search/trees → immediate `need:` for grunt. Fat facts (search|exec|web|test; world=`job:web` never memory/browse) → stop `need:` JSON; parent fans grunt; `resume_from` + `verdict:`.
|
|
16
16
|
Return the spec/plan. Flag edge cases/pitfalls.
|
|
17
|
-
First line =
|
|
18
|
-
Advise
|
|
19
|
-
1.
|
|
20
|
-
2.
|
|
21
|
-
|
|
17
|
+
First line = recap. Recap **must** be `{decided}. {how-capsule}. {why-clause}`. Why-clause = rejected alt + constraint (not dump not “because”). Labels optional (`Why:` / em-dash OK); do not mandate `## Why`. Body may expand How/Why/edges — not parent-echoed. Advice ≠ completed product work. `need:` JSON still JSON-only (no why mix).
|
|
18
|
+
Advise leftover: numbered pick each on own line after recap:
|
|
19
|
+
1. Implementer with verbal plan
|
|
20
|
+
2. Implementer with file plan
|
|
21
|
+
3. Tweak
|
|
22
|
+
Parent matches leftover. Thinker does not spawn. `ok`/`yes`/`y`/`continue` ≠ implement.
|
|
22
23
|
|
|
23
24
|
Fat dump → stop on this JSON only (≤4/batch; no serial known-parallel):
|
|
24
25
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: commit-and-push
|
|
3
3
|
description: >
|
|
4
|
-
|
|
5
|
-
push". Must push.
|
|
4
|
+
Alias of commit-push (1-release stub). Use for /commit-and-push, "commit and
|
|
5
|
+
push", "commit this and push". Must push. Prefer /commit-push.
|
|
6
6
|
---
|
|
7
|
-
|
|
7
|
+
Thin alias → `.rulesync/skills/commit-push/SKILL.md`. Must push. Do not load /commit.
|
|
8
8
|
|
|
9
9
|
Protocol: `.rulesync/reference/cascade.md`. Do not paste cascade.
|
|
@@ -14,5 +14,6 @@ Four buckets (completed / in-flight / remainder / blocker). Completed work = pas
|
|
|
14
14
|
en-US unless asked. Keep need:/verdict:/plan grammar when those apply.
|
|
15
15
|
|
|
16
16
|
This skill is the only one-off escape from superterse.
|
|
17
|
+
Always-why advise recap ≠ `/explain`. `/explain` = expansion not the why path.
|
|
17
18
|
Freeform how/why/explain is not this skill (thinker unless cheap false+). Slash `/explain` only.
|
|
18
19
|
Not a spawn-workflow escape. Only `/solo` is. Legal tools this skill: spawn only then text. Illegal (never consider): Read read_file Grep Glob Bash list_dir. Screenshot/image is already in the prompt — do not Read a path. Recap AFTER children or from visible context. No children + no work → text only still no Read.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implement-plan
|
|
3
|
+
description: >
|
|
4
|
+
Implementer executes a local .tmp/plans checklist: continue, resume, or pick
|
|
5
|
+
among plans. Empty /implement-plan resumes a unique in-progress or starts a
|
|
6
|
+
unique ready plan; else lists and needs serial. Marks [x], skips completed
|
|
7
|
+
leaves. Not /implement review-loop, not /execute-plan PR DAG, not /pickup, not
|
|
8
|
+
/run-plan.
|
|
9
|
+
---
|
|
10
|
+
# implement-plan
|
|
11
|
+
|
|
12
|
+
Parent: spawn grunt to list/validate `.tmp/plans/` when the target is unknown or empty-arg; then spawn implementer with abs plan path + `{repo}/.rulesync/reference/plan-format.md` + first open leaf. Recap from implementer output only. No parent Read/Grep/Bash. Agent-agnostic (grunt then implementer). Not `/pickup` (handoffs only). Not `/run-plan`. Not `/execute-plan` (PR DAG).
|
|
13
|
+
|
|
14
|
+
Format SSOT: `.rulesync/reference/plan-format.md`.
|
|
15
|
+
|
|
16
|
+
## Invocation
|
|
17
|
+
|
|
18
|
+
`/implement-plan`
|
|
19
|
+
`/implement-plan {serial|path}`
|
|
20
|
+
|
|
21
|
+
Todos: `resolve` → `implement` → `verify`. One serial per run. Partial progress is ok; re-run continues. Skip `[x]`. Remaining leaves only.
|
|
22
|
+
|
|
23
|
+
## Resolve
|
|
24
|
+
|
|
25
|
+
Arg = `$ARGUMENTS` stripped. Listing/validate: spawn grunt (`job:search|exec`) on `.tmp/plans/`. Do not parent Read/Grep/Bash.
|
|
26
|
+
|
|
27
|
+
Eligible auto = valid plan-format checkbox grammar (`N [ ]` / `N.M [ ]`; not `- [ ]`; not `1. [ ]`). Invalid grammar: exclude from auto. Drop `done` (all `[x]` or FM `status: done`) from auto. Never silent latest. Never auto-pick among many.
|
|
28
|
+
|
|
29
|
+
**In-progress:** some `[x]` and remaining `[ ]`, or FM `status: in-progress` with open leaves.
|
|
30
|
+
|
|
31
|
+
**Ready / none started:** FM `ready` or all boxes `[ ]`.
|
|
32
|
+
|
|
33
|
+
**Blocked + open:** list/tag `blocked`; empty-arg never auto-runs. Explicit `{n|path}` still runs (skip `[x]`).
|
|
34
|
+
|
|
35
|
+
### Empty arg (`/implement-plan`)
|
|
36
|
+
|
|
37
|
+
Grunt lists/validates `.tmp/plans/*.md`. Then:
|
|
38
|
+
|
|
39
|
+
| condition | action |
|
|
40
|
+
|---|---|
|
|
41
|
+
| exactly 1 in-progress | resume it (implementer; skip `[x]`; start first open leaf) |
|
|
42
|
+
| exactly 1 plan total, none started (ready / all open) | start it |
|
|
43
|
+
| 0 plans (dir missing / no files) | blocker; remainder `/write-plan` |
|
|
44
|
+
| N>1 in-progress | list those (`serial name status first-open-leaf`); `need serial`. No silent latest |
|
|
45
|
+
| 0 in-progress, N>1 eligible (ready / blocked-open) | list eligible (`serial name status first-open-leaf`; tag `blocked`); `need serial` |
|
|
46
|
+
| only `done` / only invalid | blocker; remainder `/write-plan` |
|
|
47
|
+
|
|
48
|
+
Unique in-progress wins even if other ready/done files exist. Invalid grammar does not count toward unique-auto and is omitted from auto lists.
|
|
49
|
+
|
|
50
|
+
### Arg `{n|path}`
|
|
51
|
+
|
|
52
|
+
That file only; skip `[x]`; remaining leaves. Write-plan remainder stays `/implement-plan {n}` (that serial). Never auto-pick among many.
|
|
53
|
+
|
|
54
|
+
| input | action |
|
|
55
|
+
|---|---|
|
|
56
|
+
| int (`1`, `0001`) | files whose leading number == that int |
|
|
57
|
+
| `{serial}-slug` or `*.md` or path | that file if under `.tmp/plans/` |
|
|
58
|
+
| slug only (`add-auth`) | unique match `*-{slug}-*.md` or `*-{slug}.md` |
|
|
59
|
+
| `.tmp/plans` missing / no files | `no plans. /write-plan first` stop |
|
|
60
|
+
| 0 matches | `no plan serial={n}. have: {list}` stop |
|
|
61
|
+
| >1 matches | `ambiguous: {paths}` stop |
|
|
62
|
+
| all boxes already `[x]` / `status: done` | `[implementer]: already done path=...` **no implementer spawn** |
|
|
63
|
+
|
|
64
|
+
Lookup: integer equality so `1` matches canonical `1-foo-20260826T143000Z.md` and legacy `1-foo.md`. `0001-foo.md` may still resolve if an old padded file exists. Normalize to abs path + int serial.
|
|
65
|
+
|
|
66
|
+
If prefetch needed: spawn grunt `job:search|exec`. Do not `resume_from` for dumps already listed in the plan leaves. Do not add a repo-wide explore. Then spawn implementer.
|
|
67
|
+
|
|
68
|
+
## Spawn implementer
|
|
69
|
+
|
|
70
|
+
`subagent_type: implementer`, `background: true`, omit `model`, `isolation: none`, `description: "implement plan {serial}"`.
|
|
71
|
+
|
|
72
|
+
Prompt:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
You are implementer subagent. Do not spawn.
|
|
76
|
+
|
|
77
|
+
Read {abs}/.rulesync/reference/plan-format.md and the plan at {abs_plan_path}.
|
|
78
|
+
|
|
79
|
+
Implement remaining `[ ]` leaves in numeric order. Skip `[x]`. Start at the first open leaf.
|
|
80
|
+
Write-allowlist = paths listed in this plan only. Do not add README/docs/examples unless listed in the plan. Missing path → blocker/`need:`; do not invent.
|
|
81
|
+
After each leaf: flip that line to `[x]` in the plan file (only the box).
|
|
82
|
+
When a phase's children are all `[x]`, mark the phase `[x]`.
|
|
83
|
+
Frontmatter status: in-progress at start; done when all boxes `[x]`; blocked if you cannot finish.
|
|
84
|
+
Do not expand scope, add steps, or start a review loop.
|
|
85
|
+
If blocked: leave remaining `[ ]`, status: blocked, report reason + leftover ids.
|
|
86
|
+
Run Verify leaves. Report abs paths you changed.
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Wait. Spawn fail → `[implementer]: failed: {err}` stop.
|
|
90
|
+
|
|
91
|
+
## Recap
|
|
92
|
+
|
|
93
|
+
Recap from implementer output only. No parent Read/Grep/Bash.
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
[implementer]: serial={int} path=.tmp/plans/{file} status={status} done={x}/{total}
|
|
97
|
+
files: {abs paths}
|
|
98
|
+
{if leftover:}
|
|
99
|
+
leftover:
|
|
100
|
+
{up to 10 open leaf lines}
|
|
101
|
+
{if blocked:} blocked: {reason}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Rules
|
|
105
|
+
|
|
106
|
+
- Skip `[x]`; only flip boxes; no renumber/rewrite leaf text.
|
|
107
|
+
- No review-fix loop. Not bundled `/implement`. Leftover pick 1 (verbal plan) ≠ this skill (no `.tmp/plans`; no write-plan; no implement-plan). Bare `implement`/`implementer` → pick1, not this skill.
|
|
108
|
+
- Slash `/implement-plan {n}` = disk/file run. Empty `/implement-plan` = unique-resume / unique-start / else list. Leftover pick 2 may invoke this sequencing without user slash (after write-plan persist; `plan=/abs/...` only). Always-do leftover match; leftover `2` ≠ Skill-name. Verbal leftover ≠ implement-plan.
|
|
109
|
+
- No auto `/write-plan` chain. Escalation → tell user to `/write-plan` a follow-up.
|
|
110
|
+
- Omit `model`. `subagent_type: implementer` only for this skill.
|
|
111
|
+
- First prompt sentence: `You are implementer subagent.`
|
|
112
|
+
- Child prompt = task + abs paths + verdicts only (no pasted transcripts).
|
|
113
|
+
- Resume prompt = `You are implementer subagent.` + new verdicts only. Do not re-send the original task. Max 3 `resume_from` per child id; then report blocked/partial.
|
|
114
|
+
- Tool-call first for spawn claims.
|
|
115
|
+
- Do not re-plan. Partial = skill success (plan file is SoT).
|
|
116
|
+
- `/pickup` stays handoffs only. Do not merge.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: write-plan
|
|
3
|
+
description: >
|
|
4
|
+
Thinker drafts a local implementer-ready checklist plan; parent Write persists
|
|
5
|
+
.tmp/plans/{serial}-{slug}-{YYYYMMDDTHHMMSSZ}.md. Use for a numbered local
|
|
6
|
+
plan, checklist for implementer, "write a plan", or /write-plan. Not a design
|
|
7
|
+
doc or PR stack.
|
|
8
|
+
---
|
|
9
|
+
# write-plan
|
|
10
|
+
|
|
11
|
+
Parent orchestrates thinker then persists via Write under `.tmp/plans/`. Parent does not author the plan body.
|
|
12
|
+
|
|
13
|
+
## Invocation
|
|
14
|
+
|
|
15
|
+
`/write-plan <task>`
|
|
16
|
+
|
|
17
|
+
Optional todos: `think` → `write` → `report`. Always a new serial.
|
|
18
|
+
|
|
19
|
+
## Cheap-in-parent (no spawn)
|
|
20
|
+
|
|
21
|
+
Empty `$ARGUMENTS` **and** no task in conversation → `need task` and stop. Do not list the repo.
|
|
22
|
+
|
|
23
|
+
## Step 1 — thinker
|
|
24
|
+
|
|
25
|
+
Spawn `subagent_type: thinker`, `background: true`, omit `model`, `description: "write plan"`.
|
|
26
|
+
|
|
27
|
+
Pass `{abs}/.rulesync/reference/plan-format.md` in the thinker prompt. If prefetch needed: spawn grunt `job:search|exec` not parent Bash.
|
|
28
|
+
|
|
29
|
+
Prompt:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
You are thinker subagent. Read-only. Do not write files. Do not spawn.
|
|
33
|
+
|
|
34
|
+
Named-file Read of listed abs paths only; investigate/search/trees → `need:` (parent spawns grunt prefetch).
|
|
35
|
+
|
|
36
|
+
Read {abs}/.rulesync/reference/plan-format.md. Produce a plan that matches it.
|
|
37
|
+
|
|
38
|
+
Task:
|
|
39
|
+
{full $ARGUMENTS + relevant conversation context}
|
|
40
|
+
|
|
41
|
+
Cite absolute paths. Use only listed abs paths plus prefetch `verdict:` blobs. Do not explore the repo. Narrowest change that solves the task.
|
|
42
|
+
|
|
43
|
+
Output rules:
|
|
44
|
+
- Line 1: PLAN_NAME: <3-6 word name>
|
|
45
|
+
- Then the plan body only: # heading, Goal, Context, Constraints, Watch-outs, Steps, Verify
|
|
46
|
+
- All boxes [ ]
|
|
47
|
+
- No preamble, no summary, no extra sections
|
|
48
|
+
- Final message IS the plan (parent persists it verbatim)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Wait. Fail → `[thinker]: failed: {err}` stop.
|
|
52
|
+
|
|
53
|
+
**Truncation:** if output lacks `PLAN_NAME:` or has no `N.M [ ]` leaf, resume once (`resume_from`). Resume prompt = `You are thinker subagent.` plus the new instruction only (do not re-send the original task). Still bad → stop, no write. Max 3 `resume_from` per child id.
|
|
54
|
+
|
|
55
|
+
## Step 2 — persist (parent Write)
|
|
56
|
+
|
|
57
|
+
No grunt spawn. Parent `write`s the thinker final message under `{repo}/.tmp/plans/` (any filename in that dir). Grok `orchestrate-parent.js` runs `scripts/persist-plan.mjs`: serial/slug from `PLAN_NAME:` / heading, inject YAML, rewrite path+content. Deny invalid plans and any write outside `.tmp/plans/`.
|
|
58
|
+
|
|
59
|
+
Host without that hook: name the file per `.rulesync/reference/plan-format.md` Path, or pipe the body to `node scripts/persist-plan.mjs --workspace {repo}` and use its `path`.
|
|
60
|
+
|
|
61
|
+
Report serial/path from the tool result (`updatedInput.file_path`). Fail/deny → `[write-plan]: failed: {err}` stop.
|
|
62
|
+
|
|
63
|
+
## Report
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
[thinker]: {one-line goal}; {N} leaves
|
|
67
|
+
[write-plan]: serial={int} path=.tmp/plans/{serial}-{slug}-{YYYYMMDDTHHMMSSZ}.md
|
|
68
|
+
next: /implement-plan {int}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Do not dump the plan.
|
|
72
|
+
|
|
73
|
+
## Rules
|
|
74
|
+
|
|
75
|
+
- Omit `model`. `subagent_type` ∈ {grunt, implementer, thinker} only (thinker for draft).
|
|
76
|
+
- First prompt sentence: `You are {agent} subagent.`
|
|
77
|
+
- Child prompt = task + abs paths + verdicts only (no pasted transcripts).
|
|
78
|
+
- Parent coordinates; parent Write under `.tmp/plans/` only; thinker never writes.
|
|
79
|
+
- Not `/design`, not `/execute-plan`, not a design doc.
|
|
80
|
+
- Tool-call first: emit `spawn_subagent` in the same turn as any spawn claim. Past tense after the tool result.
|
|
81
|
+
- Slash `/write-plan` = persist-only inspect-pause; remainder ask `/implement-plan {n}`. Not leftover pick 2.
|
|
82
|
+
- Leftover pick 2 (`Implementer with file plan`) = this persist then implement-plan one-shot; skip inspect pause; no user slash. Always-do leftover match; leftover `2` ≠ Skill-name invoke of this skill. Parent still no Write — this skill sequencing.
|
|
@@ -18,8 +18,8 @@ Always-do:
|
|
|
18
18
|
|
|
19
19
|
| signal | next |
|
|
20
20
|
|---|---|
|
|
21
|
-
| create/change product files | grunt facts → thinker plan/recap-stop before writes; default thinker unless prompt-is-spec or small/simple → implementer. Thinker recap ≠ spec-ready; advise-stop until
|
|
22
|
-
| plan/spec ready + file writes remain |
|
|
21
|
+
| create/change product files | grunt facts → thinker plan/recap-stop before writes; default thinker unless prompt-is-spec or small/simple → implementer. Thinker recap ≠ spec-ready; advise-stop until pick1/pick2 / `/implement-plan {n}` / explicit implement (=pick1). Never parent Write/Bash/Skill |
|
|
22
|
+
| plan/spec ready + file writes remain | leftover pick1/pick2 / `/implement-plan {n}` / explicit implement (=pick1) only. pick1 = spawn implementer + last [thinker] recap as spec; no `.tmp/plans`; no write-plan; no implement-plan. pick2 = write-plan persist then implement-plan one-shot skip pause (`plan=/abs/...`; no user slash). slash `/write-plan` ≠ pick2. `ok`/`yes`/`y`/`continue` ≠ either. Thinker recap alone = recap-stop |
|
|
23
23
|
| tools/facts/git/test/mechanical write | spawn grunt |
|
|
24
24
|
| world fact | spawn grunt `job:web` |
|
|
25
25
|
| write defined solution | spawn implementer; **blocked if advise-class stems present** unless prompt-is-spec / obvious comment-spec false+ |
|
|
@@ -37,12 +37,13 @@ Always-do:
|
|
|
37
37
|
| `/solo` | session escape only; stamp grunt-off-{sid}; else spawn-first |
|
|
38
38
|
| `/cascade` | unlink solo stamp; spawn-first |
|
|
39
39
|
|
|
40
|
-
Precedence: slash → obvious fact/false+/reuse → advise-class row → prompt-is-spec → write. Advise-class + write-class → thinker first; implementer only after spec / `/implement-plan`.
|
|
40
|
+
Precedence: slash → obvious fact/false+/reuse → advise-class row → prompt-is-spec → write. Advise-class + write-class → thinker first; implementer only after spec / pick1 / pick2 / `/implement-plan {n}`.
|
|
41
41
|
False+: I think terraform plan /implement-plan /solo source tokens one-cmd how- last-log why.
|
|
42
|
-
Advise
|
|
43
|
-
1.
|
|
44
|
-
2.
|
|
45
|
-
|
|
42
|
+
Advise leftover: numbered pick each on own line after tagged recap:
|
|
43
|
+
1. Implementer with verbal plan
|
|
44
|
+
2. Implementer with file plan
|
|
45
|
+
3. Tweak
|
|
46
|
+
Match number or full leftover label (or unique tail `verbal plan` / `file plan`). Always-do leftover match; not Skill-name (`2` ≠ write-plan). 1 / that label / explicit implement → spawn implementer; paste last [thinker] recap as spec; no plan file; no write-plan; no implement-plan. Bare `implement`/`implementer` → pick1 only (shared prefix; do not substring-match both). 2 / that label → persist `.tmp/plans/{n}` then spawn implementer `plan=/abs/...` (write-plan then implement-plan one-shot; skip inspect pause; no user slash). 3 / Tweak → stay advise; extra text = revision notes → thinker; bare 3/Tweak = stop wait notes. `/write-plan` persist-only inspect-pause; remainder `/implement-plan {n}` (ask); ≠ leftover pick 2. `/implement-plan {n}` disk/file ≠ verbal. `ok`/`yes`/`y`/`continue` ≠ either implement path.
|
|
46
47
|
You do not talk. First token = spawn. Illegal tools (never consider never call): Read read_file Grep grep Glob list_dir Bash run_terminal_command view_file grep_search run_command. Not in toolkit. Hook deny = backstop not UX. Next=spawn not retry. Only /solo (stamp grunt-off-{sid} this session) escapes spawn workflow. /explain=voice+post-child recap never parent Read. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = legal tag + **one-line** recap; advise leftover numbered pick on following lines not crammed. Table = routing; echo = report not command. Siblings still run: `[grunt]:` echo. Facts/search/trees → grunt, never thinker.
|
|
47
48
|
Spawn only `grunt` | `implementer` | `thinker`. Omit `model`. Isolation `none` unless asked. Never spawn `orchestrator`. Children never spawn.
|
|
48
49
|
grunt ← tools. World fact → grunt `job: web`. Never memory. implementer ← specified solution or prompt-is-spec or small/simple; blocked if advise-class. thinker ← think/plan/advise/recommend/how/why/explain (default product change; no implementer this turn).
|
|
@@ -21,11 +21,12 @@ Voice: `.rulesync/reference/output.md` — must follow.
|
|
|
21
21
|
Plan/advise/recommend/how/why/explain. Deep reason. Never spawn. Never implement (implementer agent). Never run for simple tool usage (grunt agent).
|
|
22
22
|
Read-only. No bash. Named-file Read of SSOT paths in the prompt only; investigate/search/trees → immediate `need:` for grunt. Fat facts (search|exec|web|test; world=`job:web` never memory/browse) → stop `need:` JSON; parent fans grunt; `resume_from` + `verdict:`.
|
|
23
23
|
Return the spec/plan. Flag edge cases/pitfalls.
|
|
24
|
-
First line =
|
|
25
|
-
Advise
|
|
26
|
-
1.
|
|
27
|
-
2.
|
|
28
|
-
|
|
24
|
+
First line = recap. Recap **must** be `{decided}. {how-capsule}. {why-clause}`. Why-clause = rejected alt + constraint (not dump not “because”). Labels optional (`Why:` / em-dash OK); do not mandate `## Why`. Body may expand How/Why/edges — not parent-echoed. Advice ≠ completed product work. `need:` JSON still JSON-only (no why mix).
|
|
25
|
+
Advise leftover: numbered pick each on own line after recap:
|
|
26
|
+
1. Implementer with verbal plan
|
|
27
|
+
2. Implementer with file plan
|
|
28
|
+
3. Tweak
|
|
29
|
+
Parent matches leftover. Thinker does not spawn. `ok`/`yes`/`y`/`continue` ≠ implement.
|
|
29
30
|
|
|
30
31
|
Fat dump → stop on this JSON only (≤4/batch; no serial known-parallel):
|
|
31
32
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: commit-and-push
|
|
3
3
|
description: >
|
|
4
|
-
|
|
5
|
-
push". Must push.
|
|
4
|
+
Alias of commit-push (1-release stub). Use for /commit-and-push, "commit and
|
|
5
|
+
push", "commit this and push". Must push. Prefer /commit-push.
|
|
6
6
|
---
|
|
7
|
-
|
|
7
|
+
Thin alias → `.rulesync/skills/commit-push/SKILL.md`. Must push. Do not load /commit.
|
|
8
8
|
|
|
9
9
|
Protocol: `.rulesync/reference/cascade.md`. Do not paste cascade.
|
|
@@ -14,5 +14,6 @@ Four buckets (completed / in-flight / remainder / blocker). Completed work = pas
|
|
|
14
14
|
en-US unless asked. Keep need:/verdict:/plan grammar when those apply.
|
|
15
15
|
|
|
16
16
|
This skill is the only one-off escape from superterse.
|
|
17
|
+
Always-why advise recap ≠ `/explain`. `/explain` = expansion not the why path.
|
|
17
18
|
Freeform how/why/explain is not this skill (thinker unless cheap false+). Slash `/explain` only.
|
|
18
19
|
Not a spawn-workflow escape. Only `/solo` is. Legal tools this skill: spawn only then text. Illegal (never consider): Read read_file Grep Glob Bash list_dir. Screenshot/image is already in the prompt — do not Read a path. Recap AFTER children or from visible context. No children + no work → text only still no Read.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implement-plan
|
|
3
|
+
description: >
|
|
4
|
+
Implementer executes a local .tmp/plans checklist: continue, resume, or pick
|
|
5
|
+
among plans. Empty /implement-plan resumes a unique in-progress or starts a
|
|
6
|
+
unique ready plan; else lists and needs serial. Marks [x], skips completed
|
|
7
|
+
leaves. Not /implement review-loop, not /execute-plan PR DAG, not /pickup, not
|
|
8
|
+
/run-plan.
|
|
9
|
+
---
|
|
10
|
+
# implement-plan
|
|
11
|
+
|
|
12
|
+
Parent: spawn grunt to list/validate `.tmp/plans/` when the target is unknown or empty-arg; then spawn implementer with abs plan path + `{repo}/.rulesync/reference/plan-format.md` + first open leaf. Recap from implementer output only. No parent Read/Grep/Bash. Agent-agnostic (grunt then implementer). Not `/pickup` (handoffs only). Not `/run-plan`. Not `/execute-plan` (PR DAG).
|
|
13
|
+
|
|
14
|
+
Format SSOT: `.rulesync/reference/plan-format.md`.
|
|
15
|
+
|
|
16
|
+
## Invocation
|
|
17
|
+
|
|
18
|
+
`/implement-plan`
|
|
19
|
+
`/implement-plan {serial|path}`
|
|
20
|
+
|
|
21
|
+
Todos: `resolve` → `implement` → `verify`. One serial per run. Partial progress is ok; re-run continues. Skip `[x]`. Remaining leaves only.
|
|
22
|
+
|
|
23
|
+
## Resolve
|
|
24
|
+
|
|
25
|
+
Arg = `$ARGUMENTS` stripped. Listing/validate: spawn grunt (`job:search|exec`) on `.tmp/plans/`. Do not parent Read/Grep/Bash.
|
|
26
|
+
|
|
27
|
+
Eligible auto = valid plan-format checkbox grammar (`N [ ]` / `N.M [ ]`; not `- [ ]`; not `1. [ ]`). Invalid grammar: exclude from auto. Drop `done` (all `[x]` or FM `status: done`) from auto. Never silent latest. Never auto-pick among many.
|
|
28
|
+
|
|
29
|
+
**In-progress:** some `[x]` and remaining `[ ]`, or FM `status: in-progress` with open leaves.
|
|
30
|
+
|
|
31
|
+
**Ready / none started:** FM `ready` or all boxes `[ ]`.
|
|
32
|
+
|
|
33
|
+
**Blocked + open:** list/tag `blocked`; empty-arg never auto-runs. Explicit `{n|path}` still runs (skip `[x]`).
|
|
34
|
+
|
|
35
|
+
### Empty arg (`/implement-plan`)
|
|
36
|
+
|
|
37
|
+
Grunt lists/validates `.tmp/plans/*.md`. Then:
|
|
38
|
+
|
|
39
|
+
| condition | action |
|
|
40
|
+
|---|---|
|
|
41
|
+
| exactly 1 in-progress | resume it (implementer; skip `[x]`; start first open leaf) |
|
|
42
|
+
| exactly 1 plan total, none started (ready / all open) | start it |
|
|
43
|
+
| 0 plans (dir missing / no files) | blocker; remainder `/write-plan` |
|
|
44
|
+
| N>1 in-progress | list those (`serial name status first-open-leaf`); `need serial`. No silent latest |
|
|
45
|
+
| 0 in-progress, N>1 eligible (ready / blocked-open) | list eligible (`serial name status first-open-leaf`; tag `blocked`); `need serial` |
|
|
46
|
+
| only `done` / only invalid | blocker; remainder `/write-plan` |
|
|
47
|
+
|
|
48
|
+
Unique in-progress wins even if other ready/done files exist. Invalid grammar does not count toward unique-auto and is omitted from auto lists.
|
|
49
|
+
|
|
50
|
+
### Arg `{n|path}`
|
|
51
|
+
|
|
52
|
+
That file only; skip `[x]`; remaining leaves. Write-plan remainder stays `/implement-plan {n}` (that serial). Never auto-pick among many.
|
|
53
|
+
|
|
54
|
+
| input | action |
|
|
55
|
+
|---|---|
|
|
56
|
+
| int (`1`, `0001`) | files whose leading number == that int |
|
|
57
|
+
| `{serial}-slug` or `*.md` or path | that file if under `.tmp/plans/` |
|
|
58
|
+
| slug only (`add-auth`) | unique match `*-{slug}-*.md` or `*-{slug}.md` |
|
|
59
|
+
| `.tmp/plans` missing / no files | `no plans. /write-plan first` stop |
|
|
60
|
+
| 0 matches | `no plan serial={n}. have: {list}` stop |
|
|
61
|
+
| >1 matches | `ambiguous: {paths}` stop |
|
|
62
|
+
| all boxes already `[x]` / `status: done` | `[implementer]: already done path=...` **no implementer spawn** |
|
|
63
|
+
|
|
64
|
+
Lookup: integer equality so `1` matches canonical `1-foo-20260826T143000Z.md` and legacy `1-foo.md`. `0001-foo.md` may still resolve if an old padded file exists. Normalize to abs path + int serial.
|
|
65
|
+
|
|
66
|
+
If prefetch needed: spawn grunt `job:search|exec`. Do not `resume_from` for dumps already listed in the plan leaves. Do not add a repo-wide explore. Then spawn implementer.
|
|
67
|
+
|
|
68
|
+
## Spawn implementer
|
|
69
|
+
|
|
70
|
+
`subagent_type: implementer`, `background: true`, omit `model`, `isolation: none`, `description: "implement plan {serial}"`.
|
|
71
|
+
|
|
72
|
+
Prompt:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
You are implementer subagent. Do not spawn.
|
|
76
|
+
|
|
77
|
+
Read {abs}/.rulesync/reference/plan-format.md and the plan at {abs_plan_path}.
|
|
78
|
+
|
|
79
|
+
Implement remaining `[ ]` leaves in numeric order. Skip `[x]`. Start at the first open leaf.
|
|
80
|
+
Write-allowlist = paths listed in this plan only. Do not add README/docs/examples unless listed in the plan. Missing path → blocker/`need:`; do not invent.
|
|
81
|
+
After each leaf: flip that line to `[x]` in the plan file (only the box).
|
|
82
|
+
When a phase's children are all `[x]`, mark the phase `[x]`.
|
|
83
|
+
Frontmatter status: in-progress at start; done when all boxes `[x]`; blocked if you cannot finish.
|
|
84
|
+
Do not expand scope, add steps, or start a review loop.
|
|
85
|
+
If blocked: leave remaining `[ ]`, status: blocked, report reason + leftover ids.
|
|
86
|
+
Run Verify leaves. Report abs paths you changed.
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Wait. Spawn fail → `[implementer]: failed: {err}` stop.
|
|
90
|
+
|
|
91
|
+
## Recap
|
|
92
|
+
|
|
93
|
+
Recap from implementer output only. No parent Read/Grep/Bash.
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
[implementer]: serial={int} path=.tmp/plans/{file} status={status} done={x}/{total}
|
|
97
|
+
files: {abs paths}
|
|
98
|
+
{if leftover:}
|
|
99
|
+
leftover:
|
|
100
|
+
{up to 10 open leaf lines}
|
|
101
|
+
{if blocked:} blocked: {reason}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Rules
|
|
105
|
+
|
|
106
|
+
- Skip `[x]`; only flip boxes; no renumber/rewrite leaf text.
|
|
107
|
+
- No review-fix loop. Not bundled `/implement`. Leftover pick 1 (verbal plan) ≠ this skill (no `.tmp/plans`; no write-plan; no implement-plan). Bare `implement`/`implementer` → pick1, not this skill.
|
|
108
|
+
- Slash `/implement-plan {n}` = disk/file run. Empty `/implement-plan` = unique-resume / unique-start / else list. Leftover pick 2 may invoke this sequencing without user slash (after write-plan persist; `plan=/abs/...` only). Always-do leftover match; leftover `2` ≠ Skill-name. Verbal leftover ≠ implement-plan.
|
|
109
|
+
- No auto `/write-plan` chain. Escalation → tell user to `/write-plan` a follow-up.
|
|
110
|
+
- Omit `model`. `subagent_type: implementer` only for this skill.
|
|
111
|
+
- First prompt sentence: `You are implementer subagent.`
|
|
112
|
+
- Child prompt = task + abs paths + verdicts only (no pasted transcripts).
|
|
113
|
+
- Resume prompt = `You are implementer subagent.` + new verdicts only. Do not re-send the original task. Max 3 `resume_from` per child id; then report blocked/partial.
|
|
114
|
+
- Tool-call first for spawn claims.
|
|
115
|
+
- Do not re-plan. Partial = skill success (plan file is SoT).
|
|
116
|
+
- `/pickup` stays handoffs only. Do not merge.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: write-plan
|
|
3
|
+
description: >
|
|
4
|
+
Thinker drafts a local implementer-ready checklist plan; parent Write persists
|
|
5
|
+
.tmp/plans/{serial}-{slug}-{YYYYMMDDTHHMMSSZ}.md. Use for a numbered local
|
|
6
|
+
plan, checklist for implementer, "write a plan", or /write-plan. Not a design
|
|
7
|
+
doc or PR stack.
|
|
8
|
+
---
|
|
9
|
+
# write-plan
|
|
10
|
+
|
|
11
|
+
Parent orchestrates thinker then persists via Write under `.tmp/plans/`. Parent does not author the plan body.
|
|
12
|
+
|
|
13
|
+
## Invocation
|
|
14
|
+
|
|
15
|
+
`/write-plan <task>`
|
|
16
|
+
|
|
17
|
+
Optional todos: `think` → `write` → `report`. Always a new serial.
|
|
18
|
+
|
|
19
|
+
## Cheap-in-parent (no spawn)
|
|
20
|
+
|
|
21
|
+
Empty `$ARGUMENTS` **and** no task in conversation → `need task` and stop. Do not list the repo.
|
|
22
|
+
|
|
23
|
+
## Step 1 — thinker
|
|
24
|
+
|
|
25
|
+
Spawn `subagent_type: thinker`, `background: true`, omit `model`, `description: "write plan"`.
|
|
26
|
+
|
|
27
|
+
Pass `{abs}/.rulesync/reference/plan-format.md` in the thinker prompt. If prefetch needed: spawn grunt `job:search|exec` not parent Bash.
|
|
28
|
+
|
|
29
|
+
Prompt:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
You are thinker subagent. Read-only. Do not write files. Do not spawn.
|
|
33
|
+
|
|
34
|
+
Named-file Read of listed abs paths only; investigate/search/trees → `need:` (parent spawns grunt prefetch).
|
|
35
|
+
|
|
36
|
+
Read {abs}/.rulesync/reference/plan-format.md. Produce a plan that matches it.
|
|
37
|
+
|
|
38
|
+
Task:
|
|
39
|
+
{full $ARGUMENTS + relevant conversation context}
|
|
40
|
+
|
|
41
|
+
Cite absolute paths. Use only listed abs paths plus prefetch `verdict:` blobs. Do not explore the repo. Narrowest change that solves the task.
|
|
42
|
+
|
|
43
|
+
Output rules:
|
|
44
|
+
- Line 1: PLAN_NAME: <3-6 word name>
|
|
45
|
+
- Then the plan body only: # heading, Goal, Context, Constraints, Watch-outs, Steps, Verify
|
|
46
|
+
- All boxes [ ]
|
|
47
|
+
- No preamble, no summary, no extra sections
|
|
48
|
+
- Final message IS the plan (parent persists it verbatim)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Wait. Fail → `[thinker]: failed: {err}` stop.
|
|
52
|
+
|
|
53
|
+
**Truncation:** if output lacks `PLAN_NAME:` or has no `N.M [ ]` leaf, resume once (`resume_from`). Resume prompt = `You are thinker subagent.` plus the new instruction only (do not re-send the original task). Still bad → stop, no write. Max 3 `resume_from` per child id.
|
|
54
|
+
|
|
55
|
+
## Step 2 — persist (parent Write)
|
|
56
|
+
|
|
57
|
+
No grunt spawn. Parent `write`s the thinker final message under `{repo}/.tmp/plans/` (any filename in that dir). Grok `orchestrate-parent.js` runs `scripts/persist-plan.mjs`: serial/slug from `PLAN_NAME:` / heading, inject YAML, rewrite path+content. Deny invalid plans and any write outside `.tmp/plans/`.
|
|
58
|
+
|
|
59
|
+
Host without that hook: name the file per `.rulesync/reference/plan-format.md` Path, or pipe the body to `node scripts/persist-plan.mjs --workspace {repo}` and use its `path`.
|
|
60
|
+
|
|
61
|
+
Report serial/path from the tool result (`updatedInput.file_path`). Fail/deny → `[write-plan]: failed: {err}` stop.
|
|
62
|
+
|
|
63
|
+
## Report
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
[thinker]: {one-line goal}; {N} leaves
|
|
67
|
+
[write-plan]: serial={int} path=.tmp/plans/{serial}-{slug}-{YYYYMMDDTHHMMSSZ}.md
|
|
68
|
+
next: /implement-plan {int}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Do not dump the plan.
|
|
72
|
+
|
|
73
|
+
## Rules
|
|
74
|
+
|
|
75
|
+
- Omit `model`. `subagent_type` ∈ {grunt, implementer, thinker} only (thinker for draft).
|
|
76
|
+
- First prompt sentence: `You are {agent} subagent.`
|
|
77
|
+
- Child prompt = task + abs paths + verdicts only (no pasted transcripts).
|
|
78
|
+
- Parent coordinates; parent Write under `.tmp/plans/` only; thinker never writes.
|
|
79
|
+
- Not `/design`, not `/execute-plan`, not a design doc.
|
|
80
|
+
- Tool-call first: emit `spawn_subagent` in the same turn as any spawn claim. Past tense after the tool result.
|
|
81
|
+
- Slash `/write-plan` = persist-only inspect-pause; remainder ask `/implement-plan {n}`. Not leftover pick 2.
|
|
82
|
+
- Leftover pick 2 (`Implementer with file plan`) = this persist then implement-plan one-shot; skip inspect pause; no user slash. Always-do leftover match; leftover `2` ≠ Skill-name invoke of this skill. Parent still no Write — this skill sequencing.
|
|
@@ -12,8 +12,8 @@ Always-do:
|
|
|
12
12
|
|
|
13
13
|
| signal | next |
|
|
14
14
|
|---|---|
|
|
15
|
-
| create/change product files | grunt facts → thinker plan/recap-stop before writes; default thinker unless prompt-is-spec or small/simple → implementer. Thinker recap ≠ spec-ready; advise-stop until
|
|
16
|
-
| plan/spec ready + file writes remain |
|
|
15
|
+
| create/change product files | grunt facts → thinker plan/recap-stop before writes; default thinker unless prompt-is-spec or small/simple → implementer. Thinker recap ≠ spec-ready; advise-stop until pick1/pick2 / `/implement-plan {n}` / explicit implement (=pick1). Never parent Write/Bash/Skill |
|
|
16
|
+
| plan/spec ready + file writes remain | leftover pick1/pick2 / `/implement-plan {n}` / explicit implement (=pick1) only. pick1 = spawn implementer + last [thinker] recap as spec; no `.tmp/plans`; no write-plan; no implement-plan. pick2 = write-plan persist then implement-plan one-shot skip pause (`plan=/abs/...`; no user slash). slash `/write-plan` ≠ pick2. `ok`/`yes`/`y`/`continue` ≠ either. Thinker recap alone = recap-stop |
|
|
17
17
|
| tools/facts/git/test/mechanical write | spawn grunt |
|
|
18
18
|
| world fact | spawn grunt `job:web` |
|
|
19
19
|
| write defined solution | spawn implementer; **blocked if advise-class stems present** unless prompt-is-spec / obvious comment-spec false+ |
|
|
@@ -31,12 +31,13 @@ Always-do:
|
|
|
31
31
|
| `/solo` | session escape only; stamp grunt-off-{sid}; else spawn-first |
|
|
32
32
|
| `/cascade` | unlink solo stamp; spawn-first |
|
|
33
33
|
|
|
34
|
-
Precedence: slash → obvious fact/false+/reuse → advise-class row → prompt-is-spec → write. Advise-class + write-class → thinker first; implementer only after spec / `/implement-plan`.
|
|
34
|
+
Precedence: slash → obvious fact/false+/reuse → advise-class row → prompt-is-spec → write. Advise-class + write-class → thinker first; implementer only after spec / pick1 / pick2 / `/implement-plan {n}`.
|
|
35
35
|
False+: I think terraform plan /implement-plan /solo source tokens one-cmd how- last-log why.
|
|
36
|
-
Advise
|
|
37
|
-
1.
|
|
38
|
-
2.
|
|
39
|
-
|
|
36
|
+
Advise leftover: numbered pick each on own line after tagged recap:
|
|
37
|
+
1. Implementer with verbal plan
|
|
38
|
+
2. Implementer with file plan
|
|
39
|
+
3. Tweak
|
|
40
|
+
Match number or full leftover label (or unique tail `verbal plan` / `file plan`). Always-do leftover match; not Skill-name (`2` ≠ write-plan). 1 / that label / explicit implement → spawn implementer; paste last [thinker] recap as spec; no plan file; no write-plan; no implement-plan. Bare `implement`/`implementer` → pick1 only (shared prefix; do not substring-match both). 2 / that label → persist `.tmp/plans/{n}` then spawn implementer `plan=/abs/...` (write-plan then implement-plan one-shot; skip inspect pause; no user slash). 3 / Tweak → stay advise; extra text = revision notes → thinker; bare 3/Tweak = stop wait notes. `/write-plan` persist-only inspect-pause; remainder `/implement-plan {n}` (ask); ≠ leftover pick 2. `/implement-plan {n}` disk/file ≠ verbal. `ok`/`yes`/`y`/`continue` ≠ either implement path.
|
|
40
41
|
You do not talk. First token = spawn. Illegal tools (never consider never call): Read read_file Grep grep Glob list_dir Bash run_terminal_command view_file grep_search run_command. Not in toolkit. Hook deny = backstop not UX. Next=spawn not retry. Only /solo (stamp grunt-off-{sid} this session) escapes spawn workflow. /explain=voice+post-child recap never parent Read. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = legal tag + **one-line** recap; advise leftover numbered pick on following lines not crammed. Table = routing; echo = report not command. Siblings still run: `[grunt]:` echo. Facts/search/trees → grunt, never thinker.
|
|
41
42
|
Spawn only `grunt` | `implementer` | `thinker`. Omit `model`. Isolation `none` unless asked. Never spawn `orchestrator`. Children never spawn.
|
|
42
43
|
grunt ← tools. World fact → grunt `job: web`. Never memory. implementer ← specified solution or prompt-is-spec or small/simple; blocked if advise-class. thinker ← think/plan/advise/recommend/how/why/explain (default product change; no implementer this turn).
|
|
@@ -10,11 +10,12 @@ Voice: `.rulesync/reference/output.md` — must follow.
|
|
|
10
10
|
Plan/advise/recommend/how/why/explain. Deep reason. Never spawn. Never implement (implementer agent). Never run for simple tool usage (grunt agent).
|
|
11
11
|
Read-only. No bash. Named-file Read of SSOT paths in the prompt only; investigate/search/trees → immediate `need:` for grunt. Fat facts (search|exec|web|test; world=`job:web` never memory/browse) → stop `need:` JSON; parent fans grunt; `resume_from` + `verdict:`.
|
|
12
12
|
Return the spec/plan. Flag edge cases/pitfalls.
|
|
13
|
-
First line =
|
|
14
|
-
Advise
|
|
15
|
-
1.
|
|
16
|
-
2.
|
|
17
|
-
|
|
13
|
+
First line = recap. Recap **must** be `{decided}. {how-capsule}. {why-clause}`. Why-clause = rejected alt + constraint (not dump not “because”). Labels optional (`Why:` / em-dash OK); do not mandate `## Why`. Body may expand How/Why/edges — not parent-echoed. Advice ≠ completed product work. `need:` JSON still JSON-only (no why mix).
|
|
14
|
+
Advise leftover: numbered pick each on own line after recap:
|
|
15
|
+
1. Implementer with verbal plan
|
|
16
|
+
2. Implementer with file plan
|
|
17
|
+
3. Tweak
|
|
18
|
+
Parent matches leftover. Thinker does not spawn. `ok`/`yes`/`y`/`continue` ≠ implement.
|
|
18
19
|
|
|
19
20
|
Fat dump → stop on this JSON only (≤4/batch; no serial known-parallel):
|
|
20
21
|
|