prizmkit 1.1.57 → 1.1.60

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 (188) hide show
  1. package/bin/create-prizmkit.js +8 -6
  2. package/bundled/VERSION.json +3 -3
  3. package/bundled/adapters/codex/agent-adapter.js +38 -0
  4. package/bundled/adapters/codex/paths.js +27 -0
  5. package/bundled/adapters/codex/rules-adapter.js +30 -0
  6. package/bundled/adapters/codex/settings-adapter.js +27 -0
  7. package/bundled/adapters/codex/skill-adapter.js +65 -0
  8. package/bundled/adapters/codex/team-adapter.js +37 -0
  9. package/bundled/dev-pipeline/.env.example +2 -1
  10. package/bundled/dev-pipeline/README.md +10 -7
  11. package/bundled/dev-pipeline/lib/common.sh +278 -37
  12. package/bundled/dev-pipeline/run-bugfix.sh +10 -61
  13. package/bundled/dev-pipeline/run-feature.sh +10 -78
  14. package/bundled/dev-pipeline/run-recovery.sh +10 -46
  15. package/bundled/dev-pipeline/run-refactor.sh +10 -61
  16. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +17 -7
  17. package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +9 -3
  18. package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +9 -3
  19. package/bundled/dev-pipeline/scripts/utils.py +6 -4
  20. package/bundled/dev-pipeline-windows/.env.example +28 -0
  21. package/bundled/dev-pipeline-windows/README.md +30 -0
  22. package/bundled/dev-pipeline-windows/SCHEMA_ANALYSIS.md +525 -0
  23. package/bundled/dev-pipeline-windows/assets/feature-list-example.json +146 -0
  24. package/bundled/dev-pipeline-windows/assets/prizm-dev-team-integration.md +138 -0
  25. package/bundled/dev-pipeline-windows/launch-bugfix-daemon.ps1 +9 -0
  26. package/bundled/dev-pipeline-windows/launch-feature-daemon.ps1 +9 -0
  27. package/bundled/dev-pipeline-windows/launch-refactor-daemon.ps1 +9 -0
  28. package/bundled/dev-pipeline-windows/lib/common.ps1 +432 -0
  29. package/bundled/dev-pipeline-windows/lib/daemon.ps1 +140 -0
  30. package/bundled/dev-pipeline-windows/lib/pipeline.ps1 +446 -0
  31. package/bundled/dev-pipeline-windows/lib/reset.ps1 +87 -0
  32. package/bundled/dev-pipeline-windows/reset-bug.ps1 +9 -0
  33. package/bundled/dev-pipeline-windows/reset-feature.ps1 +9 -0
  34. package/bundled/dev-pipeline-windows/reset-refactor.ps1 +9 -0
  35. package/bundled/dev-pipeline-windows/run-bugfix.ps1 +9 -0
  36. package/bundled/dev-pipeline-windows/run-feature.ps1 +9 -0
  37. package/bundled/dev-pipeline-windows/run-recovery.ps1 +76 -0
  38. package/bundled/dev-pipeline-windows/run-refactor.ps1 +9 -0
  39. package/bundled/dev-pipeline-windows/scripts/check-session-status.py +228 -0
  40. package/bundled/dev-pipeline-windows/scripts/cleanup-logs.py +192 -0
  41. package/bundled/dev-pipeline-windows/scripts/detect-stuck.py +530 -0
  42. package/bundled/dev-pipeline-windows/scripts/generate-bootstrap-prompt.py +1737 -0
  43. package/bundled/dev-pipeline-windows/scripts/generate-bugfix-prompt.py +685 -0
  44. package/bundled/dev-pipeline-windows/scripts/generate-recovery-prompt.py +805 -0
  45. package/bundled/dev-pipeline-windows/scripts/generate-refactor-prompt.py +763 -0
  46. package/bundled/dev-pipeline-windows/scripts/init-bugfix-pipeline.py +316 -0
  47. package/bundled/dev-pipeline-windows/scripts/init-dev-team.py +134 -0
  48. package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +380 -0
  49. package/bundled/dev-pipeline-windows/scripts/init-refactor-pipeline.py +399 -0
  50. package/bundled/dev-pipeline-windows/scripts/parse-stream-progress.py +388 -0
  51. package/bundled/dev-pipeline-windows/scripts/patch-completion-notes.py +191 -0
  52. package/bundled/dev-pipeline-windows/scripts/update-bug-status.py +864 -0
  53. package/bundled/dev-pipeline-windows/scripts/update-checkpoint.py +173 -0
  54. package/bundled/dev-pipeline-windows/scripts/update-feature-status.py +1501 -0
  55. package/bundled/dev-pipeline-windows/scripts/update-refactor-status.py +1073 -0
  56. package/bundled/dev-pipeline-windows/scripts/utils.py +542 -0
  57. package/bundled/dev-pipeline-windows/templates/agent-prompts/critic-plan-challenge.md +7 -0
  58. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-fix.md +7 -0
  59. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-implement.md +30 -0
  60. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-resume.md +5 -0
  61. package/bundled/dev-pipeline-windows/templates/agent-prompts/reviewer-review.md +7 -0
  62. package/bundled/dev-pipeline-windows/templates/bootstrap-prompt.md +46 -0
  63. package/bundled/dev-pipeline-windows/templates/bootstrap-tier1.md +43 -0
  64. package/bundled/dev-pipeline-windows/templates/bootstrap-tier2.md +43 -0
  65. package/bundled/dev-pipeline-windows/templates/bootstrap-tier3.md +43 -0
  66. package/bundled/dev-pipeline-windows/templates/bug-fix-list-schema.json +263 -0
  67. package/bundled/dev-pipeline-windows/templates/bugfix-bootstrap-prompt.md +320 -0
  68. package/bundled/dev-pipeline-windows/templates/feature-list-schema.json +237 -0
  69. package/bundled/dev-pipeline-windows/templates/refactor-bootstrap-prompt.md +331 -0
  70. package/bundled/dev-pipeline-windows/templates/refactor-list-schema.json +270 -0
  71. package/bundled/dev-pipeline-windows/templates/sections/ac-verification-checklist.md +13 -0
  72. package/bundled/dev-pipeline-windows/templates/sections/checkpoint-system.md +91 -0
  73. package/bundled/dev-pipeline-windows/templates/sections/context-budget-rules.md +33 -0
  74. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-agent.md +10 -0
  75. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-full.md +12 -0
  76. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-lite.md +7 -0
  77. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-agent.md +8 -0
  78. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-full.md +9 -0
  79. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-lite.md +6 -0
  80. package/bundled/dev-pipeline-windows/templates/sections/failure-capture.md +21 -0
  81. package/bundled/dev-pipeline-windows/templates/sections/feature-context.md +31 -0
  82. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-auto.md +72 -0
  83. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-opencli.md +63 -0
  84. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification.md +62 -0
  85. package/bundled/dev-pipeline-windows/templates/sections/phase-commit-full.md +71 -0
  86. package/bundled/dev-pipeline-windows/templates/sections/phase-commit.md +64 -0
  87. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-agent-suffix.md +23 -0
  88. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-base.md +24 -0
  89. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-lite-suffix.md +12 -0
  90. package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan-full.md +53 -0
  91. package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan.md +32 -0
  92. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-agent.md +37 -0
  93. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-full.md +50 -0
  94. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-lite.md +52 -0
  95. package/bundled/dev-pipeline-windows/templates/sections/phase-plan-agent.md +27 -0
  96. package/bundled/dev-pipeline-windows/templates/sections/phase-plan-lite.md +27 -0
  97. package/bundled/dev-pipeline-windows/templates/sections/phase-review-agent.md +27 -0
  98. package/bundled/dev-pipeline-windows/templates/sections/phase-review-full.md +29 -0
  99. package/bundled/dev-pipeline-windows/templates/sections/phase-specify-plan-full.md +77 -0
  100. package/bundled/dev-pipeline-windows/templates/sections/phase0-init.md +13 -0
  101. package/bundled/dev-pipeline-windows/templates/sections/phase0-test-baseline.md +23 -0
  102. package/bundled/dev-pipeline-windows/templates/sections/session-context.md +5 -0
  103. package/bundled/dev-pipeline-windows/templates/sections/subagent-timeout-recovery.md +6 -0
  104. package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-agent.md +67 -0
  105. package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-lite.md +58 -0
  106. package/bundled/dev-pipeline-windows/templates/session-status-schema.json +83 -0
  107. package/bundled/skills/_metadata.json +1 -1
  108. package/bundled/skills/app-planner/SKILL.md +26 -18
  109. package/bundled/skills/app-planner/references/architecture-decisions.md +9 -5
  110. package/bundled/skills/app-planner/references/frontend-design-guide.md +1 -1
  111. package/bundled/skills/feature-planner/SKILL.md +9 -2
  112. package/bundled/skills/prizmkit-init/SKILL.md +7 -6
  113. package/bundled/skills/recovery-workflow/scripts/detect-recovery-state.py +2 -0
  114. package/bundled/skills-windows/app-planner/SKILL.md +639 -0
  115. package/bundled/skills-windows/app-planner/assets/app-design-guide.md +101 -0
  116. package/bundled/skills-windows/app-planner/references/architecture-decisions.md +52 -0
  117. package/bundled/skills-windows/app-planner/references/brainstorm-guide.md +101 -0
  118. package/bundled/skills-windows/app-planner/references/frontend-design-guide.md +71 -0
  119. package/bundled/skills-windows/app-planner/references/project-brief-guide.md +82 -0
  120. package/bundled/skills-windows/app-planner/references/red-team-checklist.md +40 -0
  121. package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +609 -0
  122. package/bundled/skills-windows/app-planner/references/rules/backend/fixed-rules.md +285 -0
  123. package/bundled/skills-windows/app-planner/references/rules/backend/question-bank.md +249 -0
  124. package/bundled/skills-windows/app-planner/references/rules/backend/template.md +173 -0
  125. package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +373 -0
  126. package/bundled/skills-windows/app-planner/references/rules/database/fixed-rules.md +211 -0
  127. package/bundled/skills-windows/app-planner/references/rules/database/question-bank.md +184 -0
  128. package/bundled/skills-windows/app-planner/references/rules/database/template.md +158 -0
  129. package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +810 -0
  130. package/bundled/skills-windows/app-planner/references/rules/frontend/fixed-rules.md +188 -0
  131. package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +302 -0
  132. package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +320 -0
  133. package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +639 -0
  134. package/bundled/skills-windows/app-planner/references/rules/mobile/fixed-rules.md +290 -0
  135. package/bundled/skills-windows/app-planner/references/rules/mobile/question-bank.md +232 -0
  136. package/bundled/skills-windows/app-planner/references/rules/mobile/template.md +175 -0
  137. package/bundled/skills-windows/bug-fix-workflow/SKILL.md +415 -0
  138. package/bundled/skills-windows/bug-planner/SKILL.md +395 -0
  139. package/bundled/skills-windows/bug-planner/assets/bug-confirmation-template.md +43 -0
  140. package/bundled/skills-windows/bug-planner/references/critic-and-verification.md +44 -0
  141. package/bundled/skills-windows/bug-planner/references/error-recovery.md +73 -0
  142. package/bundled/skills-windows/bug-planner/references/input-formats.md +53 -0
  143. package/bundled/skills-windows/bug-planner/references/schema-validation.md +25 -0
  144. package/bundled/skills-windows/bug-planner/references/severity-rules.md +16 -0
  145. package/bundled/skills-windows/bug-planner/scripts/validate-bug-list.py +322 -0
  146. package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +380 -0
  147. package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +441 -0
  148. package/bundled/skills-windows/feature-pipeline-launcher/scripts/preflight-check.py +462 -0
  149. package/bundled/skills-windows/feature-planner/SKILL.md +401 -0
  150. package/bundled/skills-windows/feature-planner/assets/evaluation-guide.md +64 -0
  151. package/bundled/skills-windows/feature-planner/assets/planning-guide.md +214 -0
  152. package/bundled/skills-windows/feature-planner/references/browser-interaction.md +59 -0
  153. package/bundled/skills-windows/feature-planner/references/completeness-review.md +57 -0
  154. package/bundled/skills-windows/feature-planner/references/decomposition-patterns.md +75 -0
  155. package/bundled/skills-windows/feature-planner/references/error-recovery.md +90 -0
  156. package/bundled/skills-windows/feature-planner/references/incremental-feature-planning.md +112 -0
  157. package/bundled/skills-windows/feature-planner/references/new-project-planning.md +85 -0
  158. package/bundled/skills-windows/feature-planner/scripts/validate-and-generate.py +1029 -0
  159. package/bundled/skills-windows/feature-workflow/SKILL.md +531 -0
  160. package/bundled/skills-windows/prizmkit-init/SKILL.md +356 -0
  161. package/bundled/skills-windows/prizmkit-init/assets/project-brief-template.md +82 -0
  162. package/bundled/skills-windows/prizmkit-init/references/config-schema.md +68 -0
  163. package/bundled/skills-windows/prizmkit-init/references/rules/layer-detection.md +41 -0
  164. package/bundled/skills-windows/prizmkit-init/references/tech-stack-catalog.md +13 -0
  165. package/bundled/skills-windows/prizmkit-init/references/update-supplement.md +9 -0
  166. package/bundled/skills-windows/recovery-workflow/SKILL.md +456 -0
  167. package/bundled/skills-windows/recovery-workflow/evals/evals.json +46 -0
  168. package/bundled/skills-windows/recovery-workflow/scripts/detect-recovery-state.py +544 -0
  169. package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +406 -0
  170. package/bundled/skills-windows/refactor-planner/SKILL.md +540 -0
  171. package/bundled/skills-windows/refactor-planner/assets/planning-guide.md +292 -0
  172. package/bundled/skills-windows/refactor-planner/references/behavior-preservation.md +301 -0
  173. package/bundled/skills-windows/refactor-planner/references/refactor-scoping-guide.md +221 -0
  174. package/bundled/skills-windows/refactor-planner/scripts/validate-and-generate-refactor.py +858 -0
  175. package/bundled/skills-windows/refactor-workflow/SKILL.md +503 -0
  176. package/package.json +3 -2
  177. package/src/clean.js +73 -2
  178. package/src/config.js +159 -50
  179. package/src/detect-platform.js +16 -8
  180. package/src/external-skills.js +26 -19
  181. package/src/index.js +31 -9
  182. package/src/manifest.js +6 -2
  183. package/src/metadata.js +43 -5
  184. package/src/platforms.js +36 -0
  185. package/src/prompts.js +31 -6
  186. package/src/runtimes.js +20 -0
  187. package/src/scaffold.js +314 -110
  188. package/src/upgrade.js +81 -41
@@ -0,0 +1,83 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Dev-Pipeline Session Status",
4
+ "description": "Schema for session-status.json written by agent at session end",
5
+ "type": "object",
6
+ "required": ["session_id", "feature_id", "status", "timestamp"],
7
+ "properties": {
8
+ "session_id": {
9
+ "type": "string",
10
+ "minLength": 1
11
+ },
12
+ "feature_id": {
13
+ "type": "string",
14
+ "pattern": "^F-\\d{3}(-[A-Z])?$"
15
+ },
16
+ "status": {
17
+ "type": "string",
18
+ "enum": ["success", "partial", "failed", "commit_missing", "docs_missing", "merge_conflict"]
19
+ },
20
+ "completed_phases": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "integer",
24
+ "minimum": 0,
25
+ "maximum": 7
26
+ }
27
+ },
28
+ "current_phase": {
29
+ "type": "integer",
30
+ "minimum": 0,
31
+ "maximum": 7
32
+ },
33
+ "checkpoint_reached": {
34
+ "type": "string",
35
+ "pattern": "^CP-[0-3]$"
36
+ },
37
+ "tasks_completed": {
38
+ "type": "integer",
39
+ "minimum": 0
40
+ },
41
+ "tasks_total": {
42
+ "type": "integer",
43
+ "minimum": 0
44
+ },
45
+ "errors": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "object",
49
+ "required": ["message"],
50
+ "properties": {
51
+ "phase": { "type": "integer" },
52
+ "type": { "type": "string" },
53
+ "message": { "type": "string" },
54
+ "recoverable": { "type": "boolean" }
55
+ }
56
+ }
57
+ },
58
+ "can_resume": {
59
+ "type": "boolean"
60
+ },
61
+ "docs_maintained": {
62
+ "type": "boolean"
63
+ },
64
+ "retrospective_done": {
65
+ "type": "boolean"
66
+ },
67
+ "resume_from_phase": {
68
+ "type": ["integer", "null"]
69
+ },
70
+ "artifacts": {
71
+ "type": "object",
72
+ "properties": {
73
+ "spec_path": { "type": "string" },
74
+ "plan_path": { "type": "string" },
75
+ "context_snapshot_path": { "type": "string" }
76
+ }
77
+ },
78
+ "timestamp": {
79
+ "type": "string",
80
+ "format": "date-time"
81
+ }
82
+ }
83
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.57",
2
+ "version": "1.1.60",
3
3
  "skills": {
4
4
  "prizm-kit": {
5
5
  "description": "Full-lifecycle dev toolkit. Covers spec-driven development, Prizm context docs, code quality, debugging, deployment, and knowledge management.",
@@ -35,11 +35,19 @@ If you believe the task is better suited for a different workflow, you MUST:
35
35
 
36
36
  **Your ONLY writable outputs are:**
37
37
  1. `.prizmkit/plans/project-brief.md` (`.prizmkit/plans/` — accumulated project context brief)
38
- 2. Project conventions and architecture decisions appended to `CLAUDE.md` / `CODEBUDDY.md` (with user consent)
39
- 3. Infrastructure configuration (database conventions, deployment config, **cloud services**) appended to `CLAUDE.md` / `CODEBUDDY.md` `### Infrastructure` section
38
+ 2. Project conventions and architecture decisions appended to `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` (with user consent)
39
+ 3. Infrastructure configuration (database conventions, deployment config, **cloud services**) appended to `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Infrastructure` section
40
40
  4. `.prizmkit/rules/<layer>-rules.md` — per-layer development rules generated by Rules Configuration
41
41
  5. `.prizmkit/prizm-docs/root.prizm` — `RULES:` pointer line only (not other root.prizm content; created minimally if absent)
42
42
 
43
+ **Project instruction file selection**:
44
+ - If `.prizmkit/manifest.json` exists, use its `platform` field as the source of truth.
45
+ - Codex → `AGENTS.md`
46
+ - Claude Code → `CLAUDE.md`
47
+ - CodeBuddy → `CODEBUDDY.md`
48
+ - `both` → `CLAUDE.md` and `CODEBUDDY.md`; `all` → all three files.
49
+ - Only when the manifest is missing, fall back to installed PrizmKit-owned platform files such as `.codex/agents/*.toml`, `.claude/commands/prizm-kit.md`, or `.codebuddy/skills/prizm-kit/SKILL.md`. Do not treat a generic `.agents/` directory as Codex.
50
+
43
51
  **After planning is complete**, you MUST:
44
52
  1. Present the summary of captured project-level context (vision, conventions, architecture decisions, project brief)
45
53
  2. List the artifacts produced and suggest possible next steps (e.g., `feature-planner`, `prizmkit-plan`, etc.) — but do NOT auto-invoke any of them
@@ -74,7 +82,7 @@ Do NOT use this skill when:
74
82
  - During brainstorm Phase C → also read `${SKILL_DIR}/references/red-team-checklist.md`
75
83
 
76
84
  3. **Project conventions discovery** — after Intent Confirmation, before brainstorm or vision work:
77
- → Read `CLAUDE.md` / `CODEBUDDY.md` and check for `### Project Conventions` section
85
+ → Read `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` and check for `### Project Conventions` section
78
86
  → If section exists and covers the project well → skip silently
79
87
  → If section is missing or incomplete → run the **AI-driven convention discovery** below:
80
88
 
@@ -123,12 +131,12 @@ Do NOT use this skill when:
123
131
  - Propose as many conventions as the project genuinely needs, but don't pad with irrelevant ones
124
132
  - The "Anything I missed?" question is NOT the end — if the user adds items, ask follow-up `AskUserQuestion` calls to clarify those too
125
133
 
126
- → Save answers to `CLAUDE.md` / `CODEBUDDY.md` under `### Project Conventions` section (format: one bullet per convention)
134
+ → Save answers to `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` under `### Project Conventions` section (format: one bullet per convention)
127
135
  → Output format will naturally vary per project — that is the intended behavior
128
136
 
129
137
  **Infrastructure Convention Discovery (Database + Deployment)**
130
138
 
131
- After project conventions are captured, check `CLAUDE.md` / `CODEBUDDY.md` for `### Infrastructure` section:
139
+ After project conventions are captured, check `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` for `### Infrastructure` section:
132
140
 
133
141
  - If `### Infrastructure` section does not exist → this project was not initialized with prizmkit-init's Phase 4.6. Treat as if both database and deployment are undecided — run full inquiry below.
134
142
  - If `<!-- infrastructure: deferred -->` → user explicitly skipped at init time. Ask: "During project init you deferred infrastructure decisions. Would you like to configure them now?" (options: "Yes — configure now (Recommended)", "Skip — decide later")
@@ -195,7 +203,7 @@ Do NOT use this skill when:
195
203
  Use `AskUserQuestion` for both rounds. Each question MUST include a "Skip — decide later" option.
196
204
 
197
205
  **After infrastructure inquiry**:
198
- - Update `CLAUDE.md` / `CODEBUDDY.md` `### Infrastructure` section with all collected information. Replace `<!-- deferred -->` markers with real values. Preserve any existing values that were confirmed unchanged. Full format:
206
+ - Update `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Infrastructure` section with all collected information. Replace `<!-- deferred -->` markers with real values. Preserve any existing values that were confirmed unchanged. Full format:
199
207
  ```markdown
200
208
  ### Infrastructure
201
209
 
@@ -228,7 +236,7 @@ Do NOT use this skill when:
228
236
  - [vendor]: [service type]
229
237
  <!-- If user picked "None" in Round 1, replace this block with: cloud-services: none -->
230
238
  ```
231
- - Items still marked "Skip — decide later" remain as `<!-- [topic]: deferred -->` in CLAUDE.md for `prizmkit-deploy` to pick up later.
239
+ - Items still marked "Skip — decide later" remain as `<!-- [topic]: deferred -->` in the selected project instruction file for `prizmkit-deploy` to pick up later.
232
240
 
233
241
  4. **Project brief accumulation** — throughout all interactive phases:
234
242
  → Read `${SKILL_DIR}/references/project-brief-guide.md` for template and rules
@@ -383,8 +391,8 @@ Proceed to Prerequisites and continue the app-planner workflow.
383
391
  Before questions, check optional context files (never block if absent):
384
392
  - `.prizmkit/prizm-docs/root.prizm` (architecture/project context)
385
393
  - `.prizmkit/config.json` (existing stack preferences and detected tech stack)
386
- - `CLAUDE.md` / `CODEBUDDY.md` `### Project Conventions` section (previously answered project conventions)
387
- - `CLAUDE.md` / `CODEBUDDY.md` `### Infrastructure` section (database and deployment config from prizmkit-init or previous app-planner run)
394
+ - `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Project Conventions` section (previously answered project conventions)
395
+ - `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Infrastructure` section (database and deployment config from prizmkit-init or previous app-planner run)
388
396
 
389
397
  **Tech stack auto-population from config.json:**
390
398
  - If `.prizmkit/config.json` contains a `tech_stack` object, use it to pre-fill tech assumptions.
@@ -429,8 +437,8 @@ This applies to:
429
437
  After initial greeting, use `AskUserQuestion` to confirm intent:
430
438
 
431
439
  **Question**: "What would you like to do?"
432
- - **Produce a project plan (Recommended)** — define vision, tech stack, and constraints generates project-brief.md for pipeline use
433
- - **Explore ideas first** — brainstorm and refine ideas before committing to a plan
440
+ - **Explore ideas first (Recommended)** — brainstorm and refine ideas before committing to a plan
441
+ - **Produce a project plan** — define vision, tech stack, and constraints generates project-brief.md for pipeline use
434
442
  - **Generate project context only** — for an existing project that needs a project brief without full planning
435
443
 
436
444
  Route by answer:
@@ -565,8 +573,8 @@ Checkpoints catch cascading errors early — skipping one means the next phase b
565
573
  | Checkpoint | Artifact/State | Criteria | Phase |
566
574
  |-----------|----------------|----------|-------|
567
575
  | **CP-AP-0** | Intent Confirmed | User confirmed session goal (produce / explore) | 1 |
568
- | **CP-AP-1** | Conventions Checked | Project conventions loaded or asked; `### Project Conventions` section in `CLAUDE.md` / `CODEBUDDY.md` up to date | 1 |
569
- | **CP-AP-1.5** | Infrastructure Checked | Infrastructure config loaded or asked; `### Infrastructure` section in `CLAUDE.md` / `CODEBUDDY.md` addressed — database, deployment **and cloud services** each configured or explicitly deferred | 1-2 |
576
+ | **CP-AP-1** | Conventions Checked | Project conventions loaded or asked; `### Project Conventions` section in `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` up to date | 1 |
577
+ | **CP-AP-1.5** | Infrastructure Checked | Infrastructure config loaded or asked; `### Infrastructure` section in `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` addressed — database, deployment **and cloud services** each configured or explicitly deferred | 1-2 |
570
578
  | **CP-AP-1.6** | Rules Configured | For each detected layer (from config.json or self-detection), rules file exists in `.prizmkit/rules/` or user explicitly skipped. `root.prizm` `RULES:` pointer up-to-date. | 2 |
571
579
  | **CP-AP-2** | Vision Summary | Goal/users/differentiators confirmed by user. For brownfield: existing purpose confirmed or refined. | 1-2 |
572
580
  | **CP-AP-3** | Frontend Design Evaluated | For frontend projects: checked for existing UI/UX design system; user was asked if missing. **Auto-pass** for backend-only or non-UI projects. | 2 |
@@ -578,8 +586,8 @@ Checkpoints catch cascading errors early — skipping one means the next phase b
578
586
  After Phase 2, if framework-shaping architecture decisions emerged during planning (tech stack, communication patterns, data model strategies — not individual feature details), read `${SKILL_DIR}/references/architecture-decisions.md` and follow the capture flow. Most sessions will NOT produce architecture decisions — only capture when genuinely impactful.
579
587
 
580
588
  **How it works**:
581
- 1. If decisions are captured → append to `CLAUDE.md` / `CODEBUDDY.md` under `### Architecture Decisions` section
582
- 2. Downstream skills (feature-planner, prizmkit-plan, etc.) read `CLAUDE.md` / `CODEBUDDY.md` as standard context, so they automatically receive these decisions
589
+ 1. If decisions are captured → append to `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` under `### Architecture Decisions` section
590
+ 2. Downstream skills (feature-planner, prizmkit-plan, etc.) read `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` as standard context, so they automatically receive these decisions
583
591
  3. Do NOT write architecture decision content directly to `.prizmkit/prizm-docs/root.prizm` — that file is maintained by `prizmkit-prizm-docs` and `prizmkit-retrospective`. (The `RULES:` pointer line is managed by Rules Configuration, not by this section.) If the project needs `.prizmkit/prizm-docs/`, recommend the user run `prizmkit-prizm-docs` init after planning.
584
592
 
585
593
  ## Project Brief Accumulation
@@ -612,10 +620,10 @@ When the session appears to be ending:
612
620
  After all checkpoints pass, present a summary and end the session:
613
621
 
614
622
  1. **Summary** (as text): List all project-level artifacts produced:
615
- - Project conventions → `CLAUDE.md` / `CODEBUDDY.md` `### Project Conventions`
616
- - Infrastructure config → `CLAUDE.md` / `CODEBUDDY.md` `### Infrastructure` (database conventions + deployment config)
623
+ - Project conventions → `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Project Conventions`
624
+ - Infrastructure config → `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Infrastructure` (database conventions + deployment config)
617
625
  - Tech stack → `.prizmkit/config.json`
618
- - Architecture decisions (if any) → `CLAUDE.md` / `CODEBUDDY.md` `### Architecture Decisions`
626
+ - Architecture decisions (if any) → `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Architecture Decisions`
619
627
  - Dev rules (if configured) → `.prizmkit/rules/<layer>-rules.md` (with `root.prizm` `RULES:` pointer)
620
628
  - Project brief → `.prizmkit/plans/project-brief.md`
621
629
 
@@ -25,10 +25,14 @@ After Phase 2 (Confirm constraints and tech assumptions), before Phase 3 (Captur
25
25
  ## How to Capture
26
26
 
27
27
  1. **Detect platform** — determine which project instruction file to update:
28
- - `.claude/` directory exists append to `CLAUDE.md`
29
- - `.codebuddy/` directory exists → append to `CODEBUDDY.md`
30
- - Both exist → append to both
31
- - Neither exists skip (no project instruction file)
28
+ - If `.prizmkit/manifest.json` exists, read `platform` and use it as the source of truth.
29
+ - `codex` → append to `AGENTS.md`
30
+ - `claude` → append to `CLAUDE.md`
31
+ - `codebuddy`append to `CODEBUDDY.md`
32
+ - `both` → append to `CLAUDE.md` and `CODEBUDDY.md`; `all` → append to all three files.
33
+ - Only when the manifest is missing, fall back to PrizmKit-owned install artifacts: `.codex/agents/*.toml`, `.claude/commands/prizm-kit.md`, `.codebuddy/skills/prizm-kit/SKILL.md`.
34
+ - Do not treat a generic `.agents/` directory as Codex; it may contain unrelated third-party skills.
35
+ - If no platform can be determined, skip (no project instruction file).
32
36
 
33
37
  2. **Check for existing section** — read the target file and look for `### Architecture Decisions` heading:
34
38
  - If heading exists → append new entries below it (avoid duplicates with existing entries)
@@ -43,6 +47,6 @@ After Phase 2 (Confirm constraints and tech assumptions), before Phase 3 (Captur
43
47
  ```
44
48
 
45
49
  4. **User confirmation** — before writing, show the collected decisions and ask:
46
- > "These architecture decisions were identified during planning. Record them to [CLAUDE.md / CODEBUDDY.md]? (Y/n)"
50
+ > "These architecture decisions were identified during planning. Record them to [AGENTS.md / CLAUDE.md / CODEBUDDY.md]? (Y/n)"
47
51
 
48
52
  If user declines, skip without further prompting.
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Create distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics.
4
4
 
5
- **app-planner context**: In the planning phase, use this guide to establish **design direction decisions** (aesthetic tone, typography approach, color strategy, layout philosophy). Do NOT produce CSS, code, or implementation artifacts — capture the design direction as decisions in the project instruction file (`CLAUDE.md` / `CODEBUDDY.md`). Downstream implementation skills will consume these decisions when building features.
5
+ **app-planner context**: In the planning phase, use this guide to establish **design direction decisions** (aesthetic tone, typography approach, color strategy, layout philosophy). Do NOT produce CSS, code, or implementation artifacts — capture the design direction as decisions in the project instruction file (`AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md`). Downstream implementation skills will consume these decisions when building features.
6
6
 
7
7
  Load this guide **only when the feature involves frontend/UI work**. Skip for backend-only or infrastructure features.
8
8
 
@@ -111,10 +111,17 @@ Before questions, check optional context files (never block if absent):
111
111
  - `.prizmkit/config.json` (existing stack preferences and detected tech stack)
112
112
  - `.prizmkit/plans/project-brief.md` (project context from app-planner, if available)
113
113
  - existing `.prizmkit/plans/feature-list.json` (required for incremental mode)
114
- - `CLAUDE.md` / `CODEBUDDY.md`
114
+ - Platform instruction file: use the `platform` field in `.prizmkit/manifest.json` as source of truth when present (`codex` → `AGENTS.md`, `claude` → `CLAUDE.md`, `codebuddy` `CODEBUDDY.md`; `both`/`all` → read every matching file)
115
115
  - If `.prizmkit/prizm-docs/root.prizm` is absent and the project has existing source code, scan the directory structure to understand the codebase layout:
116
116
  ```bash
117
- find . -maxdepth 2 -type d -not -path '*/node_modules/*' -not -path '*/.git/*' -not -path '*/dist/*' -not -path '*/build/*' -not -path '*/__pycache__/*' -not -path '*/vendor/*' | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
117
+ find . -maxdepth 2 -type d \
118
+ -not -path '*/node_modules/*' -not -path '*/.git/*' \
119
+ -not -path '*/dist/*' -not -path '*/build/*' \
120
+ -not -path '*/__pycache__/*' -not -path '*/vendor/*' \
121
+ -not -path '*/.agents/*' -not -path '*/.codex/*' \
122
+ -not -path '*/.claude/*' -not -path '*/.codebuddy/*' \
123
+ -not -path '*/.prizmkit/*' \
124
+ | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
118
125
  ```
119
126
 
120
127
  **Tech stack from config.json:**
@@ -5,7 +5,7 @@ description: "Project takeover and bootstrap. Scans any project, generates Prizm
5
5
 
6
6
  # PrizmKit Init
7
7
 
8
- Project takeover and bootstrap skill. Scans any project (brownfield or greenfield), generates Prizm documentation and project brief. Supports CodeBuddy, Claude Code, and dual-platform installations.
8
+ Project takeover and bootstrap skill. Scans any project (brownfield or greenfield), generates Prizm documentation and project brief. Supports Codex, Claude Code, CodeBuddy, and multi-platform installations.
9
9
 
10
10
  ### When to Use
11
11
  - Taking over a new project (brownfield or greenfield)
@@ -25,7 +25,7 @@ Project takeover and bootstrap skill. Scans any project (brownfield or greenfiel
25
25
  ## Execution Steps
26
26
 
27
27
  **Phase 1: Platform Detection**
28
- 1. Detect which platform is running (CodeBuddy or Claude Code) via AI CLI environment.
28
+ 1. Detect which platform is running (Codex, Claude Code, or CodeBuddy) via AI CLI environment.
29
29
  2. Hold detected platform value in memory — written to disk in Phase 6 along with other config fields.
30
30
 
31
31
  **Phase 2: Mode Detection**
@@ -71,14 +71,15 @@ BROWNFIELD WORKFLOW (existing project):
71
71
  - TOP-LEVEL modules: directories directly under project root that contain source files or sub-directories with source files (e.g. `src/`, `internal/`, `lib/`)
72
72
  - SUB-MODULES: directories INSIDE a top-level module (e.g. `src/routes/`, `src/models/`)
73
73
  - A sub-module maps to `.prizmkit/prizm-docs/<M>/<S>.prizm`, never to `.prizmkit/prizm-docs/<S>.prizm` — flattening would create ambiguous paths when two modules have identically-named sub-modules
74
- - Exclude: `.git/`, `node_modules/`, `vendor/`, `build/`, `dist/`, `__pycache__/`, `target/`, `bin/`, `.claude/`, `.codebuddy/`, `.prizmkit/`
74
+ - Exclude: `.git/`, `node_modules/`, `vendor/`, `build/`, `dist/`, `__pycache__/`, `target/`, `bin/`, `.agents/`, `.codex/`, `.claude/`, `.codebuddy/`, `.prizmkit/`
75
75
  - **Scan command** — run this to get a 2-level directory tree (excludes noise directories):
76
76
  ```bash
77
77
  find . -maxdepth 2 -type d \
78
78
  -not -path '*/node_modules/*' -not -path '*/.git/*' \
79
79
  -not -path '*/dist/*' -not -path '*/build/*' \
80
80
  -not -path '*/__pycache__/*' -not -path '*/vendor/*' \
81
- -not -path '*/.claude/*' -not -path '*/.codebuddy/*' \
81
+ -not -path '*/.agents/*' -not -path '*/.codex/*' \
82
+ -not -path '*/.claude/*' -not -path '*/.codebuddy/*' \
82
83
  -not -path '*/.prizmkit/*' -not -path '*/target/*' \
83
84
  | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
84
85
  ```
@@ -138,7 +139,7 @@ Detect database and deployment signals, then ask 1-2 brief questions. This phase
138
139
  - If "SaaS platform": follow up with platform selection (Vercel / Railway / Fly.io / Cloudflare / AWS / Other)
139
140
 
140
141
  3. **Write results**:
141
- - Append `### Infrastructure` section to `CLAUDE.md` (or `CODEBUDDY.md` based on detected platform) with detection results and user answers. Format:
142
+ - Append `### Infrastructure` section to the detected platform instruction file (`AGENTS.md` for Codex, `CLAUDE.md` for Claude Code, `CODEBUDDY.md` for CodeBuddy) with detection results and user answers. Format:
142
143
  ```markdown
143
144
  ### Infrastructure
144
145
 
@@ -300,7 +301,7 @@ Layer Detection:
300
301
  Infrastructure Quick Scan:
301
302
  Database: PostgreSQL (Prisma) — detected from dependencies
302
303
  Deployment: Vercel — detected from vercel.json
303
- → Written to CLAUDE.md ### Infrastructure
304
+ → Written to the detected platform instruction file `### Infrastructure`
304
305
 
305
306
  Rules Quick Entry:
306
307
  Matched layers: frontend (React), backend (Express.js), database (Prisma) → keeping default rules
@@ -354,6 +354,8 @@ def detect_code_changes(project_root, main_branch="main"):
354
354
  # Note: .prizmkit/plans/*.json paths are caught by IGNORED_PREFIXES below
355
355
  IGNORED_PREFIXES = (
356
356
  ".prizmkit/",
357
+ ".agents/",
358
+ ".codex/",
357
359
  ".claude/",
358
360
  ".codebuddy/",
359
361
  )