@punks/cli 2.3.2 → 2.4.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 (129) hide show
  1. package/dist/BASELINE_CHANGELOG.md +50 -0
  2. package/dist/CHANGELOG.md +50 -0
  3. package/dist/index.js +216 -221
  4. package/dist/skills/agnostic/cli/dp-cli/SKILL.md +1 -12
  5. package/dist/skills/agnostic/cli/dp-cli/references/commands.md +22 -18
  6. package/dist/skills/agnostic/cli/dp-cli/references/post-command-flow.md +15 -19
  7. package/dist/skills/agnostic/planning/wayfinder/SKILL.md +42 -0
  8. package/dist/skills/agnostic/quality/review/SKILL.md +89 -0
  9. package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +22 -0
  10. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +110 -23
  11. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +30 -14
  12. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +74 -7
  13. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +108 -2
  14. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +29 -3
  15. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +43 -7
  16. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +25 -3
  17. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +63 -14
  18. package/dist/skills/agnostic/research/parallel-research/SKILL.md +5 -2
  19. package/dist/skills/frameworks/expo/add-app-clip/SKILL.md +280 -0
  20. package/dist/skills/frameworks/expo/add-app-clip/agents/openai.yaml +4 -0
  21. package/dist/skills/frameworks/expo/add-app-clip/references/native-module.md +96 -0
  22. package/dist/skills/frameworks/expo/building-native-ui/SKILL.md +377 -0
  23. package/dist/skills/frameworks/expo/building-native-ui/agents/openai.yaml +4 -0
  24. package/dist/skills/frameworks/expo/building-native-ui/references/animations.md +220 -0
  25. package/dist/skills/frameworks/expo/building-native-ui/references/controls.md +270 -0
  26. package/dist/skills/frameworks/expo/building-native-ui/references/form-sheet.md +253 -0
  27. package/dist/skills/frameworks/expo/building-native-ui/references/gradients.md +106 -0
  28. package/dist/skills/frameworks/expo/building-native-ui/references/icons.md +213 -0
  29. package/dist/skills/frameworks/expo/building-native-ui/references/media.md +198 -0
  30. package/dist/skills/frameworks/expo/building-native-ui/references/route-structure.md +229 -0
  31. package/dist/skills/frameworks/expo/building-native-ui/references/search.md +248 -0
  32. package/dist/skills/frameworks/expo/building-native-ui/references/storage.md +121 -0
  33. package/dist/skills/frameworks/expo/building-native-ui/references/tabs.md +433 -0
  34. package/dist/skills/frameworks/expo/building-native-ui/references/toolbar-and-headers.md +284 -0
  35. package/dist/skills/frameworks/expo/building-native-ui/references/visual-effects.md +197 -0
  36. package/dist/skills/frameworks/expo/building-native-ui/references/webgpu-three.md +605 -0
  37. package/dist/skills/frameworks/expo/building-native-ui/references/zoom-transitions.md +158 -0
  38. package/dist/skills/frameworks/expo/eas-simulator/SKILL.md +154 -0
  39. package/dist/skills/frameworks/expo/eas-simulator/references/controllers.md +67 -0
  40. package/dist/skills/frameworks/expo/eas-simulator/references/run-your-app.md +185 -0
  41. package/dist/skills/frameworks/expo/eas-simulator/references/troubleshooting.md +38 -0
  42. package/dist/skills/frameworks/expo/eas-update-insights/SKILL.md +228 -0
  43. package/dist/skills/frameworks/expo/eas-update-insights/agents/openai.yaml +4 -0
  44. package/dist/skills/frameworks/expo/eas-update-insights/references/channel-insights-schema.md +47 -0
  45. package/dist/skills/frameworks/expo/eas-update-insights/references/update-insights-schema.md +69 -0
  46. package/dist/skills/frameworks/expo/expo-api-routes/SKILL.md +368 -0
  47. package/dist/skills/frameworks/expo/expo-api-routes/agents/openai.yaml +4 -0
  48. package/dist/skills/frameworks/expo/expo-brownfield/SKILL.md +54 -0
  49. package/dist/skills/frameworks/expo/expo-brownfield/agents/openai.yaml +4 -0
  50. package/dist/skills/frameworks/expo/expo-brownfield/references/brownfield-integrated.md +526 -0
  51. package/dist/skills/frameworks/expo/expo-brownfield/references/brownfield-isolated.md +402 -0
  52. package/dist/skills/frameworks/expo/expo-brownfield/references/comparison.md +63 -0
  53. package/dist/skills/frameworks/expo/expo-brownfield/references/troubleshooting.md +88 -0
  54. package/dist/skills/frameworks/expo/expo-cicd-workflows/SKILL.md +92 -0
  55. package/dist/skills/frameworks/expo/expo-cicd-workflows/agents/openai.yaml +4 -0
  56. package/dist/skills/frameworks/expo/expo-cicd-workflows/scripts/fetch.js +109 -0
  57. package/dist/skills/frameworks/expo/expo-cicd-workflows/scripts/package.json +11 -0
  58. package/dist/skills/frameworks/expo/expo-cicd-workflows/scripts/validate.js +84 -0
  59. package/dist/skills/frameworks/expo/expo-deployment/SKILL.md +167 -0
  60. package/dist/skills/frameworks/expo/expo-deployment/agents/openai.yaml +4 -0
  61. package/dist/skills/frameworks/expo/expo-deployment/references/app-store-metadata.md +497 -0
  62. package/dist/skills/frameworks/expo/expo-deployment/references/ios-app-store.md +371 -0
  63. package/dist/skills/frameworks/expo/expo-deployment/references/play-store.md +246 -0
  64. package/dist/skills/frameworks/expo/expo-deployment/references/testflight.md +58 -0
  65. package/dist/skills/frameworks/expo/expo-deployment/references/workflows.md +160 -0
  66. package/dist/skills/frameworks/expo/expo-dev-client/SKILL.md +172 -0
  67. package/dist/skills/frameworks/expo/expo-dev-client/agents/openai.yaml +4 -0
  68. package/dist/skills/frameworks/expo/expo-examples/SKILL.md +97 -0
  69. package/dist/skills/frameworks/expo/expo-examples/references/catalog.md +105 -0
  70. package/dist/skills/frameworks/expo/expo-module/SKILL.md +141 -0
  71. package/dist/skills/frameworks/expo/expo-module/agents/openai.yaml +4 -0
  72. package/dist/skills/frameworks/expo/expo-module/references/config-plugin.md +90 -0
  73. package/dist/skills/frameworks/expo/expo-module/references/create-expo-module.md +206 -0
  74. package/dist/skills/frameworks/expo/expo-module/references/lifecycle.md +127 -0
  75. package/dist/skills/frameworks/expo/expo-module/references/module-config.md +48 -0
  76. package/dist/skills/frameworks/expo/expo-module/references/native-module.md +286 -0
  77. package/dist/skills/frameworks/expo/expo-module/references/native-view.md +171 -0
  78. package/dist/skills/frameworks/expo/expo-observe/SKILL.md +29 -0
  79. package/dist/skills/frameworks/expo/expo-observe/references/metrics.md +47 -0
  80. package/dist/skills/frameworks/expo/expo-observe/references/queries.md +342 -0
  81. package/dist/skills/frameworks/expo/expo-observe/references/setup.md +255 -0
  82. package/dist/skills/frameworks/expo/expo-skill-eval/SKILL.md +314 -0
  83. package/dist/skills/frameworks/expo/expo-skill-eval/agents/visual-grader.md +52 -0
  84. package/dist/skills/frameworks/expo/expo-skill-eval/references/design-rubric.md +45 -0
  85. package/dist/skills/frameworks/expo/expo-skill-eval/references/runtime-matrix.md +33 -0
  86. package/dist/skills/frameworks/expo/expo-skill-eval/scripts/check-static.sh +64 -0
  87. package/dist/skills/frameworks/expo/expo-skill-eval/scripts/clean-fixture.sh +56 -0
  88. package/dist/skills/frameworks/expo/expo-skill-eval/scripts/generate_viewer.py +450 -0
  89. package/dist/skills/frameworks/expo/expo-skill-eval/scripts/latest-sdk.sh +46 -0
  90. package/dist/skills/frameworks/expo/expo-skill-eval/scripts/make-fixture.sh +95 -0
  91. package/dist/skills/frameworks/expo/expo-skill-eval/scripts/make-workspace.sh +31 -0
  92. package/dist/skills/frameworks/expo/expo-skill-eval/scripts/snapshot-android.sh +284 -0
  93. package/dist/skills/frameworks/expo/expo-skill-eval/scripts/snapshot-ios.sh +132 -0
  94. package/dist/skills/frameworks/expo/expo-skill-eval/scripts/snapshot-web.sh +61 -0
  95. package/dist/skills/frameworks/expo/expo-tailwind-setup/SKILL.md +480 -0
  96. package/dist/skills/frameworks/expo/expo-tailwind-setup/agents/openai.yaml +4 -0
  97. package/dist/skills/frameworks/expo/expo-ui/SKILL.md +47 -0
  98. package/dist/skills/frameworks/expo/expo-ui/agents/openai.yaml +4 -0
  99. package/dist/skills/frameworks/expo/expo-ui/references/drop-in-replacements.md +27 -0
  100. package/dist/skills/frameworks/expo/expo-ui/references/jetpack-compose.md +73 -0
  101. package/dist/skills/frameworks/expo/expo-ui/references/swift-ui.md +73 -0
  102. package/dist/skills/frameworks/expo/expo-ui/references/universal.md +73 -0
  103. package/dist/skills/frameworks/expo/expo-ui/scripts/list-components.js +193 -0
  104. package/dist/skills/frameworks/expo/native-data-fetching/SKILL.md +505 -0
  105. package/dist/skills/frameworks/expo/native-data-fetching/agents/openai.yaml +4 -0
  106. package/dist/skills/frameworks/expo/native-data-fetching/references/expo-router-loaders.md +341 -0
  107. package/dist/skills/frameworks/expo/upgrading-expo/SKILL.md +134 -0
  108. package/dist/skills/frameworks/expo/upgrading-expo/agents/openai.yaml +4 -0
  109. package/dist/skills/frameworks/expo/upgrading-expo/references/expo-av-to-audio.md +132 -0
  110. package/dist/skills/frameworks/expo/upgrading-expo/references/expo-av-to-video.md +160 -0
  111. package/dist/skills/frameworks/expo/upgrading-expo/references/native-tabs.md +124 -0
  112. package/dist/skills/frameworks/expo/upgrading-expo/references/new-architecture.md +79 -0
  113. package/dist/skills/frameworks/expo/upgrading-expo/references/react-19.md +79 -0
  114. package/dist/skills/frameworks/expo/upgrading-expo/references/react-compiler.md +59 -0
  115. package/dist/skills/frameworks/expo/upgrading-expo/references/react-navigation-to-expo-router.md +61 -0
  116. package/dist/skills/frameworks/expo/use-dom/SKILL.md +417 -0
  117. package/dist/skills/frameworks/expo/use-dom/agents/openai.yaml +4 -0
  118. package/dist/skills/frameworks/expo/web-to-native/SKILL.md +83 -0
  119. package/dist/skills/frameworks/expo/web-to-native/references/false-friends.md +119 -0
  120. package/dist/skills/frameworks/expo/web-to-native/references/native-patterns.md +39 -0
  121. package/dist/skills/frameworks/expo/web-to-native/references/run-as-goal.md +48 -0
  122. package/dist/skills/frameworks/expo/web-to-native/references/verify-on-device.md +45 -0
  123. package/dist/skills/phases/finder-phase/SKILL.md +52 -0
  124. package/dist/skills/phases/finder-phase/references/frontier-lifecycle.md +70 -0
  125. package/dist/skills/phases/finder-phase/references/root-routing.md +29 -0
  126. package/dist/skills/phases/goalify/SKILL.md +10 -7
  127. package/dist/skills/phases/review-phase/REFERENCE.md +36 -3
  128. package/dist/skills/phases/review-phase/SKILL.md +18 -11
  129. package/package.json +1 -1
@@ -1,5 +1,55 @@
1
1
  # Baseline Changelog
2
2
 
3
+ ## baseline/stable/2026.07.06-finder-phase-wayfinder - 2026-07-06
4
+
5
+ ### Changed
6
+
7
+ - Sync shared skills from `wearedevpunks/skills@583be0c`.
8
+ - Add `finder-phase` and `wayfinder` to the planning baseline so loose oversized work routes through a visible decision frontier before ordinary phase selection.
9
+ - Update `write-backlog` to materialize first-class backlog kinds for `fog`, `grilling`, `research`, `prototype`, `epic`, and `story`.
10
+ - Refresh root workflow routing, planning pack catalog wiring, content tests, scaffold docs, and Harness public Finder Phase docs.
11
+ - Include the latest `goalify` activation clarification in the scaffold baseline.
12
+
13
+ ## baseline/stable/2026.07.03-expo-skills-pack - 2026-07-03
14
+
15
+ ### Changed
16
+
17
+ - Sync Expo shared skills from `wearedevpunks/skills@4a2c1a7`.
18
+ - Add a first-class `expo` detected pack for `expo` and `@expo/*` package manifests.
19
+ - Include Expo, EAS, native UI, update, deployment, module, and migration skills in the scaffold baseline.
20
+
21
+ ## baseline/stable/2026.07.02-wiki-sync-content-contract - 2026-07-02
22
+
23
+ ### Fixed
24
+
25
+ - Restore the scaffolded wiki `scripts/sync-content.mjs` contract so generated scripts export `syncWikiContent` and `SyncContentError` without running sync at import time.
26
+ - Keep wiki sync `--check` read-only while reporting stale projected pages, recursive `meta.json` changes, and stale generated files or folders.
27
+ - Refresh generated docs even when existing files already have frontmatter, add missing frontmatter titles from page headings, and prune stale generated folders.
28
+
29
+ ## baseline/stable/2026.06.30-review-grill-artifact-checks - 2026-06-30
30
+
31
+ ### Changed
32
+
33
+ - Release `review-phase` requirements-grill wrapper artifact checks.
34
+ - Require review of serious grill wrappers against `grilling-flow`, `artifact-output`, routed grill log/status evidence, glossary/axiom/status updates, wiki bookkeeping, and downstream handoff evidence.
35
+ - Sync shared skills `wearedevpunks/skills@d9669c0`.
36
+
37
+ ## baseline/stable/2026.06.30-review-skill-phase - 2026-06-30
38
+
39
+ ### Changed
40
+
41
+ - Add upstream `review` to the research/review flow as the Standards versus Spec wrapper for review starts.
42
+ - Update `review-phase` so review flows pin fixed diff, identify Spec and Standards sources, and keep axes separate before `autoreview`.
43
+ - Sync shared skills from `wearedevpunks/skills@cb3fdc8`.
44
+
45
+ ## baseline/stable/2026.06.30-scaffold-skill-reconciliation - 2026-06-30
46
+
47
+ ### Changed
48
+
49
+ - Release scaffold baseline `dp check` session-start drift guidance, including CLI/baseline pins, changelog summaries, and subagent-owned remediation flow.
50
+ - Release scaffold baseline pre-existing skill reconciliation guidance for `dp scaffold init`, `dp scaffold setup`, `dp update`, and `$dp-cli`: commands keep overlap decisions agent-owned and preserve blind `.devpunks/pre-existing-skills` evidence.
51
+ - Sync updated shared `dp-cli` guidance from `wearedevpunks/skills@a889421`.
52
+
3
53
  ## baseline/stable/2026.06.29-frontend-imagegen-skills - 2026-06-29
4
54
 
5
55
  ### Changed
package/dist/CHANGELOG.md CHANGED
@@ -1,10 +1,53 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.4.0 - 2026-07-06
4
+
5
+ Pending npm publish: `@punks/cli@2.4.0`.
6
+
7
+ ### Added
8
+
9
+ - Bundle `finder-phase` and `wayfinder` as scaffolded planning skills.
10
+ - Add `finder-phase` to global phase routing so loose oversized work reaches the decision frontier before ordinary requirements, research, prototype, design, or delivery phases.
11
+
12
+ ### Changed
13
+
14
+ - Include the `finder-phase` and `wayfinder` planning-pack catalog wiring in the npm CLI.
15
+ - Expand bundled `write-backlog` guidance around first-class backlog kinds: `fog`, `grilling`, `research`, `prototype`, `epic`, and `story`.
16
+ - Ship Finder Phase wiki docs, scaffold routing docs, and the latest shared-skills sync from `wearedevpunks/skills@583be0c`.
17
+
18
+ ## baseline/stable/2026.07.06-finder-phase-wayfinder - 2026-07-06
19
+
20
+ ### Changed
21
+
22
+ - Release scaffold baseline `finder-phase` and `wayfinder` routing for oversized foggy work before bounded requirements, research, prototype, design, or delivery phases.
23
+ - Add `finder-phase` and `wayfinder` to the planning pack, root workflow routing, catalog tests, and generated prompt guidance.
24
+ - Expand `write-backlog` around first-class backlog kinds: `fog`, `grilling`, `research`, `prototype`, `epic`, and `story`.
25
+ - Include the Finder Phase public entrypoint docs and the latest `goalify` activation clarification.
26
+
27
+ ## baseline/stable/2026.06.30-review-skill-phase - 2026-06-30
28
+
29
+ ### Changed
30
+
31
+ - Release scaffold baseline upstream `review` skill and route `review-phase` startup through Standards versus Spec review axes.
32
+ - Include `review` in the default research/review skill pack.
33
+
3
34
  This changelog tracks `@punks/cli` npm executable release notes from the 2.x line onward.
4
35
  Published entries include the npm version and matching git tag or version commit when available.
5
36
  Baseline-only releases use `baseline/stable/*` GitHub releases and should still get an entry
6
37
  here; `BASELINE_CHANGELOG.md` can carry extra baseline-specific detail.
7
38
 
39
+ ## 2.3.3 - 2026-07-03
40
+
41
+ Pending npm publish: `@punks/cli@2.3.3`.
42
+
43
+ ### Added
44
+
45
+ - Bundle the Expo scaffold pack and shared Expo skills in the npm CLI.
46
+
47
+ ### Changed
48
+
49
+ - Include runtime changelog metadata for `baseline/stable/2026.07.03-expo-skills-pack`.
50
+
8
51
  ## 2.3.2 - 2026-06-30
9
52
 
10
53
  Pending npm publish: `@punks/cli@2.3.2`.
@@ -18,6 +61,13 @@ Pending npm publish: `@punks/cli@2.3.2`.
18
61
  - Bundle runtime changelog metadata into packaged CLI commands so update and baseline drift can be explained without local repository files.
19
62
  - Clarify `dp scaffold init`, `dp scaffold setup`, `dp update`, and `$dp-cli` pre-existing skill reconciliation: commands do not detect skill overlaps, preserve blind evidence snapshots, and hand exact-name overlap handling to the follow-up agent.
20
63
 
64
+ ## baseline/stable/2026.06.30-scaffold-skill-reconciliation - 2026-06-30
65
+
66
+ ### Changed
67
+
68
+ - Release scaffold baseline `dp check` session-start drift guidance and agent-owned pre-existing skill reconciliation guidance.
69
+ - Sync updated shared `dp-cli` guidance from `wearedevpunks/skills@a889421`.
70
+
21
71
  ## 2.3.1 - 2026-06-30
22
72
 
23
73
  Pending npm publish: `@punks/cli@2.3.1`.
package/dist/index.js CHANGED
@@ -51355,7 +51355,7 @@ var embeddedAssets = [];
51355
51355
 
51356
51356
  // package.json
51357
51357
  var name = "@punks/cli";
51358
- var version = "2.3.2";
51358
+ var version = "2.4.0";
51359
51359
  // src/content/data.ts
51360
51360
  var findFirst8 = (candidates) => candidates.find((candidate) => existsSync(candidate));
51361
51361
  var executableSignature = () => {
@@ -51799,6 +51799,37 @@ var packCatalog = [
51799
51799
  promptSurfaces: ["shared-agents", "root-prompt-spec", "workspace-prompt-spec"],
51800
51800
  promptDetails: ["shared api-server baseline", "workspace route/plugin rules"]
51801
51801
  },
51802
+ {
51803
+ id: "expo",
51804
+ category: "detected",
51805
+ triggerPackages: ["expo", "@expo/"],
51806
+ description: "Expo guidance pack.",
51807
+ skills: [
51808
+ "add-app-clip",
51809
+ "building-native-ui",
51810
+ "eas-simulator",
51811
+ "eas-update-insights",
51812
+ "expo-api-routes",
51813
+ "expo-brownfield",
51814
+ "expo-cicd-workflows",
51815
+ "expo-deployment",
51816
+ "expo-dev-client",
51817
+ "expo-examples",
51818
+ "expo-module",
51819
+ "expo-observe",
51820
+ "expo-skill-eval",
51821
+ "expo-tailwind-setup",
51822
+ "expo-ui",
51823
+ "native-data-fetching",
51824
+ "upgrading-expo",
51825
+ "use-dom",
51826
+ "web-to-native"
51827
+ ],
51828
+ lintAssets: [],
51829
+ hooks: [],
51830
+ promptSurfaces: ["shared-agents", "root-prompt-spec", "workspace-prompt-spec"],
51831
+ promptDetails: ["shared expo baseline", "workspace native app guidance"]
51832
+ },
51802
51833
  {
51803
51834
  id: "frontend",
51804
51835
  category: "surface",
@@ -51837,6 +51868,8 @@ var packCatalog = [
51837
51868
  triggerPackages: [],
51838
51869
  description: "Default planning pack: delivery phase, specs, plans, implementation, and debt resolution.",
51839
51870
  skills: [
51871
+ "finder-phase",
51872
+ "wayfinder",
51840
51873
  "delivery-phase",
51841
51874
  "design-phase",
51842
51875
  "goalify",
@@ -51890,6 +51923,7 @@ var packCatalog = [
51890
51923
  "parallel-research",
51891
51924
  "prototype",
51892
51925
  "review-phase",
51926
+ "review",
51893
51927
  "autoreview",
51894
51928
  "improve-codebase-architecture"
51895
51929
  ],
@@ -52186,6 +52220,158 @@ var skillCatalog = [
52186
52220
  framework: "elysiajs",
52187
52221
  requiresTools: []
52188
52222
  },
52223
+ {
52224
+ id: "add-app-clip",
52225
+ sourceDirectory: "skills/frameworks/expo/add-app-clip",
52226
+ tier: "framework",
52227
+ language: "typescript",
52228
+ framework: "expo",
52229
+ requiresTools: []
52230
+ },
52231
+ {
52232
+ id: "building-native-ui",
52233
+ sourceDirectory: "skills/frameworks/expo/building-native-ui",
52234
+ tier: "framework",
52235
+ language: "typescript",
52236
+ framework: "expo",
52237
+ requiresTools: []
52238
+ },
52239
+ {
52240
+ id: "eas-simulator",
52241
+ sourceDirectory: "skills/frameworks/expo/eas-simulator",
52242
+ tier: "framework",
52243
+ language: "typescript",
52244
+ framework: "expo",
52245
+ requiresTools: []
52246
+ },
52247
+ {
52248
+ id: "eas-update-insights",
52249
+ sourceDirectory: "skills/frameworks/expo/eas-update-insights",
52250
+ tier: "framework",
52251
+ language: "typescript",
52252
+ framework: "expo",
52253
+ requiresTools: []
52254
+ },
52255
+ {
52256
+ id: "expo-api-routes",
52257
+ sourceDirectory: "skills/frameworks/expo/expo-api-routes",
52258
+ tier: "framework",
52259
+ language: "typescript",
52260
+ framework: "expo",
52261
+ requiresTools: []
52262
+ },
52263
+ {
52264
+ id: "expo-brownfield",
52265
+ sourceDirectory: "skills/frameworks/expo/expo-brownfield",
52266
+ tier: "framework",
52267
+ language: "typescript",
52268
+ framework: "expo",
52269
+ requiresTools: []
52270
+ },
52271
+ {
52272
+ id: "expo-cicd-workflows",
52273
+ sourceDirectory: "skills/frameworks/expo/expo-cicd-workflows",
52274
+ tier: "framework",
52275
+ language: "typescript",
52276
+ framework: "expo",
52277
+ requiresTools: []
52278
+ },
52279
+ {
52280
+ id: "expo-deployment",
52281
+ sourceDirectory: "skills/frameworks/expo/expo-deployment",
52282
+ tier: "framework",
52283
+ language: "typescript",
52284
+ framework: "expo",
52285
+ requiresTools: []
52286
+ },
52287
+ {
52288
+ id: "expo-dev-client",
52289
+ sourceDirectory: "skills/frameworks/expo/expo-dev-client",
52290
+ tier: "framework",
52291
+ language: "typescript",
52292
+ framework: "expo",
52293
+ requiresTools: []
52294
+ },
52295
+ {
52296
+ id: "expo-examples",
52297
+ sourceDirectory: "skills/frameworks/expo/expo-examples",
52298
+ tier: "framework",
52299
+ language: "typescript",
52300
+ framework: "expo",
52301
+ requiresTools: []
52302
+ },
52303
+ {
52304
+ id: "expo-module",
52305
+ sourceDirectory: "skills/frameworks/expo/expo-module",
52306
+ tier: "framework",
52307
+ language: "typescript",
52308
+ framework: "expo",
52309
+ requiresTools: []
52310
+ },
52311
+ {
52312
+ id: "expo-observe",
52313
+ sourceDirectory: "skills/frameworks/expo/expo-observe",
52314
+ tier: "framework",
52315
+ language: "typescript",
52316
+ framework: "expo",
52317
+ requiresTools: []
52318
+ },
52319
+ {
52320
+ id: "expo-skill-eval",
52321
+ sourceDirectory: "skills/frameworks/expo/expo-skill-eval",
52322
+ tier: "framework",
52323
+ language: "typescript",
52324
+ framework: "expo",
52325
+ requiresTools: []
52326
+ },
52327
+ {
52328
+ id: "expo-tailwind-setup",
52329
+ sourceDirectory: "skills/frameworks/expo/expo-tailwind-setup",
52330
+ tier: "framework",
52331
+ language: "typescript",
52332
+ framework: "expo",
52333
+ requiresTools: []
52334
+ },
52335
+ {
52336
+ id: "expo-ui",
52337
+ sourceDirectory: "skills/frameworks/expo/expo-ui",
52338
+ tier: "framework",
52339
+ language: "typescript",
52340
+ framework: "expo",
52341
+ requiresTools: []
52342
+ },
52343
+ {
52344
+ id: "native-data-fetching",
52345
+ sourceDirectory: "skills/frameworks/expo/native-data-fetching",
52346
+ tier: "framework",
52347
+ language: "typescript",
52348
+ framework: "expo",
52349
+ requiresTools: []
52350
+ },
52351
+ {
52352
+ id: "upgrading-expo",
52353
+ sourceDirectory: "skills/frameworks/expo/upgrading-expo",
52354
+ tier: "framework",
52355
+ language: "typescript",
52356
+ framework: "expo",
52357
+ requiresTools: []
52358
+ },
52359
+ {
52360
+ id: "use-dom",
52361
+ sourceDirectory: "skills/frameworks/expo/use-dom",
52362
+ tier: "framework",
52363
+ language: "typescript",
52364
+ framework: "expo",
52365
+ requiresTools: []
52366
+ },
52367
+ {
52368
+ id: "web-to-native",
52369
+ sourceDirectory: "skills/frameworks/expo/web-to-native",
52370
+ tier: "framework",
52371
+ language: "typescript",
52372
+ framework: "expo",
52373
+ requiresTools: []
52374
+ },
52189
52375
  {
52190
52376
  id: "design-taste-frontend",
52191
52377
  sourceDirectory: "skills/agnostic/frontend/design-taste-frontend",
@@ -52218,6 +52404,14 @@ var skillCatalog = [
52218
52404
  framework: null,
52219
52405
  requiresTools: []
52220
52406
  },
52407
+ {
52408
+ id: "finder-phase",
52409
+ sourceDirectory: "skills/phases/finder-phase",
52410
+ tier: "agnostic",
52411
+ language: null,
52412
+ framework: null,
52413
+ requiresTools: []
52414
+ },
52221
52415
  {
52222
52416
  id: "goalify",
52223
52417
  sourceDirectory: "skills/phases/goalify",
@@ -52274,6 +52468,14 @@ var skillCatalog = [
52274
52468
  framework: null,
52275
52469
  requiresTools: ["stack"]
52276
52470
  },
52471
+ {
52472
+ id: "wayfinder",
52473
+ sourceDirectory: "skills/agnostic/planning/wayfinder",
52474
+ tier: "agnostic",
52475
+ language: null,
52476
+ framework: null,
52477
+ requiresTools: []
52478
+ },
52277
52479
  {
52278
52480
  id: "next-best-practices",
52279
52481
  sourceDirectory: "skills/frameworks/nextjs/next-best-practices",
@@ -52410,6 +52612,14 @@ var skillCatalog = [
52410
52612
  framework: null,
52411
52613
  requiresTools: []
52412
52614
  },
52615
+ {
52616
+ id: "review",
52617
+ sourceDirectory: "skills/agnostic/quality/review",
52618
+ tier: "agnostic",
52619
+ language: null,
52620
+ framework: null,
52621
+ requiresTools: []
52622
+ },
52413
52623
  {
52414
52624
  id: "autoreview",
52415
52625
  sourceDirectory: "skills/agnostic/quality/autoreview",
@@ -56283,6 +56493,7 @@ var phaseSkillIds = [
56283
56493
  "debugging-phase",
56284
56494
  "delivery-phase",
56285
56495
  "docs-ingest-phase",
56496
+ "finder-phase",
56286
56497
  "requirements-phase",
56287
56498
  "resolve-debt-phase",
56288
56499
  "review-phase"
@@ -56463,6 +56674,7 @@ var rootPromptConcepts = [
56463
56674
  name: "Workflow Routing",
56464
56675
  purpose: "Tell the agent which lifecycle entrypoint applies.",
56465
56676
  invariants: [
56677
+ "Foggy oversized work routes to `finder-phase` before `requirements-phase`.",
56466
56678
  "Unclear requirements or product decisions route to `requirements-phase`.",
56467
56679
  "Scoped implementation from an accepted spec, issue, or plan routes to `delivery-phase`.",
56468
56680
  "Runtime failures, crashes, broken local flows, and production-like symptoms route to `debugging-phase`.",
@@ -56536,6 +56748,7 @@ var rootPromptSpecSections = (spec) => [
56536
56748
  "",
56537
56749
  "## Available workflow entrypoints",
56538
56750
  "",
56751
+ "- `finder-phase`",
56539
56752
  "- `requirements-phase`",
56540
56753
  "- `delivery-phase`",
56541
56754
  "- `debugging-phase`",
@@ -56548,7 +56761,7 @@ var scopedPromptSpecSections = (spec) => [
56548
56761
  "",
56549
56762
  "- Start with one `## <Scope> Guidance` heading.",
56550
56763
  "- Put one `Primary skills here: ...` line near the top.",
56551
- "- Never put phase skills in scoped `AGENTS.md` primary-skill lines. Keep `requirements-phase`, `delivery-phase`, `debugging-phase`, `review-phase`, `resolve-debt-phase`, and `docs-ingest-phase` as global orchestration entrypoints only.",
56764
+ "- Never put phase skills in scoped `AGENTS.md` primary-skill lines. Keep `finder-phase`, `requirements-phase`, `delivery-phase`, `debugging-phase`, `review-phase`, `resolve-debt-phase`, and `docs-ingest-phase` as global orchestration entrypoints only.",
56552
56765
  "- Follow with one short paragraph defining the scope boundary: what belongs here vs elsewhere.",
56553
56766
  "- Treat every authored `AGENTS.md` file as the neutral source of truth and create a sibling `CLAUDE.md` symlink mirror that points to it.",
56554
56767
  "- Add `opensrc` / source-inspection guidance only when this scope actually needs it.",
@@ -58515,225 +58728,7 @@ export default withMDX(config);
58515
58728
  },
58516
58729
  {
58517
58730
  path: "scripts/sync-content.mjs",
58518
- content: `import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from "node:fs";
58519
- import path from "node:path";
58520
- import { fileURLToPath } from "node:url";
58521
-
58522
- const wikiRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
58523
- const contentRoot = path.join(wikiRoot, "content", "docs");
58524
-
58525
- const possibleRepoRoots = [path.resolve(wikiRoot, "..", ".."), path.resolve(wikiRoot, "..")];
58526
-
58527
- const repoRoot = possibleRepoRoots.find(
58528
- (candidate) =>
58529
- existsSync(path.join(candidate, "docs")) || existsSync(path.join(candidate, "package.json")),
58530
- );
58531
-
58532
- const copiedTopLevelPages = new Set(["project"]);
58533
-
58534
- syncTree(path.join(wikiRoot, "specs"), path.join(contentRoot, "project", "specs"), "Specs");
58535
-
58536
- if (repoRoot) {
58537
- syncTree(
58538
- path.join(repoRoot, "docs", "requirements"),
58539
- path.join(contentRoot, "project", "requirements"),
58540
- "Requirements",
58541
- );
58542
- syncTree(
58543
- path.join(repoRoot, "docs", "reference"),
58544
- path.join(contentRoot, "project", "reference"),
58545
- "Reference",
58546
- );
58547
- syncTree(
58548
- path.join(repoRoot, "docs", "runbooks"),
58549
- path.join(contentRoot, "project", "runbooks"),
58550
- "Runbooks",
58551
- );
58552
- syncFile(
58553
- path.join(repoRoot, "docs", "tech-decisions.md"),
58554
- path.join(contentRoot, "project", "decisions", "tech-decisions.mdx"),
58555
- );
58556
- }
58557
-
58558
- mergeMeta(contentRoot, {
58559
- title: "Project Docs",
58560
- pages: Array.from(copiedTopLevelPages),
58561
- });
58562
-
58563
- mergeMeta(path.join(contentRoot, "project"), {
58564
- title: "Project",
58565
- description: "Internal project operations",
58566
- pages: [
58567
- "index",
58568
- "grilling",
58569
- "specs",
58570
- "onboarding",
58571
- "public-docs",
58572
- "tech-debt",
58573
- "maintenance",
58574
- "runbooks",
58575
- "decisions",
58576
- "repo-guidance",
58577
- ...(existsSync(path.join(contentRoot, "project", "requirements")) ? ["requirements"] : []),
58578
- ...(existsSync(path.join(contentRoot, "project", "reference")) ? ["reference"] : []),
58579
- ],
58580
- });
58581
-
58582
- function syncTree(sourceDirectory, targetDirectory, title) {
58583
- if (!existsSync(sourceDirectory)) return;
58584
-
58585
- copyMarkdownTree(sourceDirectory, targetDirectory);
58586
- writeMetaTree(targetDirectory, title);
58587
-
58588
- const relativeTarget = path.relative(contentRoot, targetDirectory);
58589
- const topLevel = relativeTarget.split(path.sep)[0];
58590
- if (topLevel) copiedTopLevelPages.add(topLevel);
58591
- }
58592
-
58593
- function copyMarkdownTree(sourceDirectory, targetDirectory) {
58594
- for (const entry of readdirSync(sourceDirectory, { withFileTypes: true })) {
58595
- if (entry.name.startsWith(".")) continue;
58596
-
58597
- const sourcePath = path.join(sourceDirectory, entry.name);
58598
- const targetPath = path.join(targetDirectory, entry.name);
58599
-
58600
- if (entry.isDirectory()) {
58601
- copyMarkdownTree(sourcePath, targetPath);
58602
- continue;
58603
- }
58604
-
58605
- if (!entry.isFile()) continue;
58606
- if (!entry.name.endsWith(".md") && !entry.name.endsWith(".mdx")) continue;
58607
-
58608
- syncFile(sourcePath, targetPath);
58609
- }
58610
- }
58611
-
58612
- function syncFile(sourcePath, targetPath) {
58613
- if (!existsSync(sourcePath)) return;
58614
- if (existsSync(targetPath) && hasFrontmatter(readFileSync(targetPath, "utf8"))) return;
58615
-
58616
- mkdirSync(path.dirname(targetPath), { recursive: true });
58617
- writeFileSync(targetPath, sanitizeMdx(readFileSync(sourcePath, "utf8"), targetPath));
58618
- }
58619
-
58620
- function hasFrontmatter(content) {
58621
- return content.startsWith("---\\n");
58622
- }
58623
-
58624
- function writeMetaTree(directory, title) {
58625
- if (!existsSync(directory)) return;
58626
-
58627
- const entries = readdirSync(directory, { withFileTypes: true }).filter(
58628
- (entry) => !entry.name.startsWith("."),
58629
- );
58630
- const files = entries
58631
- .filter(
58632
- (entry) => entry.isFile() && (entry.name.endsWith(".md") || entry.name.endsWith(".mdx")),
58633
- )
58634
- .map((entry) => stripMarkdownExtension(entry.name))
58635
- .filter((name) => name !== "meta");
58636
- const folders = entries.filter((entry) => entry.isDirectory()).map((entry) => entry.name);
58637
- const pages = orderPages([...files, ...folders]);
58638
-
58639
- if (pages.length > 0) mergeMeta(directory, { title, pages });
58640
-
58641
- for (const folder of folders) {
58642
- writeMetaTree(path.join(directory, folder), titleFromSegment(folder));
58643
- }
58644
- }
58645
-
58646
- function mergeMeta(directory, nextMeta) {
58647
- mkdirSync(directory, { recursive: true });
58648
-
58649
- const metaPath = path.join(directory, "meta.json");
58650
- const existing = readJson(metaPath);
58651
- const mergedPages = mergePages(existing.pages ?? [], nextMeta.pages);
58652
-
58653
- writeFileSync(
58654
- metaPath,
58655
- formatMetaJson({
58656
- ...nextMeta,
58657
- ...existing,
58658
- pages: mergedPages,
58659
- }),
58660
- );
58661
- }
58662
-
58663
- function formatMetaJson(meta) {
58664
- const lines = Object.entries(meta).map(
58665
- ([key, value]) => ' "' + key + '": ' + JSON.stringify(value),
58666
- );
58667
-
58668
- return "{\\n" + lines.join(",\\n") + "\\n}\\n";
58669
- }
58670
-
58671
- function readJson(filePath) {
58672
- if (!existsSync(filePath)) return {};
58673
-
58674
- return JSON.parse(readFileSync(filePath, "utf8"));
58675
- }
58676
-
58677
- function orderPages(pages) {
58678
- return mergePages([], pages).sort((left, right) => {
58679
- if (left === "index") return -1;
58680
- if (right === "index") return 1;
58681
-
58682
- return left.localeCompare(right);
58683
- });
58684
- }
58685
-
58686
- function mergePages(existingPages, nextPages) {
58687
- const existing = Array.isArray(existingPages) ? existingPages : [];
58688
- const additions = nextPages.filter((page) => !existing.includes(page));
58689
- const pages = [...existing, ...additions];
58690
-
58691
- if (!pages.includes("index")) return pages;
58692
-
58693
- return ["index", ...pages.filter((page) => page !== "index")];
58694
- }
58695
-
58696
- function stripMarkdownExtension(fileName) {
58697
- return fileName.replace(/\\.mdx?$/, "");
58698
- }
58699
-
58700
- function titleFromSegment(segment) {
58701
- return segment
58702
- .split(/[-_]/)
58703
- .filter(Boolean)
58704
- .map((part) => part.charAt(0).toUpperCase() + part.slice(1))
58705
- .join(" ");
58706
- }
58707
-
58708
- function sanitizeMdx(content, targetPath) {
58709
- const sanitized = content.replace(/<([A-Z_][A-Z0-9_-]*)>/g, "\\\\<$1\\\\>");
58710
- if (hasFrontmatter(sanitized)) return sanitized;
58711
-
58712
- return [
58713
- "---",
58714
- 'title: "' + titleFromDocument(sanitized, targetPath) + '"',
58715
- "surface: project",
58716
- "permission: project",
58717
- "---",
58718
- "",
58719
- sanitized,
58720
- ].join("\\n");
58721
- }
58722
-
58723
- function titleFromDocument(content, targetPath) {
58724
- const heading = content.match(/^#\\s+(.+)$/m)?.[1]?.trim();
58725
- if (heading) return heading.replace(/"/g, '\\\\"');
58726
-
58727
- return titleFromSegment(stripMarkdownExtension(path.basename(targetPath))).replace(/"/g, '\\\\"');
58728
- }
58729
-
58730
- if (repoRoot) {
58731
- const displayedRoot = path.relative(wikiRoot, repoRoot) || ".";
58732
- console.log(\`Synced wiki content from \${displayedRoot}\`);
58733
- } else {
58734
- console.log("No repository root detected; using checked-in wiki content.");
58735
- }
58736
- `
58731
+ content: Buffer.from("aW1wb3J0IHsgZXhpc3RzU3luYywgbWtkaXJTeW5jLCByZWFkZGlyU3luYywgcmVhZEZpbGVTeW5jLCByZWFscGF0aFN5bmMsIHJtU3luYywgd3JpdGVGaWxlU3luYyB9IGZyb20gIm5vZGU6ZnMiOwppbXBvcnQgcGF0aC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bnRlbnRSb290LCAicHJvamVjdCIsICJzcGVjcyIpLAogICAgdGl0bGU6ICJTcGVjcyIsCiAgICBjb250ZW50Um9vdCwKICAgIHRvcExldmVsUGFnZXMsCiAgICBjaGVja09ubHksCiAgICBjaGFuZ2VzLAogICAgd2lraVJvb3QsCiAgfSk7CgogIGlmIChyZXBvUm9vdCkgewogICAgc3luY1RyZWUoewogICAgICBzb3VyY2VEaXJlY3Rvcnk6IHBhdGguam9pbihyZXBvUm9vdCwgImRvY3MiLCAicmVxdWlyZW1lbnRzIiksCiAgICAgIHRhcmdldERpcmVjdG9yeTogcGF0aC5qb2luKGNvbnRlbnRSb290LCAicHJvamVjdCIsICJyZXF1aXJlbWVudHMiKSwKICAgICAgdGl0bGU6ICJSZXF1aXJlbWVudHMiLAogICAgICBjb250ZW50Um9vdCwKICAgICAgdG9wTGV2ZWxQYWdlcywKICAgICAgY2hlY2tPbmx5LAogICAgICBjaGFuZ2VzLAogICAgICB3aWtpUm9vdCwKICAgIH0pOwogICAgc3luY1RyZWUoewogICAgICBzb3VyY2VEaXJlY3Rvcnk6IHBhdGguam9pbihyZXBvUm9vdCwgImRvY3MiLCAicmVmZXJlbmNlIiksCiAgICAgIHRhcmdldERpcmVjdG9yeTogcGF0aC5qb2luKGNvbnRlbnRSb290LCAicHJvamVjdCIsICJyZWZlcmVuY2UiKSwKICAgICAgdGl0bGU6ICJSZWZlcmVuY2UiLAogICAgICBjb250ZW50Um9vdCwKICAgICAgdG9wTGV2ZWxQYWdlcywKICAgICAgY2hlY2tPbmx5LAogICAgICBjaGFuZ2VzLAogICAgICB3aWtpUm9vdCwKICAgIH0pOwogICAgc3luY1RyZWUoewogICAgICBzb3VyY2VEaXJlY3Rvcnk6IHBhdGguam9pbihyZXBvUm9vdCwgImRvY3MiLCAicnVuYm9va3MiKSwKICAgICAgdGFyZ2V0RGlyZWN0b3J5OiBwYXRoLmpvaW4oY29udGVudFJvb3QsICJwcm9qZWN0IiwgInJ1bmJvb2tzIiksCiAgICAgIHRpdGxlOiAiUnVuYm9va3MiLAogICAgICBjb250ZW50Um9vdCwKICAgICAgdG9wTGV2ZWxQYWdlcywKICAgICAgY2hlY2tPbmx5LAogICAgICBjaGFuZ2VzLAogICAgICB3aWtpUm9vdCwKICAgIH0pOwogICAgc3luY0ZpbGUoewogICAgICBzb3VyY2VQYXRoOiBwYXRoLmpvaW4ocmVwb1Jvb3QsICJkb2NzIiwgInRlY2gtZGVjaXNpb25zLm1kIiksCiAgICAgIHRhcmdldFBhdGg6IHBhdGguam9pbihjb250ZW50Um9vdCwgInByb2plY3QiLCAiZGVjaXNpb25zIiwgInRlY2gtZGVjaXNpb25zLm1keCIpLAogICAgICBjaGVja09ubHksCiAgICAgIGNoYW5nZXMsCiAgICAgIHdpa2lSb290LAogICAgfSk7CiAgfQoKICBtZXJnZU1ldGEoCiAgICBjb250ZW50Um9vdCwKICAgIHsgdGl0bGU6ICJQcm9qZWN0IERvY3MiLCBwYWdlczogb3JkZXJSb290UGFnZXMoQXJyYXkuZnJvbSh0b3BMZXZlbFBhZ2VzKSkgfSwKICAgIGNoZWNrT25seSwKICAgIGNoYW5nZXMsCiAgICB3aWtpUm9vdCwKICApOwoKICBtZXJnZU1ldGEoCiAgICBwYXRoLmpvaW4oY29udGVudFJvb3QsICJwcm9qZWN0IiksCiAgICB7CiAgICAgIHRpdGxlOiAiUHJvamVjdCIsCiAgICAgIGRlc2NyaXB0aW9uOiAiSW50ZXJuYWwgcHJvamVjdCBvcGVyYXRpb25zIiwKICAgICAgcGFnZXM6IFsKICAgICAgICAiaW5kZXgiLAogICAgICAgICJncmlsbGluZyIsCiAgICAgICAgInNwZWNzIiwKICAgICAgICAib25ib2FyZGluZyIsCiAgICAgICAgInB1YmxpYy1kb2NzIiwKICAgICAgICAidGVjaC1kZWJ0IiwKICAgICAgICAibWFpbnRlbmFuY2UiLAogICAgICAgICJydW5ib29rcyIsCiAgICAgICAgImRlY2lzaW9ucyIsCiAgICAgICAgInJlcG8tZ3V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eW5jKGRpcmVjdG9yeSkubGVuZ3RoID09PSAwOwp9CgpmdW5jdGlvbiBpc0VudHJ5cG9pbnQoKSB7CiAgY29uc3QgZW50cnlwb2ludCA9IHByb2Nlc3MuYXJndlsxXTsKICBpZiAoIWVudHJ5cG9pbnQpIHJldHVybiBmYWxzZTsKCiAgcmV0dXJuIHJlYWxwYXRoU3luYyhlbnRyeXBvaW50KSA9PT0gcmVhbHBhdGhTeW5jKGZpbGVVUkxUb1BhdGgoaW1wb3J0Lm1ldGEudXJsKSk7Cn0KCmlmIChpc0VudHJ5cG9pbnQoKSkgewogIHRyeSB7CiAgICBjb25zdCBjaGVja09ubHkgPSBwcm9jZXNzLmFyZ3YuaW5jbHVkZXMoIi0tY2hlY2siKTsKICAgIGNvbnN0IHJlc3VsdCA9IHN5bmNXaWtpQ29udGVudCh7IGNoZWNrT25seSB9KTsKICAgIGNvbnNvbGUubG9nKAogICAgICByZXN1bHQuY2hhbmdlcy5sZW5ndGggPT09IDAKICAgICAgICA/ICJXaWtpIGNvbnRlbnQgaXMgY3VycmVudC4iCiAgICAgICAgOiAiU3luY2VkIHdpa2kgY29udGVudDpcbiIgKyByZXN1bHQuY2hhbmdlcy5qb2luKCJcbiIpLAogICAgKTsKICB9IGNhdGNoIChlcnJvcikgewogICAgaWYgKCEoZXJyb3IgaW5zdGFuY2VvZiBTeW5jQ29udGVudEVycm9yKSkgdGhyb3cgZXJyb3I7CiAgICBjb25zb2xlLmVycm9yKGVycm9yLm1lc3NhZ2UpOwogICAgcHJvY2Vzcy5leGl0Q29kZSA9IDE7CiAgfQp9Cg==", "base64").toString("utf8")
58737
58732
  },
58738
58733
  {
58739
58734
  path: "postcss.config.mjs",