@mmerterden/multi-agent-pipeline 10.0.6 → 10.3.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +143 -0
  2. package/README.md +5 -2
  3. package/docs/FIGMA_PIPELINE.md +12 -0
  4. package/docs/features.md +2 -0
  5. package/package.json +1 -1
  6. package/pipeline/agents/android-architect.md +3 -3
  7. package/pipeline/agents/backend-architect.md +3 -3
  8. package/pipeline/agents/code-reviewer.md +4 -4
  9. package/pipeline/agents/ios-architect.md +3 -3
  10. package/pipeline/agents/security-auditor.md +3 -3
  11. package/pipeline/commands/multi-agent/dev-autopilot.md +3 -3
  12. package/pipeline/commands/multi-agent/dev-local-autopilot.md +2 -2
  13. package/pipeline/commands/multi-agent/dev-local.md +3 -3
  14. package/pipeline/commands/multi-agent/dev.md +9 -9
  15. package/pipeline/commands/multi-agent/help.md +10 -10
  16. package/pipeline/commands/multi-agent/refs/channels/jira.md +1 -0
  17. package/pipeline/commands/multi-agent/refs/cross-cli-contract.md +7 -3
  18. package/pipeline/commands/multi-agent/refs/features/model-fallback.md +36 -18
  19. package/pipeline/commands/multi-agent/refs/phases/operations.md +15 -5
  20. package/pipeline/commands/multi-agent/refs/phases/phase-0-init.md +16 -2
  21. package/pipeline/commands/multi-agent/refs/phases/phase-1-analysis.md +8 -3
  22. package/pipeline/commands/multi-agent/refs/phases/phase-2-planning.md +1 -1
  23. package/pipeline/commands/multi-agent/refs/phases/phase-4-review.md +30 -8
  24. package/pipeline/commands/multi-agent/resume.md +4 -1
  25. package/pipeline/commands/multi-agent.md +5 -5
  26. package/pipeline/lib/fetch-confluence.sh +2 -2
  27. package/pipeline/lib/fetch-crashlytics.sh +2 -2
  28. package/pipeline/lib/fetch-fortify.sh +1 -1
  29. package/pipeline/lib/fetch-swagger.sh +1 -1
  30. package/pipeline/lib/figma-screenshot.sh +2 -2
  31. package/pipeline/preferences-template.json +8 -1
  32. package/pipeline/schemas/agent-state.schema.json +8 -0
  33. package/pipeline/schemas/figma-project-config.schema.json +39 -0
  34. package/pipeline/schemas/prefs.schema.json +3 -3
  35. package/pipeline/scripts/cost-table.json +0 -6
  36. package/pipeline/scripts/fixtures/install-layout.tsv +2 -2
  37. package/pipeline/scripts/phase-tracker.sh +7 -0
  38. package/pipeline/scripts/smoke-model-fallback.sh +20 -12
  39. package/pipeline/scripts/validate-state.mjs +108 -0
  40. package/pipeline/scripts/write-state.mjs +15 -4
  41. package/pipeline/skills/figma-android/README.md +3 -1
  42. package/pipeline/skills/figma-common/README.md +8 -1
  43. package/pipeline/skills/figma-common/figma-bottom-sheets/SKILL.md +152 -0
  44. package/pipeline/skills/figma-common/figma-evolve-component/SKILL.md +61 -0
  45. package/pipeline/skills/figma-common/figma-navigation/SKILL.md +156 -0
  46. package/pipeline/skills/figma-common/figma-overlays/SKILL.md +142 -0
  47. package/pipeline/skills/figma-common/figma-ui-patterns/SKILL.md +1 -0
  48. package/pipeline/skills/figma-common/figma-ui-patterns/patterns/animated-gradient-border.md +116 -0
  49. package/pipeline/skills/figma-ios/figma-to-component/SKILL.md +15 -0
  50. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-3d-patterns.md +31 -0
  51. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-4b-view.md +10 -0
  52. package/pipeline/skills/figma-ios/figma-to-component/reference/accessibility.md +55 -1
  53. package/pipeline/skills/figma-ios/figma-to-component/reference/orchestrator-discipline.md +1 -1
package/CHANGELOG.md CHANGED
@@ -14,6 +14,149 @@ Internal file-layout changes that don't affect the slash-command surface are sti
14
14
 
15
15
  ---
16
16
 
17
+ ## [10.3.0] - 2026-07-02
18
+
19
+ Android (Jetpack Compose) parity for the interaction skills shipped in 10.2.0,
20
+ plus two fixes from a review pass. The cross-cutting integration adapters are
21
+ now genuinely dual-platform, honoring the figma-common "dispatched by both iOS
22
+ and Android" contract.
23
+
24
+ ### Added
25
+
26
+ - **Android (Jetpack Compose) sections** in `figma-navigation`, `figma-overlays`,
27
+ and `figma-bottom-sheets`. Same emit-intent / caller-owns rules and the same
28
+ `figma-config` `ui.*` hooks; native-first per platform (Navigation Compose;
29
+ Snackbar / AlertDialog / Dialog + state-driven loading; `ModalBottomSheet` +
30
+ `rememberModalBottomSheetState`). The Android orchestrator uses the Compose
31
+ section, the iOS orchestrator the SwiftUI section. `figma-evolve-component`
32
+ wording made platform-neutral (SwiftUI or Compose).
33
+
34
+ ### Fixed
35
+
36
+ - **`animated-gradient-border` reference snippet** now animates the
37
+ `AngularGradient(angle:)` on a static shape instead of `rotationEffect` on the
38
+ stroked rounded-rect (which spun the whole shape — glitchy corners).
39
+ - **Genericized the sheet corner-radius example token** (`.Radius.n12` →
40
+ `.CornerRadius.radius12`) so no app-specific token leaks into the generic
41
+ pipeline.
42
+
43
+ ## [10.2.0] - 2026-07-02
44
+
45
+ Generic SwiftUI interaction coverage for the figma-to-swiftui pipeline. Three
46
+ new cross-cutting integration skills (navigation, overlays, bottom sheets) plus
47
+ a reconcile-and-extend workflow, all native-SwiftUI-first with an optional
48
+ per-project `ui.*` config hook so the same capabilities work on any SwiftUI
49
+ codebase - no app-specific coupling. Phase 3D dev detection and Phase 4 review
50
+ both consume them.
51
+
52
+ ### Added
53
+
54
+ - **`figma-navigation` / `figma-overlays` / `figma-bottom-sheets` skills**
55
+ (`pipeline/skills/figma-common/`). Cross-cutting integration adapters, same
56
+ shape as `figma-form-integration` / `figma-price-integration`: a component
57
+ emits a typed intent / takes a caller-owned binding and never routes, presents
58
+ an app-level overlay, or owns the sheet surface. Native SwiftUI by default
59
+ (`NavigationStack`/`navigationDestination`, `.alert`/`.confirmationDialog`/
60
+ `.sheet(item:)` + ref-counted loading, `.sheet`+`presentationDetents`); a
61
+ project's own system is used only when `figma-config` declares
62
+ `ui.navigationSystem` / `ui.overlaySystem` / `ui.sheetSystem`.
63
+ - **`figma-evolve-component` workflow.** Reconcile an already-implemented
64
+ component against current Figma (drift-heal) + additively extend it for a
65
+ need, behind a mandatory human gate; distinct from `figma-to-swiftui`
66
+ (build new), `figma-mend` (rebuild), and `figma-fix` (review bug).
67
+ - **`animated-gradient-border` UI pattern** (`figma-ui-patterns/patterns/`) -
68
+ self-contained native-SwiftUI recipe (angular-gradient stroke + Reduce-Motion
69
+ gate), no external dependency.
70
+ - **`ui` block in `figma-project-config.schema.json`** - optional
71
+ `navigationSystem` / `overlaySystem` / `sheetSystem` (`mode: native | custom`
72
+ + type names). Absent → native SwiftUI.
73
+
74
+ ### Changed
75
+
76
+ - **Phase 3D pattern detection (§1.5.4).** Detects navigation / overlay /
77
+ bottom-sheet affordances and dispatches the matching integration skill
78
+ (gate-driven, per `orchestrator-discipline` Rule 4).
79
+ - **Phase 4B view (§4.7.4)** references the new skills; **`figma-to-swiftui`
80
+ accessibility reference** enriched with the VoiceOver-minimalism decision tree
81
+ (annotate only what a vision-impaired user needs; state-necessity tree;
82
+ anti-patterns).
83
+ - **Phase 4 review** (`phase-4-review.md`): Step 1.5 gains iOS interaction +
84
+ accessibility-minimalism checks (self-routing/self-presenting components,
85
+ `AnyView` through an overlay center, un-ref-counted loading, magic-number
86
+ detents, a11y over-annotation), and the new skills are injected as reviewer
87
+ reference context for SwiftUI UI diffs. Generic across SwiftUI projects.
88
+ - **`figma-to-component` SKILL.md** documents the complementary integration
89
+ skills; **`orchestrator-discipline` Rule 4** and **`cross-cli-contract`**
90
+ updated (figma-common 27 → 31, total figma skills 37 → 41).
91
+
92
+ ## [10.1.0] - 2026-06-25
93
+
94
+ Fable 5 retired (no longer available): the pipeline's top intelligence tier is
95
+ now Opus. Plus per-task cost visibility on by default, four Phase 1/4 token
96
+ economy measures, and a stability pass that bounds dispatch timeouts, heals
97
+ stale worktrees, and validates state before resume.
98
+
99
+ ### Changed
100
+
101
+ - **Fable 5 -> Opus across all routing.** The five heavy agent personas
102
+ (`code-reviewer`, `security-auditor`, `ios/android/backend-architect`) now
103
+ declare `preferredModel: opus` instead of `fable`; Phase 1 Analysis, Phase 2
104
+ Planning, Phase 4 Reviewer 1 + triage, and the `--dev` dev model all run on
105
+ Opus. This also resolves the prior CLAUDE.md-vs-phase-doc inconsistency
106
+ (CLAUDE.md already documented Opus for these stages).
107
+ - **Model fallback ladder is now `opus -> sonnet`** (was `fable -> opus ->
108
+ sonnet`). `modelFallback.fallbackModel` default is `sonnet`. The
109
+ `premiumTierUntil` date gate is kept as a generic mechanism for any future
110
+ plan-window-limited premium tier. `model-fallback.md` bumped to v10.1.0 and
111
+ `smoke-model-fallback.sh` updated to assert the new ladder + Opus personas.
112
+ - **`costBudget` defaults on in warn mode.** The proactive per-task cost ceiling
113
+ (`cost-budget-check.mjs`) now ships enabled (`onExceed: "warn"`, `maxUsd: 5`,
114
+ priced at the conservative opus rate) so runaway spend is visible live. Warn
115
+ never halts; set `onExceed: "halt"` to make the ceiling blocking, or
116
+ `enabled: false` to opt out.
117
+
118
+ ### Added
119
+
120
+ - **Phase 4 context economy (Step 1.9).** Reviewer and triage prompts now build
121
+ a byte-identical shared prefix (full diff + analysis summary + plan) so, when
122
+ the host supports prompt caching, reviewer 2/3 and triage read it at the
123
+ discounted cache-read rate instead of re-billing the diff as fresh input.
124
+ - **Single-repo diff cap.** Diffs exceeding the Phase 4 token allowance are
125
+ truncated with a `file://...review-diff.txt` pointer and a
126
+ `review.diff_truncated` metric - the single-repo equivalent of the existing
127
+ multi-repo 80% cap.
128
+ - **Phase 1 light Explore tier.** Small `bugfix`/`chore` tasks (single named
129
+ file or a referenced crash/stack frame) scan only the named area + direct
130
+ callers instead of a full-repo "very thorough" pass.
131
+ - **Triage prior-art injection cap.** Merged prior-art is capped at the 8
132
+ highest-similarity hits so a many-finding review does not inflate the triage
133
+ prompt.
134
+
135
+ ### Fixed
136
+
137
+ - **Parallel dispatch timeouts.** Phase 1 Explore and Phase 4 reviewer dispatches
138
+ are now bounded by a wall-clock budget (`EXPLORE_TIMEOUT_SECONDS` /
139
+ `REVIEWER_TIMEOUT_SECONDS`, default 180). A stalled or dead agent is dropped and
140
+ the phase proceeds with the dispatches that returned, instead of hanging
141
+ indefinitely waiting on the slowest one.
142
+ - **Worktree stale-lock heal.** Phase 0 runs `worktree prune` + `unlock` before
143
+ every `worktree add`, ending the `already exists` wedge a run killed mid-add
144
+ left behind.
145
+ - **Resume safety validation.** New `validate-state.mjs` checks `agent-state.json`
146
+ is safe to re-enter (parseable + `currentPhase` in range + well-formed
147
+ `phases`, tolerant of legacy shapes) before resume picks a phase, instead of
148
+ silently re-entering on stale state.
149
+ - **Model fallback floor.** The ladder now walks `opus -> sonnet -> haiku`
150
+ (`floorModel`, absent defaults to `haiku`) so two simultaneously-unavailable
151
+ tiers degrade instead of hard-halting the phase.
152
+ - **Visible halts + lock tuning.** Hard halts surface to stderr + tracker even in
153
+ autopilot (no more silent stops); `write-state` lock acquire window is
154
+ env-tunable (default 15s) with the stale window cut 60s -> 30s; external curls
155
+ gain `--connect-timeout 5`; `phase-tracker` gains a concurrent-safe
156
+ `MULTI_AGENT_STRICT_TASK_ID` mode; the retired `fable` price entry is removed.
157
+
158
+ ---
159
+
17
160
  ## [10.0.6] - 2026-06-23
18
161
 
19
162
  Release-plumbing patch so the stable line reaches npmjs. No behavior change to
package/README.md CHANGED
@@ -15,9 +15,9 @@
15
15
  | Copilot skills (dash-form `multi-agent-*`) | 34 |
16
16
  | Platforms (native: Claude Code, Copilot CLI · adapter: Cursor, Antigravity, VS Code Copilot Chat, Codex CLI) | 6 |
17
17
  | Store-compliance skills (`apple-archive-compliance`, `google-play-compliance`) | 2 |
18
- | Figma skills (iOS + Android + Common) | 37 |
18
+ | Figma skills (iOS + Android + Common) | 41 |
19
19
  | External skill catalog (`shared/external/`) | 143 |
20
- | Total `SKILL.md` files across all groups | 217 |
20
+ | Total `SKILL.md` files across all groups | 221 |
21
21
  | Smoke suites | 108 |
22
22
  | Golden-task fixtures (`pipeline/eval/golden-tasks/`) | 8 |
23
23
  | Eval-triage fixtures | 11 |
@@ -154,6 +154,9 @@ slows down the install.
154
154
 
155
155
  ## What's new
156
156
 
157
+ - **v10.3.0** (2026-07-02) - Android (Jetpack Compose) parity for the 10.2.0 interaction skills: `figma-navigation` / `figma-overlays` / `figma-bottom-sheets` now carry both a SwiftUI and a Compose section (Navigation Compose; Snackbar/AlertDialog/Dialog + state-driven loading; `ModalBottomSheet`), same emit-intent rules and `ui.*` config hooks on both platforms. Plus a review pass: corrected the `animated-gradient-border` snippet (animate `AngularGradient(angle:)` on a static shape, not `rotationEffect`) and genericized the sheet corner-radius example token.
158
+ - **v10.2.0** (2026-07-02) - Generic SwiftUI interaction coverage for figma-to-swiftui: three new cross-cutting integration skills (`figma-navigation`, `figma-overlays`, `figma-bottom-sheets`) + a reconcile-and-extend workflow (`figma-evolve-component`), all native-SwiftUI-first with an optional per-project `ui.*` config hook (so the same capabilities work on any SwiftUI codebase, no app-specific coupling). Phase 3D dev detection (§1.5.4) and Phase 4 review both consume them; `figma-to-swiftui` accessibility reference enriched with the VoiceOver-minimalism decision tree; new `animated-gradient-border` UI pattern. Figma-common skills 27 → 31, total figma skills 37 → 41.
159
+ - **v10.1.0** (2026-06-20) - Fable 5 retired (no longer available): the five heavy agent personas plus Phase 1 / Phase 2 / Phase 4 reviewer-1 + triage and `--dev` fast mode now route to Opus (top available tier); fallback ladder is `opus -> sonnet`. Per-task cost guard (`costBudget`) now defaults on in warn mode. Token economy: Phase 4 shared cache prefix + single-repo diff cap, Phase 1 light Explore tier for small bugfixes, triage prior-art injection capped.
157
160
  - **v10.0.0** (2026-06-12) - quality major driven by a 10-category self-audit + competitive sweep: validator gates wired into phases 1/2/4 (fails closed), Phase 3 code-simplifier diff-shrink pass, Phase 4 lesson memory loop, Phase 2 cross-artifact consistency gate, skill frontmatter linter (repaired 31 SKILL.md), installer `--dry-run` + unknown-flag rejection, timeout-guarded smoke runner, adapter family deduplicated (~490 lines), CI hardening (blocking lint, npm audit, shellcheck), tag-driven npm release automation, CHANGELOG split (310KB -> 40KB).
158
161
  - **v9.10.2** (2026-06-11) - live per-phase token narration on completion; tracker mandates per-phase cost lines in the final report.
159
162
  - **v9.10.1** (2026-06-11) - Claude Fable 5 fallback contract: date gate, dispatch retry, and budget guard when the Fable tier is unavailable.
@@ -8,6 +8,8 @@ End-to-end guide for generating production-ready UI components from Figma design
8
8
  - **Platform-agnostic orchestration** — classification happens once in Phase 0; the orchestrator picks the right code generator for iOS or Android based on `figmaConfig.project.platform`.
9
9
  - **Multi-repo aware** — components span multiple repos (tokens in `common`, view in `components`, docs in `wiki`). The orchestrator sequences writes correctly.
10
10
  - **Non-blocking side effects** — wiki generation + Jira sync run as augmentations; failures log and Phase 7 continues.
11
+ - **Cross-cutting integration skills** — Phase 3D detects content patterns (`figma-form-integration`, `figma-price-integration`, `figma-ui-patterns`) and interaction patterns (`figma-navigation`, `figma-overlays`, `figma-bottom-sheets`) and dispatches the matching skill. All are **native-SwiftUI-first**; a project's own navigation/overlay/sheet system is used only when `figmaConfig.ui.{navigationSystem,overlaySystem,sheetSystem}` declares one (absent → stock SwiftUI: `NavigationStack`, `.alert`/`.sheet(item:)`, `.presentationDetents`). Generic across SwiftUI codebases.
12
+ - **Evolve an existing component** — `figma-evolve-component` reconciles a shipped component against current Figma (drift-heal) and additively extends it for a new need, behind a mandatory human gate — distinct from a fresh build, `figma-mend` (rebuild), and `figma-fix` (review bug).
11
13
 
12
14
  ## How it runs
13
15
 
@@ -67,6 +69,16 @@ Minimum viable config:
67
69
 
68
70
  Android projects swap the `build` section to `{ "gradleModule": ":components:button", "variant": "debug" }` and set `project.platform` to `"android"`.
69
71
 
72
+ **Optional `ui` block — UI interaction systems.** Consumed by the `figma-navigation` / `figma-overlays` / `figma-bottom-sheets` skills and Phase 4 review. Omit it (or set `mode: "native"`) and the pipeline generates stock SwiftUI (`NavigationStack`, `.alert`/`.sheet(item:)`, `.sheet`+`presentationDetents`). Set `mode: "custom"` to route to a project-supplied system by type name:
73
+
74
+ ```json
75
+ "ui": {
76
+ "navigationSystem": { "mode": "custom", "router": "AppRouter", "routeEnum": "AppRoute", "sceneType": "SceneContent" },
77
+ "overlaySystem": { "mode": "custom", "center": "OverlayCenter" },
78
+ "sheetSystem": { "mode": "custom", "brandedModifier": "bottomSheet", "detentType": "SheetDetentType" }
79
+ }
80
+ ```
81
+
70
82
  ## The issue → Jira → wiki triad
71
83
 
72
84
  When a GitHub issue triggers the pipeline and has no Jira link:
package/docs/features.md CHANGED
@@ -238,6 +238,8 @@ Pipeline learns behavioral signals (feedback corrections, project constraints, e
238
238
 
239
239
  Full component generation pipeline from a Figma URL. Generates `{Name}Configuration.swift`, `{Name}View.swift`, `{Name}+Modifiers.swift`, `{Name}.figma.swift`, `FIGMA.md` with variant matrix. 14-item pre-commit checklist covers design tokens, accessibility, tests, Code Connect.
240
240
 
241
+ Cross-cutting integration skills feed Phase 3D detection + Phase 4B implementation when the design triggers them — content: `figma-form-integration`, `figma-price-integration`, `figma-ui-patterns`; interaction: `figma-navigation`, `figma-overlays`, `figma-bottom-sheets`. Each is **native-SwiftUI-first** and reads project specifics (token namespaces, component paths, and UI systems) from `figma-config` — including the optional `ui.navigationSystem` / `ui.overlaySystem` / `ui.sheetSystem` hooks (absent → stock SwiftUI). So the same capabilities work on any SwiftUI codebase, not just one app. `figma-evolve-component` reconciles an existing component against current Figma (drift-heal) and additively extends it, behind a human gate.
242
+
241
243
  ### UI Bug Hunter + Audits
242
244
 
243
245
  Automated visual testing and compliance audits via direct Bash (no MCP server dependency):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmerterden/multi-agent-pipeline",
3
- "version": "10.0.6",
3
+ "version": "10.3.0",
4
4
  "description": "8-phase AI development pipeline with full orchestration on Claude Code, Copilot CLI, Cursor, Antigravity, and VS Code Copilot Chat. Analysis, planning, TDD, CLI-aware parallel review with consensus surfacing + Opus triage, default-FAIL evidence gates, secret + intent guards, per-phase cost ledger, persistent learnings memory, wiki generation, commit automation. Token-preserving uninstall.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  description: Android architect - evaluates design decisions, patterns, and module structure
3
- model: fable
4
- preferredModel: fable
5
- modelRationale: "Architecture decisions across Gradle modules, Compose stability, Hilt graphs, and migration paths run on fable (top tier, above opus). No downgrade recommended."
3
+ model: opus
4
+ preferredModel: opus
5
+ modelRationale: "Architecture decisions across Gradle modules, Compose stability, Hilt graphs, and migration paths run on opus (top available tier). No downgrade recommended."
6
6
  ---
7
7
 
8
8
  You are a senior Android architect with deep expertise in large-scale modular Android applications.
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  description: Backend architect - evaluates API design, data modeling, and system architecture
3
- model: fable
4
- preferredModel: fable
5
- modelRationale: "API design + migration safety + scaling analysis are top-tier concerns; fable improves reasoning on concurrent-write / rollback edge cases in database migration reviews."
3
+ model: opus
4
+ preferredModel: opus
5
+ modelRationale: "API design + migration safety + scaling analysis are top-tier concerns; opus is the top available tier and handles concurrent-write / rollback edge cases in database migration reviews."
6
6
  ---
7
7
 
8
8
  You are a senior backend architect with expertise in API design, distributed systems, and data modeling.
@@ -1,8 +1,8 @@
1
1
  ---
2
- description: "Code reviewer for multi-agent Phase 4 - security, architecture, quality, performance. Default model is fable; Phase 4 orchestrator overrides to sonnet for Reviewer 3."
3
- model: fable
4
- preferredModel: fable
5
- modelRationale: "Reviewer 1 tier - deep security + architecture review runs on fable (top intelligence tier, above opus). Phase 4 orchestrator overrides to sonnet for Reviewer 3 (quality/correctness focus) via CLAUDE_CODE_SUBAGENT_MODEL before dispatch. Copilot CLI adds Reviewer 2 on gpt-5.4 for cross-model diversity."
2
+ description: "Code reviewer for multi-agent Phase 4 - security, architecture, quality, performance. Default model is opus; Phase 4 orchestrator overrides to sonnet for Reviewer 3."
3
+ model: opus
4
+ preferredModel: opus
5
+ modelRationale: "Reviewer 1 tier - deep security + architecture review runs on opus (top available intelligence tier). Phase 4 orchestrator overrides to sonnet for Reviewer 3 (quality/correctness focus) via CLAUDE_CODE_SUBAGENT_MODEL before dispatch. Copilot CLI adds Reviewer 2 on gpt-5.4 for cross-model diversity."
6
6
  ---
7
7
 
8
8
  # Code Reviewer Agent
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  description: iOS architect - evaluates design decisions, patterns, and module structure
3
- model: fable
4
- preferredModel: fable
5
- modelRationale: "Architecture decisions require deep reasoning across modules, protocols, and migration paths - fable is the top intelligence tier. No downgrade recommended; if cost is a concern, skip the architect consultation entirely."
3
+ model: opus
4
+ preferredModel: opus
5
+ modelRationale: "Architecture decisions require deep reasoning across modules, protocols, and migration paths - opus is the top available intelligence tier. No downgrade recommended; if cost is a concern, skip the architect consultation entirely."
6
6
  ---
7
7
 
8
8
  You are a senior iOS architect with deep expertise in large-scale modular iOS applications.
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  description: Security specialist - analyzes code for vulnerabilities and compliance issues
3
- model: fable
4
- preferredModel: fable
5
- modelRationale: "Security reasoning + compliance catalog cross-reference (Apple ITMS, Google Play policy, OWASP) - false negatives are expensive; fable (top tier, above opus) further reduces miss rate on subtle vulnerabilities (auth-flow gaps, cert-pinning bypass, sensitive-data leaks)."
3
+ model: opus
4
+ preferredModel: opus
5
+ modelRationale: "Security reasoning + compliance catalog cross-reference (Apple ITMS, Google Play policy, OWASP) - false negatives are expensive; opus (top available tier) keeps the miss rate low on subtle vulnerabilities (auth-flow gaps, cert-pinning bypass, sensitive-data leaks)."
6
6
  ---
7
7
 
8
8
  You are a mobile security auditor specializing in application security.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "Fastest mode: Dev (Fable) plus Autopilot. Init → Dev → Commit → Report with zero confirmations."
2
+ description: "Fastest mode: Dev (Opus) plus Autopilot. Init → Dev → Commit → Report with zero confirmations."
3
3
  ---
4
4
 
5
5
  # multi-agent dev autopilot - Fastest Path
@@ -19,7 +19,7 @@ Dev mode + Autopilot combined: a 4-phase pipeline with no confirmations, end-to-
19
19
 
20
20
  ```
21
21
  Phase 0: Init → project detection, worktree, branch, identity
22
- Phase 3: Dev → direct development on Fable
22
+ Phase 3: Dev → direct development on Opus
23
23
  Phase 6: Commit → auto commit + push + PR (no confirmations)
24
24
  Phase 7: Report → short terminal summary
25
25
  ```
@@ -47,7 +47,7 @@ Phase 7: Report → short terminal summary
47
47
  | | Full | Dev | Autopilot | **Dev+Autopilot** |
48
48
  |--|------|-----|-----------|-------------------|
49
49
  | Phases | 8 | 4 | 8 | **4** |
50
- | Model | Sonnet | Fable | Sonnet | **Fable** |
50
+ | Model | Sonnet | Opus | Sonnet | **Opus** |
51
51
  | Plan Approval Gate | ✅ (clarification + approval) | ❌ | ❌ | **❌** |
52
52
  | Confirmations (test / commit / PR) | Yes | Yes | No | **No** |
53
53
  | Review | Parallel + triage (CLI-aware) | None | Parallel + triage (CLI-aware) | **None** |
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "Fastest + local - Dev(Fable) + autopilot, no worktree, zero interaction."
2
+ description: "Fastest + local - Dev(Opus) + autopilot, no worktree, zero interaction."
3
3
  allowed-tools: Agent, Bash, Read, Write, Edit, Glob, Grep, TaskCreate, TaskUpdate, TaskList, TaskGet, WebFetch, Skill
4
4
  ---
5
5
 
@@ -13,7 +13,7 @@ The triple `--dev` + `--local` + `autopilot` - the fastest form available. Zer
13
13
 
14
14
  ```
15
15
  Phase 0: Init → project detection, branch check, state (NO worktree, NO confirmation)
16
- Phase 3: Dev → direct development on Fable (automatic)
16
+ Phase 3: Dev → direct development on Opus (automatic)
17
17
  Phase 6: Commit → auto commit + push + PR (no local checkout prompt)
18
18
  Phase 7: Report → Jira / Wiki + log + knowledge/memory
19
19
  ```
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "Fast mode + local - Init → Dev(Fable) → Commit → Report, no worktree."
2
+ description: "Fast mode + local - Init → Dev(Opus) → Commit → Report, no worktree."
3
3
  allowed-tools: Agent, Bash, Read, Write, Edit, Glob, Grep, TaskCreate, TaskUpdate, TaskList, TaskGet, AskUserQuestion, WebFetch, Skill
4
4
  ---
5
5
 
@@ -13,7 +13,7 @@ Dedicated form of the `--dev` + `--local` combination. A 4-phase fast pipeline (
13
13
 
14
14
  ```
15
15
  Phase 0: Init → project detection, branch check, state (NO worktree)
16
- Phase 3: Dev → direct development on Fable (Analysis + Planning + Review skipped)
16
+ Phase 3: Dev → direct development on Opus (Analysis + Planning + Review skipped)
17
17
  Phase 6: Commit → pre-commit checkout prompt, commit + push + PR
18
18
  Phase 7: Report → Jira / Wiki + log + knowledge/memory
19
19
  ```
@@ -96,7 +96,7 @@ Do NOT call TaskCreate on these CLIs - the tool does not exist and the call fa
96
96
  Routes to the orchestrator with `--dev --local` flags. Apply the `$HOME/.claude/commands/multi-agent/dev.md` pipeline in local mode:
97
97
  - Phase 0: skip worktree creation, continue on the current branch
98
98
  - Phase 1 (Analysis), Phase 2 (Planning + Approval Gate), Phase 4 (Review), and Phase 5 (User Test) are skipped (`--dev` + local/autopilot drop the interactive test gate)
99
- - Phase 3: develop on Fable (instead of the Sonnet TDD cycle)
99
+ - Phase 3: develop on Opus (instead of the Sonnet TDD cycle)
100
100
  - Phase 6: commit + push + PR (the local checkout prompt is natural in local mode - you're already there; no worktree removal needed, code is already in `$PROJECT_ROOT`)
101
101
  - Phase 7: report + channels (same as `--dev`)
102
102
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "Fast development mode: Init → Dev (Fable) → Test → Commit → Report. Analysis, planning, and review phases are skipped."
2
+ description: "Fast development mode: Init → Dev (Opus) → Test → Commit → Report. Analysis, planning, and review phases are skipped."
3
3
  ---
4
4
 
5
5
  # multi-agent dev - Fast Development Mode (--dev)
@@ -20,7 +20,7 @@ description: "Fast development mode: Init → Dev (Fable) → Test → Commit
20
20
  >
21
21
  > Full contract: `refs/rules.md` "Language Application".
22
22
 
23
- A 5-phase fast pipeline: Init → Dev → Test → Commit → Report. Development runs on the Fable model (top intelligence tier).
23
+ A 5-phase fast pipeline: Init → Dev → Test → Commit → Report. Development runs on the Opus model (top intelligence tier).
24
24
 
25
25
  ## When to use it
26
26
  - Small changes, bug fixes, quick features
@@ -31,17 +31,17 @@ A 5-phase fast pipeline: Init → Dev → Test → Commit → Report. Developmen
31
31
 
32
32
  ```
33
33
  Phase 0: Init → project detection, worktree, branch, identity (full picker)
34
- Phase 3: Dev → direct development on Fable (TDD optional)
34
+ Phase 3: Dev → direct development on Opus (TDD optional)
35
35
  Phase 5: Test → User Test (interactive simulator)
36
36
  Phase 6: Commit → commit + push + PR
37
37
  Phase 7: Report → channels (Jira / Confluence / PR / Wiki)
38
38
  ```
39
39
 
40
- `--dev` skips Phase 1 (Analysis), Phase 2 (Planning + Approval Gate), and Phase 4 (Review). Phase 3 Dev runs on **Fable**. Phase 0 picker, Phase 5 test, Phase 6 commit, and Phase 7 channels are identical to the full pipeline.
40
+ `--dev` skips Phase 1 (Analysis), Phase 2 (Planning + Approval Gate), and Phase 4 (Review). Phase 3 Dev runs on **Opus**. Phase 0 picker, Phase 5 test, Phase 6 commit, and Phase 7 channels are identical to the full pipeline.
41
41
 
42
42
  ## What `--dev` does NOT skip (required)
43
43
 
44
- `--dev` skips the LLM-heavy phases (Phase 1 Analysis, Phase 2 Planning + Approval, Phase 4 Review) and runs Phase 3 Dev on Fable. Phase 0 (Init), Phase 5 (Test), Phase 6 (Commit), and Phase 7 (Report + channels) are byte-for-byte the same as the full pipeline. User-facing prompts **always run** - they exist for audit, not speed.
44
+ `--dev` skips the LLM-heavy phases (Phase 1 Analysis, Phase 2 Planning + Approval, Phase 4 Review) and runs Phase 3 Dev on Opus. Phase 0 (Init), Phase 5 (Test), Phase 6 (Commit), and Phase 7 (Report + channels) are byte-for-byte the same as the full pipeline. User-facing prompts **always run** - they exist for audit, not speed.
45
45
 
46
46
  ### Required user prompts (Phase 0)
47
47
 
@@ -127,11 +127,11 @@ No "pre-existing" claim is allowed without a baseline reproduce.
127
127
 
128
128
  ## Skipped phases (definitive list)
129
129
 
130
- - Phase 1 (Analysis → Fable deep-think + explore agents)
130
+ - Phase 1 (Analysis → Opus deep-think + explore agents)
131
131
  - Phase 2 → Plan Approval Gate including clarification + approval
132
132
  - Phase 4 (Review → parallel + triage)
133
133
 
134
- Phase 0 (Init full picker), Phase 5 (User Test), Phase 6 (Commit), and Phase 7 (Report + channels) run exactly as in the full pipeline. Phase 3 Dev model is **Fable**.
134
+ Phase 0 (Init full picker), Phase 5 (User Test), Phase 6 (Commit), and Phase 7 (Report + channels) run exactly as in the full pipeline. Phase 3 Dev model is **Opus**.
135
135
 
136
136
  ## Steps
137
137
 
@@ -140,7 +140,7 @@ Phase 0 (Init full picker), Phase 5 (User Test), Phase 6 (Commit), and Phase 7 (
140
140
  2. **Phase 0: Init** - same as the full pipeline (full picker: account, project, dev-context, base branch, branch name, maturity check, identity, worktree, state)
141
141
  - Add `"mode": "dev"` to `agent-state.json`
142
142
 
143
- 3. **Phase 3: Dev** - on the **Fable model**, with `taskType`-based dispatch:
143
+ 3. **Phase 3: Dev** - on the **Opus model**, with `taskType`-based dispatch:
144
144
 
145
145
  **3a. If `state.taskType === "component"` (figma URL detected at Phase 0 Step 7):**
146
146
  - Run the **full figma 17-substep orchestrator** - the same one the full pipeline uses. `--dev` does NOT shrink this. Sub-phases:
@@ -172,7 +172,7 @@ Phase 0 (Init full picker), Phase 5 (User Test), Phase 6 (Commit), and Phase 7 (
172
172
  | Aspect | Full (`/multi-agent`) | Dev (`/multi-agent:dev`) |
173
173
  |---------|---------------------|------------------------|
174
174
  | Phases | 8 (0-7) | 5 (0, 3, 5, 6, 7) - 1, 2, 4 skipped |
175
- | Phase 3 Dev model | Sonnet | **Fable** |
175
+ | Phase 3 Dev model | Sonnet | **Opus** |
176
176
  | Phase 1 Analysis (explore agents) | ✅ | ❌ |
177
177
  | Phase 2 Planning + Approval Gate | ✅ | ❌ |
178
178
  | Phase 4 Review (parallel + triage) | ✅ | ❌ |
@@ -52,13 +52,13 @@ How It Works (Phase 0 - Interactive Flow):
52
52
  Pipeline (after Phase 0) - shown as visual cards in terminal:
53
53
 
54
54
  Phase 0: Init -> The 8 steps above
55
- Phase 1: Analysis -> Stack detection + codebase scan (Fable)
55
+ Phase 1: Analysis -> Stack detection + codebase scan (Opus)
56
56
  Phase 2: Planning -> Task breakdown + architecture review + Plan Approval Gate
57
57
  (clarification max 2 rounds + approval loop - normal mode only;
58
58
  skipped for --dev, autopilot, --dev autopilot)
59
59
  Phase 3: Dev -> TDD: test -> code -> build (Sonnet) + build queue
60
- Phase 4: Review -> Deterministic gates + parallel AI review + Fable triage
61
- (Claude Code: Fable + Sonnet · Copilot CLI: GPT-5.4 + Opus + Sonnet)
60
+ Phase 4: Review -> Deterministic gates + parallel AI review + Opus triage
61
+ (Claude Code: Opus + Sonnet · Copilot CLI: GPT-5.4 + Opus + Sonnet)
62
62
  Phase 5: Test -> Optional: switch to branch, test in Xcode
63
63
  (runs in dev + full; skipped in every autopilot and local variant)
64
64
  Phase 6: Commit -> Commit -> push -> PR + issue body update (never auto-closes)
@@ -73,8 +73,8 @@ Pipeline (after Phase 0) - shown as visual cards in terminal:
73
73
 
74
74
  Modes:
75
75
 
76
- (normal) Full 8 phases, Sonnet dev, Plan Approval Gate active, parallel review + Fable triage
77
- --dev Fast: Init -> Dev(Fable) -> Commit -> Report (no plan gate)
76
+ (normal) Full 8 phases, Sonnet dev, Plan Approval Gate active, parallel review + Opus triage
77
+ --dev Fast: Init -> Dev(Opus) -> Commit -> Report (no plan gate)
78
78
  --local No worktree - works directly on local branch
79
79
  autopilot Skip all confirmations INCLUDING plan gate, auto commit/PR
80
80
  (EXCEPT Phase 7 channels menu - always pauses)
@@ -259,13 +259,13 @@ Nasıl Çalışır (Phase 0 - İnteraktif Akış):
259
259
  Pipeline (Phase 0'dan sonra) - terminalde görsel kart olarak görünür:
260
260
 
261
261
  Phase 0: Init -> Yukarıdaki 8 adım
262
- Phase 1: Analysis -> Stack tespiti + codebase taraması (Fable)
262
+ Phase 1: Analysis -> Stack tespiti + codebase taraması (Opus)
263
263
  Phase 2: Planning -> Task kırılımı + mimari inceleme + Plan Onay Kapısı
264
264
  (clarification max 2 tur + onay döngüsü - sadece normal mode;
265
265
  --dev, autopilot, --dev autopilot'ta skip)
266
266
  Phase 3: Dev -> TDD: test -> kod -> build (Sonnet) + build queue
267
- Phase 4: Review -> Deterministik kapılar + paralel AI review + Fable triage
268
- (Claude Code: Fable + Sonnet · Copilot CLI: GPT-5.4 + Opus + Sonnet)
267
+ Phase 4: Review -> Deterministik kapılar + paralel AI review + Opus triage
268
+ (Claude Code: Opus + Sonnet · Copilot CLI: GPT-5.4 + Opus + Sonnet)
269
269
  Phase 5: Test -> Opsiyonel: branch'e geç, Xcode'da test (--dev / autopilot'ta skip)
270
270
  Phase 6: Commit -> Commit -> push -> PR + issue body güncelleme (hiç auto-close yok)
271
271
  Phase 7: Report -> Channels dispatcher (PR · Jira · Confluence · Wiki, multi-select)
@@ -279,8 +279,8 @@ Pipeline (Phase 0'dan sonra) - terminalde görsel kart olarak görünür:
279
279
 
280
280
  Modlar:
281
281
 
282
- (normal) Tam 8 faz, Sonnet dev, Plan Onay Kapısı aktif, paralel review + Fable triage
283
- --dev Hızlı: Init -> Dev(Fable) -> Commit -> Report (plan gate yok)
282
+ (normal) Tam 8 faz, Sonnet dev, Plan Onay Kapısı aktif, paralel review + Opus triage
283
+ --dev Hızlı: Init -> Dev(Opus) -> Commit -> Report (plan gate yok)
284
284
  --local Worktree yok - doğrudan local branch'te çalışır
285
285
  autopilot Plan gate dahil tüm onayları atla, otomatik commit/PR
286
286
  (İSTİSNA: Phase 7 channels menüsü - her zaman durur)
@@ -121,6 +121,7 @@ When the **Wiki** adapter writes pages on the same run AND `prefs.global.wikiToJ
121
121
  ## Hard rules (must not regress)
122
122
 
123
123
  - Real newlines, no HTML entities - heredoc + `jq --rawfile` + `curl --data-binary @file`.
124
+ - UTF-8 in, UTF-8 out - the body file is UTF-8 and `--data-binary` ships its bytes verbatim. Never round-trip the body through `unicode_escape`, `latin-1`, or any re-encode step, and never hand-roll a Python/curl helper that re-decodes it: that mangles Turkish chars (ç ş ı ö ü ğ) into mojibake (`Çözüm` → `Ãözüm`). Use the `jq --rawfile` + `--data-binary @file` path above as-is. Same rule for the PR / Confluence / Wiki adapters.
124
125
  - Section order is fixed: `summary` → `test_scenarios` → `context_refs`. Never insert sections between them; never reorder.
125
126
  - Humanizer pass runs **after** body assembly and **before** wiki-markup conversion. Tone target: informal but technical. No marketing voice, no "we are excited", no "I have...".
126
127
  - Body content language follows `prefs.global.outputLanguage`. Code identifiers, file paths, type names, branch names, and the wiki-markup syntax stay verbatim. The `promptLanguage="en"` lock means any LLM prompt that produces the body is in English; the body itself is then rendered in the user's language.
@@ -34,7 +34,7 @@ In addition to the 34 top-level multi-agent commands, the figma-to-component pip
34
34
  |---|---|---|
35
35
  | `pipeline/skills/figma-ios/` | 5 | iOS-only Phase 3 sub-skills (SwiftUI-specific) |
36
36
  | `pipeline/skills/figma-android/` | 5 | Android-only Phase 3 sub-skills (Jetpack Compose-specific) |
37
- | `pipeline/skills/figma-common/` | 27 | Platform-agnostic helpers (iterate / commit / wiki setup / MCP auth / performance harness / etc.) |
37
+ | `pipeline/skills/figma-common/` | 31 | Platform-agnostic helpers (iterate / commit / wiki setup / MCP auth / performance harness / cross-cutting integration adapters / etc.) |
38
38
 
39
39
  Both Claude Code and Copilot CLI MUST expose every skill with identical argument shape, identical progress-line emission, and identical state writes. Inventory divergence (skill exists on one side but not the other) is a contract violation and blocks merge.
40
40
 
@@ -48,7 +48,7 @@ Both Claude Code and Copilot CLI MUST expose every skill with identical argument
48
48
  | `figma-component-code-connect` | 3.6 mapping publish | `pipeline/skills/figma-ios/figma-component-code-connect/` | `pipeline/skills/figma-android/figma-component-code-connect/` |
49
49
  | `figma-component-wiki` | 3.7 wiki (4 adapters) | `pipeline/skills/figma-ios/figma-component-wiki/` | `pipeline/skills/figma-android/figma-component-wiki/` |
50
50
 
51
- **Common pool** (all 27 skills under `pipeline/skills/figma-common/` - platform-agnostic, dispatched regardless of iOS/Android):
51
+ **Common pool** (all 31 skills under `pipeline/skills/figma-common/` - platform-agnostic, dispatched regardless of iOS/Android):
52
52
 
53
53
  | Skill | Scope |
54
54
  |---|---|
@@ -74,13 +74,17 @@ Both Claude Code and Copilot CLI MUST expose every skill with identical argument
74
74
  | `figma-skip` | Skip + update Confluence |
75
75
  | `figma-form-integration` | Form protocol adapter |
76
76
  | `figma-price-integration` | Price protocol adapter |
77
+ | `figma-navigation` | Navigation pattern adapter (native-first / `ui.navigationSystem`) |
78
+ | `figma-overlays` | Overlay pattern adapter (native-first / `ui.overlaySystem`) |
79
+ | `figma-bottom-sheets` | Bottom-sheet/detent adapter (native-first / `ui.sheetSystem`) |
80
+ | `figma-evolve-component` | Reconcile drift + additive extend (human-gated) |
77
81
  | `performance-start` | Perf-tracked component start |
78
82
  | `performance-swiftui` | Perf-optimized pipeline |
79
83
  | `performance-tour` | Batch produce components |
80
84
  | `performance-review-next` | Interactive batch review |
81
85
  | `performance-iteration-commit-all` | Batch validate + push all |
82
86
 
83
- Total figma skill count: **37** (5 iOS + 5 Android + 27 Common).
87
+ Total figma skill count: **41** (5 iOS + 5 Android + 31 Common).
84
88
 
85
89
  ### 1.2 Store-compliance skills
86
90