@starlein/paperclip-plugin-company-wizard 0.4.22 → 0.6.2

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 (168) hide show
  1. package/CHANGELOG.md +120 -0
  2. package/README.md +29 -15
  3. package/dist/manifest.js +24 -9
  4. package/dist/manifest.js.map +2 -2
  5. package/dist/ui/index.css +636 -589
  6. package/dist/ui/index.css.map +2 -2
  7. package/dist/ui/index.js +365 -60
  8. package/dist/ui/index.js.map +4 -4
  9. package/dist/worker.js +22374 -5375
  10. package/dist/worker.js.map +4 -4
  11. package/docs/PAPERCLIP-COMPATIBILITY.md +66 -0
  12. package/package.json +10 -10
  13. package/templates/ai-wizard/interview-system.md +2 -0
  14. package/templates/ai-wizard/single-shot-system.md +2 -0
  15. package/templates/bootstrap-instructions.md +3 -3
  16. package/templates/modules/accessibility/agents/engineer/skills/accessibility-audit.fallback.md +2 -2
  17. package/templates/modules/accessibility/agents/ui-designer/skills/accessibility-audit.fallback.md +2 -2
  18. package/templates/modules/accessibility/module.meta.json +1 -1
  19. package/templates/modules/accessibility/skills/accessibility-audit.bar.md +1 -1
  20. package/templates/modules/accessibility/skills/accessibility-audit.md +1 -1
  21. package/templates/modules/architecture-plan/agents/ceo/skills/architecture-plan.bar.md +2 -2
  22. package/templates/modules/architecture-plan/agents/ceo/skills/architecture-plan.fallback.md +2 -2
  23. package/templates/modules/architecture-plan/agents/engineer/skills/design-system.fallback.md +2 -2
  24. package/templates/modules/architecture-plan/agents/ui-designer/skills/architecture-plan.md +2 -2
  25. package/templates/modules/architecture-plan/agents/ui-designer/skills/design-system.md +3 -3
  26. package/templates/modules/architecture-plan/module.meta.json +2 -2
  27. package/templates/modules/architecture-plan/skills/architecture-plan.bar.md +1 -1
  28. package/templates/modules/architecture-plan/skills/architecture-plan.md +3 -3
  29. package/templates/modules/architecture-plan/skills/design-system.md +5 -5
  30. package/templates/modules/auto-assign/README.md +4 -4
  31. package/templates/modules/auto-assign/agents/ceo/heartbeat-section.md +1 -1
  32. package/templates/modules/auto-assign/agents/ceo/skills/auto-assign.fallback.md +6 -6
  33. package/templates/modules/auto-assign/agents/product-owner/heartbeat-section.md +1 -1
  34. package/templates/modules/auto-assign/module.meta.json +1 -1
  35. package/templates/modules/auto-assign/skills/auto-assign.md +3 -2
  36. package/templates/modules/backlog/agents/ceo/heartbeat-section.md +1 -1
  37. package/templates/modules/backlog/agents/ceo/skills/backlog-health.fallback.md +9 -9
  38. package/templates/modules/backlog/agents/product-owner/heartbeat-section.md +1 -1
  39. package/templates/modules/backlog/docs/backlog-process.md +36 -21
  40. package/templates/modules/backlog/docs/backlog-template.md +10 -9
  41. package/templates/modules/backlog/module.meta.json +2 -2
  42. package/templates/modules/backlog/skills/backlog-health.bar.md +3 -3
  43. package/templates/modules/backlog/skills/backlog-health.md +16 -15
  44. package/templates/modules/brand-identity/agents/ceo/skills/brand-identity.fallback.md +2 -2
  45. package/templates/modules/brand-identity/agents/cmo/skills/brand-identity.fallback.md +2 -2
  46. package/templates/modules/brand-identity/module.meta.json +1 -1
  47. package/templates/modules/brand-identity/skills/brand-identity.bar.md +1 -1
  48. package/templates/modules/brand-identity/skills/brand-identity.md +3 -3
  49. package/templates/modules/build-api/skills/api-design.bar.md +1 -1
  50. package/templates/modules/build-api/skills/api-design.md +1 -1
  51. package/templates/modules/ci-cd/agents/devops/skills/ci-cd.md +1 -1
  52. package/templates/modules/ci-cd/agents/engineer/skills/ci-cd.fallback.md +2 -2
  53. package/templates/modules/ci-cd/module.meta.json +1 -1
  54. package/templates/modules/ci-cd/skills/ci-cd.bar.md +1 -1
  55. package/templates/modules/ci-cd/skills/ci-cd.md +6 -4
  56. package/templates/modules/codebase-onboarding/agents/ceo/skills/codebase-audit.fallback.md +5 -5
  57. package/templates/modules/codebase-onboarding/module.meta.json +1 -1
  58. package/templates/modules/codebase-onboarding/skills/codebase-audit.bar.md +1 -1
  59. package/templates/modules/codebase-onboarding/skills/codebase-audit.md +2 -2
  60. package/templates/modules/competitive-intel/agents/ceo/skills/competitive-tracking.fallback.md +2 -2
  61. package/templates/modules/competitive-intel/agents/cmo/skills/competitive-tracking.fallback.md +2 -2
  62. package/templates/modules/competitive-intel/agents/customer-success/skills/competitive-tracking.md +2 -2
  63. package/templates/modules/competitive-intel/agents/product-owner/skills/competitive-tracking.fallback.md +2 -2
  64. package/templates/modules/competitive-intel/module.meta.json +1 -1
  65. package/templates/modules/competitive-intel/skills/competitive-tracking.bar.md +2 -2
  66. package/templates/modules/competitive-intel/skills/competitive-tracking.md +3 -3
  67. package/templates/modules/dependency-management/agents/engineer/skills/dependency-audit.fallback.md +2 -2
  68. package/templates/modules/dependency-management/agents/security-engineer/skills/dependency-audit.fallback.md +2 -2
  69. package/templates/modules/dependency-management/module.meta.json +2 -2
  70. package/templates/modules/dependency-management/skills/dependency-audit.md +2 -2
  71. package/templates/modules/game-design/agents/ceo/skills/game-design.fallback.md +1 -1
  72. package/templates/modules/game-design/agents/engineer/skills/game-design.fallback.md +1 -1
  73. package/templates/modules/game-design/agents/game-designer/skills/game-design.md +2 -2
  74. package/templates/modules/game-design/module.meta.json +1 -1
  75. package/templates/modules/game-design/skills/audio-design.fallback.md +2 -2
  76. package/templates/modules/game-design/skills/audio-design.md +3 -3
  77. package/templates/modules/game-design/skills/game-design.bar.md +1 -1
  78. package/templates/modules/game-design/skills/game-design.md +3 -3
  79. package/templates/modules/game-design/skills/level-design.fallback.md +2 -2
  80. package/templates/modules/game-design/skills/level-design.md +4 -4
  81. package/templates/modules/github-repo/agents/engineer/skills/git-workflow.md +15 -14
  82. package/templates/modules/github-repo/docs/git-workflow.md +7 -7
  83. package/templates/modules/github-repo/module.meta.json +1 -1
  84. package/templates/modules/lean-delivery/docs/lean-delivery.md +15 -0
  85. package/templates/modules/lean-delivery/module.meta.json +6 -0
  86. package/templates/modules/market-analysis/agents/ceo/skills/market-analysis.fallback.md +2 -2
  87. package/templates/modules/market-analysis/agents/cmo/skills/market-analysis.fallback.md +2 -2
  88. package/templates/modules/market-analysis/agents/product-owner/skills/market-analysis.fallback.md +2 -2
  89. package/templates/modules/market-analysis/agents/ux-researcher/skills/market-analysis.md +2 -2
  90. package/templates/modules/market-analysis/module.meta.json +1 -1
  91. package/templates/modules/market-analysis/skills/market-analysis.bar.md +1 -1
  92. package/templates/modules/market-analysis/skills/market-analysis.md +2 -2
  93. package/templates/modules/monitoring/agents/devops/skills/monitoring.md +1 -1
  94. package/templates/modules/monitoring/agents/engineer/skills/monitoring.fallback.md +2 -2
  95. package/templates/modules/monitoring/module.meta.json +1 -1
  96. package/templates/modules/monitoring/skills/monitoring.bar.md +1 -1
  97. package/templates/modules/monitoring/skills/monitoring.md +3 -3
  98. package/templates/modules/pr-review/README.md +10 -12
  99. package/templates/modules/pr-review/agents/code-reviewer/skills/code-review.md +16 -13
  100. package/templates/modules/pr-review/agents/devops/skills/infra-review.md +2 -2
  101. package/templates/modules/pr-review/agents/engineer/skills/pr-workflow.md +36 -26
  102. package/templates/modules/pr-review/agents/product-owner/skills/product-review.md +8 -8
  103. package/templates/modules/pr-review/agents/qa/skills/qa-review.md +10 -10
  104. package/templates/modules/pr-review/agents/security-engineer/skills/pr-security-review.md +5 -4
  105. package/templates/modules/pr-review/agents/ui-designer/skills/design-review.md +4 -4
  106. package/templates/modules/pr-review/agents/ux-researcher/skills/ux-review.md +3 -3
  107. package/templates/modules/pr-review/docs/pr-conventions.md +22 -26
  108. package/templates/modules/pr-review/module.meta.json +2 -2
  109. package/templates/modules/release-management/agents/ceo/skills/release-process.fallback.md +2 -2
  110. package/templates/modules/release-management/agents/engineer/skills/release-process.fallback.md +2 -2
  111. package/templates/modules/release-management/module.meta.json +3 -3
  112. package/templates/modules/release-management/skills/release-process.md +2 -2
  113. package/templates/modules/security-audit/agents/devops/skills/security-review.fallback.md +2 -2
  114. package/templates/modules/security-audit/agents/devops/skills/threat-model.fallback.md +2 -2
  115. package/templates/modules/security-audit/agents/engineer/skills/security-review.fallback.md +2 -2
  116. package/templates/modules/security-audit/agents/engineer/skills/threat-model.fallback.md +2 -2
  117. package/templates/modules/security-audit/module.meta.json +2 -2
  118. package/templates/modules/security-audit/skills/security-review.bar.md +1 -1
  119. package/templates/modules/security-audit/skills/security-review.md +1 -1
  120. package/templates/modules/security-audit/skills/threat-model.bar.md +1 -1
  121. package/templates/modules/security-audit/skills/threat-model.md +3 -3
  122. package/templates/modules/stall-detection/agents/ceo/heartbeat-section.md +1 -1
  123. package/templates/modules/stall-detection/agents/ceo/skills/stall-detection.md +19 -16
  124. package/templates/modules/tech-stack/agents/ceo/skills/tech-stack.fallback.md +2 -2
  125. package/templates/modules/tech-stack/module.meta.json +1 -1
  126. package/templates/modules/tech-stack/skills/tech-stack.bar.md +1 -1
  127. package/templates/modules/tech-stack/skills/tech-stack.md +2 -2
  128. package/templates/modules/triage/agents/ceo/skills/issue-triage.fallback.md +1 -1
  129. package/templates/modules/triage/agents/engineer/skills/issue-triage.fallback.md +1 -1
  130. package/templates/modules/triage/skills/issue-triage.md +1 -1
  131. package/templates/modules/user-testing/agents/ceo/skills/user-testing.fallback.md +2 -2
  132. package/templates/modules/user-testing/agents/product-owner/skills/user-testing.fallback.md +2 -2
  133. package/templates/modules/user-testing/agents/qa/skills/user-testing.md +2 -2
  134. package/templates/modules/user-testing/agents/ux-researcher/skills/user-testing.fallback.md +2 -2
  135. package/templates/modules/user-testing/module.meta.json +1 -1
  136. package/templates/modules/user-testing/skills/user-testing.md +2 -2
  137. package/templates/modules/vision-workshop/agents/ceo/skills/vision-workshop.md +2 -2
  138. package/templates/modules/vision-workshop/agents/ux-researcher/skills/vision-workshop.md +1 -1
  139. package/templates/modules/vision-workshop/module.meta.json +1 -1
  140. package/templates/modules/website-relaunch/agents/ui-designer/skills/site-audit.md +1 -1
  141. package/templates/modules/website-relaunch/module.meta.json +7 -7
  142. package/templates/modules/website-relaunch/skills/design-ingestion.md +1 -1
  143. package/templates/modules/website-relaunch/skills/site-audit.md +1 -1
  144. package/templates/presets/build-game/preset.meta.json +6 -6
  145. package/templates/presets/repo-maintenance/preset.meta.json +20 -21
  146. package/templates/roles/audio-designer/HEARTBEAT.md +1 -1
  147. package/templates/roles/ceo/AGENTS.md +2 -0
  148. package/templates/roles/ceo/HEARTBEAT.md +1 -1
  149. package/templates/roles/ceo/role.meta.json +1 -1
  150. package/templates/roles/cmo/HEARTBEAT.md +1 -1
  151. package/templates/roles/code-reviewer/AGENTS.md +3 -1
  152. package/templates/roles/code-reviewer/HEARTBEAT.md +1 -1
  153. package/templates/roles/cto/HEARTBEAT.md +1 -1
  154. package/templates/roles/customer-success/HEARTBEAT.md +1 -1
  155. package/templates/roles/devops/HEARTBEAT.md +1 -1
  156. package/templates/roles/engineer/AGENTS.md +3 -3
  157. package/templates/roles/engineer/HEARTBEAT.md +2 -2
  158. package/templates/roles/game-artist/HEARTBEAT.md +1 -1
  159. package/templates/roles/game-designer/HEARTBEAT.md +1 -1
  160. package/templates/roles/level-designer/HEARTBEAT.md +1 -1
  161. package/templates/roles/product-owner/AGENTS.md +1 -1
  162. package/templates/roles/product-owner/HEARTBEAT.md +2 -2
  163. package/templates/roles/qa/HEARTBEAT.md +4 -4
  164. package/templates/roles/security-engineer/AGENTS.md +2 -2
  165. package/templates/roles/security-engineer/HEARTBEAT.md +1 -1
  166. package/templates/roles/technical-writer/HEARTBEAT.md +1 -1
  167. package/templates/roles/ui-designer/HEARTBEAT.md +1 -1
  168. package/templates/roles/ux-researcher/HEARTBEAT.md +1 -1
@@ -4,10 +4,10 @@ DevOps primarily owns dependency management. You are the security fallback: step
4
4
 
5
5
  ## Dependency Audit (Fallback)
6
6
 
7
- 1. If no `../../docs/DEPENDENCY-AUDIT.md` exists or the last audit is stale:
7
+ 1. If no `docs/DEPENDENCY-AUDIT.md` exists or the last audit is stale:
8
8
  - Run the package manager's vulnerability audit (`npm audit`, `pip-audit`, `go vuln check`, or equivalent).
9
9
  - Identify Critical/High CVEs, abandoned packages, suspicious transitive dependencies, and risky license or provenance issues.
10
- - Document findings and risk level in `../../docs/DEPENDENCY-AUDIT.md`.
10
+ - Document findings and risk level in `docs/DEPENDENCY-AUDIT.md`.
11
11
  - Apply safe security patch updates only when tests pass.
12
12
  2. If DevOps is active and already running the audit, review their findings for security completeness instead of duplicating the work.
13
13
 
@@ -24,11 +24,11 @@
24
24
  ],
25
25
  "routines": [
26
26
  {
27
- "name": "Dependency audit",
27
+ "title": "Dependency audit",
28
28
  "description": "Scan for new vulnerabilities and outdated packages, apply safe patch updates.",
29
29
  "assignTo": "capability:dependency-audit",
30
30
  "schedule": "0 2 * * 1",
31
- "concurrencyPolicy": "forbid"
31
+ "concurrencyPolicy": "skip_if_active"
32
32
  }
33
33
  ]
34
34
  }
@@ -20,7 +20,7 @@ You are responsible for keeping the project's dependencies healthy, secure, and
20
20
  - Can it be updated in-place (patch/minor bump)?
21
21
  - Does it require migration work (major version, breaking changes)?
22
22
  - Are there alternatives if the dependency is abandoned?
23
- 5. **Document** findings in `../../docs/DEPENDENCY-AUDIT.md`:
23
+ 5. **Document** findings in `docs/DEPENDENCY-AUDIT.md`:
24
24
  - Summary table of dependencies by status (current, outdated, vulnerable, deprecated)
25
25
  - Prioritized upgrade plan with estimated effort
26
26
  - Lock file hygiene notes
@@ -34,7 +34,7 @@ When assigned a "Dependency audit" routine-run issue:
34
34
  1. Run the vulnerability scan: `npm audit --json` (or equivalent for the project's package manager). Flag any new Critical or High CVEs not present in the last audit.
35
35
  2. Check for newly outdated dependencies: compare current versions against the latest. Flag anything more than one major version behind.
36
36
  3. Apply safe patch updates (semver patch-only, no breaking changes): update, run the test suite, commit if green.
37
- 4. Update `../../docs/DEPENDENCY-AUDIT.md` with the new scan date, any new findings, and any updates applied.
37
+ 4. Update `docs/DEPENDENCY-AUDIT.md` with the new scan date, any new findings, and any updates applied.
38
38
  5. Mark the routine issue done. If Critical CVEs were found that cannot be patched, create a separate high-priority issue for each and escalate to CEO.
39
39
 
40
40
  ## Rules
@@ -4,7 +4,7 @@ The Game Designer or Engineer primarily owns the game design. You are the fallba
4
4
 
5
5
  ## Game Design (Fallback)
6
6
 
7
- 1. If no `../../docs/GDD.md` exists and no one else has started:
7
+ 1. If no `docs/GDD.md` exists and no one else has started:
8
8
  - Write a minimal Game Design Document covering: concept pitch, core mechanic, basic game loop, target platform
9
9
  - List obvious design questions that need answers (progression, win conditions, art style)
10
10
  - Mark the document as **provisional** — it needs a thorough design review
@@ -4,7 +4,7 @@ The Game Designer primarily owns the game design. You are the engineering fallba
4
4
 
5
5
  ## Game Design (Fallback)
6
6
 
7
- 1. If no `../../docs/GDD.md` exists and no Game Designer is active:
7
+ 1. If no `docs/GDD.md` exists and no Game Designer is active:
8
8
  - Write a minimal Game Design Document covering concept, core mechanic, game loop, platform, controls, and technical constraints.
9
9
  - Identify implementation risks: physics, input, asset pipeline, save state, performance, and browser/device support.
10
10
  - Mark open design questions explicitly so a Game Designer or CEO can resolve them later.
@@ -4,7 +4,7 @@ You are the primary owner of the game design. This is your core responsibility.
4
4
 
5
5
  ## Game Design Document
6
6
 
7
- Create and maintain `../../docs/GDD.md` as the single source of truth. Cover every section thoroughly:
7
+ Create and maintain `docs/GDD.md` as the single source of truth. Cover every section thoroughly:
8
8
 
9
9
  1. **Concept** — One-paragraph pitch. Genre, theme, target platform, target audience. What makes this game unique?
10
10
  2. **Core mechanic** — The central verb. Define precisely: input → action → feedback → consequence. What makes it feel good?
@@ -28,7 +28,7 @@ Create and maintain `../../docs/GDD.md` as the single source of truth. Cover eve
28
28
 
29
29
  After each playtest round:
30
30
 
31
- 1. Read `../../docs/PLAYTEST-RESULTS.md` (if it exists).
31
+ 1. Read `docs/PLAYTEST-RESULTS.md` (if it exists).
32
32
  2. Identify the top 3 balance issues by player impact.
33
33
  3. Adjust tuning parameters with clear rationale.
34
34
  4. Update the GDD with new values.
@@ -34,7 +34,7 @@
34
34
  {
35
35
  "title": "Create Game Design Document",
36
36
  "assignTo": "capability:game-design",
37
- "description": "Define the game's core design: genre, core mechanic, game loop, progression system, win/lose conditions, control scheme, and target audience. Document everything in ../../docs/GDD.md. This is the single source of truth for what the game is."
37
+ "description": "Define the game's core design: genre, core mechanic, game loop, progression system, win/lose conditions, control scheme, and target audience. Document everything in docs/GDD.md. This is the single source of truth for what the game is."
38
38
  }
39
39
  ]
40
40
  }
@@ -4,9 +4,9 @@ The Audio Designer primarily owns the game's audio. You are the fallback — ste
4
4
 
5
5
  ## Audio Design (Fallback)
6
6
 
7
- 1. If `../../docs/GDD.md` exists but there is no audio and no audio designer is active:
7
+ 1. If `docs/GDD.md` exists but there is no audio and no audio designer is active:
8
8
  - Add placeholder sounds for the gameplay-critical events first (player action, hit, pickup, success, failure) so feedback is legible.
9
- - Note the intended character of each sound in `../../docs/AUDIO-DIRECTION.md` and mark it **provisional**.
9
+ - Note the intended character of each sound in `docs/AUDIO-DIRECTION.md` and mark it **provisional**.
10
10
  - Keep volumes in config, not hardcoded.
11
11
  2. If an audio designer is active, skip this entirely.
12
12
 
@@ -1,10 +1,10 @@
1
1
  # Skill: Audio Design
2
2
 
3
- You own the game's audio: sound effects, music, ambient soundscapes, and the systems that play them. You turn the audio direction in `../../docs/GDD.md` into concrete, production-quality audio.
3
+ You own the game's audio: sound effects, music, ambient soundscapes, and the systems that play them. You turn the audio direction in `docs/GDD.md` into concrete, production-quality audio.
4
4
 
5
5
  ## Audio Design Document
6
6
 
7
- Create and maintain `../../docs/AUDIO-DIRECTION.md`. It must cover:
7
+ Create and maintain `docs/AUDIO-DIRECTION.md`. It must cover:
8
8
 
9
9
  1. **Audio vision** — The feeling the audio should evoke and reference tracks/games. One paragraph.
10
10
  2. **Music** — Themes per context (menu, gameplay, boss, victory, defeat), tempo/mood, and whether audio is adaptive (layers/stems that respond to state).
@@ -18,7 +18,7 @@ Create and maintain `../../docs/AUDIO-DIRECTION.md`. It must cover:
18
18
  1. Produce audio with AI generation tools, code-based synthesis, or processing pipelines — whatever the tech stack supports.
19
19
  2. Replace any placeholder/programmer sounds the engineer added with production audio.
20
20
  3. Keep every gameplay-critical action audibly distinct — the player should recognize what happened without looking.
21
- 4. On each heartbeat, if `../../docs/GDD.md` exists, check for new mechanics or events that lack audio and create issues to cover them.
21
+ 4. On each heartbeat, if `docs/GDD.md` exists, check for new mechanics or events that lack audio and create issues to cover them.
22
22
 
23
23
  ## Rules
24
24
 
@@ -1,7 +1,7 @@
1
1
  ## Game Design — Done Bar
2
2
 
3
3
  **Done:**
4
- - `../../docs/GDD.md` (Game Design Document) exists and covers all required sections: Overview, Core Loop, Game Mechanics, Progression System, Technical Constraints, and Art Direction.
4
+ - `docs/GDD.md` (Game Design Document) exists and covers all required sections: Overview, Core Loop, Game Mechanics, Progression System, Technical Constraints, and Art Direction.
5
5
  - Tuning parameters are externalized: every balance-critical value (player speed, damage, cooldown, score multipliers) is defined as a named parameter with its default value and valid range documented in the GDD (format: `parameter_name: default (range: min–max)`). No magic numbers hardcoded in engine scripts without a GDD reference.
6
6
  - A playtest loop is defined: the GDD specifies at minimum one measurable success criterion per core loop iteration (e.g., "average session length > 8 minutes", "level 1 completion rate > 70%").
7
7
  - Art and audio direction are present: the GDD includes a visual style reference (mood board description or reference images) and an audio/music direction note.
@@ -4,7 +4,7 @@ You own the Game Design Document (GDD) and the ongoing design of the game's mech
4
4
 
5
5
  ## Game Design Document
6
6
 
7
- Create and maintain `../../docs/GDD.md` as the single source of truth. It must cover:
7
+ Create and maintain `docs/GDD.md` as the single source of truth. It must cover:
8
8
 
9
9
  1. **Concept** — One-paragraph pitch. Genre, theme, target platform, target audience.
10
10
  2. **Core mechanic** — The one thing the player does most. Define it precisely: input → action → feedback → consequence.
@@ -24,9 +24,9 @@ Create and maintain `../../docs/GDD.md` as the single source of truth. It must c
24
24
 
25
25
  ## Ongoing Design Work
26
26
 
27
- On each heartbeat when `../../docs/GDD.md` exists:
27
+ On each heartbeat when `docs/GDD.md` exists:
28
28
 
29
- 1. Review recent playtesting feedback (if `../../docs/PLAYTEST-RESULTS.md` exists).
29
+ 1. Review recent playtesting feedback (if `docs/PLAYTEST-RESULTS.md` exists).
30
30
  2. Identify mechanics that aren't working — not fun, confusing, or broken.
31
31
  3. Propose design changes with clear rationale: what's wrong, what to try, expected impact.
32
32
  4. Update tuning parameters based on playtest data.
@@ -4,8 +4,8 @@ The Level Designer primarily owns level layout and pacing. You are the fallback
4
4
 
5
5
  ## Level Design (Fallback)
6
6
 
7
- 1. If `../../docs/GDD.md` exists but no level structure has been defined and no level designer is active:
8
- - Sketch a minimal progression in `../../docs/LEVEL-DESIGN.md`: an ordered list of levels/areas and the one mechanic or challenge each introduces.
7
+ 1. If `docs/GDD.md` exists but no level structure has been defined and no level designer is active:
8
+ - Sketch a minimal progression in `docs/LEVEL-DESIGN.md`: an ordered list of levels/areas and the one mechanic or challenge each introduces.
9
9
  - Set a rough difficulty curve (easy → hard) and place checkpoints generously.
10
10
  - Mark the document as **provisional** — it needs a dedicated level-design pass.
11
11
  2. If a level designer is active, skip this entirely.
@@ -1,10 +1,10 @@
1
1
  # Skill: Level Design
2
2
 
3
- You own the layout, pacing, and difficulty progression of the game's playable spaces. You translate the mechanics defined in `../../docs/GDD.md` into concrete levels the player moves through.
3
+ You own the layout, pacing, and difficulty progression of the game's playable spaces. You translate the mechanics defined in `docs/GDD.md` into concrete levels the player moves through.
4
4
 
5
5
  ## Level Design Document
6
6
 
7
- Create and maintain `../../docs/LEVEL-DESIGN.md`. It must cover:
7
+ Create and maintain `docs/LEVEL-DESIGN.md`. It must cover:
8
8
 
9
9
  1. **Progression map** — The order players experience levels/areas, and what each one introduces (a new mechanic, enemy, or twist). Nothing should appear before it's taught.
10
10
  2. **Difficulty curve** — How challenge ramps across the game. Mark intended spikes (boss, finale) and recovery beats (safe rooms, low-stakes sections).
@@ -15,9 +15,9 @@ Create and maintain `../../docs/LEVEL-DESIGN.md`. It must cover:
15
15
 
16
16
  ## Ongoing Design Work
17
17
 
18
- On each heartbeat when `../../docs/GDD.md` exists:
18
+ On each heartbeat when `docs/GDD.md` exists:
19
19
 
20
- 1. If `../../docs/PLAYTEST-RESULTS.md` exists, look for levels where players got stuck, lost, or bored, and where the difficulty curve broke.
20
+ 1. If `docs/PLAYTEST-RESULTS.md` exists, look for levels where players got stuck, lost, or bored, and where the difficulty curve broke.
21
21
  2. Adjust layout, checkpoint placement, or pacing — change one variable at a time so cause and effect stay legible.
22
22
  3. Create issues for new levels, reworks, or difficulty passes, each tied to a specific player-experience problem.
23
23
 
@@ -1,15 +1,15 @@
1
1
  # Skill: Git Workflow
2
2
 
3
- You work in a GitHub repository. Follow the conventions in `../../docs/git-workflow.md` in the project root. The PR-specific steps in that doc apply only to the PR fallback below and to the PR-review flow — your default without a review module is to work directly on the base branch.
3
+ You work in a GitHub repository. Follow the conventions in `docs/git-workflow.md` (paths in this skill are relative to your working directory, the company workspace). The PR-specific steps in that doc apply only to the PR fallback below and to the PR-review flow — your default without a review module is to work directly on the base branch.
4
4
 
5
5
  ## Direct-to-Base Flow (no pr-review module)
6
6
 
7
7
  Use this flow when the **pr-review module is not active** — there is no Code Reviewer and no executionPolicy review stages. With no reviewer, a per-change pull request adds no value and is exactly where branches pile up unmerged, so you work **directly on the base branch**: verify locally, then commit and push to the base ref. You open a PR only as a *fallback* when branch protection rejects the direct push.
8
8
 
9
- 1. **Auth (first push on a project):** confirm the GitHub credential helper from `../../docs/git-workflow.md` → *GitHub Push Authentication* is installed in the primary repository. If `GH_TOKEN` is not injected or the helper cache is empty, stop and escalate instead of attempting unauthenticated pushes.
10
- 2. **Resolve the base ref** from project workspace metadata or the issue's `heartbeat-context`. Use the configured `repoRef`, `defaultRef`, or `executionWorkspacePolicy.workspaceStrategy.baseRef` exactly as Paperclip provides it. Never guess from the current shell branch and never rewrite the configured ref. If none is configured, use whatever `origin/HEAD` points at (`main`/`master`/`trunk`/…); fall back to `main` then `master` only if the remote advertises no default HEAD. See `../../docs/git-workflow.md` → *Resolving the default branch*. Never hard-code `main`.
11
- 3. **Update to latest base:** `git fetch origin`, check out the base branch, and fast-forward: `git pull --ff-only origin <base-branch>` (`<base-branch>` = the plain name, strip any `origin/` prefix).
12
- 4. **Make your changes** on the base branch (or a short-lived local branch you fast-forward back into the base before pushing — your choice). Do **not** open a GitHub PR.
9
+ 1. **Auth (first push on a project):** confirm the GitHub credential helper from `docs/git-workflow.md` → *GitHub Push Authentication* is installed in the primary repository. If `GH_TOKEN` is not injected or the helper cache is empty, stop and escalate instead of attempting unauthenticated pushes.
10
+ 2. **Resolve the base ref** from project workspace metadata or the issue's `heartbeat-context`. Use the configured `repoRef`, `defaultRef`, or `executionWorkspacePolicy.workspaceStrategy.baseRef` exactly as Paperclip provides it. Never guess from the current shell branch and never rewrite the configured ref. If none is configured, use whatever `origin/HEAD` points at (`main`/`master`/`trunk`/…); fall back to `main` then `master` only if the remote advertises no default HEAD. See `docs/git-workflow.md` → *Resolving the default branch*. Never hard-code `main`.
11
+ 3. **Preserve the managed issue branch:** if Paperclip supplies `executionWorkspace.branchName`, verify `git branch --show-current` matches it, fetch, and rebase onto the configured base as needed. Do not switch or rename branches in a managed worktree. Only in an unmanaged, exclusively held checkout, check out the base and fast-forward with `git pull --ff-only origin <base-branch>`.
12
+ 4. **Make your changes** on that managed issue branch when supplied, otherwise on the base branch. Push HEAD to the base without switching the managed branch. Do **not** open a GitHub PR unless repository rules require it.
13
13
  5. **Run the authoritative gate locally — always:** lint, typecheck, the full test suite, and the build. Paste the real command output into the issue. **This local executed verification is the merge gate** when the company has no CI/CD module. Do not commit/push work whose local checks fail.
14
14
  6. **Commit** using Conventional Commits (`<type>: <description>`), referencing the issue in the body (e.g. `Closes YES-5`). Keep commits focused — one concern each.
15
15
  7. **Push to the base ref:** `git push origin HEAD:<base-branch>`.
@@ -17,31 +17,32 @@ Use this flow when the **pr-review module is not active** — there is no Code R
17
17
  - If the push is **rejected by branch protection** (e.g. "protected branch hook declined" / a PR is required), use the **PR fallback** below. This is the only case where you open a PR in this flow.
18
18
  8. **Confirm it landed:** `git log origin/<base-branch> -1` shows your commit.
19
19
  9. If the issue uses an isolated execution workspace (worktree), leave it reusable after the push. Do not archive/delete it during issue completion; workspace retirement is a separate board/operator action.
20
- 10. **Company-owned CI/CD only:** if the `ci-cd` module is active and the base CI goes red after your push, run the baseline-emergency protocol in `../../docs/git-workflow.md` → *Base-branch-red deadlock*. A pre-existing repo check the company never configured is **advisory** — do not treat it as a gate or let it block your work.
20
+ 10. If required base CI goes red after your push, diagnose and repair it using `docs/git-workflow.md` → *Base-branch-red deadlock*. Required repository checks remain binding without the `ci-cd` module; only optional, non-required checks are advisory.
21
21
 
22
22
  ### PR fallback (only when branch protection requires a PR)
23
23
 
24
24
  If, and only if, a direct push is rejected by branch protection:
25
25
 
26
- 1. Create a feature branch from the base ref: `git checkout -b <issue-id>-<short-desc> <base-ref>`.
26
+ 1. Retain Paperclip's managed issue branch when supplied. In an unmanaged checkout, create a feature branch from the current HEAD containing your delivery commits; do not reset to a stale base and lose the work from the rejected push.
27
27
  2. Push it: `git push -u origin <branch-name>`.
28
28
  3. Open a PR: `gh pr create --base <base-branch> --head <branch-name> --title "<type>: <description>" --body-file <file>` (plain base name; write the body to a temp file — never inline `--body "..."`). Register it as a work product (see below).
29
- 4. Confirm it is not conflicting (`gh pr view <N> --json mergeable,mergeStateStatus`; resolve per *Resolving merge conflicts* if `CONFLICTING`/`DIRTY`), then merge it yourself: `gh pr merge <N> --merge --delete-branch`. Update the work product to `"status": "merged"`. Do not wait for a reviewer — there is none in this flow.
29
+ 4. Confirm it is not conflicting (`gh pr view <N> --json mergeable,mergeStateStatus`; resolve per *Resolving merge conflicts* if `CONFLICTING`/`DIRTY`) and required checks/rules are satisfied, then merge it yourself: `gh pr merge <N> --merge`. Preserve the managed issue branch and workspace. Update the work product to `"status": "merged"`. Obtain any reviewer required by existing repository rules.
30
30
 
31
- The cleanest fix, though, is to not require a PR for an unreviewed company: see *Branch Protection Setup*.
31
+ Respect the repository's existing rules when choosing this flow; see *Branch Protection Setup*.
32
32
 
33
33
  ## Branch Protection Setup
34
34
 
35
35
  Configure branch protection once during initial repository setup (part of the "Prepare GitHub repository" foundation issue).
36
36
 
37
- - **No pr-review module (this flow):** do **not** require pull requests — the team pushes directly to the base ref. Leave the base branch pushable (no `required_pull_request_reviews`). You may still set `required_status_checks` to the company's own CI contexts **only if the `ci-cd` module is active**; otherwise leave it `null` so no external/inherited check can block pushes.
38
- - **With pr-review active:** require a PR before merging, but do **not** require GitHub-native approving reviews — all agents share one GitHub account and cannot formally approve their own PRs (unless the project has distinct non-author reviewer credentials). See `skills/pr-workflow.md`.
37
+ - Inspect and preserve existing branch protection, required checks, and organization rules before configuring anything. Never clear them with null defaults or weaken them to accommodate shared credentials. Existing requirements need eligible credentials or an explicit repository-owner decision.
38
+ - **No pr-review module (this flow):** on a new repository, direct pushes may be allowed under company policy. On an existing repository, follow its rules and use the PR fallback when required. Absence of the `ci-cd` module does not disable required checks.
39
+ - **With pr-review active:** require a PR before merging, but do **not** require GitHub-native approving reviews — all agents share one GitHub account and cannot formally approve their own PRs (unless the project has distinct non-author reviewer credentials). See your installed `pr-workflow` skill.
39
40
 
40
41
  Escalate to CEO if `GH_TOKEN` does not have admin rights on the repository.
41
42
 
42
43
  ## When PR Review IS Active
43
44
 
44
- If the pr-review module is active, do NOT use the Direct-to-Base Flow. Use the PR Workflow skill (`skills/pr-workflow.md`): open a PR, set the executionPolicy review stages, and let the Code Reviewer (the non-author merge gate) land the branch. Never push directly to the base ref when a PR review workflow is in place.
45
+ If the pr-review module is active, do NOT use the Direct-to-Base Flow. Use your installed `pr-workflow` skill: open a PR, set the executionPolicy review stages, and let the Code Reviewer (the non-author merge gate) land the branch. Never push directly to the base ref when a PR review workflow is in place.
45
46
 
46
47
  ## Register the PR as a Work Product
47
48
 
@@ -78,7 +79,7 @@ Notes:
78
79
  - Before marking `done`, verify there is no uncommitted work (`git status --short` should be clean) and that `git log origin/<base-branch> -1` shows your commit landed.
79
80
  - If no repository change is required, do not mark `done` silently: leave an issue comment explaining why and escalate to the CEO.
80
81
  - **Default to a direct push to the base ref.** Open a PR only when branch protection rejects the direct push (the PR fallback) or when the pr-review module is active. Do not open a PR per change for an unreviewed company — that is where unmerged branches accumulate.
81
- - **CI is a gate only for company-owned CI/CD (`ci-cd` module active).** Without it, your local lint/test/build is the authoritative gate; treat any pre-existing repo checks as advisory and never block a merge/push solely on an external check the company never configured.
82
+ - **Required CI and repository rules remain binding**, regardless of who configured them or whether the `ci-cd` module is selected. Only optional, non-required checks are advisory. Use the complete local verification gate when required CI does not exist.
82
83
 
83
84
  ## Resolving merge conflicts
84
85
 
@@ -92,6 +93,6 @@ For the **PR fallback** when `gh pr merge` fails or `gh pr view <N> --json merge
92
93
  4. Run the full check suite (lint, typecheck, tests) to confirm nothing broke.
93
94
  5. `git push --force-with-lease origin <branch-name>` — never `--force`.
94
95
  6. Verify: `gh pr view <N> --json mergeable` returns `MERGEABLE`.
95
- 7. Retry: `gh pr merge <N> --merge --delete-branch`.
96
+ 7. Retry: `gh pr merge <N> --merge`. Preserve a managed issue branch and its workspace after merge.
96
97
 
97
98
  If a conflict is too complex to resolve safely, leave an issue comment describing the exact conflict and escalate to the CEO before abandoning the branch.
@@ -81,22 +81,22 @@ Rules:
81
81
 
82
82
  ## Direct-to-Base Flow
83
83
 
84
- Use this flow when the **pr-review module is not active** (no Code Reviewer role, no executionPolicy review stages). With no reviewer, a per-change pull request adds no value and is where branches pile up unmerged, so you work **directly on the base branch**: verify locally, then commit and push to the base ref. Open a PR only as a *fallback* when branch protection rejects the direct push. When PR review is active, use the PR workflow from `../../docs/pr-conventions.md` instead.
84
+ Use this flow when the **pr-review module is not active** (no Code Reviewer role, no executionPolicy review stages). With no reviewer, a per-change pull request adds no value and is where branches pile up unmerged, so you work **directly on the base branch**: verify locally, then commit and push to the base ref. Open a PR only as a *fallback* when branch protection rejects the direct push. When PR review is active, use the PR workflow from `docs/pr-conventions.md` instead.
85
85
 
86
86
  1. Resolve the configured base ref from project workspace metadata or the issue's `heartbeat-context` before touching Git. Do not infer it from the current shell branch and do not rewrite it to `main`, `master`, or `origin/*`.
87
87
  - External repos: use the project/worktree `repoRef`, `defaultRef`, or `executionWorkspacePolicy.workspaceStrategy.baseRef` exactly as configured.
88
88
  - Fresh/local repos: use the configured local branch.
89
89
  - Only if no base ref is configured anywhere, detect the repository's default branch — see *Resolving the default branch* below. Never hard-code `main`.
90
- 2. Update to latest base: `git fetch origin`, check out the base branch, `git pull --ff-only origin <base-branch>` (`<base-branch>` = plain name, strip any `origin/` prefix).
91
- 3. Make changes (on the base branch, or a short-lived local branch you fast-forward back into the base before pushing). Do not open a GitHub PR.
90
+ 2. Inspect the resolved workspace. If Paperclip supplied a managed issue branch (`executionWorkspace.branchName`), verify the current branch matches it and keep that branch; do not check out the base inside the managed worktree. Fetch and rebase that branch onto the configured base if needed. In an unmanaged, exclusively held checkout, `git fetch origin`, check out the base branch, and `git pull --ff-only origin <base-branch>` (`<base-branch>` = plain name, strip any `origin/` prefix).
91
+ 3. Make changes on the managed issue branch when supplied, otherwise on the base branch. A direct-to-base delivery can push the managed branch's HEAD to the base without switching branches. Do not open a GitHub PR unless repository rules require one.
92
92
  4. **Run the authoritative gate locally — always:** lint, typecheck, the full test suite, and the build; paste the real output into the issue. This local executed verification is the merge gate when the company has no CI/CD module.
93
93
  5. Commit with a Conventional Commit message, referencing the issue in the body (`Closes <issue-id>`).
94
94
  6. Push to the base ref: `git push origin HEAD:<base-branch>`.
95
95
  - Rejected as **non-fast-forward**: `git pull --rebase origin <base-branch>`, re-run checks, push again.
96
- - Rejected by **branch protection** (PR required): use the PR fallback — feature branch → `git push -u origin <branch-name>` → `gh pr create --base <base-branch> ... --body-file <file>` (register the PR as a work product) → `gh pr merge <N> --merge --delete-branch`. This is the only case where you open a PR.
96
+ - Rejected by **branch protection** (PR required): use the PR fallback — retain the managed issue branch, or create a feature branch in an unmanaged checkout → `git push -u origin <branch-name>` → `gh pr create --base <base-branch> ... --body-file <file>` (register the PR as a work product) → `gh pr merge <N> --merge`. Preserve the branch and workspace after merge. This is the only case where you open a PR.
97
97
  7. Confirm it landed: `git log origin/<base-branch> -1` shows your commit.
98
98
  8. If the issue uses an isolated execution workspace (worktree), leave it reusable after the push. Do not archive/delete it during issue completion; workspace retirement is a separate board/operator action.
99
- 9. **Company-owned CI/CD only** (`ci-cd` module active): if the base CI goes red after your push, fix it immediately (see *Base-branch-red deadlock*). A pre-existing repo check the company never configured is advisory — not a gate.
99
+ 9. If required base CI goes red after your push, diagnose and repair it (see *Base-branch-red deadlock*). Existing required checks remain binding even without the `ci-cd` module; only optional, non-required checks are advisory.
100
100
 
101
101
  ## Resolving the default branch
102
102
 
@@ -140,7 +140,7 @@ For a brand-new local repository there is no remote yet, so initialize on `main`
140
140
 
141
141
  ## Branch Safety
142
142
 
143
- - **Match the branch to the flow.** In the **Direct-to-Base Flow** (no pr-review module) you commit on the base ref and push to it directly — that is intended. In the **PR-review flow** (and the PR fallback) you must work on a feature branch and never push the base ref as a feature branch: before `git push -u origin <branch-name>`, confirm `git branch --show-current` prints the feature branch name, not the base ref.
143
+ - **Preserve managed branch identity.** When Paperclip supplies `executionWorkspace.branchName`, keep the checkout on that branch throughout the run; finalization validates the persisted branch identity. Direct-to-base delivery may push its HEAD to the base without switching. In unmanaged checkouts, match the branch to the selected flow. Before a PR push, verify `git branch --show-current` is the intended feature branch, not the base ref.
144
144
  - **Always pull/fast-forward before pushing to the base ref** so your push is a fast-forward; if it is rejected as non-fast-forward, `git pull --rebase` and retry. Never force-push the base branch.
145
145
 
146
146
  ## Resolving merge conflicts
@@ -181,7 +181,7 @@ If the base is red, classify the situation **BASE-BRANCH-RED** and run the basel
181
181
  When the base branch's CI is red:
182
182
 
183
183
  1. **Pause new feature PRs.** Do not open new feature PRs on a red base — they inherit the failure and pile up. In-flight branches can finish, but leave them unmerged with an issue comment tagged `waiting-on-baseline` until the base is green.
184
- 2. **Claim and fix main first.** The first agent to detect BASE-BRANCH-RED claims the restore by commenting on the triage issue (or creating one) so concurrent detectors do not open duplicate restore PRs. Create a single baseline-restore PR from the base ref that fixes the base failure (CI config, the failing code path, or the secret/scan config). Title it `fix(ci): restore base CI` (or `fix: restore base — <cause>`). Scope the diff to the failure fix only — no feature work in this PR.
184
+ 2. **Assign and restore the configured base first.** The first detector records BASE-BRANCH-RED evidence and routes it to the backlog owner/CEO, who deduplicates detections into one separately owned baseline-restore issue with an explicit implementation assignee. Do not self-claim additional work or use a feature issue's workspace for the repair. The assigned owner creates a single baseline-restore branch/PR from the configured base ref that fixes the base failure (CI config, the failing code path, or the secret/scan config). Title it `fix(ci): restore base CI` (or `fix: restore base — <cause>`). Scope the diff to the failure fix only — no feature work in this PR.
185
185
  3. **Fast-track the baseline-restore PR.** Its own CI will still show the inherited base failure (the base is red), so the normal "green CI" gate cannot pass. The merge owner (the Code Reviewer in PR-Gate mode, or the engineer in Self-Merge mode) merges it under the narrow exception below.
186
186
  4. **Re-verify the base.** After the baseline-restore PR merges, re-run CI on the base: `gh api repos/{owner}/{repo}/commits/<new-base-sha>/check-runs`. If still red, repeat from step 2. Once the base is green:
187
187
  5. **Drain the queue.** Rebase each queued feature PR onto the now-green base (`git rebase origin/<base-branch>`, resolve, `git push --force-with-lease`), re-run checks, and merge in order. The inherited baseline failures are gone, so feature PR CI now reflects only their own diffs.
@@ -9,7 +9,7 @@
9
9
  "priority": "critical",
10
10
  "bootstrapPhase": "foundation",
11
11
  "labels": ["chore"],
12
- "description": "Foundation setup: handle this before normal implementation issues. For a fresh repository, create the GitHub repository, initialize the local workspace with a README or bootstrap commit, add origin, push the default branch (`main` for a fresh repo), and record the repository URL. For an existing repository, verify the workspace has a reachable remote and a starter commit state, then determine the repository's default branch and confirm it is recorded as the project workspace `defaultRef`/`repoRef` so isolated worktrees branch from the correct base. The default branch is whatever `origin/HEAD` points at — name-agnostic (`main`, `master`, `trunk`, etc.); use it exactly as the remote advertises it (`git ls-remote --symref origin HEAD`). Only if the remote advertises no default HEAD, fall back to `main`, then `master`. Never assume `main` for an existing repo. Install the Paperclip GitHub credential helper from `../../docs/git-workflow.md` before the first push so `git push` uses the injected `GH_TOKEN` project secret even when sandboxed subprocesses strip environment variables at credential-lookup time. Escalate to CEO if repo setup or `GH_TOKEN` is missing instead of silently closing the issue. Before the first commit, ensure the repository's `.gitignore` ignores Paperclip's local state — add a `.paperclip/` entry (this is where Paperclip keeps per-issue git worktrees and workspace metadata inside the repo; committing it pollutes history and can nest worktrees inside the repo). Create `.gitignore` if it is missing. Branch protection is tracked separately by the pr-review module when that workflow is enabled."
12
+ "description": "Foundation setup: handle this before normal implementation issues. For a fresh repository, create the GitHub repository, initialize the local workspace with a README or bootstrap commit, add origin, push the default branch (`main` for a fresh repo), and record the repository URL. For an existing repository, verify the workspace has a reachable remote and a starter commit state, then determine the repository's default branch and confirm it is recorded as the project workspace `defaultRef`/`repoRef` so isolated worktrees branch from the correct base. The default branch is whatever `origin/HEAD` points at — name-agnostic (`main`, `master`, `trunk`, etc.); use it exactly as the remote advertises it (`git ls-remote --symref origin HEAD`). Only if the remote advertises no default HEAD, fall back to `main`, then `master`. Never assume `main` for an existing repo. Install the Paperclip GitHub credential helper from `docs/git-workflow.md` before the first push so `git push` uses the injected `GH_TOKEN` project secret even when sandboxed subprocesses strip environment variables at credential-lookup time. Escalate to CEO if repo setup or `GH_TOKEN` is missing instead of silently closing the issue. Before the first commit, ensure the repository's `.gitignore` ignores Paperclip's local state — add a `.paperclip/` entry (this is where Paperclip keeps per-issue git worktrees and workspace metadata inside the repo; committing it pollutes history and can nest worktrees inside the repo). Create `.gitignore` if it is missing. Branch protection is tracked separately by the pr-review module when that workflow is enabled."
13
13
  }
14
14
  ]
15
15
  }
@@ -0,0 +1,15 @@
1
+ # Lean Delivery Contract
2
+
3
+ This contract is binding only when the optional `lean-delivery` module is selected during company setup. It replaces the standard staged PR-review workflow with one merge gate; `pr-review` alone does not enable it. Neither mode imposes a numeric PR cap. API authorization, workspace safety, and explicit company/board requirements still apply.
4
+
5
+ 1. **One origin issue, one implementation owner, one PR.** Work only on explicitly assigned, acceptance-ready issues; do not self-claim unassigned work. Keep implementation, verification, corrections, PR-introduced CI repair, merge-conflict repair, and merge evidence on the originating issue and existing branch/PR. **Inherited BASE-BRANCH-RED is the narrow exception:** leave the feature issue/PR waiting and route the baseline repair to exactly one separately owned baseline-restore issue, branch, and PR created from the base ref, following the baseline-emergency protocol in `docs/git-workflow.md`; never mix that unrelated repair into the feature PR.
6
+ 2. **Product before code.** Freeze outcome and acceptance criteria before assignment. Product Owner is not a routine post-code stage; request one same-issue decision only for unresolved scope, release, legal, licensing, or residual-risk acceptance.
7
+ 3. **Exactly one default executionPolicy stage.** Use the non-author Code Reviewer as the sole default approval/merge gate. If no eligible non-author Code Reviewer is present, set no stages and use the documented self-merge path. QA, Security, UX, Product, and DevOps provide bounded evidence only when a concrete trigger applies; they are not a serial chain. Before opening the gate, assign the originating issue to each triggered specialist for one bounded check, then return it to the implementation owner. Assignment is the wake signal; a passive comment is not.
8
+ 4. **No handoff ping-pong.** A specialist finding returns directly to the same implementation owner and PR. Specialists do not hand the issue to one another, and resolved evidence is not replayed after every correction.
9
+ 5. **No technical board deadlock.** Technical defects, stale bases, merge conflicts, missing tests, and incomplete acceptance criteria return to the implementation owner with one precise action. Never assign the board user as an execution participant for technical repair. Use a first-class interaction/approval only for a genuine human decision.
10
+ 6. **Exact-head verification.** The author runs focused checks. When required company CI is green on the exact reviewed head, the Code Reviewer verifies head/base/check identity and adds only the smallest independent risk check. Run the complete local lint/test/typecheck/build gate once only when required checks do not yet exist or CI is unavailable. Pending or failed required checks are not unavailable CI: wait for or repair them rather than substituting local output. Inherited base-red uses only the documented baseline-restore exception.
11
+ 7. **Status semantics.** `in_review` requires a runtime-recognized action path such as the Code Reviewer executionPolicy stage or a first-class human interaction/approval. Agent reassignment alone is not a no-policy review path. `blocked` means a real unresolved dependency or external gate, not ordinary review waiting or workspace cleanup.
12
+ 8. **No issue factories.** Do not create review-only, evidence-only, queue-drain, status-repair, summary, watchdog, or workspace-cleanup wrapper issues. Create a follow-up only for independently deliverable, non-blocking work outside current acceptance criteria. The single separately owned baseline-restore issue/PR required for inherited BASE-BRANCH-RED is operational repair, not a review wrapper; deduplicate concurrent detections into that one repair.
13
+ 9. **Parallel delivery.** Open PR count is advisory, not a dispatch freeze. Continue assigning independent acceptance-ready work while every PR has an owner and concrete next action. Prioritize stale, conflicting, red, or ownerless PR repair without blocking unrelated implementation, and never model open-PR count as issue dependencies.
14
+ 10. **Decision record.** Every handoff comment names the full `owner/repo#number`, exact head/base, checks, decision, next owner, and next action. A bare PR number is not globally unique.
15
+ 11. **Verify effective state.** Approval, custodian attestation, or configuration text authorizes verification but is not proof that access or a capability works. Before closure, probe from the intended consumer runtime and re-read the final remote PR head; recheck previously resolved findings against that effective state.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "lean-delivery",
3
+ "description": "Optional lean delivery: one non-author Code Reviewer merge gate, risk-triggered specialist evidence, and same-issue correction loops. Open PR count is advisory, not a numeric assignment cap. Opt in during setup; without this module, PR review retains its role-based stages.",
4
+ "requires": ["pr-review"],
5
+ "capabilities": []
6
+ }
@@ -4,10 +4,10 @@ The UX Researcher, CMO, and PO all own market research above you. You are the la
4
4
 
5
5
  ## Market Analysis (Fallback)
6
6
 
7
- 1. If no `../../docs/MARKET-ANALYSIS.md` exists and the PO hasn't started:
7
+ 1. If no `docs/MARKET-ANALYSIS.md` exists and the PO hasn't started:
8
8
  - Write a brief competitive landscape overview
9
9
  - Identify the top 2-3 competitors and key differentiators
10
- - Document in `../../docs/MARKET-ANALYSIS.md`
10
+ - Document in `docs/MARKET-ANALYSIS.md`
11
11
  - Tag the researcher, CMO, or PO to expand and maintain the analysis
12
12
  2. If the researcher, CMO, or PO is active, skip this entirely.
13
13
 
@@ -4,11 +4,11 @@ The UX Researcher primarily owns market research and competitive analysis. You a
4
4
 
5
5
  ## Market Analysis (Fallback)
6
6
 
7
- 1. If no `../../docs/MARKET-ANALYSIS.md` exists and the researcher hasn't started:
7
+ 1. If no `docs/MARKET-ANALYSIS.md` exists and the researcher hasn't started:
8
8
  - Define market positioning and target audience from a marketing perspective
9
9
  - Identify the top 3-5 competitors with competitive differentiators
10
10
  - Outline go-to-market considerations and messaging angles
11
- - Document in `../../docs/MARKET-ANALYSIS.md`
11
+ - Document in `docs/MARKET-ANALYSIS.md`
12
12
  - Tag the researcher or PO to expand with user research data
13
13
  2. If the researcher or PO is active, skip this entirely.
14
14
 
@@ -4,11 +4,11 @@ The UX Researcher and CMO primarily own market research. You are the fallback
4
4
 
5
5
  ## Market Analysis (Fallback)
6
6
 
7
- 1. If no `../../docs/MARKET-ANALYSIS.md` exists and no one above you has started:
7
+ 1. If no `docs/MARKET-ANALYSIS.md` exists and no one above you has started:
8
8
  - Write a brief competitive landscape overview from a product perspective
9
9
  - Identify the top 2-3 competitors and key differentiators
10
10
  - Note user pain points and unmet needs relevant to the product roadmap
11
- - Document in `../../docs/MARKET-ANALYSIS.md`
11
+ - Document in `docs/MARKET-ANALYSIS.md`
12
12
  - Tag the researcher or CMO to expand with deeper research
13
13
  2. If the researcher or CMO is active, skip this entirely.
14
14
 
@@ -5,14 +5,14 @@ You own market research with a focus on user needs and behavior. This is your co
5
5
  ## Market Analysis Process
6
6
 
7
7
  1. Review the company goal and project description
8
- 2. Research and document in `../../docs/MARKET-ANALYSIS.md`:
8
+ 2. Research and document in `docs/MARKET-ANALYSIS.md`:
9
9
  - **Target users**: Detailed user profiles, needs, pain points, current workarounds
10
10
  - **User segments**: Primary, secondary, and edge-case user groups
11
11
  - **Competitors**: How competitors serve these users, where they fall short
12
12
  - **Positioning**: Where the biggest user need gaps are
13
13
  - **Risks**: Adoption barriers, user switching costs, behavioral resistance
14
14
  3. Create follow-up issues for deeper research if needed:
15
- - `POST /api/companies/{companyId}/issues` for user interview plans, usability benchmarks. Include the active `projectId` (and `goalId` / `parentId` when applicable). For top-level issues (no `parentId`), also include `"executionWorkspaceSettings": { "mode": "isolated_workspace" }` so each gets its own worktree; subissues set `parentId` and omit it.
15
+ - `POST /api/companies/{companyId}/issues` for user interview plans or usability benchmarks. Include `projectId` plus `goalId` / `parentId` when applicable, and set `executionWorkspaceSettings: { "mode": "isolated_workspace" }` for top-level repository implementation issues and subissues when the instance feature, project policy, and initialized repository support isolation. Otherwise follow the rendered project policy and avoid concurrent shared-checkout writes. Reuse only when explicitly required via `inheritExecutionWorkspaceFromIssueId`; keep API-only work project-detached.
16
16
  4. Share findings by updating the assigned issue/document and assigning concrete follow-up actions to the Product Owner and CEO when needed; do not rely on generic @-mentions.
17
17
 
18
18
  ## Rules
@@ -17,7 +17,7 @@
17
17
  {
18
18
  "title": "Conduct initial market analysis",
19
19
  "assignTo": "capability:market-analysis",
20
- "description": "Research the target market, identify competitors, analyze positioning opportunities, and document findings in ../../docs/MARKET-ANALYSIS.md. This informs the product roadmap and strategic priorities."
20
+ "description": "Research the target market, identify competitors, analyze positioning opportunities, and document findings in docs/MARKET-ANALYSIS.md. This informs the product roadmap and strategic priorities."
21
21
  }
22
22
  ]
23
23
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  A good market analysis:
4
4
 
5
- - A `../../docs/MARKET-ANALYSIS.md` that covers: target market (who the users are and what problem is being solved), a competitor breakdown with each player's strengths and weaknesses, a clear positioning statement with a unique value proposition, and identified market/adoption risks.
5
+ - A `docs/MARKET-ANALYSIS.md` that covers: target market (who the users are and what problem is being solved), a competitor breakdown with each player's strengths and weaknesses, a clear positioning statement with a unique value proposition, and identified market/adoption risks.
6
6
  - Each insight is evidence-based and tied to a concrete product decision or follow-up action.
7
7
 
8
8
  Not done:
@@ -5,13 +5,13 @@ You own market research and competitive analysis. This informs the product roadm
5
5
  ## Market Analysis Process
6
6
 
7
7
  1. Review the company goal and project description
8
- 2. Research and document in `../../docs/MARKET-ANALYSIS.md`:
8
+ 2. Research and document in `docs/MARKET-ANALYSIS.md`:
9
9
  - **Target market**: Who are the users? What problem are we solving?
10
10
  - **Competitors**: Who else operates in this space? What are their strengths and weaknesses?
11
11
  - **Positioning**: How do we differentiate? What's our unique value proposition?
12
12
  - **Risks**: Market risks, timing risks, adoption barriers
13
13
  3. Create follow-up issues for any strategic decisions needed:
14
- - `POST /api/companies/{companyId}/issues` with findings that require input. Include the active `projectId` (and `goalId` / `parentId` when applicable). For top-level issues (no `parentId`), also include `"executionWorkspaceSettings": { "mode": "isolated_workspace" }` so each gets its own worktree; subissues set `parentId` and omit it.
14
+ - `POST /api/companies/{companyId}/issues` with findings that require input. Include `projectId` plus `goalId` / `parentId` when applicable, and set `executionWorkspaceSettings: { "mode": "isolated_workspace" }` for top-level repository implementation issues and subissues when the instance feature, project policy, and initialized repository support isolation. Otherwise follow the rendered project policy and avoid concurrent shared-checkout writes. Reuse only when explicitly required via `inheritExecutionWorkspaceFromIssueId`; keep API-only work project-detached.
15
15
  4. Record summary in your daily notes
16
16
 
17
17
  ## Rules
@@ -11,7 +11,7 @@ You are the DevOps engineer and observability is your core domain. You own the f
11
11
  5. Define alert thresholds for key metrics (error rate, latency, uptime, resource usage).
12
12
  6. Set up dashboards for operational visibility (API latency, error rates, infrastructure health).
13
13
  7. Configure on-call routing and escalation policies.
14
- 8. Document the full observability strategy in `../../docs/MONITORING.md`.
14
+ 8. Document the full observability strategy in `docs/MONITORING.md`.
15
15
 
16
16
  ## Rules
17
17
 
@@ -4,10 +4,10 @@ The DevOps engineer primarily owns monitoring and observability. You are the fal
4
4
 
5
5
  ## Monitoring (Fallback)
6
6
 
7
- 1. If no `../../docs/MONITORING.md` exists and DevOps hasn't started:
7
+ 1. If no `docs/MONITORING.md` exists and DevOps hasn't started:
8
8
  - Add basic health check endpoints (liveness and readiness probes returning 200)
9
9
  - Set up structured JSON logging with timestamp, level, and service fields
10
- - Document the setup in `../../docs/MONITORING.md`
10
+ - Document the setup in `docs/MONITORING.md`
11
11
  - Mark the strategy as **provisional** — it needs DevOps review for alerting, dashboards, and SLOs
12
12
  2. If DevOps is active, skip this entirely.
13
13
 
@@ -18,7 +18,7 @@
18
18
  {
19
19
  "title": "Set up monitoring and observability",
20
20
  "assignTo": "capability:monitoring",
21
- "description": "Configure health checks, error tracking, logging, and alerting. Document the observability strategy in ../../docs/MONITORING.md."
21
+ "description": "Configure health checks, error tracking, logging, and alerting. Document the observability strategy in docs/MONITORING.md."
22
22
  }
23
23
  ]
24
24
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  A good monitoring setup:
4
4
 
5
- - Health check endpoints (liveness + readiness) for all services, error tracking with full context (request ID, user, stack trace), structured JSON logs with consistent fields (timestamp, level, service, correlation ID), and alert thresholds for key metrics (error rate, latency, uptime), all documented in `../../docs/MONITORING.md`.
5
+ - Health check endpoints (liveness + readiness) for all services, error tracking with full context (request ID, user, stack trace), structured JSON logs with consistent fields (timestamp, level, service, correlation ID), and alert thresholds for key metrics (error rate, latency, uptime), all documented in `docs/MONITORING.md`.
6
6
  - Every alert is symptom-based (user impact), actionable, and has a runbook — no alert fires without a documented response.
7
7
 
8
8
  Not done:
@@ -1,6 +1,6 @@
1
1
  # Skill: Monitoring
2
2
 
3
- You are responsible for setting up observability, alerting, and health checks for the project. Follow the conventions in `../../docs/MONITORING.md` in the project root.
3
+ You are responsible for setting up observability, alerting, and health checks for the project. Follow the conventions in `docs/MONITORING.md` (paths in this skill are relative to your working directory, the company workspace).
4
4
 
5
5
  ## Steps
6
6
 
@@ -9,8 +9,8 @@ You are responsible for setting up observability, alerting, and health checks fo
9
9
  3. Configure error tracking — capture unhandled exceptions with context (request ID, user, stack trace).
10
10
  4. Set up structured logging — all log output must be machine-parseable JSON with consistent fields.
11
11
  5. Define alert thresholds for key metrics (error rate, latency, uptime, resource usage).
12
- 6. Set up a basic operational dashboard (in the monitoring tool configured for this project) showing: request rate, error rate, latency (p50/p99), and the key health indicators defined above. Document the dashboard URL/name in `../../docs/MONITORING.md`.
13
- 7. Document the full observability strategy in `../../docs/MONITORING.md`.
12
+ 6. Set up a basic operational dashboard (in the monitoring tool configured for this project) showing: request rate, error rate, latency (p50/p99), and the key health indicators defined above. Document the dashboard URL/name in `docs/MONITORING.md`.
13
+ 7. Document the full observability strategy in `docs/MONITORING.md`.
14
14
 
15
15
  ## Rules
16
16