@mmerterden/multi-agent-pipeline 12.4.0 → 12.6.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/CHANGELOG.md +169 -0
- package/README.md +1 -1
- package/docs/features.md +20 -0
- package/index.js +7 -1
- package/install/_dev-only-files.mjs +1 -0
- package/package.json +4 -3
- package/pipeline/agents/security-auditor.md +1 -1
- package/pipeline/commands/archive-guard.md +5 -5
- package/pipeline/commands/multi-agent/SKILL.md +2 -0
- package/pipeline/commands/multi-agent/design-check/SKILL.md +287 -0
- package/pipeline/commands/multi-agent/help/SKILL.md +45 -5
- package/pipeline/commands/multi-agent/refactor/SKILL.md +92 -12
- package/pipeline/commands/multi-agent/review/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/sync/SKILL.md +119 -12
- package/pipeline/commands/multi-agent/test/SKILL.md +1 -1
- package/pipeline/commands/sim-test.md +5 -5
- package/pipeline/lib/credential-store.sh +32 -0
- package/pipeline/lib/extract-conventions.sh +1 -0
- package/pipeline/lib/repo-cache.sh +1 -0
- package/pipeline/lib/shadow-git.sh +8 -0
- package/pipeline/multi-agent-refs/cross-cli-contract.md +3 -3
- package/pipeline/multi-agent-refs/phases/phase-0-init.md +9 -1
- package/pipeline/multi-agent-refs/phases/phase-3-dev.md +2 -2
- package/pipeline/multi-agent-refs/phases/phase-4-review.md +3 -2
- package/pipeline/multi-agent-refs/phases/phase-5-test.md +14 -4
- package/pipeline/multi-agent-refs/phases.md +2 -0
- package/pipeline/multi-agent-refs/prompt-assembly.md +31 -0
- package/pipeline/preferences-template.json +18 -1
- package/pipeline/schemas/agent-state.schema.json +90 -0
- package/pipeline/schemas/design-check-config.schema.json +162 -0
- package/pipeline/schemas/learnings-ledger.schema.json +4 -0
- package/pipeline/schemas/migrations/state-2.0.0-to-2.1.0.mjs +30 -12
- package/pipeline/schemas/prefs.schema.json +161 -5
- package/pipeline/schemas/token-budget.json +2 -2
- package/pipeline/schemas/triage-corpus.schema.json +5 -1
- package/pipeline/scripts/README.md +7 -5
- package/pipeline/scripts/classify-plan-safety.mjs +8 -3
- package/pipeline/scripts/cost-budget-check.mjs +9 -5
- package/pipeline/scripts/eval-mine-corpus.mjs +19 -5
- package/pipeline/scripts/fixtures/install-layout.tsv +7 -7
- package/pipeline/scripts/gc-worktrees.sh +23 -1
- package/pipeline/scripts/learning-curve.mjs +167 -0
- package/pipeline/scripts/learnings-ledger.mjs +27 -2
- package/pipeline/scripts/lint-mcp-refs.mjs +207 -0
- package/pipeline/scripts/memory-load.sh +5 -1
- package/pipeline/scripts/render-work-summary.sh +4 -1
- package/pipeline/scripts/repo-map.mjs +1 -1
- package/pipeline/scripts/smoke-command-inventory.sh +81 -0
- package/pipeline/scripts/smoke-commands-skills-parity.sh +1 -1
- package/pipeline/scripts/smoke-compliance-skills.sh +4 -4
- package/pipeline/scripts/smoke-cross-cli-behavior.sh +12 -2
- package/pipeline/scripts/smoke-generate-issue.sh +6 -5
- package/pipeline/scripts/smoke-learning-curve.sh +61 -0
- package/pipeline/scripts/smoke-per-repo-memory.sh +2 -2
- package/pipeline/scripts/smoke-review-readiness.sh +3 -2
- package/pipeline/scripts/smoke-schema-validation.sh +19 -5
- package/pipeline/scripts/smoke-shadow-git.sh +4 -2
- package/pipeline/scripts/triage-memory.mjs +66 -10
- package/pipeline/scripts/uninstall.mjs +1 -1
- package/pipeline/skills/.skill-manifest.json +24 -8
- package/pipeline/skills/.skills-index.json +39 -3
- package/pipeline/skills/shared/README.md +10 -6
- package/pipeline/skills/shared/core/apple-archive-compliance/SKILL.md +10 -8
- package/pipeline/skills/shared/core/multi-agent-design-check/SKILL.md +248 -0
- package/pipeline/skills/shared/core/multi-agent-help/SKILL.md +22 -0
- package/pipeline/skills/shared/core/multi-agent-refactor/SKILL.md +67 -11
- package/pipeline/skills/shared/core/multi-agent-review/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-sync/SKILL.md +51 -9
- package/pipeline/skills/shared/core/multi-agent-test/SKILL.md +1 -1
- package/pipeline/skills/skills-index.md +8 -4
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: multi-agent-refactor
|
|
3
3
|
language: en
|
|
4
|
-
description: "Analyse the project: extract adapted best-practices, hunt real bugs + improvement areas, check upstream drift of derived skills, draft one plan, take approval, develop, then ask whether to sync."
|
|
4
|
+
description: "Analyse the project: extract adapted best-practices, hunt real bugs + improvement areas, check upstream drift of derived skills, research the companion dev-toolkit MCP server against current MCP practice, draft one plan, take approval, develop, then ask whether to sync."
|
|
5
5
|
user-invocable: true
|
|
6
|
-
argument-hint: 'bugs | best-practices | drift | security | tests | performance | docs | ci | deps'
|
|
6
|
+
argument-hint: 'bugs | best-practices | drift | dev-toolkit | security | tests | performance | docs | ci | deps'
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Multi-Agent Refactor
|
|
10
10
|
|
|
11
|
-
**One command. Best-practices + Bug hunt + Upstream drift -> Score -> Plan -> Approval -> Develop -> Sync.**
|
|
11
|
+
**One command. Best-practices + Bug hunt + Upstream drift + Dev-toolkit -> Score -> Plan -> Approval -> Develop -> Sync.**
|
|
12
12
|
|
|
13
|
-
Deep-analyses the current project, extracts the global best-practices worth adopting (adapted to our stack), hunts real bugs and improvement areas, checks whether any skills we derived from an upstream source have drifted, scores everything, drafts a single prioritized plan, takes approval, applies the approved items, and asks about sync when done.
|
|
13
|
+
Deep-analyses the current project, extracts the global best-practices worth adopting (adapted to our stack), hunts real bugs and improvement areas, checks whether any skills we derived from an upstream source have drifted, researches the companion dev-toolkit MCP server against current MCP practice, scores everything, drafts a single prioritized plan, takes approval, applies the approved items, and asks about sync when done.
|
|
14
14
|
|
|
15
|
-
**Input**: $ARGUMENTS (optional - area to focus on: "security", "performance", "tests", "bugs", "best-practices", "drift", etc.)
|
|
15
|
+
**Input**: $ARGUMENTS (optional - area to focus on: "security", "performance", "tests", "bugs", "best-practices", "drift", "dev-toolkit", etc.)
|
|
16
16
|
|
|
17
17
|
## Flow
|
|
18
18
|
|
|
19
19
|
```
|
|
20
20
|
Step 0: BEST-PRACTICES Research the field, extract the best approaches, ADAPT them to our stack -> plan band A
|
|
21
21
|
Step 0b: DRIFT Check upstream-derived skills for updates we have not pulled -> plan band D
|
|
22
|
+
Step 0c: DEV-TOOLKIT Research current MCP practice + audit the companion dev-toolkit repo -> plan band E
|
|
22
23
|
Step 1: SCAN Scan the project structure (files, LOC, dependencies, CI, tests)
|
|
23
24
|
Step 2: ANALYZE 10 categories + an explicit BUG HUNT (real defects, not just scores) -> plan bands B, C
|
|
24
25
|
Step 3: SCORE Each category out of 10, total /100
|
|
25
|
-
Step 4: PLAN Merge bands A (best-practice) + B (bugs) + C (improvements) + D (drift)
|
|
26
|
+
Step 4: PLAN Merge bands A (best-practice) + B (bugs) + C (improvements) + D (drift) + E (dev-toolkit)
|
|
26
27
|
Step 5: ASK "Shall I start developing?" - take approval
|
|
27
28
|
Step 6: IMPLEMENT Apply approved items in order (lint, test, commit)
|
|
28
29
|
Step 7: VERIFY Confirm all tests + lint pass
|
|
29
30
|
Step 8: ASK SYNC "Shall I run multi-agent-sync?" - take approval
|
|
30
31
|
```
|
|
31
32
|
|
|
32
|
-
Plan bands (all
|
|
33
|
+
Plan bands (all five feed the single Step 4 table):
|
|
33
34
|
- **A - Best-practice**: the best field approaches, adapted so they actually fit this repo.
|
|
34
35
|
- **B - Bug**: real defects found in the code (correctness, security, data-loss, crashes).
|
|
35
36
|
- **C - Improvement**: quality/perf/DX gaps surfaced by the 10-category analysis.
|
|
36
37
|
- **D - Drift**: upstream updates to skills we derived from an external source.
|
|
38
|
+
- **E - Dev-toolkit**: current-practice gaps in the companion dev-toolkit MCP server (the pipeline's device and browser hands), applied in that repo.
|
|
37
39
|
|
|
38
40
|
## Step 0: BEST-PRACTICES - research the field, adapt to us
|
|
39
41
|
|
|
@@ -94,6 +96,54 @@ Procedure:
|
|
|
94
96
|
|
|
95
97
|
5. For each drifted entry, add a band-D plan item: "port upstream <plugin> <version> changes into <localPath>". Do not auto-apply - it goes through Step 5 approval; after porting, bump the entry's `derivedFromVersion`.
|
|
96
98
|
|
|
99
|
+
## Step 0c: DEV-TOOLKIT - current MCP practice for the companion toolkit
|
|
100
|
+
|
|
101
|
+
The pipeline's device and browser hands are MCP tools served by a companion repo (`dev-toolkit-mcp`), and several pipeline skills declare a minimum toolkit version. This step researches current MCP practice and audits that repo against it.
|
|
102
|
+
|
|
103
|
+
**Resolution** - configuration first, never a hardcoded path:
|
|
104
|
+
|
|
105
|
+
1. `prefs.global.devToolkit`: `{ enabled, label, localPath, mcpServerName, packageName, registry, repoUrl }`.
|
|
106
|
+
2. If unset, auto-detect from the MCP registration: `mcpServers` in `~/.claude.json` (plus `projects[*].mcpServers`) and `~/.claude/settings.json`; for a stdio `node` entry take `dirname(args[0])`, and accept it only if that directory is a git repo whose `package.json` depends on `@modelcontextprotocol/sdk`.
|
|
107
|
+
3. Neither resolves (or `enabled: false`) -> skip and report "no dev-toolkit configured". Never guess a path, never clone.
|
|
108
|
+
|
|
109
|
+
**Research axes** - a finding without a source link is not a finding:
|
|
110
|
+
|
|
111
|
+
| # | Axis | Where to look | What to extract |
|
|
112
|
+
|---|------|---------------|-----------------|
|
|
113
|
+
| 1 | MCP protocol | spec revisions + `@modelcontextprotocol/sdk` releases | features released since the pinned SDK that the server does not use: tool annotations, `outputSchema` + structured content, resource links, progress + cancellation, `tools/list_changed`, pagination |
|
|
114
|
+
| 2 | Host clients | Claude Code / Copilot CLI / Cursor / Antigravity docs | description budget, tool-count ceilings, naming, output size limits, permission ergonomics |
|
|
115
|
+
| 3 | Peer servers | GitHub search on the same domain + `stars:>50` | surfaces we lack, conventions peers converged on, what to discard |
|
|
116
|
+
| 4 | Wrapped tooling | `simctl`, `idb`, `adb`, `xcodebuild`, Playwright notes, Apple ITMS + review guidelines | deprecated flags in use, new capabilities worth a tool, audit rules that changed |
|
|
117
|
+
| 5 | Field practice | X / Twitter, Reddit, MCP community | what server authors changed recently (transport, output-token diets, error shape) |
|
|
118
|
+
|
|
119
|
+
**Audit the toolkit** - run the checks, do not assume:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
DT="<resolved localPath>"
|
|
123
|
+
node --check "$DT/index.js"; find "$DT/tools" -name "*.js" -exec node --check {} \;
|
|
124
|
+
grep -rn "console\.log(" "$DT/index.js" "$DT/tools" || echo "stdout clean" # stdout = JSON-RPC channel
|
|
125
|
+
grep -nE "[0-9]+ tools" "$DT/README.md" "$DT/package.json" # advertised count vs reality
|
|
126
|
+
node -p "require('$DT/package.json').files.join('\n')"; ls -d "$DT"/tools/*/ # files[] covers runtime dirs
|
|
127
|
+
cd "$DT" && npm outdated; npm audit --omit=dev 2>/dev/null | tail -20
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Also check: every tool has a description + `inputSchema`; token-heavy results (screenshots, UI trees) are truncated or file-backed; failures return an error result, not a throw; `CHANGELOG.md`, CI and tests exist.
|
|
131
|
+
|
|
132
|
+
Output (plan band E):
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
| # | Axis | Finding | Source | Adaptation in the toolkit (file) | Effort | Impact | In plan? |
|
|
136
|
+
|---|------|---------|--------|----------------------------------|--------|--------|----------|
|
|
137
|
+
| 1 | Protocol | read-only tools carry no annotations | <spec link> | add `annotations` to the read-only tools in index.js | Low | Medium | Yes (P1) |
|
|
138
|
+
| 2 | Peer servers | peer exposes <surface> | <repo link> | does not fit: outside the pipeline's phases | - | - | No |
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Rules for this band:
|
|
142
|
+
|
|
143
|
+
- Band-E work lands in the toolkit repo, never mirrored into this one. Shipping it is `multi-agent-sync` Step 3d.
|
|
144
|
+
- A finding that changes the tool surface pairs with a pipeline-side item: bump the minimum toolkit version wherever a pipeline skill declares one.
|
|
145
|
+
- If the current working directory IS the toolkit repo, skip band E and let bands A/B/C cover it.
|
|
146
|
+
|
|
97
147
|
## Step 1: SCAN
|
|
98
148
|
|
|
99
149
|
```
|
|
@@ -166,7 +216,7 @@ Each category is scored out of 10. Output format:
|
|
|
166
216
|
|
|
167
217
|
## Step 4: PLAN - one merged, prioritized table
|
|
168
218
|
|
|
169
|
-
Merge all
|
|
219
|
+
Merge all five bands into a single plan. Tag each row with its band (A best-practice / B bug / C improvement / D drift / E dev-toolkit).
|
|
170
220
|
|
|
171
221
|
```
|
|
172
222
|
| # | Priority | Band | Category | Item | Impact |
|
|
@@ -175,7 +225,8 @@ Merge all four bands into a single plan. Tag each row with its band (A best-prac
|
|
|
175
225
|
| 2 | P0 | B | Testing | Fix nil-deref on empty response (src/y:42) | High |
|
|
176
226
|
| 3 | P1 | A | CI/CD | Adopt matrix build (adapt: .github/workflows/ci.yml) | Medium |
|
|
177
227
|
| 4 | P1 | D | Skills | Port upstream <plugin> 0.3.0 fixes into <localPath> | Medium |
|
|
178
|
-
| 5 |
|
|
228
|
+
| 5 | P1 | E | Toolkit | Add read-only annotations to the dev-toolkit device tools | Medium |
|
|
229
|
+
| 6 | P2 | C | DevEx | Rename npm scripts for consistency | Low |
|
|
179
230
|
```
|
|
180
231
|
|
|
181
232
|
Priority levels:
|
|
@@ -187,13 +238,14 @@ Priority levels:
|
|
|
187
238
|
|
|
188
239
|
After showing the plan, ask:
|
|
189
240
|
|
|
190
|
-
> "I found X items (P0: N, P1: M, P2: K) across bugs, best-practices, improvements, and
|
|
241
|
+
> "I found X items (P0: N, P1: M, P2: K) across bugs, best-practices, improvements, upstream drift, and dev-toolkit practice. Shall I start developing?"
|
|
191
242
|
|
|
192
243
|
Options:
|
|
193
244
|
- "Yes, do all of them"
|
|
194
245
|
- "Do only the P0 ones"
|
|
195
246
|
- "Do only P0 + P1"
|
|
196
247
|
- "Only the bugs (band B)"
|
|
248
|
+
- "Only the dev-toolkit (band E)"
|
|
197
249
|
- (the user can make a specific selection)
|
|
198
250
|
|
|
199
251
|
**NEVER start developing without approval.**
|
|
@@ -204,6 +256,7 @@ Apply approved items in order:
|
|
|
204
256
|
|
|
205
257
|
1. For each item:
|
|
206
258
|
- Make the change (for band D, port the upstream diff into `localPath`, then bump that entry's `derivedFromVersion`)
|
|
259
|
+
- Band-E items are applied inside the toolkit repo, never mirrored here: edit there, re-run its gates (`node --check`, `tools/list` handshake, advertised tool count matching reality), commit there. Publishing is `multi-agent-sync` Step 3d.
|
|
207
260
|
- Run the relevant tests
|
|
208
261
|
- If successful, move to the next
|
|
209
262
|
- If it fails, revert and notify the user
|
|
@@ -227,6 +280,8 @@ echo "Lint: PASS/FAIL"
|
|
|
227
280
|
echo "Test: PASS/FAIL (X/Y passed)"
|
|
228
281
|
```
|
|
229
282
|
|
|
283
|
+
If any band-E item was applied, verify the toolkit repo too: syntax-check every file it loads, handshake the server and confirm `tools/list` still answers, and confirm the advertised tool counts match the count the server reports.
|
|
284
|
+
|
|
230
285
|
## Step 8: ASK SYNC
|
|
231
286
|
|
|
232
287
|
After all approved items are applied, ask:
|
|
@@ -234,7 +289,7 @@ After all approved items are applied, ask:
|
|
|
234
289
|
> "Development complete. Shall I run multi-agent-sync?"
|
|
235
290
|
|
|
236
291
|
Options:
|
|
237
|
-
- "Yes" -> run the `/sync` command (full ecosystem sync)
|
|
292
|
+
- "Yes" -> run the `/sync` command (full ecosystem sync - its Step 3d ships any band-E work in the toolkit repo)
|
|
238
293
|
- "No" -> report and finish
|
|
239
294
|
- "Only commit + push" -> push only the current repo without sync
|
|
240
295
|
|
|
@@ -247,6 +302,7 @@ If $ARGUMENTS is specified, focus on that band/category only:
|
|
|
247
302
|
| `bugs` | Bug hunt only (band B) |
|
|
248
303
|
| `best-practices` | Field research + adapted plan only (band A) |
|
|
249
304
|
| `drift` | Upstream derived-skill drift only (band D) |
|
|
305
|
+
| `dev-toolkit` | Companion MCP toolkit research + audit only (band E) |
|
|
250
306
|
| `security` | Security analysis only |
|
|
251
307
|
| `tests` | Test coverage and quality only |
|
|
252
308
|
| `performance` | Performance optimization only |
|
|
@@ -46,7 +46,7 @@ Skip Phase 0-3 and review a diff only. Input shapes: a PR (`#N`, `repo#N`, GitHu
|
|
|
46
46
|
|
|
47
47
|
| Platform | Trigger files | Catalog to load |
|
|
48
48
|
|---|---|---|
|
|
49
|
-
| iOS | `**/Info.plist`, `**/PrivacyInfo.xcprivacy`, `**/*.entitlements`, `**/*App.swift`, `**/AppDelegate*.swift`, `**/SceneDelegate*.swift`, `**/project.pbxproj` | `pipeline/skills/shared/core/apple-archive-compliance/SKILL.md` -
|
|
49
|
+
| iOS | `**/Info.plist`, `**/PrivacyInfo.xcprivacy`, `**/*.entitlements`, `**/*App.swift`, `**/AppDelegate*.swift`, `**/SceneDelegate*.swift`, `**/project.pbxproj` | `pipeline/skills/shared/core/apple-archive-compliance/SKILL.md` - 18 rules + ITMS refs |
|
|
50
50
|
| Android | `**/AndroidManifest.xml`, `**/build.gradle(.kts)`, `**/proguard-rules.pro`, `**/network_security_config.xml` | `pipeline/skills/shared/core/google-play-compliance/SKILL.md` - 21 rules + Play policy refs |
|
|
51
51
|
|
|
52
52
|
It appends the catalog's `ruleID` + the Apple ITMS / Play policy ref to each finding:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: multi-agent-sync
|
|
3
3
|
language: en
|
|
4
|
-
description: "One-shot sync of the entire multi-agent ecosystem: Claude Code, Copilot CLI, pipeline repo, and
|
|
4
|
+
description: "One-shot sync of the entire multi-agent ecosystem: Claude Code, Copilot CLI, pipeline repo, website, and the dev-toolkit MCP server."
|
|
5
5
|
user-invocable: true
|
|
6
|
-
argument-hint: 'release | "change description"'
|
|
6
|
+
argument-hint: 'release | dev-toolkit | "change description"'
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Multi-Agent Sync
|
|
@@ -22,6 +22,7 @@ When invoked, it synchronizes all targets in order. It detects what changed, upd
|
|
|
22
22
|
| 2 | Copilot CLI | `~/.copilot/copilot-instructions.md` + `~/.copilot/skills/` | <- from Claude |
|
|
23
23
|
| 3 | multi-agent-pipeline repo | `~/multi-agent-pipeline/pipeline/` | <- from Claude (genericized) |
|
|
24
24
|
| 4 | Website | `{owner}/{website-host}` | <- version + features |
|
|
25
|
+
| 5 | dev-toolkit MCP server | resolved from `prefs.global.devToolkit` or the `mcpServers` registration | own repo: gate, commit, publish |
|
|
25
26
|
|
|
26
27
|
## Default Behavior (no argument)
|
|
27
28
|
|
|
@@ -29,11 +30,12 @@ Run all steps automatically:
|
|
|
29
30
|
|
|
30
31
|
```
|
|
31
32
|
Step 1: DETECT Compare timestamps, find stale targets
|
|
32
|
-
Step 2: COPILOT Claude Code -> Copilot CLI (instructions +
|
|
33
|
+
Step 2: COPILOT Claude Code -> Copilot CLI (instructions + 42 sub-command skills)
|
|
33
34
|
Step 3: REPO Claude Code -> pipeline repo (genericized, personal data scrub)
|
|
35
|
+
Step 3d: DEV-TOOLKIT Companion MCP server -> detect movement, ship gates, commit + publish
|
|
34
36
|
Step 4: WEBSITE Version + phase/model counts -> {website-host} (i18n + projects.ts)
|
|
35
37
|
Step 5: Commit Commit + push all changed repos
|
|
36
|
-
Step 6: Report Summary: synced targets, changed files, deploy status
|
|
38
|
+
Step 6: Report Summary: synced targets, changed files, deploy status, dev-toolkit version
|
|
37
39
|
```
|
|
38
40
|
|
|
39
41
|
If nothing is stale -> report "All targets up to date" and stop.
|
|
@@ -44,6 +46,7 @@ If nothing is stale -> report "All targets up to date" and stop.
|
|
|
44
46
|
|-------|----------|
|
|
45
47
|
| (no argument) | Full ecosystem sync (default) |
|
|
46
48
|
| `release` | Full sync + version bump + tag + npm publish + website deploy |
|
|
49
|
+
| `dev-toolkit` | Run Step 3d only: gate, commit and publish the companion MCP server |
|
|
47
50
|
| `"change description"` | Apply the description to ALL targets at once |
|
|
48
51
|
|
|
49
52
|
|
|
@@ -90,6 +93,43 @@ If nothing is stale -> report "All targets up to date" and stop.
|
|
|
90
93
|
- `~/.claude/settings.json`
|
|
91
94
|
|
|
92
95
|
|
|
96
|
+
## Dev-Toolkit Sync (Step 3d)
|
|
97
|
+
|
|
98
|
+
The companion MCP server (`dev-toolkit-mcp`) is its own repo with its own registry. Pipeline skills call its tools and several declare a minimum version, so when it moves it has to ship.
|
|
99
|
+
|
|
100
|
+
**Resolution**: identical to `multi-agent-refactor` Step 0c - `prefs.global.devToolkit` first, then the `mcpServers` registration, then skip.
|
|
101
|
+
|
|
102
|
+
**Detect movement**: dirty working tree, unpushed commits, or no `v<version>` tag for the version in `package.json`. Nothing moved -> report "up to date" and continue.
|
|
103
|
+
|
|
104
|
+
**Ship gates** (a failure aborts this step only, with file + line; the rest of the sync continues).
|
|
105
|
+
When the toolkit ships its own gate script (`npm run gates` / `scripts/gates.sh`), run that instead of the list below - the repo owns the definition, this skill owns the requirement. The list is the fallback, and the coverage the script must have:
|
|
106
|
+
|
|
107
|
+
1. `node --check index.js` plus every `tools/**/*.js`.
|
|
108
|
+
2. stdio handshake (`initialize` -> `notifications/initialized` -> `tools/list`) must answer with a non-zero tool count.
|
|
109
|
+
3. That count must match every advertised count (`package.json` description, README header and per-family rows). Fix the docs, never the gate.
|
|
110
|
+
4. `npm pack --dry-run` must list every `tools/*/` directory the server loads - a missing `files[]` entry publishes a broken package.
|
|
111
|
+
5. `grep -rn "console\.log(" index.js tools/` must be empty: stdout carries the JSON-RPC frames, diagnostics go to `console.error`.
|
|
112
|
+
6. Personal-data scan: no absolute `/Users/<name>` paths, no tokens, no corporate hostnames.
|
|
113
|
+
7. Version contract: every pipeline-side minimum version must be satisfied by what is about to ship; a new tool a pipeline skill now needs -> bump that minimum in the same sync.
|
|
114
|
+
|
|
115
|
+
**Version bump**: patch for fixes and docs, minor for a new tool, major for a removed or renamed tool.
|
|
116
|
+
|
|
117
|
+
**Ship**: commit with that repo's own convention, tag `v<version>`, push with `--tags`, then publish to the registry from `publishConfig` using a throwaway userconfig - never edit `~/.npmrc`, never a bare `npm publish`. The token depends on the registry: `npm.pkg.github.com` needs a GitHub PAT with `write:packages` (logical key `github`), `registry.npmjs.org` needs the `npm` key.
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
NPMRC=$(mktemp); trap 'rm -f "$NPMRC"' EXIT
|
|
121
|
+
REG=$(node -p "require('./package.json').publishConfig?.registry || 'https://registry.npmjs.org'")
|
|
122
|
+
HOST=${REG#https://}; HOST=${HOST%/}
|
|
123
|
+
case "$HOST" in npm.pkg.github.com*) KEY=github ;; *) KEY=npm ;; esac
|
|
124
|
+
TOKEN=$(bash "$HOME/.claude/lib/credential-store.sh" get "$KEY")
|
|
125
|
+
[ -n "$TOKEN" ] || echo "ABORT: no '$KEY' token - onboard it via /multi-agent:setup before publishing"
|
|
126
|
+
printf '%s\n' "registry=$REG" "//$HOST/:_authToken=$TOKEN" > "$NPMRC"
|
|
127
|
+
npm publish --userconfig "$NPMRC"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**Approval**: outside autopilot and outside `release`, ask first: commit + push / commit + push + publish / skip. Never ship unapproved band-E work from `multi-agent-refactor` silently.
|
|
131
|
+
|
|
132
|
+
|
|
93
133
|
## Website Sync (Step 4)
|
|
94
134
|
|
|
95
135
|
Propagate the pipeline version, phase count, model count, and feature descriptions to the website.
|
|
@@ -124,9 +164,10 @@ When invoked with the `release` argument:
|
|
|
124
164
|
4. VERSION package.json version bump (patch/minor/major)
|
|
125
165
|
5. Commit + TAG git commit + git tag v{VERSION}
|
|
126
166
|
6. PUSH git push --tags -> release.yml auto-publish
|
|
127
|
-
7.
|
|
128
|
-
8.
|
|
129
|
-
9.
|
|
167
|
+
7. DEV-TOOLKIT Ship the companion MCP server if it moved (Step 3d gates, then publish)
|
|
168
|
+
8. WEBSITE Version + features -> {website-host}
|
|
169
|
+
9. COPILOT Copilot CLI instructions + skills sync
|
|
170
|
+
10. Report Summary: version, touched repos, deploy status
|
|
130
171
|
```
|
|
131
172
|
|
|
132
173
|
|
|
@@ -136,10 +177,10 @@ When invoked with the `release` argument:
|
|
|
136
177
|
|-------------|-------------|
|
|
137
178
|
| `~/.claude/commands/multi-agent/{cmd}.md` | `~/.copilot/skills/multi-agent-{cmd}/SKILL.md` |
|
|
138
179
|
|
|
139
|
-
**
|
|
180
|
+
**42 commands are synced** (canonical inventory - must match `cross-cli-contract.md` section 1; drift = contract violation):
|
|
140
181
|
|
|
141
182
|
```
|
|
142
|
-
analysis, analysis-resolve, autopilot, build-optimize, channels, create-jira, dev,
|
|
183
|
+
analysis, analysis-resolve, autopilot, build-optimize, channels, create-jira, design-check, dev,
|
|
143
184
|
dev-autopilot, dev-local, dev-local-autopilot, diff-explain, finish, forget, garbage-collect,
|
|
144
185
|
help, issue, jira, kill, language, local,
|
|
145
186
|
local-autopilot, log, manual-test, prune-logs, purge, refactor, resume, review, review-issue, review-jira,
|
|
@@ -159,6 +200,7 @@ routines, save, scan, search, setup, stack, status, sync, test, uninstall, updat
|
|
|
159
200
|
| `gh` CLI (personal) | `{owner}` gh auth (Keychain) |
|
|
160
201
|
| `gh` CLI (work) | `${USER}_{work-gh-alias}` gh auth (Keychain) |
|
|
161
202
|
| npm publish | `NODE_AUTH_TOKEN` - `GITHUB_TOKEN` in CI, Keychain PAT locally |
|
|
203
|
+
| dev-toolkit publish (Step 3d) | `npm` logical Keychain key -> throwaway `--userconfig`, registry from that repo's `publishConfig` |
|
|
162
204
|
|
|
163
205
|
```bash
|
|
164
206
|
gh auth switch --user {owner} # for personal repos
|
|
@@ -39,6 +39,6 @@ Pass `$ARGUMENTS` through verbatim - the target doc picks the right test matri
|
|
|
39
39
|
|
|
40
40
|
- **iOS**: Xcode + booted Simulator (`xcrun simctl list | grep Booted`)
|
|
41
41
|
- **Android**: Android SDK + running emulator or USB device (`adb devices`)
|
|
42
|
-
- **MCP**: `dev-toolkit` MCP server registered (tool names start with `
|
|
42
|
+
- **MCP**: `dev-toolkit` MCP server registered (tool names start with `mcp__dev-toolkit__*`)
|
|
43
43
|
|
|
44
44
|
For the Phase 5 manual test mode (branch checkout + Xcode hint), use `multi-agent-manual-test` instead.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> Auto-generated by `pipeline/scripts/build-skills-index.mjs` - do not hand-edit.
|
|
4
4
|
> Regenerate with `node pipeline/scripts/build-skills-index.mjs`.
|
|
5
5
|
|
|
6
|
-
**
|
|
6
|
+
**193 skills** across 2 groups.
|
|
7
7
|
|
|
8
8
|
| Group | Name | Platform | Description |
|
|
9
9
|
|-------|------|----------|-------------|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
| external | `app-store-changelog` | - | Generate user-facing App Store release notes from git history since the last tag. |
|
|
24
24
|
| external | `app-store-optimization` | - | Optimize App Store product pages for search visibility and conversion. Use for App Store Optimization (ASO), keyword research, app name/subt |
|
|
25
25
|
| external | `app-store-review` | - | Prepare for App Store review and prevent rejections. Covers App Store review guidelines, app rejection reasons, PrivacyInfo.xcprivacy privac |
|
|
26
|
-
| core | `apple-archive-compliance` | - | Apple App Store Review compliance - wraps the dev-toolkit-mcp `ios_app_store_audit` tool (
|
|
26
|
+
| core | `apple-archive-compliance` | - | Apple App Store Review compliance - wraps the dev-toolkit-mcp `ios_app_store_audit` tool (18-rule deep scan) with ITMS error code mapping |
|
|
27
27
|
| external | `apple-on-device-ai` | - | Integrate on-device AI using Foundation Models framework, Core ML, and open-source LLM runtimes on Apple Silicon. Covers Foundation Models ( |
|
|
28
28
|
| external | `architecture` | - | Architectural decision-making framework. Requirements analysis, trade-off evaluation, ADR documentation. Use when making architecture decisi |
|
|
29
29
|
| external | `authentication` | - | Implement iOS authentication flows with AuthenticationServices and LocalAuthentication. Use when building Sign in with Apple, passkey/WebAut |
|
|
@@ -95,12 +95,14 @@
|
|
|
95
95
|
| core | `multi-agent-build-optimize` | - | Wrapper that dispatches to xcode-build-orchestrator on iOS repos. Benchmarks the current Xcode build, runs compilation / project / SPM analy |
|
|
96
96
|
| core | `multi-agent-channels` | - | Multi-channel reporter - Jira/Confluence/Wiki/PR description. Multi-select channels + content, humanizer pass, reviewer-preserving Bitbuck |
|
|
97
97
|
| core | `multi-agent-create-jira` | - | Create a standards-compliant Jira issue (Task / Bug / Story): asks the type, mines project conventions, drafts from a standard template with |
|
|
98
|
+
| core | `multi-agent-design-check` | - | Mock-mode vs Figma design audit (iOS / Android, local-only). Pick repo + module, gate on mock support, enumerate every state driver into a c |
|
|
98
99
|
| core | `multi-agent-dev` | - | Fast development mode: Init → Dev (Opus) → Test → Commit → Report. Analysis, planning, and review phases are skipped. |
|
|
99
100
|
| core | `multi-agent-dev-autopilot` | - | Fastest mode: Dev (Opus) plus Autopilot. Init → Dev → Commit → Report with zero confirmations. |
|
|
100
101
|
| core | `multi-agent-dev-local` | - | Fast mode + local - Init → Dev(Opus) → Commit → Report, no worktree. |
|
|
101
102
|
| core | `multi-agent-dev-local-autopilot` | - | Fastest + local - Dev(Opus) + autopilot, no worktree, zero interaction. |
|
|
102
103
|
| core | `multi-agent-diff-explain` | - | Map Phase 4 triage findings to branch diff lines. Read-only post-hoc command, used after review to answer 'which finding lines up with which |
|
|
103
104
|
| core | `multi-agent-finish` | - | Continue already-done LOCAL work through the pipeline tail: Review → Build+Test → Commit/PR → Report (technical analysis + Jira test-scenari |
|
|
105
|
+
| core | `multi-agent-forget` | - | Remove a saved /multi-agent routine (created by /multi-agent:save): deletes its local-only command and its registry entry. Asks which one an |
|
|
104
106
|
| core | `multi-agent-garbage-collect` | - | Sweep leftover /tmp scratch (picker state, review diffs, channel payloads, analysis drafts) from past runs. Dry-run first; confirms before d |
|
|
105
107
|
| core | `multi-agent-help` | - | Multi-agent pipeline usage guide - renders in EN or TR per prefs.global.outputLanguage (falls back to promptLanguage for backward compatib |
|
|
106
108
|
| core | `multi-agent-issue` | - | List unassigned GitHub issues, pick one, auto-assign, and launch the multi-agent pipeline. |
|
|
@@ -113,17 +115,19 @@
|
|
|
113
115
|
| core | `multi-agent-manual-test` | - | Switch to the active task's branch and prepare it for manual testing in Xcode. Phase 5 standalone (the UI Bug Hunter lives at multi-agent-te |
|
|
114
116
|
| core | `multi-agent-prune-logs` | - | Delete per-task project logs under ~/.claude/logs/multi-agent (filter by age/project/task). Audit trail + metrics are preserved. Dry-run fir |
|
|
115
117
|
| core | `multi-agent-purge` | - | ⚠️ Wipes every worktree, branch, log, and state file. Irreversible; asks for double confirmation. |
|
|
116
|
-
| core | `multi-agent-refactor` | - | Analyse the project: extract adapted best-practices, hunt real bugs + improvement areas, check upstream drift of derived skills,
|
|
118
|
+
| core | `multi-agent-refactor` | - | Analyse the project: extract adapted best-practices, hunt real bugs + improvement areas, check upstream drift of derived skills, research th |
|
|
117
119
|
| core | `multi-agent-resume` | - | Resume a stopped or failed task from the phase where it left off. |
|
|
118
120
|
| core | `multi-agent-review` | - | Run parallel review on a branch diff or a Pull Request: 2 models on Claude Code (Fable + Sonnet), 3 models on Copilot CLI (GPT + Opus + Sonn |
|
|
119
121
|
| core | `multi-agent-review-issue` | - | Assess whether a GitHub issue is ready for multi-agent development: fetch it, grade scope / acceptance criteria / repro / design / API / sta |
|
|
120
122
|
| core | `multi-agent-review-jira` | - | Assess whether a Jira issue is ready for multi-agent development: fetch it, grade scope / acceptance criteria / repro / design / API / stack |
|
|
123
|
+
| core | `multi-agent-routines` | - | List your saved /multi-agent routines (from /multi-agent:save) with what each one does, rendered in outputLanguage. |
|
|
124
|
+
| core | `multi-agent-save` | - | Save a recurring job as a reusable /multi-agent:<name> command. Reviews the conversation + your CLAUDE.md for candidate routines, you pick o |
|
|
121
125
|
| core | `multi-agent-scan` | - | Skill security scan: walks local skill directories against a tiered pattern catalog. |
|
|
122
126
|
| core | `multi-agent-search` | - | Log search across every agent-log.md with smart ranking and filters. Optional --semantic flag queries the per-repo triage corpus. |
|
|
123
127
|
| core | `multi-agent-setup` | - | First-run setup wizard: keychain token discovery, Git Identity onboarding, and pipeline preparation. |
|
|
124
128
|
| core | `multi-agent-stack` | - | Select the active stack for this repo by enabling the matching marketplace plugin(s) in .claude/settings.json (ios/android/mobile/backend/fr |
|
|
125
129
|
| core | `multi-agent-status` | - | Show every multi-agent task's ID, phase, branch, and status. |
|
|
126
|
-
| core | `multi-agent-sync` | - | One-shot sync of the entire multi-agent ecosystem: Claude Code, Copilot CLI, pipeline repo, and
|
|
130
|
+
| core | `multi-agent-sync` | - | One-shot sync of the entire multi-agent ecosystem: Claude Code, Copilot CLI, pipeline repo, website, and the dev-toolkit MCP server. |
|
|
127
131
|
| core | `multi-agent-test` | - | UI Bug Hunter - iOS Simulator (simctl) + Android Emulator (adb). Auto-detects platform. Screenshot + tap + analyze on the booted device. T |
|
|
128
132
|
| core | `multi-agent-uninstall` | - | Uninstall the pipeline from Claude Code + Copilot CLI. Keychain access tokens are always left untouched; --all-data also clears pipeline set |
|
|
129
133
|
| core | `multi-agent-update` | - | Update the pipeline to the latest version: git pull, install, migrate. |
|