@bradygaster/squad-sdk 0.9.1 → 0.9.2-insider.2
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 +340 -296
- package/dist/agents/history-shadow.d.ts +7 -5
- package/dist/agents/history-shadow.d.ts.map +1 -1
- package/dist/agents/history-shadow.js +69 -78
- package/dist/agents/history-shadow.js.map +1 -1
- package/dist/agents/index.d.ts +12 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +62 -9
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/lifecycle.d.ts +4 -0
- package/dist/agents/lifecycle.d.ts.map +1 -1
- package/dist/agents/lifecycle.js +6 -7
- package/dist/agents/lifecycle.js.map +1 -1
- package/dist/agents/onboarding.d.ts +4 -2
- package/dist/agents/onboarding.d.ts.map +1 -1
- package/dist/agents/onboarding.js +26 -16
- package/dist/agents/onboarding.js.map +1 -1
- package/dist/agents/personal.d.ts +2 -1
- package/dist/agents/personal.d.ts.map +1 -1
- package/dist/agents/personal.js +11 -12
- package/dist/agents/personal.js.map +1 -1
- package/dist/build/bundle.d.ts.map +1 -1
- package/dist/build/bundle.js +6 -6
- package/dist/build/bundle.js.map +1 -1
- package/dist/build/github-dist.js +42 -42
- package/dist/build/release.d.ts.map +1 -1
- package/dist/build/release.js +7 -5
- package/dist/build/release.js.map +1 -1
- package/dist/casting/index.d.ts.map +1 -1
- package/dist/casting/index.js +4 -3
- package/dist/casting/index.js.map +1 -1
- package/dist/config/agent-source.d.ts +5 -1
- package/dist/config/agent-source.d.ts.map +1 -1
- package/dist/config/agent-source.js +85 -41
- package/dist/config/agent-source.js.map +1 -1
- package/dist/config/init.d.ts +4 -3
- package/dist/config/init.d.ts.map +1 -1
- package/dist/config/init.js +257 -236
- package/dist/config/init.js.map +1 -1
- package/dist/config/legacy-fallback.d.ts +3 -2
- package/dist/config/legacy-fallback.d.ts.map +1 -1
- package/dist/config/legacy-fallback.js +16 -14
- package/dist/config/legacy-fallback.js.map +1 -1
- package/dist/config/models.d.ts +9 -6
- package/dist/config/models.d.ts.map +1 -1
- package/dist/config/models.js +35 -25
- package/dist/config/models.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/marketplace/packaging.d.ts.map +1 -1
- package/dist/marketplace/packaging.js +18 -16
- package/dist/marketplace/packaging.js.map +1 -1
- package/dist/multi-squad.d.ts.map +1 -1
- package/dist/multi-squad.js +10 -9
- package/dist/multi-squad.js.map +1 -1
- package/dist/platform/comms-file-log.d.ts.map +1 -1
- package/dist/platform/comms-file-log.js +7 -6
- package/dist/platform/comms-file-log.js.map +1 -1
- package/dist/platform/comms.d.ts.map +1 -1
- package/dist/platform/comms.js +6 -5
- package/dist/platform/comms.js.map +1 -1
- package/dist/platform/index.d.ts.map +1 -1
- package/dist/platform/index.js +4 -3
- package/dist/platform/index.js.map +1 -1
- package/dist/ralph/capabilities.d.ts +30 -1
- package/dist/ralph/capabilities.d.ts.map +1 -1
- package/dist/ralph/capabilities.js +51 -6
- package/dist/ralph/capabilities.js.map +1 -1
- package/dist/ralph/index.d.ts +1 -1
- package/dist/ralph/index.d.ts.map +1 -1
- package/dist/ralph/index.js +4 -3
- package/dist/ralph/index.js.map +1 -1
- package/dist/ralph/rate-limiting.d.ts.map +1 -1
- package/dist/ralph/rate-limiting.js +4 -4
- package/dist/ralph/rate-limiting.js.map +1 -1
- package/dist/remote/bridge.d.ts.map +1 -1
- package/dist/remote/bridge.js +2 -2
- package/dist/remote/bridge.js.map +1 -1
- package/dist/resolution.d.ts +9 -0
- package/dist/resolution.d.ts.map +1 -1
- package/dist/resolution.js +39 -16
- package/dist/resolution.js.map +1 -1
- package/dist/roles/catalog.d.ts +1 -1
- package/dist/runtime/config.d.ts.map +1 -1
- package/dist/runtime/config.js +8 -7
- package/dist/runtime/config.js.map +1 -1
- package/dist/runtime/cross-squad.d.ts.map +1 -1
- package/dist/runtime/cross-squad.js +8 -7
- package/dist/runtime/cross-squad.js.map +1 -1
- package/dist/runtime/scheduler.d.ts.map +1 -1
- package/dist/runtime/scheduler.js +8 -8
- package/dist/runtime/scheduler.js.map +1 -1
- package/dist/runtime/squad-observer.d.ts.map +1 -1
- package/dist/runtime/squad-observer.js +7 -4
- package/dist/runtime/squad-observer.js.map +1 -1
- package/dist/sharing/consult.d.ts +1 -1
- package/dist/sharing/consult.d.ts.map +1 -1
- package/dist/sharing/consult.js +144 -142
- package/dist/sharing/consult.js.map +1 -1
- package/dist/sharing/export.d.ts.map +1 -1
- package/dist/sharing/export.js +16 -16
- package/dist/sharing/export.js.map +1 -1
- package/dist/sharing/import.d.ts.map +1 -1
- package/dist/sharing/import.js +13 -12
- package/dist/sharing/import.js.map +1 -1
- package/dist/skills/skill-loader.d.ts.map +1 -1
- package/dist/skills/skill-loader.js +10 -9
- package/dist/skills/skill-loader.js.map +1 -1
- package/dist/skills/skill-script-loader.d.ts.map +1 -1
- package/dist/skills/skill-script-loader.js +6 -4
- package/dist/skills/skill-script-loader.js.map +1 -1
- package/dist/skills/skill-source.d.ts +3 -1
- package/dist/skills/skill-source.d.ts.map +1 -1
- package/dist/skills/skill-source.js +18 -16
- package/dist/skills/skill-source.js.map +1 -1
- package/dist/state/collection-map.d.ts +43 -0
- package/dist/state/collection-map.d.ts.map +1 -0
- package/dist/state/collection-map.js +9 -0
- package/dist/state/collection-map.js.map +1 -0
- package/dist/state/collections.d.ts +102 -0
- package/dist/state/collections.d.ts.map +1 -0
- package/dist/state/collections.js +317 -0
- package/dist/state/collections.js.map +1 -0
- package/dist/state/domain-types.d.ts +122 -0
- package/dist/state/domain-types.d.ts.map +1 -0
- package/dist/state/domain-types.js +54 -0
- package/dist/state/domain-types.js.map +1 -0
- package/dist/state/handles.d.ts +16 -0
- package/dist/state/handles.d.ts.map +1 -0
- package/dist/state/handles.js +161 -0
- package/dist/state/handles.js.map +1 -0
- package/dist/state/index.d.ts +17 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +15 -0
- package/dist/state/index.js.map +1 -0
- package/dist/state/io/charter-io.d.ts +28 -0
- package/dist/state/io/charter-io.d.ts.map +1 -0
- package/dist/state/io/charter-io.js +94 -0
- package/dist/state/io/charter-io.js.map +1 -0
- package/dist/state/io/decisions-io.d.ts +42 -0
- package/dist/state/io/decisions-io.d.ts.map +1 -0
- package/dist/state/io/decisions-io.js +66 -0
- package/dist/state/io/decisions-io.js.map +1 -0
- package/dist/state/io/history-io.d.ts +37 -0
- package/dist/state/io/history-io.d.ts.map +1 -0
- package/dist/state/io/history-io.js +102 -0
- package/dist/state/io/history-io.js.map +1 -0
- package/dist/state/io/index.d.ts +19 -0
- package/dist/state/io/index.d.ts.map +1 -0
- package/dist/state/io/index.js +19 -0
- package/dist/state/io/index.js.map +1 -0
- package/dist/state/io/routing-io.d.ts +37 -0
- package/dist/state/io/routing-io.d.ts.map +1 -0
- package/dist/state/io/routing-io.js +99 -0
- package/dist/state/io/routing-io.js.map +1 -0
- package/dist/state/io/team-io.d.ts +46 -0
- package/dist/state/io/team-io.d.ts.map +1 -0
- package/dist/state/io/team-io.js +82 -0
- package/dist/state/io/team-io.js.map +1 -0
- package/dist/state/schema.d.ts +24 -0
- package/dist/state/schema.d.ts.map +1 -0
- package/dist/state/schema.js +41 -0
- package/dist/state/schema.js.map +1 -0
- package/dist/state/squad-state.d.ts +42 -0
- package/dist/state/squad-state.d.ts.map +1 -0
- package/dist/state/squad-state.js +68 -0
- package/dist/state/squad-state.js.map +1 -0
- package/dist/storage/fs-storage-provider.d.ts +60 -0
- package/dist/storage/fs-storage-provider.d.ts.map +1 -0
- package/dist/storage/fs-storage-provider.js +377 -0
- package/dist/storage/fs-storage-provider.js.map +1 -0
- package/dist/storage/in-memory-storage-provider.d.ts +46 -0
- package/dist/storage/in-memory-storage-provider.d.ts.map +1 -0
- package/dist/storage/in-memory-storage-provider.js +264 -0
- package/dist/storage/in-memory-storage-provider.js.map +1 -0
- package/dist/storage/index.d.ts +6 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +5 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/sqlite-storage-provider.d.ts +95 -0
- package/dist/storage/sqlite-storage-provider.d.ts.map +1 -0
- package/dist/storage/sqlite-storage-provider.js +383 -0
- package/dist/storage/sqlite-storage-provider.js.map +1 -0
- package/dist/storage/storage-error.d.ts +28 -0
- package/dist/storage/storage-error.d.ts.map +1 -0
- package/dist/storage/storage-error.js +35 -0
- package/dist/storage/storage-error.js.map +1 -0
- package/dist/storage/storage-provider.d.ts +161 -0
- package/dist/storage/storage-provider.d.ts.map +1 -0
- package/dist/storage/storage-provider.js +18 -0
- package/dist/storage/storage-provider.js.map +1 -0
- package/dist/streams/resolver.d.ts.map +1 -1
- package/dist/streams/resolver.js +6 -5
- package/dist/streams/resolver.js.map +1 -1
- package/dist/tools/index.d.ts +5 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +54 -15
- package/dist/tools/index.js.map +1 -1
- package/dist/upstream/resolver.d.ts +3 -2
- package/dist/upstream/resolver.d.ts.map +1 -1
- package/dist/upstream/resolver.js +33 -32
- package/dist/upstream/resolver.js.map +1 -1
- package/package.json +33 -1
- package/templates/casting/Futurama.json +9 -9
- package/templates/casting-history.json +4 -4
- package/templates/casting-policy.json +37 -37
- package/templates/casting-reference.md +104 -104
- package/templates/casting-registry.json +3 -3
- package/templates/ceremonies.md +41 -41
- package/templates/charter.md +53 -53
- package/templates/constraint-tracking.md +38 -38
- package/templates/cooperative-rate-limiting.md +229 -229
- package/templates/copilot-instructions.md +46 -46
- package/templates/history.md +10 -10
- package/templates/identity/now.md +9 -9
- package/templates/identity/wisdom.md +15 -15
- package/templates/issue-lifecycle.md +412 -412
- package/templates/keda-scaler.md +164 -164
- package/templates/machine-capabilities.md +74 -74
- package/templates/mcp-config.md +90 -90
- package/templates/multi-agent-format.md +28 -28
- package/templates/plugin-marketplace.md +49 -49
- package/templates/ralph-circuit-breaker.md +313 -313
- package/templates/raw-agent-output.md +37 -37
- package/templates/roster.md +60 -60
- package/templates/routing.md +39 -39
- package/templates/run-output.md +50 -50
- package/templates/schedule.json +19 -19
- package/templates/scribe-charter.md +123 -119
- package/templates/skill.md +24 -24
- package/templates/skills/agent-collaboration/SKILL.md +42 -42
- package/templates/skills/agent-conduct/SKILL.md +24 -24
- package/templates/skills/architectural-proposals/SKILL.md +151 -151
- package/templates/skills/ci-validation-gates/SKILL.md +84 -84
- package/templates/skills/cli-wiring/SKILL.md +47 -47
- package/templates/skills/client-compatibility/SKILL.md +89 -89
- package/templates/skills/cross-machine-coordination/SKILL.md +434 -0
- package/templates/skills/cross-squad/SKILL.md +114 -114
- package/templates/skills/distributed-mesh/SKILL.md +287 -287
- package/templates/skills/distributed-mesh/mesh.json.example +30 -30
- package/templates/skills/distributed-mesh/sync-mesh.ps1 +111 -111
- package/templates/skills/distributed-mesh/sync-mesh.sh +104 -104
- package/templates/skills/docs-standards/SKILL.md +71 -71
- package/templates/skills/economy-mode/SKILL.md +114 -114
- package/templates/skills/error-recovery/SKILL.md +99 -0
- package/templates/skills/external-comms/SKILL.md +329 -329
- package/templates/skills/gh-auth-isolation/SKILL.md +183 -183
- package/templates/skills/git-workflow/SKILL.md +204 -204
- package/templates/skills/github-multi-account/SKILL.md +95 -95
- package/templates/skills/history-hygiene/SKILL.md +36 -36
- package/templates/skills/humanizer/SKILL.md +105 -105
- package/templates/skills/init-mode/SKILL.md +102 -102
- package/templates/skills/iterative-retrieval/SKILL.md +165 -0
- package/templates/skills/model-selection/SKILL.md +117 -117
- package/templates/skills/nap/SKILL.md +24 -24
- package/templates/skills/notification-routing/SKILL.md +105 -0
- package/templates/skills/personal-squad/SKILL.md +57 -57
- package/templates/skills/pr-screenshots/SKILL.md +149 -0
- package/templates/skills/project-conventions/SKILL.md +56 -56
- package/templates/skills/ralph-two-pass-scan/SKILL.md +35 -0
- package/templates/skills/reflect/SKILL.md +229 -0
- package/templates/skills/release-process/SKILL.md +131 -423
- package/templates/skills/reskill/SKILL.md +92 -92
- package/templates/skills/retro-enforcement/SKILL.md +148 -0
- package/templates/skills/reviewer-protocol/SKILL.md +79 -79
- package/templates/skills/secret-handling/SKILL.md +200 -200
- package/templates/skills/session-recovery/SKILL.md +155 -155
- package/templates/skills/squad-conventions/SKILL.md +69 -69
- package/templates/skills/test-discipline/SKILL.md +37 -37
- package/templates/skills/tiered-memory/SKILL.md +234 -0
- package/templates/skills/windows-compatibility/SKILL.md +98 -74
- package/templates/{squad.agent.md → squad.agent.md.template} +57 -28
- package/templates/workflows/squad-ci.yml +24 -24
- package/templates/workflows/squad-docs.yml +54 -54
- package/templates/workflows/squad-heartbeat.yml +167 -171
- package/templates/workflows/squad-insider-release.yml +61 -61
- package/templates/workflows/squad-issue-assign.yml +161 -161
- package/templates/workflows/squad-label-enforce.yml +181 -181
- package/templates/workflows/squad-preview.yml +55 -55
- package/templates/workflows/squad-promote.yml +120 -120
- package/templates/workflows/squad-release.yml +77 -77
- package/templates/workflows/squad-triage.yml +260 -260
- package/templates/workflows/sync-squad-labels.yml +169 -169
|
@@ -1,119 +1,123 @@
|
|
|
1
|
-
# Scribe
|
|
2
|
-
|
|
3
|
-
> The team's memory. Silent, always present, never forgets.
|
|
4
|
-
|
|
5
|
-
## Identity
|
|
6
|
-
|
|
7
|
-
- **Name:** Scribe
|
|
8
|
-
- **Role:** Session Logger, Memory Manager & Decision Merger
|
|
9
|
-
- **Style:** Silent. Never speaks to the user. Works in the background.
|
|
10
|
-
- **Mode:** Always spawned as `mode: "background"`. Never blocks the conversation.
|
|
11
|
-
|
|
12
|
-
## What I Own
|
|
13
|
-
|
|
14
|
-
- `.squad/log/` — session logs (what happened, who worked, what was decided)
|
|
15
|
-
- `.squad/decisions.md` — the shared decision log all agents read (canonical, merged)
|
|
16
|
-
- `.squad/decisions/inbox/` — decision drop-box (agents write here, I merge)
|
|
17
|
-
- Cross-agent context propagation — when one agent's decision affects another
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
├──
|
|
97
|
-
│
|
|
98
|
-
│
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
│
|
|
102
|
-
└──
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
**
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
**I
|
|
1
|
+
# Scribe
|
|
2
|
+
|
|
3
|
+
> The team's memory. Silent, always present, never forgets.
|
|
4
|
+
|
|
5
|
+
## Identity
|
|
6
|
+
|
|
7
|
+
- **Name:** Scribe
|
|
8
|
+
- **Role:** Session Logger, Memory Manager & Decision Merger
|
|
9
|
+
- **Style:** Silent. Never speaks to the user. Works in the background.
|
|
10
|
+
- **Mode:** Always spawned as `mode: "background"`. Never blocks the conversation.
|
|
11
|
+
|
|
12
|
+
## What I Own
|
|
13
|
+
|
|
14
|
+
- `.squad/log/` — session logs (what happened, who worked, what was decided)
|
|
15
|
+
- `.squad/decisions.md` — the shared decision log all agents read (canonical, merged)
|
|
16
|
+
- `.squad/decisions/inbox/` — decision drop-box (agents write here, I merge)
|
|
17
|
+
- Cross-agent context propagation — when one agent's decision affects another
|
|
18
|
+
- Decision archival — **HARD GATE**: enforce two-tier ceiling on decisions.md before every merge:
|
|
19
|
+
- **Tier 1 (30-day):** If >20KB, archive entries older than 30 days
|
|
20
|
+
- **Tier 2 (7-day):** If still >50KB after Tier 1, archive entries older than 7 days
|
|
21
|
+
- Emit HEALTH REPORT to session log after archival runs
|
|
22
|
+
|
|
23
|
+
## How I Work
|
|
24
|
+
|
|
25
|
+
**Worktree awareness:** Use the `TEAM ROOT` provided in the spawn prompt to resolve all `.squad/` paths. If no TEAM ROOT is given, run `git rev-parse --show-toplevel` as fallback. Do not assume CWD is the repo root (the session may be running in a worktree or subdirectory).
|
|
26
|
+
|
|
27
|
+
After every substantial work session:
|
|
28
|
+
|
|
29
|
+
1. **Log the session** to `.squad/log/{timestamp}-{topic}.md`:
|
|
30
|
+
- Who worked
|
|
31
|
+
- What was done
|
|
32
|
+
- Decisions made
|
|
33
|
+
- Key outcomes
|
|
34
|
+
- Brief. Facts only.
|
|
35
|
+
|
|
36
|
+
2. **Merge the decision inbox:**
|
|
37
|
+
- Read all files in `.squad/decisions/inbox/`
|
|
38
|
+
- APPEND each decision's contents to `.squad/decisions.md`
|
|
39
|
+
- Delete each inbox file after merging
|
|
40
|
+
|
|
41
|
+
3. **Deduplicate and consolidate decisions.md:**
|
|
42
|
+
- Parse the file into decision blocks (each block starts with `### `).
|
|
43
|
+
- **Exact duplicates:** If two blocks share the same heading, keep the first and remove the rest.
|
|
44
|
+
- **Overlapping decisions:** Compare block content across all remaining blocks. If two or more blocks cover the same area (same topic, same architectural concern, same component) but were written independently (different dates, different authors), consolidate them:
|
|
45
|
+
a. Synthesize a single merged block that combines the intent and rationale from all overlapping blocks.
|
|
46
|
+
b. Use today's date and a new heading: `### {today}: {consolidated topic} (consolidated)`
|
|
47
|
+
c. Credit all original authors: `**By:** {Name1}, {Name2}`
|
|
48
|
+
d. Under **What:**, combine the decisions. Note any differences or evolution.
|
|
49
|
+
e. Under **Why:**, merge the rationale, preserving unique reasoning from each.
|
|
50
|
+
f. Remove the original overlapping blocks.
|
|
51
|
+
- Write the updated file back. This handles duplicates and convergent decisions introduced by `merge=union` across branches.
|
|
52
|
+
|
|
53
|
+
4. **Propagate cross-agent updates:**
|
|
54
|
+
For any newly merged decision that affects other agents, append to their `history.md`:
|
|
55
|
+
```
|
|
56
|
+
📌 Team update ({timestamp}): {summary} — decided by {Name}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
5. **Commit `.squad/` changes:**
|
|
60
|
+
**IMPORTANT — Windows compatibility:** Do NOT use `git -C {path}` (unreliable with Windows paths).
|
|
61
|
+
Do NOT embed newlines in `git commit -m` (backtick-n fails silently in PowerShell).
|
|
62
|
+
Instead:
|
|
63
|
+
- `cd` into the team root first.
|
|
64
|
+
- Stage all `.squad/` files: `git add .squad/`
|
|
65
|
+
- Check for staged changes: `git diff --cached --quiet`
|
|
66
|
+
If exit code is 0, no changes — skip silently.
|
|
67
|
+
- Write the commit message to a temp file, then commit with `-F`:
|
|
68
|
+
```
|
|
69
|
+
$msg = @"
|
|
70
|
+
docs(ai-team): {brief summary}
|
|
71
|
+
|
|
72
|
+
Session: {timestamp}-{topic}
|
|
73
|
+
Requested by: {user name}
|
|
74
|
+
|
|
75
|
+
Changes:
|
|
76
|
+
- {what was logged}
|
|
77
|
+
- {what decisions were merged}
|
|
78
|
+
- {what decisions were deduplicated}
|
|
79
|
+
- {what cross-agent updates were propagated}
|
|
80
|
+
"@
|
|
81
|
+
$msgFile = [System.IO.Path]::GetTempFileName()
|
|
82
|
+
Set-Content -Path $msgFile -Value $msg -Encoding utf8
|
|
83
|
+
git commit -F $msgFile
|
|
84
|
+
Remove-Item $msgFile
|
|
85
|
+
```
|
|
86
|
+
- **Verify the commit landed:** Run `git log --oneline -1` and confirm the
|
|
87
|
+
output matches the expected message. If it doesn't, report the error.
|
|
88
|
+
|
|
89
|
+
6. **Never speak to the user.** Never appear in responses. Work silently.
|
|
90
|
+
|
|
91
|
+
## The Memory Architecture
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
.squad/
|
|
95
|
+
├── decisions.md # Shared brain — all agents read this (merged by Scribe)
|
|
96
|
+
├── decisions/
|
|
97
|
+
│ └── inbox/ # Drop-box — agents write decisions here in parallel
|
|
98
|
+
│ ├── river-jwt-auth.md
|
|
99
|
+
│ └── kai-component-lib.md
|
|
100
|
+
├── orchestration-log/ # Per-spawn log entries
|
|
101
|
+
│ ├── 2025-07-01T10-00-river.md
|
|
102
|
+
│ └── 2025-07-01T10-00-kai.md
|
|
103
|
+
├── log/ # Session history — searchable record
|
|
104
|
+
│ ├── 2025-07-01-setup.md
|
|
105
|
+
│ └── 2025-07-02-api.md
|
|
106
|
+
└── agents/
|
|
107
|
+
├── kai/history.md # Kai's personal knowledge
|
|
108
|
+
├── river/history.md # River's personal knowledge
|
|
109
|
+
└── ...
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
- **decisions.md** = what the team agreed on (shared, merged by Scribe)
|
|
113
|
+
- **decisions/inbox/** = where agents drop decisions during parallel work
|
|
114
|
+
- **history.md** = what each agent learned (personal)
|
|
115
|
+
- **log/** = what happened (archive)
|
|
116
|
+
|
|
117
|
+
## Boundaries
|
|
118
|
+
|
|
119
|
+
**I handle:** Logging, memory, decision merging, cross-agent updates.
|
|
120
|
+
|
|
121
|
+
**I don't handle:** Any domain work. I don't write code, review PRs, or make decisions.
|
|
122
|
+
|
|
123
|
+
**I am invisible.** If a user notices me, something went wrong.
|
package/templates/skill.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "{skill-name}"
|
|
3
|
-
description: "{what this skill teaches agents}"
|
|
4
|
-
domain: "{e.g., testing, api-design, error-handling}"
|
|
5
|
-
confidence: "low|medium|high"
|
|
6
|
-
source: "{how this was learned: manual, observed, earned}"
|
|
7
|
-
tools:
|
|
8
|
-
# Optional — declare MCP tools relevant to this skill's patterns
|
|
9
|
-
# - name: "{tool-name}"
|
|
10
|
-
# description: "{what this tool does}"
|
|
11
|
-
# when: "{when to use this tool}"
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Context
|
|
15
|
-
{When and why this skill applies}
|
|
16
|
-
|
|
17
|
-
## Patterns
|
|
18
|
-
{Specific patterns, conventions, or approaches}
|
|
19
|
-
|
|
20
|
-
## Examples
|
|
21
|
-
{Code examples or references}
|
|
22
|
-
|
|
23
|
-
## Anti-Patterns
|
|
24
|
-
{What to avoid}
|
|
1
|
+
---
|
|
2
|
+
name: "{skill-name}"
|
|
3
|
+
description: "{what this skill teaches agents}"
|
|
4
|
+
domain: "{e.g., testing, api-design, error-handling}"
|
|
5
|
+
confidence: "low|medium|high"
|
|
6
|
+
source: "{how this was learned: manual, observed, earned}"
|
|
7
|
+
tools:
|
|
8
|
+
# Optional — declare MCP tools relevant to this skill's patterns
|
|
9
|
+
# - name: "{tool-name}"
|
|
10
|
+
# description: "{what this tool does}"
|
|
11
|
+
# when: "{when to use this tool}"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Context
|
|
15
|
+
{When and why this skill applies}
|
|
16
|
+
|
|
17
|
+
## Patterns
|
|
18
|
+
{Specific patterns, conventions, or approaches}
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
{Code examples or references}
|
|
22
|
+
|
|
23
|
+
## Anti-Patterns
|
|
24
|
+
{What to avoid}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "agent-collaboration"
|
|
3
|
-
description: "Standard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication"
|
|
4
|
-
domain: "team-workflow"
|
|
5
|
-
confidence: "high"
|
|
6
|
-
source: "extracted from charter boilerplate — identical content in 18+ agent charters"
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Context
|
|
10
|
-
|
|
11
|
-
Every agent on the team follows identical collaboration patterns for worktree awareness, decision recording, and cross-agent communication. These were previously duplicated in every charter's Collaboration section (~300 bytes × 18 agents = ~5.4KB of redundant context). Now centralized here.
|
|
12
|
-
|
|
13
|
-
The coordinator's spawn prompt already instructs agents to read decisions.md and their history.md. This skill adds the patterns for WRITING decisions and requesting help.
|
|
14
|
-
|
|
15
|
-
## Patterns
|
|
16
|
-
|
|
17
|
-
### Worktree Awareness
|
|
18
|
-
Use the `TEAM ROOT` path provided in your spawn prompt. All `.squad/` paths are relative to this root. If TEAM ROOT is not provided (rare), run `git rev-parse --show-toplevel` as fallback. Never assume CWD is the repo root.
|
|
19
|
-
|
|
20
|
-
### Decision Recording
|
|
21
|
-
After making a decision that affects other team members, write it to:
|
|
22
|
-
`.squad/decisions/inbox/{your-name}-{brief-slug}.md`
|
|
23
|
-
|
|
24
|
-
Format:
|
|
25
|
-
```
|
|
26
|
-
### {date}: {decision title}
|
|
27
|
-
**By:** {Your Name}
|
|
28
|
-
**What:** {the decision}
|
|
29
|
-
**Why:** {rationale}
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### Cross-Agent Communication
|
|
33
|
-
If you need another team member's input, say so in your response. The coordinator will bring them in. Don't try to do work outside your domain.
|
|
34
|
-
|
|
35
|
-
### Reviewer Protocol
|
|
36
|
-
If you have reviewer authority and reject work: the original author is locked out from revising that artifact. A different agent must own the revision. State who should revise in your rejection response.
|
|
37
|
-
|
|
38
|
-
## Anti-Patterns
|
|
39
|
-
- Don't read all agent charters — you only need your own context + decisions.md
|
|
40
|
-
- Don't write directly to `.squad/decisions.md` — always use the inbox drop-box
|
|
41
|
-
- Don't modify other agents' history.md files — that's Scribe's job
|
|
42
|
-
- Don't assume CWD is the repo root — always use TEAM ROOT
|
|
1
|
+
---
|
|
2
|
+
name: "agent-collaboration"
|
|
3
|
+
description: "Standard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication"
|
|
4
|
+
domain: "team-workflow"
|
|
5
|
+
confidence: "high"
|
|
6
|
+
source: "extracted from charter boilerplate — identical content in 18+ agent charters"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Context
|
|
10
|
+
|
|
11
|
+
Every agent on the team follows identical collaboration patterns for worktree awareness, decision recording, and cross-agent communication. These were previously duplicated in every charter's Collaboration section (~300 bytes × 18 agents = ~5.4KB of redundant context). Now centralized here.
|
|
12
|
+
|
|
13
|
+
The coordinator's spawn prompt already instructs agents to read decisions.md and their history.md. This skill adds the patterns for WRITING decisions and requesting help.
|
|
14
|
+
|
|
15
|
+
## Patterns
|
|
16
|
+
|
|
17
|
+
### Worktree Awareness
|
|
18
|
+
Use the `TEAM ROOT` path provided in your spawn prompt. All `.squad/` paths are relative to this root. If TEAM ROOT is not provided (rare), run `git rev-parse --show-toplevel` as fallback. Never assume CWD is the repo root.
|
|
19
|
+
|
|
20
|
+
### Decision Recording
|
|
21
|
+
After making a decision that affects other team members, write it to:
|
|
22
|
+
`.squad/decisions/inbox/{your-name}-{brief-slug}.md`
|
|
23
|
+
|
|
24
|
+
Format:
|
|
25
|
+
```
|
|
26
|
+
### {date}: {decision title}
|
|
27
|
+
**By:** {Your Name}
|
|
28
|
+
**What:** {the decision}
|
|
29
|
+
**Why:** {rationale}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Cross-Agent Communication
|
|
33
|
+
If you need another team member's input, say so in your response. The coordinator will bring them in. Don't try to do work outside your domain.
|
|
34
|
+
|
|
35
|
+
### Reviewer Protocol
|
|
36
|
+
If you have reviewer authority and reject work: the original author is locked out from revising that artifact. A different agent must own the revision. State who should revise in your rejection response.
|
|
37
|
+
|
|
38
|
+
## Anti-Patterns
|
|
39
|
+
- Don't read all agent charters — you only need your own context + decisions.md
|
|
40
|
+
- Don't write directly to `.squad/decisions.md` — always use the inbox drop-box
|
|
41
|
+
- Don't modify other agents' history.md files — that's Scribe's job
|
|
42
|
+
- Don't assume CWD is the repo root — always use TEAM ROOT
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "agent-conduct"
|
|
3
|
-
description: "Shared hard rules enforced across all squad agents"
|
|
4
|
-
domain: "team-governance"
|
|
5
|
-
confidence: "high"
|
|
6
|
-
source: "reskill extraction — Product Isolation Rule and Peer Quality Check appeared in all 20 agent charters"
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Context
|
|
10
|
-
|
|
11
|
-
Every squad agent must follow these two hard rules. They were previously duplicated in every charter. Now they live here as a shared skill, loaded once.
|
|
12
|
-
|
|
13
|
-
## Patterns
|
|
14
|
-
|
|
15
|
-
### Product Isolation Rule (hard rule)
|
|
16
|
-
Tests, CI workflows, and product code must NEVER depend on specific agent names from any particular squad. "Our squad" must not impact "the squad." No hardcoded references to agent names (Flight, EECOM, FIDO, etc.) in test assertions, CI configs, or product logic. Use generic/parameterized values. If a test needs agent names, use obviously-fake test fixtures (e.g., "test-agent-1", "TestBot").
|
|
17
|
-
|
|
18
|
-
### Peer Quality Check (hard rule)
|
|
19
|
-
Before finishing work, verify your changes don't break existing tests. Run the test suite for files you touched. If CI has been failing, check your changes aren't contributing to the problem. When you learn from mistakes, update your history.md.
|
|
20
|
-
|
|
21
|
-
## Anti-Patterns
|
|
22
|
-
- Don't hardcode dev team agent names in product code or tests
|
|
23
|
-
- Don't skip test verification before declaring work done
|
|
24
|
-
- Don't ignore pre-existing CI failures that your changes may worsen
|
|
1
|
+
---
|
|
2
|
+
name: "agent-conduct"
|
|
3
|
+
description: "Shared hard rules enforced across all squad agents"
|
|
4
|
+
domain: "team-governance"
|
|
5
|
+
confidence: "high"
|
|
6
|
+
source: "reskill extraction — Product Isolation Rule and Peer Quality Check appeared in all 20 agent charters"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Context
|
|
10
|
+
|
|
11
|
+
Every squad agent must follow these two hard rules. They were previously duplicated in every charter. Now they live here as a shared skill, loaded once.
|
|
12
|
+
|
|
13
|
+
## Patterns
|
|
14
|
+
|
|
15
|
+
### Product Isolation Rule (hard rule)
|
|
16
|
+
Tests, CI workflows, and product code must NEVER depend on specific agent names from any particular squad. "Our squad" must not impact "the squad." No hardcoded references to agent names (Flight, EECOM, FIDO, etc.) in test assertions, CI configs, or product logic. Use generic/parameterized values. If a test needs agent names, use obviously-fake test fixtures (e.g., "test-agent-1", "TestBot").
|
|
17
|
+
|
|
18
|
+
### Peer Quality Check (hard rule)
|
|
19
|
+
Before finishing work, verify your changes don't break existing tests. Run the test suite for files you touched. If CI has been failing, check your changes aren't contributing to the problem. When you learn from mistakes, update your history.md.
|
|
20
|
+
|
|
21
|
+
## Anti-Patterns
|
|
22
|
+
- Don't hardcode dev team agent names in product code or tests
|
|
23
|
+
- Don't skip test verification before declaring work done
|
|
24
|
+
- Don't ignore pre-existing CI failures that your changes may worsen
|