@mmerterden/multi-agent-pipeline 11.2.0 → 11.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 (331) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +2 -2
  3. package/docs/FIGMA_PIPELINE.md +12 -25
  4. package/docs/architecture.md +3 -5
  5. package/docs/features.md +8 -8
  6. package/install/_dev-only-files.mjs +0 -6
  7. package/install/claude.mjs +33 -15
  8. package/install/copilot.mjs +16 -14
  9. package/install/templates/copilot-instructions.md +3 -3
  10. package/package.json +1 -1
  11. package/pipeline/commands/{multi-agent.md → multi-agent/SKILL.md} +39 -39
  12. package/pipeline/commands/multi-agent/{analysis.md → analysis/SKILL.md} +18 -18
  13. package/pipeline/commands/multi-agent/{analysis-resolve.md → analysis-resolve/SKILL.md} +4 -4
  14. package/pipeline/commands/multi-agent/{autopilot.md → autopilot/SKILL.md} +4 -4
  15. package/pipeline/commands/multi-agent/{build-optimize.md → build-optimize/SKILL.md} +1 -1
  16. package/pipeline/commands/multi-agent/{channels.md → channels/SKILL.md} +12 -12
  17. package/pipeline/commands/multi-agent/{dev.md → dev/SKILL.md} +4 -4
  18. package/pipeline/commands/multi-agent/{dev-autopilot.md → dev-autopilot/SKILL.md} +4 -4
  19. package/pipeline/commands/multi-agent/{dev-local.md → dev-local/SKILL.md} +5 -5
  20. package/pipeline/commands/multi-agent/{dev-local-autopilot.md → dev-local-autopilot/SKILL.md} +4 -4
  21. package/pipeline/commands/multi-agent/{finish.md → finish/SKILL.md} +6 -6
  22. package/pipeline/commands/multi-agent/{generate.md → generate/SKILL.md} +3 -3
  23. package/pipeline/commands/multi-agent/{help.md → help/SKILL.md} +4 -4
  24. package/pipeline/commands/multi-agent/{local.md → local/SKILL.md} +5 -5
  25. package/pipeline/commands/multi-agent/{local-autopilot.md → local-autopilot/SKILL.md} +5 -5
  26. package/pipeline/commands/multi-agent/{manual-test.md → manual-test/SKILL.md} +1 -1
  27. package/pipeline/commands/multi-agent/refactor/SKILL.md +257 -0
  28. package/pipeline/commands/multi-agent/{resume.md → resume/SKILL.md} +1 -1
  29. package/pipeline/commands/multi-agent/{review.md → review/SKILL.md} +5 -5
  30. package/pipeline/commands/multi-agent/{setup.md → setup/SKILL.md} +1 -1
  31. package/pipeline/commands/multi-agent/{sync.md → sync/SKILL.md} +20 -58
  32. package/pipeline/{commands/multi-agent → multi-agent-refs}/_account-picker.md +2 -2
  33. package/pipeline/{commands/multi-agent → multi-agent-refs}/_dev-context.md +2 -2
  34. package/pipeline/{commands/multi-agent → multi-agent-refs}/_repo-picker.md +2 -2
  35. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/android-guide.md +1 -1
  36. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/channels/jira.md +1 -1
  37. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/channels/wiki.md +7 -7
  38. package/pipeline/multi-agent-refs/component-dispatch.md +92 -0
  39. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/cross-cli-contract.md +10 -77
  40. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/features/verify-by-test.md +1 -1
  41. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/generate-issue.md +2 -2
  42. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/issue-jira-triad.md +1 -1
  43. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/keychain.md +1 -1
  44. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/phases/log-format.md +1 -1
  45. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/phases/modes.md +2 -2
  46. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/phases/operations.md +1 -1
  47. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/phases/phase-0-init.md +10 -10
  48. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/phases/phase-1-analysis.md +6 -6
  49. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/phases/phase-2-planning.md +3 -3
  50. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/phases/phase-3-dev.md +10 -10
  51. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/phases/phase-4-review.md +8 -8
  52. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/phases/phase-5-test.md +3 -3
  53. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/phases/phase-6-commit.md +4 -4
  54. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/phases/phase-7-report.md +6 -6
  55. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/phases.md +12 -12
  56. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/progress-contract.md +4 -4
  57. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/swiftui-guide.md +1 -1
  58. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/tracker-contract.md +3 -3
  59. package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/wiki-capture.md +4 -4
  60. package/pipeline/preferences-template.json +17 -1
  61. package/pipeline/rules/figma-pipeline.md +2 -2
  62. package/pipeline/schemas/prefs.schema.json +0 -34
  63. package/pipeline/scripts/README.md +1 -3
  64. package/pipeline/scripts/fixtures/install-layout.tsv +6 -5
  65. package/pipeline/scripts/gen-mode-dispatch.mjs +3 -3
  66. package/pipeline/scripts/phase-banner.sh +2 -2
  67. package/pipeline/scripts/review-scope.mjs +94 -0
  68. package/pipeline/scripts/scan-agent-config.sh +2 -2
  69. package/pipeline/scripts/smoke-agent-log-cost.sh +1 -1
  70. package/pipeline/scripts/smoke-agent-model-routing.sh +4 -4
  71. package/pipeline/scripts/smoke-autopilot-circuit-breaker.sh +2 -2
  72. package/pipeline/scripts/smoke-channels-approval-gate.sh +2 -2
  73. package/pipeline/scripts/smoke-channels-flow.sh +5 -5
  74. package/pipeline/scripts/smoke-clarify.sh +1 -1
  75. package/pipeline/scripts/smoke-commands-skills-parity.sh +3 -3
  76. package/pipeline/scripts/smoke-community-gates.sh +1 -1
  77. package/pipeline/scripts/smoke-compliance-skills.sh +2 -2
  78. package/pipeline/scripts/smoke-cost-summary.sh +1 -1
  79. package/pipeline/scripts/smoke-cross-cli-behavior.sh +17 -43
  80. package/pipeline/scripts/smoke-cross-phase-cohesion.sh +1 -1
  81. package/pipeline/scripts/smoke-dev-critic.sh +1 -1
  82. package/pipeline/scripts/smoke-diff-explain.sh +1 -1
  83. package/pipeline/scripts/smoke-diff-risk.sh +1 -1
  84. package/pipeline/scripts/smoke-evidence-gate.sh +1 -1
  85. package/pipeline/scripts/smoke-figma-dispatch.sh +46 -57
  86. package/pipeline/scripts/smoke-gate-hooks.sh +1 -1
  87. package/pipeline/scripts/smoke-generate-issue.sh +8 -8
  88. package/pipeline/scripts/smoke-handoff-contract.sh +3 -3
  89. package/pipeline/scripts/smoke-identity-isolation.sh +2 -2
  90. package/pipeline/scripts/smoke-intent-guard.sh +1 -1
  91. package/pipeline/scripts/smoke-issue-comment-template.sh +2 -2
  92. package/pipeline/scripts/smoke-issue-jira-triad.sh +4 -4
  93. package/pipeline/scripts/smoke-language-axis.sh +6 -6
  94. package/pipeline/scripts/smoke-learnings-ledger.sh +3 -3
  95. package/pipeline/scripts/smoke-mode-dispatch-drift.sh +16 -16
  96. package/pipeline/scripts/smoke-model-fallback.sh +3 -3
  97. package/pipeline/scripts/smoke-multi-repo-integration.sh +2 -2
  98. package/pipeline/scripts/smoke-multi-repo-worktree.sh +1 -1
  99. package/pipeline/scripts/smoke-no-token-prompt.sh +5 -5
  100. package/pipeline/scripts/smoke-phase-0-multi-repo.sh +1 -1
  101. package/pipeline/scripts/smoke-phase-6-multi.sh +1 -1
  102. package/pipeline/scripts/smoke-phase4-gates.sh +45 -0
  103. package/pipeline/scripts/smoke-plan-approval-gate.sh +5 -5
  104. package/pipeline/scripts/smoke-plan-todos.sh +3 -3
  105. package/pipeline/scripts/smoke-pr-review-actions.sh +3 -3
  106. package/pipeline/scripts/smoke-prefs-language.sh +1 -1
  107. package/pipeline/scripts/smoke-progress-contract.sh +2 -2
  108. package/pipeline/scripts/smoke-push-retry.sh +1 -1
  109. package/pipeline/scripts/smoke-repo-map.sh +2 -2
  110. package/pipeline/scripts/smoke-shadow-git.sh +1 -1
  111. package/pipeline/scripts/smoke-skill-authoring.sh +4 -9
  112. package/pipeline/scripts/smoke-tasklist-ordering.sh +10 -10
  113. package/pipeline/scripts/smoke-test-gap.sh +1 -1
  114. package/pipeline/scripts/smoke-token-budget.sh +1 -1
  115. package/pipeline/scripts/smoke-token-preflight.sh +2 -2
  116. package/pipeline/scripts/smoke-tracker-contract.sh +13 -13
  117. package/pipeline/scripts/smoke-tracker-tokens-invocation.sh +5 -5
  118. package/pipeline/scripts/smoke-triage-memory.sh +2 -2
  119. package/pipeline/scripts/smoke-update-check.sh +1 -1
  120. package/pipeline/scripts/smoke-url-enrichment.sh +2 -2
  121. package/pipeline/scripts/smoke-validator-gates.sh +1 -1
  122. package/pipeline/scripts/smoke-verify-by-test.sh +3 -3
  123. package/pipeline/scripts/smoke-wiki-integration.sh +9 -33
  124. package/pipeline/scripts/smoke-work-summary.sh +1 -1
  125. package/pipeline/scripts/smoke-worktree-path-convention.sh +4 -4
  126. package/pipeline/scripts/test-integrity-gate.mjs +83 -0
  127. package/pipeline/scripts/uninstall.mjs +2 -2
  128. package/pipeline/skills/.skill-manifest.json +40 -160
  129. package/pipeline/skills/.skills-index.json +3 -372
  130. package/pipeline/skills/shared/README.md +1 -1
  131. package/pipeline/skills/shared/core/multi-agent/SKILL.md +1 -1
  132. package/pipeline/skills/shared/core/multi-agent-analysis/SKILL.md +2 -2
  133. package/pipeline/skills/shared/core/multi-agent-analysis-resolve/SKILL.md +3 -3
  134. package/pipeline/skills/shared/core/multi-agent-build-optimize/SKILL.md +1 -1
  135. package/pipeline/skills/shared/core/multi-agent-channels/SKILL.md +1 -1
  136. package/pipeline/skills/shared/core/multi-agent-finish/SKILL.md +1 -1
  137. package/pipeline/skills/shared/core/multi-agent-help/SKILL.md +1 -1
  138. package/pipeline/skills/shared/core/multi-agent-refactor/SKILL.md +116 -51
  139. package/pipeline/skills/shared/core/multi-agent-sync/SKILL.md +8 -30
  140. package/pipeline/skills/shared/external/compose-components/SKILL.md +14 -14
  141. package/pipeline/skills/skills-index.md +2 -43
  142. package/pipeline/commands/multi-agent/refactor.md +0 -188
  143. package/pipeline/commands/multi-agent/refs/component-dispatch.md +0 -92
  144. package/pipeline/scripts/smoke-existing-discovery-gate.sh +0 -71
  145. package/pipeline/scripts/smoke-figma-android-parity.sh +0 -148
  146. package/pipeline/scripts/smoke-figma-credential-store.sh +0 -105
  147. package/pipeline/scripts/smoke-figma-cross-cli-inventory.sh +0 -177
  148. package/pipeline/scripts/smoke-figma-sync.sh +0 -149
  149. package/pipeline/scripts/smoke-sync-delegation.sh +0 -74
  150. package/pipeline/skills/figma-android/README.md +0 -38
  151. package/pipeline/skills/figma-android/figma-component-code-connect/SKILL.md +0 -62
  152. package/pipeline/skills/figma-android/figma-component-implement/SKILL.md +0 -158
  153. package/pipeline/skills/figma-android/figma-component-test/SKILL.md +0 -120
  154. package/pipeline/skills/figma-android/figma-component-wiki/SKILL.md +0 -35
  155. package/pipeline/skills/figma-android/figma-to-component/SKILL.md +0 -124
  156. package/pipeline/skills/figma-common/README.md +0 -64
  157. package/pipeline/skills/figma-common/figma-bottom-sheets/SKILL.md +0 -152
  158. package/pipeline/skills/figma-common/figma-cli-iterate/SKILL.md +0 -282
  159. package/pipeline/skills/figma-common/figma-cli-iterate-mend/SKILL.md +0 -503
  160. package/pipeline/skills/figma-common/figma-cli-lean-iterate/SKILL.md +0 -288
  161. package/pipeline/skills/figma-common/figma-cli-skip/SKILL.md +0 -362
  162. package/pipeline/skills/figma-common/figma-commit/COMMON_REBASE.md +0 -206
  163. package/pipeline/skills/figma-common/figma-commit/REVIEW.md +0 -337
  164. package/pipeline/skills/figma-common/figma-commit/SKILL.md +0 -216
  165. package/pipeline/skills/figma-common/figma-component-confluence-sync/SKILL.md +0 -223
  166. package/pipeline/skills/figma-common/figma-component-start/SKILL.md +0 -251
  167. package/pipeline/skills/figma-common/figma-component-status-update/SKILL.md +0 -78
  168. package/pipeline/skills/figma-common/figma-evolve-component/SKILL.md +0 -61
  169. package/pipeline/skills/figma-common/figma-fix/SKILL.md +0 -321
  170. package/pipeline/skills/figma-common/figma-form-integration/SKILL.md +0 -542
  171. package/pipeline/skills/figma-common/figma-issue/SKILL.md +0 -750
  172. package/pipeline/skills/figma-common/figma-iterate/SKILL.md +0 -208
  173. package/pipeline/skills/figma-common/figma-iteration-commit/SKILL.md +0 -1020
  174. package/pipeline/skills/figma-common/figma-mend/SKILL.md +0 -331
  175. package/pipeline/skills/figma-common/figma-navigation/SKILL.md +0 -156
  176. package/pipeline/skills/figma-common/figma-overlays/SKILL.md +0 -142
  177. package/pipeline/skills/figma-common/figma-price-integration/SKILL.md +0 -398
  178. package/pipeline/skills/figma-common/figma-remote-mcp-auth/SKILL.md +0 -104
  179. package/pipeline/skills/figma-common/figma-review/SKILL.md +0 -400
  180. package/pipeline/skills/figma-common/figma-setup/SKILL.md +0 -514
  181. package/pipeline/skills/figma-common/figma-setup/scripts/fetch-mcp-token.py +0 -592
  182. package/pipeline/skills/figma-common/figma-skip/SKILL.md +0 -129
  183. package/pipeline/skills/figma-common/figma-ui-patterns/SKILL.md +0 -105
  184. package/pipeline/skills/figma-common/figma-ui-patterns/patterns/animated-gradient-border.md +0 -116
  185. package/pipeline/skills/figma-common/figma-utility/SKILL.md +0 -274
  186. package/pipeline/skills/figma-common/figma-utility/scripts/figma-utility.py +0 -808
  187. package/pipeline/skills/figma-common/figma-validate/SKILL.md +0 -633
  188. package/pipeline/skills/figma-common/performance-iteration-commit-all/SKILL.md +0 -716
  189. package/pipeline/skills/figma-common/performance-review-next/SKILL.md +0 -238
  190. package/pipeline/skills/figma-common/performance-start/SKILL.md +0 -430
  191. package/pipeline/skills/figma-common/performance-swiftui/SKILL.md +0 -706
  192. package/pipeline/skills/figma-common/performance-tour/SKILL.md +0 -423
  193. package/pipeline/skills/figma-ios/REVIEW_CHECKLIST.md +0 -67
  194. package/pipeline/skills/figma-ios/figma-component-code-connect/SKILL.md +0 -178
  195. package/pipeline/skills/figma-ios/figma-component-implement/SKILL.md +0 -184
  196. package/pipeline/skills/figma-ios/figma-component-test/SKILL.md +0 -219
  197. package/pipeline/skills/figma-ios/figma-component-wiki/SKILL.md +0 -274
  198. package/pipeline/skills/figma-ios/figma-to-component/SKILL.md +0 -416
  199. package/pipeline/skills/figma-ios/figma-to-component/halt-return-protocol.md +0 -57
  200. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-0-init.md +0 -307
  201. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-1-gathering.md +0 -119
  202. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-1.5-existing-discovery.md +0 -174
  203. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-2-orchestrator.md +0 -333
  204. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-2a-testing-identifiers.md +0 -368
  205. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-2b-localization.md +0 -393
  206. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-2c-accessibility.md +0 -617
  207. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-2d-analytics.md +0 -352
  208. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-3-orchestrator.md +0 -337
  209. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-3a-location.md +0 -206
  210. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-3b-tokens.md +0 -235
  211. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-3c-nested.md +0 -214
  212. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-3d-patterns.md +0 -902
  213. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-3e-assets.md +0 -156
  214. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-3f-utilities.md +0 -175
  215. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-3g-property-coverage.md +0 -176
  216. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-3h-variant-config.md +0 -333
  217. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-4-orchestrator.md +0 -412
  218. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-4a-configuration.md +0 -336
  219. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-4b-view.md +0 -705
  220. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-4c-documentation.md +0 -332
  221. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-4d-preview.md +0 -380
  222. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-4e-modifiers.md +0 -262
  223. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-5-orchestrator.md +0 -482
  224. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-5a-viewinspector.md +0 -274
  225. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-5b-snapshot.md +0 -636
  226. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-5c-unit.md +0 -142
  227. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-6-code-connect.md +0 -547
  228. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-7-wiki.md +0 -39
  229. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-7a-confluence-generate.md +0 -659
  230. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-7a-wiki-generate.md +0 -580
  231. package/pipeline/skills/figma-ios/figma-to-component/phases/phase-8-cleanup.md +0 -51
  232. package/pipeline/skills/figma-ios/figma-to-component/reference/accessibility.md +0 -183
  233. package/pipeline/skills/figma-ios/figma-to-component/reference/analytics-events.md +0 -64
  234. package/pipeline/skills/figma-ios/figma-to-component/reference/code-connect.md +0 -531
  235. package/pipeline/skills/figma-ios/figma-to-component/reference/confluence-api.md +0 -89
  236. package/pipeline/skills/figma-ios/figma-to-component/reference/confluence-xhtml.md +0 -155
  237. package/pipeline/skills/figma-ios/figma-to-component/reference/figma-to-swiftui-effects.md +0 -196
  238. package/pipeline/skills/figma-ios/figma-to-component/reference/halt-return-protocol.md +0 -57
  239. package/pipeline/skills/figma-ios/figma-to-component/reference/localization-naming.md +0 -89
  240. package/pipeline/skills/figma-ios/figma-to-component/reference/macros.md +0 -227
  241. package/pipeline/skills/figma-ios/figma-to-component/reference/missing-tokens.md +0 -157
  242. package/pipeline/skills/figma-ios/figma-to-component/reference/orchestrator-discipline.md +0 -90
  243. package/pipeline/skills/figma-ios/figma-to-component/reference/registry.md +0 -116
  244. package/pipeline/skills/figma-ios/figma-to-component/reference/remote-mcp-script.md +0 -153
  245. package/pipeline/skills/figma-ios/figma-to-component/reference/rest-api-script.md +0 -130
  246. package/pipeline/skills/figma-ios/figma-to-component/reference/scripts-inventory.md +0 -218
  247. package/pipeline/skills/figma-ios/figma-to-component/reference/snapshot-testing.md +0 -188
  248. package/pipeline/skills/figma-ios/figma-to-component/reference/subcomponent-graph.md +0 -93
  249. package/pipeline/skills/figma-ios/figma-to-component/reference/testing-identifiers-naming.md +0 -98
  250. package/pipeline/skills/figma-ios/figma-to-component/reference/tools.md +0 -261
  251. package/pipeline/skills/figma-ios/figma-to-component/reference/viewinspector.md +0 -147
  252. package/pipeline/skills/figma-ios/figma-to-component/reference/wiki-to-confluence-mapping.md +0 -182
  253. package/pipeline/skills/figma-ios/figma-to-component/scripts/apply-author-login-map.py +0 -185
  254. package/pipeline/skills/figma-ios/figma-to-component/scripts/backfill-status.py +0 -609
  255. package/pipeline/skills/figma-ios/figma-to-component/scripts/build-author-registry.py +0 -332
  256. package/pipeline/skills/figma-ios/figma-to-component/scripts/bulk-sync-issues.py +0 -261
  257. package/pipeline/skills/figma-ios/figma-to-component/scripts/code-connect-data-gather.py +0 -184
  258. package/pipeline/skills/figma-ios/figma-to-component/scripts/code-connect-publish.sh +0 -188
  259. package/pipeline/skills/figma-ios/figma-to-component/scripts/confluence-component-status-upload.py +0 -768
  260. package/pipeline/skills/figma-ios/figma-to-component/scripts/confluence-component-status.py +0 -191
  261. package/pipeline/skills/figma-ios/figma-to-component/scripts/confluence-data-gather.py +0 -420
  262. package/pipeline/skills/figma-ios/figma-to-component/scripts/confluence-page-ids.example.json +0 -9
  263. package/pipeline/skills/figma-ios/figma-to-component/scripts/confluence-publish.py +0 -336
  264. package/pipeline/skills/figma-ios/figma-to-component/scripts/figma-subcomponent-graph.py +0 -391
  265. package/pipeline/skills/figma-ios/figma-to-component/scripts/figma-update.py +0 -292
  266. package/pipeline/skills/figma-ios/figma-to-component/scripts/lib/__init__.py +0 -1
  267. package/pipeline/skills/figma-ios/figma-to-component/scripts/lib/issue_sync_propagate.py +0 -93
  268. package/pipeline/skills/figma-ios/figma-to-component/scripts/lib/registry_writer.py +0 -299
  269. package/pipeline/skills/figma-ios/figma-to-component/scripts/lib/test_backfill_status.py +0 -343
  270. package/pipeline/skills/figma-ios/figma-to-component/scripts/lib/test_figma_update.py +0 -206
  271. package/pipeline/skills/figma-ios/figma-to-component/scripts/lib/test_figma_update_http.py +0 -149
  272. package/pipeline/skills/figma-ios/figma-to-component/scripts/lib/test_phase_clis.py +0 -281
  273. package/pipeline/skills/figma-ios/figma-to-component/scripts/lib/test_registry_writer.py +0 -332
  274. package/pipeline/skills/figma-ios/figma-to-component/scripts/lib/test_skill_figma_issue.py +0 -176
  275. package/pipeline/skills/figma-ios/figma-to-component/scripts/lib/test_skill_figma_review.py +0 -98
  276. package/pipeline/skills/figma-ios/figma-to-component/scripts/lib/test_update_issue.py +0 -298
  277. package/pipeline/skills/figma-ios/figma-to-component/scripts/lib/test_update_issue_gh.py +0 -195
  278. package/pipeline/skills/figma-ios/figma-to-component/scripts/phase1-gather.py +0 -1298
  279. package/pipeline/skills/figma-ios/figma-to-component/scripts/phase2-finalize.py +0 -228
  280. package/pipeline/skills/figma-ios/figma-to-component/scripts/phase3-scripts.py +0 -1089
  281. package/pipeline/skills/figma-ios/figma-to-component/scripts/phase4-finalize.py +0 -141
  282. package/pipeline/skills/figma-ios/figma-to-component/scripts/phase5-finalize.py +0 -106
  283. package/pipeline/skills/figma-ios/figma-to-component/scripts/phase6-finalize.py +0 -162
  284. package/pipeline/skills/figma-ios/figma-to-component/scripts/phase7-finalize.py +0 -105
  285. package/pipeline/skills/figma-ios/figma-to-component/scripts/register-icons-codeconnect.py +0 -179
  286. package/pipeline/skills/figma-ios/figma-to-component/scripts/remote-mcp-fetch.py +0 -260
  287. package/pipeline/skills/figma-ios/figma-to-component/scripts/resolve-author-logins.py +0 -260
  288. package/pipeline/skills/figma-ios/figma-to-component/scripts/run-uicomponents-tests.sh +0 -86
  289. package/pipeline/skills/figma-ios/figma-to-component/scripts/sidebar-generator.py +0 -321
  290. package/pipeline/skills/figma-ios/figma-to-component/scripts/update-issue-from-registry.py +0 -1470
  291. package/pipeline/skills/figma-ios/figma-to-component/scripts/validate-phase4.sh +0 -176
  292. package/pipeline/skills/figma-ios/figma-to-component/scripts/validate-phase6.sh +0 -147
  293. package/pipeline/skills/figma-ios/figma-to-component/scripts/validate-phase7a.py +0 -629
  294. /package/pipeline/commands/multi-agent/{delete.md → delete/SKILL.md} +0 -0
  295. /package/pipeline/commands/multi-agent/{diff-explain.md → diff-explain/SKILL.md} +0 -0
  296. /package/pipeline/commands/multi-agent/{garbage-collect.md → garbage-collect/SKILL.md} +0 -0
  297. /package/pipeline/commands/multi-agent/{issue.md → issue/SKILL.md} +0 -0
  298. /package/pipeline/commands/multi-agent/{jira.md → jira/SKILL.md} +0 -0
  299. /package/pipeline/commands/multi-agent/{kill.md → kill/SKILL.md} +0 -0
  300. /package/pipeline/commands/multi-agent/{language.md → language/SKILL.md} +0 -0
  301. /package/pipeline/commands/multi-agent/{log.md → log/SKILL.md} +0 -0
  302. /package/pipeline/commands/multi-agent/{prune-logs.md → prune-logs/SKILL.md} +0 -0
  303. /package/pipeline/commands/multi-agent/{purge.md → purge/SKILL.md} +0 -0
  304. /package/pipeline/commands/multi-agent/{scan.md → scan/SKILL.md} +0 -0
  305. /package/pipeline/commands/multi-agent/{search.md → search/SKILL.md} +0 -0
  306. /package/pipeline/commands/multi-agent/{stack.md → stack/SKILL.md} +0 -0
  307. /package/pipeline/commands/multi-agent/{status.md → status/SKILL.md} +0 -0
  308. /package/pipeline/commands/multi-agent/{test.md → test/SKILL.md} +0 -0
  309. /package/pipeline/commands/multi-agent/{update.md → update/SKILL.md} +0 -0
  310. /package/pipeline/{commands/multi-agent → multi-agent-refs}/_input-parser.md +0 -0
  311. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/analysis-template.md +0 -0
  312. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/audit-guide.md +0 -0
  313. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/backend-guide.md +0 -0
  314. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/channels/confluence.md +0 -0
  315. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/channels/issue-comment.md +0 -0
  316. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/channels/pr-review-actions.md +0 -0
  317. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/channels/pr.md +0 -0
  318. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/conventions-defaults.md +0 -0
  319. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/features/autopilot-circuit-breaker.md +0 -0
  320. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/features/dev-critic.md +0 -0
  321. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/features/external-context-injection.md +0 -0
  322. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/features/model-fallback.md +0 -0
  323. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/features/plan-todos.md +0 -0
  324. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/features/prior-fix-detection.md +0 -0
  325. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/features/repo-map.md +0 -0
  326. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/features/shadow-git.md +0 -0
  327. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/frontend-guide.md +0 -0
  328. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/knowledge.md +0 -0
  329. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/multi-repo-integration-build.md +0 -0
  330. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/picker-contract.md +0 -0
  331. /package/pipeline/{commands/multi-agent/refs → multi-agent-refs}/rules.md +0 -0
@@ -1,423 +0,0 @@
1
- ---
2
- name: performance-tour
3
- description: Produces multiple Figma components in a single session. Validates dependencies, determines implementation order, produces each component sequentially with clean subagent contexts, then hands off to review and batch.
4
- ---
5
-
6
- # /performance-tour - Batch Component Production Pipeline
7
-
8
- > Produces multiple Figma components in a single session. Validates dependencies,
9
- > determines implementation order, produces each component sequentially with clean
10
- > subagent contexts, then hands off to review and batch commit.
11
-
12
- ## Parameters
13
-
14
- | Parameter | Required | Default | Description |
15
- |-----------|----------|---------|-------------|
16
- | `<issue-numbers>` | Yes | - | Comma-separated GitHub issue numbers from uicomponents repo |
17
- | `--resume` | No | - | Resume an interrupted tour from `_tour_tracker.json` |
18
- | `--lean` | No | - | Lean mode: skip Phase 5 (testing) and Phase 7 (wiki) for all components. Forwarded to `performance-start --lean` → `performance-swiftui --lean`. |
19
-
20
- ```
21
- /performance-tour 1000, 1001, 1002
22
- /performance-tour 200, 201, 202, 203, 204
23
- /performance-tour 1000, 1001, 1002 --lean
24
- /performance-tour --resume
25
- ```
26
-
27
- ---
28
-
29
- ## Constants
30
-
31
- ```
32
- REPO_ROOT = git repo root (auto-detect)
33
- GH_REPO = {github.componentsRepo}
34
- COMMON = ${REPO_ROOT}/{repos.common.path}
35
- UICOMPONENTS = ${REPO_ROOT}/{repos.components.path}
36
- WIKI = ${REPO_ROOT}/{repos.wiki.path}
37
- TRACKER_FILE = ${REPO_ROOT}/_tour_tracker.json
38
- MAX_COMPONENTS = 5
39
- ```
40
-
41
- ---
42
-
43
- ## Tour Tracker File
44
-
45
- The `_tour_tracker.json` is the **single source of truth** for the entire tour. It survives
46
- context loss and conversation timeouts. Written after every state change.
47
-
48
- ```json
49
- {
50
- "tour_start": "2026-04-07T10:00:00Z",
51
- "lean_mode": false,
52
- "issues": [1000, 1001, 1002],
53
- "execution_order": [1000, 1002, 1001],
54
- "components": {
55
- "1000": {
56
- "name": "ComponentA",
57
- "node_id": "2820:25995",
58
- "figma_url": "https://www.figma.com/design/...",
59
- "jira_key": "{jira.projectKey}-129850",
60
- "artifact_path": "ImplementationArtifacts/...",
61
- "component_location": "Sources/.../ComponentA",
62
- "status": "produced",
63
- "phase_halted": null,
64
- "halt_reason": null,
65
- "commit_sha": {
66
- "common": null,
67
- "uicomponents": null,
68
- "wiki": null
69
- },
70
- "files_created": [],
71
- "perf_tracker_path": "ImplementationArtifacts/.../_perf_tracker.json"
72
- }
73
- },
74
- "dependency_graph": {
75
- "1001": ["1000"]
76
- },
77
- "current_step": "STEP_1",
78
- "current_component": 1002,
79
- "halted_components": [],
80
- "produced_components": [1000],
81
- "reviewed_components": [],
82
- "committed_components": []
83
- }
84
- ```
85
-
86
- **CRITICAL:** Write the tracker file after every state change - component status update,
87
- step transition, HALT event, review completion. This is the mechanism that survives context loss.
88
-
89
- ---
90
-
91
- ## STEP 0 - Parse, Validate & Sort
92
-
93
- ### 0a. Parse Issues
94
-
95
- Parse comma-separated issue numbers from arguments.
96
-
97
- ```bash
98
- # For each issue number:
99
- gh issue view <N> --repo ${GH_REPO} --json number,title,body,labels,state
100
- ```
101
-
102
- Extract from each issue body:
103
- - **Component Name** - from `### Component Name (PascalCase)` section
104
- - **Figma URL** - from `### Figma URL` section
105
- - **Node ID** - from `### Node ID` section
106
- - **Registry Name** - from `### Registry Name` section
107
- - **Jira Key** - from `### Jira Issue` section
108
-
109
- Validate:
110
- - Issue is open → if closed, remove from tour with warning
111
- - Issue is not blocked → if has `blocked` label, remove from tour with warning
112
- - Required fields exist → if missing, HALT entire tour
113
-
114
- ### 0b. Validate Each Component
115
-
116
- Run `/figma-validate` logic for each issue (inline, not as skill invocation):
117
- - Criterion 7 (Already Implemented) - if already implemented, remove from tour
118
- - Criterion 4 (Dependency Readiness) - collect nested dependencies
119
-
120
- ### 0c. Build Dependency Graph
121
-
122
- For each component, check if any of its nested child INSTANCE node IDs match another
123
- component in this tour:
124
-
125
- ```python
126
- # For each component pair (A, B):
127
- # Does A's Figma node contain B's node ID as a child instance?
128
- # Does B's Figma node contain A's node ID as a child instance?
129
- ```
130
-
131
- If component B depends on component A (B uses A as nested child):
132
- - Record in `dependency_graph`: `{ "B_issue": ["A_issue"] }`
133
- - B must be produced AFTER A
134
-
135
- If circular dependency detected → HALT tour, report the cycle.
136
-
137
- ### 0d. Topological Sort
138
-
139
- Sort components by dependency order:
140
- 1. Components with no dependencies first
141
- 2. Components that others depend on, before their dependents
142
- 3. Independent components in original issue order
143
-
144
- ```python
145
- # Simple topological sort (Kahn's algorithm)
146
- # Input: dependency_graph
147
- # Output: execution_order (list of issue numbers)
148
- ```
149
-
150
- ### 0e. Fetch Latest (ONE TIME)
151
-
152
- ```bash
153
- cd ${COMMON}
154
- git fetch origin
155
- git checkout iteration/develop
156
- git pull origin iteration/develop
157
-
158
- cd ${UICOMPONENTS}
159
- git fetch origin
160
- git checkout iteration/develop
161
- git pull origin iteration/develop
162
-
163
- cd ${WIKI}
164
- git fetch origin
165
- git checkout master
166
- git pull origin master
167
- ```
168
-
169
- ### 0f. Initialize Tracker
170
-
171
- Create `_tour_tracker.json` with all parsed data, dependency graph, and execution order.
172
- If `--lean` flag is present, set `"lean_mode": true` in the tracker.
173
-
174
- Print tour plan:
175
-
176
- ```
177
- ╔══════════════════════════════════════════════════════════════╗
178
- ║ PERFORMANCE TOUR - PLAN ║
179
- ╠══════════════════════════════════════════════════════════════╣
180
- ║ ║
181
- ║ Execution Order: ║
182
- ║ 1. #1000 - ComponentA (independent) ║
183
- ║ 2. #1002 - ComponentC (independent) ║
184
- ║ 3. #1001 - ComponentB (depends on: ComponentA) ║
185
- ║ ║
186
- ║ Dependency Graph: ║
187
- ║ ComponentA ← ComponentB ║
188
- ║ ComponentC (independent) ║
189
- ║ ║
190
- ╚══════════════════════════════════════════════════════════════╝
191
-
192
- Proceed? (yes/no)
193
- ```
194
-
195
- Wait for user confirmation before proceeding to STEP 1.
196
-
197
- ---
198
-
199
- ## required PRE-READ
200
-
201
- Before proceeding to STEP 1 (production loop), read:
202
- .instructions/figma/figma-to-swiftui/reference/orchestrator-discipline.md
203
-
204
- These 6 rules govern orchestrator behavior across the tour. Rules 2 (every dispatched component must complete), 3 (on HALT retry, never take over), and 4 (complementary skills are not dismissable) apply directly to the tour's sequential produce + HALT cleanup flow.
205
-
206
- ---
207
-
208
- ## STEP 1 - Sequential Produce + Local Commit
209
-
210
- For each component in `execution_order`:
211
-
212
- ### 1a. Start (performance-start --tour)
213
-
214
- Invoke `/performance-start <issue-number> --tour` (add `--lean` if `lean_mode` is `true` in tracker):
215
- - Parses issue metadata (STEP 0)
216
- - **SKIPS** fetch + pull (STEP 1) - already done in STEP 0e
217
- - **SKIPS** branch creation (STEP 2) - staying on iteration/develop
218
- - Runs registry lookup (STEP 3)
219
- - Saves specs artifact (STEP 3.5)
220
- - Assigns to me + sets In Progress (STEP 4, 5)
221
- - Prints summary (STEP 6)
222
- - Auto-launches `/performance-swiftui <figma-url>` (STEP 6) - with `--lean` if lean mode
223
-
224
- ### 1b. Wait for production to complete
225
-
226
- `performance-swiftui` runs Phase 0-7 as a subagent chain (or Phase 0-4 + 6 in lean mode). When it completes:
227
-
228
- **If COMPLETE:**
229
-
230
- ```bash
231
- # Local commit - all submodules
232
- cd ${COMMON}
233
- git add -A
234
- git commit -m "feat(common): [${JIRA_KEY}] add ${COMPONENT_NAME} tokens and keys
235
-
236
- Refs: ${JIRA_KEY}
237
- Tour: performance-tour $(date +%Y%m%d)"
238
-
239
- cd ${UICOMPONENTS}
240
- git add -A
241
- git commit -m "feat(uicomponents): [${JIRA_KEY}] add ${COMPONENT_NAME} component
242
-
243
- Refs: ${JIRA_KEY}
244
- Tour: performance-tour $(date +%Y%m%d)"
245
-
246
- # Wiki commit - SKIP if lean_mode is true
247
- if [ "$LEAN_MODE" != "true" ]; then
248
- cd ${WIKI}
249
- git add -A
250
- git commit -m "docs: [${JIRA_KEY}] add ${COMPONENT_NAME} wiki documentation
251
-
252
- Refs: ${JIRA_KEY}
253
- Tour: performance-tour $(date +%Y%m%d)"
254
- fi
255
- ```
256
-
257
- Update tracker: set component status to `"produced"`, record files created.
258
-
259
- **If HALT:**
260
-
261
- Run selective cleanup (tracker-guided):
262
-
263
- ```bash
264
- # 1. Identify HALT'd component's files from tracker/artifact
265
- COMPONENT_LOCATION="${component.component_location}"
266
- ARTIFACT_PATH="${component.artifact_path}"
267
-
268
- # 2. Remove isolated files (component-specific directories)
269
- rm -rf "${UICOMPONENTS}/${COMPONENT_LOCATION}"
270
- # Remove test directories if created (skip check in lean mode - tests weren't generated)
271
- if [ "$LEAN_MODE" != "true" ]; then
272
- find "${UICOMPONENTS}/Tests" -type d -name "${COMPONENT_NAME}*" -exec rm -rf {} +
273
- # Remove snapshot baselines if created
274
- find "${UICOMPONENTS}/Tests" -path "*/__Snapshots__/${COMPONENT_NAME}*" -exec rm -rf {} +
275
- fi
276
-
277
- # 3. Remove component's keys from shared files
278
- # Read artifact's {nodeId}.json for key list
279
- # Use common-utility to remove keys:
280
- cd ${COMMON}
281
- swift run UITestingIdentifierTool remove --component ${COMPONENT_NAME} 2>/dev/null || true
282
- # For localization and accessibility: regenerate from remaining components
283
- swift package plugin --allow-writing-to-package-directory update-localizations-dev
284
- swift package plugin --allow-writing-to-package-directory update-accessibility-dev
285
-
286
- # 4. Remove Code Connect file if created
287
- find "${UICOMPONENTS}" -name "${COMPONENT_NAME}.figma.swift" -exec rm -f {} +
288
-
289
- # 5. Remove wiki file if created (skip in lean mode)
290
- if [ "$LEAN_MODE" != "true" ]; then
291
- find "${WIKI}" -name "${COMPONENT_NAME}*" -exec rm -f {} +
292
- fi
293
-
294
- # 6. Verify working tree is clean for this component
295
- git -C "${COMMON}" diff --name-only
296
- git -C "${UICOMPONENTS}" diff --name-only
297
- git -C "${WIKI}" diff --name-only
298
- ```
299
-
300
- Update tracker: set component status to `"halted"`, record `phase_halted` and `halt_reason`.
301
- Add to `halted_components` list.
302
-
303
- Print:
304
-
305
- ```
306
- ⚠️ ComponentB HALTED at Phase 4 - build failure
307
- Files cleaned up. Proceeding to next component.
308
- ComponentB can be fixed during review session.
309
- ```
310
-
311
- ### 1c. Progress Update
312
-
313
- After each component (produced or halted), print progress:
314
-
315
- ```
316
- Tour Progress: 2/3 produced, 1/3 halted
317
- ✅ #1000 - ComponentA (produced)
318
- ❌ #1001 - ComponentB (halted: Phase 4 build failure)
319
- 🔄 #1002 - ComponentC (in progress...)
320
- ```
321
-
322
- ### 1d. Loop
323
-
324
- Continue to next component in `execution_order`. After all components processed:
325
-
326
- Update tracker: `current_step = "STEP_2"`.
327
-
328
- Print:
329
-
330
- ```
331
- ╔══════════════════════════════════════════════════════════════╗
332
- ║ PRODUCTION COMPLETE ║
333
- ╠══════════════════════════════════════════════════════════════╣
334
- ║ Produced: 2/3 ║
335
- ║ Halted: 1/3 ║
336
- ║ ║
337
- ║ ✅ #1000 - ComponentA ║
338
- ║ ✅ #1002 - ComponentC ║
339
- ║ ❌ #1001 - ComponentB (Phase 4 build failure) ║
340
- ║ ║
341
- ║ Next: /performance-review-next ║
342
- ║ Or: /performance-tour --resume ║
343
- ╚══════════════════════════════════════════════════════════════╝
344
- ```
345
-
346
- ---
347
-
348
- ## STEP 2 - Review Session
349
-
350
- Invoke `/performance-review-next` - this is a separate skill that reads the tracker
351
- and manages the interactive review loop.
352
-
353
- See `.instructions/figma/performance-review-next/SKILL.md` for details.
354
-
355
- ---
356
-
357
- ## STEP 3 - Batch Commit
358
-
359
- After all components are reviewed, invoke `/performance-iteration-commit-all` - this is
360
- a separate skill that validates, pushes, and handles issue housekeeping.
361
-
362
- See `.instructions/figma/performance-iteration-commit-all/SKILL.md` for details.
363
-
364
- ---
365
-
366
- ## Resume Mode (`--resume`)
367
-
368
- When invoked with `--resume`:
369
-
370
- 1. Read `_tour_tracker.json`
371
- 2. Check `current_step` and `current_component`
372
- 3. Resume from where it left off:
373
- - If in STEP 1: continue producing remaining components
374
- - If in STEP 2: invoke `/performance-review-next`
375
- - If in STEP 3: invoke `/performance-iteration-commit-all`
376
-
377
- ```
378
- ╔══════════════════════════════════════════════════════════════╗
379
- ║ RESUMING TOUR ║
380
- ╠══════════════════════════════════════════════════════════════╣
381
- ║ Last state: STEP 1 - producing ComponentC (#1002) ║
382
- ║ Produced: 1 (ComponentA) ║
383
- ║ Halted: 1 (ComponentB) ║
384
- ║ Remaining: 1 (ComponentC) ║
385
- ║ ║
386
- ║ Resuming production of ComponentC... ║
387
- ╚══════════════════════════════════════════════════════════════╝
388
- ```
389
-
390
- ---
391
-
392
- ## Error Handling
393
-
394
- | Error | Action |
395
- |-------|--------|
396
- | No issues provided | HALT: "Provide at least 2 issue numbers" |
397
- | Issue not found / closed | Remove from tour, warn, continue with remaining |
398
- | All issues invalid | HALT: "No valid issues for tour" |
399
- | Circular dependency | HALT: "Circular dependency detected: A → B → A" |
400
- | FigmaRegistryUtility not built | Build it: `cd ${COMMON} && swift build --product FigmaRegistryUtility` |
401
- | Submodule not on iteration/develop | STEP 0e handles this (fetch + checkout) |
402
- | 3 consecutive HALTs | HALT tour: "Multiple consecutive failures. Review halted components before continuing." |
403
- | Tracker file missing (--resume) | HALT: "No tour in progress. Start a new tour." |
404
- | Tracker file corrupt | HALT: "Tracker file corrupt. Check _tour_tracker.json manually." |
405
-
406
- ---
407
-
408
- ## Guardrails
409
-
410
- > **NEVER push during STEP 1.** All commits are local only. Push happens in STEP 3
411
- > via `/performance-iteration-commit-all`.
412
-
413
- > **NEVER create feature branches.** Stay on `iteration/develop` for all submodules.
414
- > Use `--tour` flag when invoking `performance-start`.
415
- > Use `--lean` flag when invoking `performance-start` if tour is in lean mode.
416
-
417
- > **NEVER skip STEP 0e (fetch latest).** The working tree must start from latest
418
- > remote `iteration/develop` to minimize rebase conflicts at push time.
419
-
420
- > **ALWAYS write tracker after every state change.** This is the recovery mechanism.
421
-
422
- > **ALWAYS clean up after HALT.** Do not leave half-produced files in the working tree.
423
- > The next component must start with a clean incremental state.
@@ -1,67 +0,0 @@
1
- # Figma-iOS Skill Review Checklist
2
-
3
- > **Status: WIP - v5.0.0 pass 1 (markdown only).** Every skill in this directory was imported from an upstream source via `pipeline/scripts/import-figma-skills.sh`. Placeholders have been applied, personal-data smoke is green, but **no skill is production-ready until it passes this checklist**. Common skills were moved to `pipeline/skills/figma-common/` in WS-7b - only platform-specific skills (orchestrator + implement + test + code-connect + wiki) remain here.
4
-
5
- ## Scope of this pass
6
-
7
- - ✅ Markdown files transformed: `SKILL.md`, `phases/*.md`, `reference/*.md`, top-level support files (e.g. `halt-return-protocol.md`).
8
- - ❌ Python/shell scripts **not** imported in this pass - hardcoded paths beyond the placeholder map require manual review. Scheduled for WS-2b.
9
-
10
- ## Per-skill review gates
11
-
12
- For each skill listed below, a reviewer must confirm:
13
-
14
- 1. **Frontmatter accuracy** - `description`, `argument-hint`, `allowed-tools`, `user-invocable` reflect the generic behaviour. Remove `status: wip-v5` when passed.
15
- 2. **Placeholder coverage** - run `grep -E '\{(github|jira|repos|build|confluence|project|user)\.' SKILL.md` - every placeholder must resolve from `figma-project-config.schema.json` v2.0.0. Any unresolved placeholder either extends the schema or becomes a literal default.
16
- 3. **No upstream bleed** - `grep -riE 'turkish|dijital|thy\.com|PVT_[A-Za-z0-9]+' skill/` returns nothing. (Guarded by `smoke-personal-data.sh` globally.)
17
- 4. **Cross-references** - internal links point at the new names (no `figma-to-swift-ui-*`). Script references either resolve under `scripts/` once WS-2b lands, or are explicitly commented as TODO.
18
- 5. **Progress-contract adoption** - add the `<!-- progress-contract: applied -->` marker once the skill emits `→ <verb> <object>` lines per `refs/progress-contract.md`.
19
- 6. **Android parity note** - for component-implement/component-test, note which bits are iOS-only so WS-7 can write the Android peer.
20
- 7. **Smoke green** - `smoke-figma-skill-import.sh`, `smoke-personal-data.sh`, `smoke-commands-skills-parity.sh`, `smoke-progress-contract.sh`.
21
-
22
- ## Skills to review (32)
23
-
24
- | Skill | Source upstream | Reviewed? | Notes |
25
- |---|---|---|---|
26
- | figma-cli-iterate | figma-cli-iterate | ⬜ | Batch iterate runner |
27
- | figma-cli-iterate-mend | figma-cli-iterate-mend | ⬜ | Batch mend runner |
28
- | figma-cli-lean-iterate | figma-cli-lean-iterate | ⬜ | Iterate without test+wiki |
29
- | figma-cli-skip | figma-cli-skip | ⬜ | Skip a component |
30
- | figma-commit | figma-commit | ⬜ | 14-item review + PR |
31
- | figma-component-code-connect | figma-to-swift-ui-code-connect | ⬜ | Renamed |
32
- | figma-component-confluence-sync | figma-to-swift-ui-confluence-sync | ⬜ | Renamed |
33
- | figma-component-implement | figma-to-swift-ui-implement | ⬜ | Renamed. Android peer needed (WS-7). |
34
- | figma-component-start | figma-to-swift-ui-start | ⬜ | Renamed. Issue → branches. |
35
- | figma-component-status-update | figma-to-swift-ui-status-update | ⬜ | Renamed. Confluence dashboard refresh. |
36
- | figma-component-test | figma-to-swift-ui-test | ⬜ | Renamed. Android peer needed (WS-7). |
37
- | figma-component-wiki | figma-to-swift-ui-wiki | ⬜ | Renamed. WS-5 wiki mode integration. |
38
- | figma-fix | figma-fix | ⬜ | Targeted bug fix |
39
- | figma-form-integration | figma-form-integration | ⬜ | Form protocol adapter |
40
- | figma-issue | figma-issue | ⬜ | GitHub + Jira issue creation. WS-6 triad source. |
41
- | figma-iterate | figma-iterate | ⬜ | Auto loop |
42
- | figma-iteration-commit | figma-iteration-commit | ⬜ | Batch iteration commit |
43
- | figma-mend | figma-mend | ⬜ | Re-implement from scratch |
44
- | figma-price-integration | figma-price-integration | ⬜ | Price protocol adopter |
45
- | figma-remote-mcp-auth | figma-remote-mcp-auth | ⬜ | Figma MCP OAuth |
46
- | figma-review | figma-review | ⬜ | Interactive review |
47
- | figma-setup | figma-setup | ⬜ | Env wizard |
48
- | figma-skip | figma-skip | ⬜ | Skip + update Confluence |
49
- | figma-to-component | figma-to-swiftui | ⬜ | **Orchestrator.** Renamed to platform-agnostic name. Biggest review surface. |
50
- | figma-ui-patterns | figma-ui-patterns | ⬜ | Pattern library |
51
- | figma-utility | figma-utility | ⬜ | Figma data fetch |
52
- | figma-validate | figma-validate | ⬜ | Pre-impl validation |
53
- | performance-iteration-commit-all | performance-iteration-commit-all | ⬜ | Batch validate + push |
54
- | performance-review-next | performance-review-next | ⬜ | Interactive batch review |
55
- | performance-start | performance-start | ⬜ | Perf-tracked start |
56
- | performance-swiftui | performance-swiftui | ⬜ | Perf-optimized pipeline |
57
- | performance-tour | performance-tour | ⬜ | Batch produce components |
58
-
59
- ## Follow-up workstreams that consume this output
60
-
61
- - **WS-2b** - Import Python/shell scripts with transform + manual review.
62
- - **WS-4** - Reduce Phase 3 dispatch to single `figma-to-component` call.
63
- - **WS-5** - Wiki mode adapter; update `figma-component-wiki`.
64
- - **WS-6** - Issue → Jira → Wiki triad; extend `figma-issue` + `figma-component-wiki`.
65
- - **WS-7** - Android peer skills (`figma-component-implement-android`, `figma-component-test-android`).
66
- - **WS-8** - Cross-CLI parity matrix expansion.
67
- - **WS-11** - Add `<!-- progress-contract: applied -->` marker + `→ <verb>` lines to each skill.
@@ -1,178 +0,0 @@
1
- ---
2
- name: figma-component-code-connect
3
- description: "Figma Code Connect mapping publisher for implemented SwiftUI components. Creates + publishes .figma.swift registration for a component already built via Phase 4 codegen. Runs standalone (reads source files + fetches Figma property data) or as a Phase 3.6 continuation. iOS platform peer - Android equivalent lives under figma-android/."
4
- user-invocable: true
5
- argument-hint: "<figma-url> | --component <name>"
6
- language: en
7
- platform: ios
8
- status: wip-v5
9
- sourced-from: upstream/figma-to-swift-ui-code-connect
10
- local-overlay: true
11
- ---
12
-
13
- # figma-component-code-connect - Standalone Code Connect Publish
14
-
15
- ## Purpose
16
-
17
- Creates and publishes Figma Code Connect mapping for an implemented component. Works independently from `/figma-to-swiftui` - reads source files and fetches Figma property data directly. Can also run as a continuation after Phase 5 when full artifacts exist.
18
-
19
- ## Parameters
20
-
21
- | Parameter | Required | Description |
22
- |-----------|----------|-------------|
23
- | Figma URL | Yes | `https://www.figma.com/design/{fileKey}/...?node-id={nodeId}` |
24
-
25
- ```
26
- /figma-code-connect https://www.figma.com/design/9ipBvrtsq9HlQ175B9k0wx/?node-id=2073-17454
27
- ```
28
-
29
- ---
30
-
31
- ## Parse Arguments
32
-
33
- Extract from Figma URL:
34
- ```
35
- https://www.figma.com/design/{fileKey}/{fileName}?node-id={nodeId}
36
- ```
37
- Convert `-` to `:` in node-id.
38
-
39
- ---
40
-
41
- ## Gate 0: Preliminary Check
42
-
43
- ### 1. Resolve Component
44
-
45
- ```bash
46
- cd {repos.common.path}
47
- .build/debug/FigmaRegistryUtility lookup --node-id '{nodeId}'
48
- ```
49
-
50
- Extract: `componentName`, `suggestedComponentLocation`, `suggestedArtifactPath`.
51
-
52
- ### 2. Verify Prerequisites
53
-
54
- | Check | Required | Source |
55
- |-------|----------|--------|
56
- | `{componentLocation}/{ComponentName}.swift` | Yes | Component must be implemented |
57
- | `{componentLocation}/FIGMA.md` | Yes | Must have variant mapping |
58
- | Figma Access Token (Keychain) | Yes | For parse + publish |
59
- | `figma` CLI or npx | Yes | For parse + publish |
60
-
61
- If Swift file or FIGMA.md missing → HALT. Component not implemented.
62
-
63
- ### 3. Check Existing Code Connect
64
-
65
- | Condition | Action |
66
- |-----------|--------|
67
- | `{ComponentName}.figma.swift` exists | **UPDATE** mode - will overwrite |
68
- | `{ComponentName}.figma.swift` missing | **CREATE** mode |
69
-
70
- ### 4. Detect Path: HOT or COLD
71
-
72
- | Condition | Path |
73
- |-----------|------|
74
- | `{artifactPath}/pass1/component_properties.json` exists | **HOT** - skip Gate 1, go to Gate 2 |
75
- | Missing | **COLD** - run Gate 1 |
76
-
77
- ---
78
-
79
- ## Gate 1: Property Accumulation (COLD path only)
80
-
81
- Two-step process: script (Figma REST API) → AI subagent (deduction).
82
-
83
- ### Step 1: Script - Fetch Component Properties
84
-
85
- ```bash
86
- python3 .instructions/figma/figma-to-swiftui/scripts/code-connect-data-gather.py \
87
- --file-key "{fileKey}" \
88
- --node-id "{nodeId}" \
89
- --artifact-path "{artifactPath}"
90
- ```
91
-
92
- This script:
93
- 1. Calls Figma REST API: `GET /v1/files/{fileKey}/nodes?ids={nodeId}`
94
- 2. Extracts `componentPropertyDefinitions` from the node document
95
- 3. Writes `pass1/component_properties.json` in the same format Phase 1 produces
96
-
97
- ### Step 2: AI Subagent - Boolean Classification
98
-
99
- Dispatch a subagent (sonnet, 15 turns) to read source files and produce the variant config analysis:
100
-
101
- | Source | Derives |
102
- |--------|---------|
103
- | FIGMA.md (variant mapping table) | Property names, values, Swift mappings |
104
- | Swift source (enums, types, optionals) | Boolean → Swift type classification |
105
- | `pass1/component_properties.json` | Figma property types (VARIANT, BOOLEAN, TEXT) |
106
-
107
- Writes: `pass3/04c_variant_config_analysis.json`
108
-
109
- After this step, phase-6 can't distinguish HOT from COLD.
110
-
111
- ---
112
-
113
- ## Gate 2: Code Connect Generation + Publish
114
-
115
- Delegate to the shared phase instruction:
116
-
117
- ```
118
- .instructions/figma/figma-to-swiftui/phases/phase-6-code-connect.md
119
- ```
120
-
121
- Dispatch as subagent with:
122
- - componentName, fileKey, nodeId, artifactPath, componentLocation
123
- - All standard context variables
124
-
125
- The phase file is shared with `/figma-to-swiftui` - same templates, same validation, same publish flow.
126
-
127
- ---
128
-
129
- ## Gate 3: Registry Update
130
-
131
- Run the Phase 6 finalize script:
132
-
133
- ```bash
134
- python3 .instructions/figma/figma-to-swiftui/scripts/phase6-finalize.py \
135
- --node-id '{nodeId}' \
136
- --file-key '{fileKey}' \
137
- --component-name '{componentName}' \
138
- --platform ios
139
- ```
140
-
141
- Updates `codeConnect.ios = true` in the component registry JSON.
142
-
143
- ---
144
-
145
- ## Dispatch Table
146
-
147
- | Gate | Instruction | Model | Max Turns |
148
- |------|-------------|-------|-----------|
149
- | 0 | Inline (this file) | - | - |
150
- | 1 Step 1 | Script (`code-connect-data-gather.py`) | - | - |
151
- | 1 Step 2 | AI subagent | sonnet | 15 |
152
- | 2 | `phases/phase-6-code-connect.md` (shared) | opus | 30 |
153
- | 3 | Script (`phase6-finalize.py`) | - | - |
154
-
155
- ---
156
-
157
- ## Shared Resources
158
-
159
- These files are shared with `/figma-to-swiftui` phase 6:
160
-
161
- | Resource | Used By |
162
- |----------|---------|
163
- | `phases/phase-6-code-connect.md` | Gate 2 |
164
- | `reference/code-connect.md` | Gate 2 |
165
- | `scripts/phase6-finalize.py` | Gate 3 |
166
- | `scripts/validate-phase6.sh` | Gate 2 (inside phase-6) |
167
- | `figma.config.json` (in uicomponents) | Gate 2 (publish) |
168
-
169
- ---
170
-
171
- ## Notes
172
-
173
- - Standalone entry point - does NOT require `/figma-to-swiftui` to have run
174
- - When called after Phase 5, detects existing artifacts (HOT path) and skips data gathering
175
- - The data gather script produces the same artifact structure as Phase 1
176
- - Phase 6 instruction file doesn't know which skill invoked it - fully modular
177
- - Handles the `figma.config.json` exclude list for broken components (see phase-6 sectionGATE 5)
178
- - If component has no Figma property definitions → uses STATIC_VALUES strategy automatically