@starlein/paperclip-plugin-company-wizard 0.2.1

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 (248) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +748 -0
  3. package/dist/manifest.js +91 -0
  4. package/dist/manifest.js.map +7 -0
  5. package/dist/ui/index.css +1647 -0
  6. package/dist/ui/index.css.map +7 -0
  7. package/dist/ui/index.js +6738 -0
  8. package/dist/ui/index.js.map +7 -0
  9. package/dist/worker.js +8247 -0
  10. package/dist/worker.js.map +7 -0
  11. package/package.json +73 -0
  12. package/templates/ai-wizard/config-format.md +21 -0
  13. package/templates/ai-wizard/interview-system.md +67 -0
  14. package/templates/ai-wizard/messages.json +6 -0
  15. package/templates/ai-wizard/single-shot-system.md +42 -0
  16. package/templates/bootstrap-instructions.md +30 -0
  17. package/templates/modules/accessibility/agents/engineer/skills/accessibility-audit.fallback.md +18 -0
  18. package/templates/modules/accessibility/agents/ui-designer/skills/accessibility-audit.fallback.md +18 -0
  19. package/templates/modules/accessibility/module.meta.json +22 -0
  20. package/templates/modules/accessibility/skills/accessibility-audit.md +27 -0
  21. package/templates/modules/architecture-plan/agents/ceo/skills/architecture-plan.fallback.md +16 -0
  22. package/templates/modules/architecture-plan/agents/engineer/skills/design-system.fallback.md +17 -0
  23. package/templates/modules/architecture-plan/agents/ui-designer/skills/architecture-plan.md +19 -0
  24. package/templates/modules/architecture-plan/agents/ui-designer/skills/design-system.md +24 -0
  25. package/templates/modules/architecture-plan/docs/architecture-template.md +38 -0
  26. package/templates/modules/architecture-plan/docs/design-system-template.md +61 -0
  27. package/templates/modules/architecture-plan/module.meta.json +37 -0
  28. package/templates/modules/architecture-plan/skills/architecture-plan.md +23 -0
  29. package/templates/modules/auto-assign/README.md +23 -0
  30. package/templates/modules/auto-assign/agents/ceo/heartbeat-section.md +9 -0
  31. package/templates/modules/auto-assign/agents/ceo/skills/auto-assign.fallback.md +18 -0
  32. package/templates/modules/auto-assign/agents/product-owner/heartbeat-section.md +10 -0
  33. package/templates/modules/auto-assign/module.meta.json +27 -0
  34. package/templates/modules/auto-assign/skills/auto-assign.md +23 -0
  35. package/templates/modules/backlog/README.md +26 -0
  36. package/templates/modules/backlog/agents/ceo/heartbeat-section.md +10 -0
  37. package/templates/modules/backlog/agents/ceo/skills/backlog-health.fallback.md +20 -0
  38. package/templates/modules/backlog/agents/product-owner/heartbeat-section.md +15 -0
  39. package/templates/modules/backlog/docs/backlog-process.md +62 -0
  40. package/templates/modules/backlog/docs/backlog-template.md +53 -0
  41. package/templates/modules/backlog/module.meta.json +31 -0
  42. package/templates/modules/backlog/skills/backlog-health.md +47 -0
  43. package/templates/modules/brand-identity/agents/ceo/skills/brand-identity.fallback.md +19 -0
  44. package/templates/modules/brand-identity/agents/cmo/skills/brand-identity.fallback.md +19 -0
  45. package/templates/modules/brand-identity/docs/brand-identity-template.md +43 -0
  46. package/templates/modules/brand-identity/module.meta.json +22 -0
  47. package/templates/modules/brand-identity/skills/brand-identity.md +30 -0
  48. package/templates/modules/build-api/module.meta.json +118 -0
  49. package/templates/modules/build-api/skills/api-design.md +43 -0
  50. package/templates/modules/ci-cd/agents/devops/skills/ci-cd.md +28 -0
  51. package/templates/modules/ci-cd/agents/engineer/skills/ci-cd.fallback.md +18 -0
  52. package/templates/modules/ci-cd/docs/ci-cd-template.md +42 -0
  53. package/templates/modules/ci-cd/module.meta.json +105 -0
  54. package/templates/modules/ci-cd/skills/ci-cd.md +26 -0
  55. package/templates/modules/codebase-onboarding/agents/ceo/skills/codebase-audit.fallback.md +19 -0
  56. package/templates/modules/codebase-onboarding/module.meta.json +24 -0
  57. package/templates/modules/codebase-onboarding/skills/codebase-audit.md +45 -0
  58. package/templates/modules/competitive-intel/agents/ceo/skills/competitive-tracking.fallback.md +17 -0
  59. package/templates/modules/competitive-intel/agents/cmo/skills/competitive-tracking.fallback.md +17 -0
  60. package/templates/modules/competitive-intel/agents/customer-success/skills/competitive-tracking.md +25 -0
  61. package/templates/modules/competitive-intel/module.meta.json +23 -0
  62. package/templates/modules/competitive-intel/skills/competitive-tracking.md +27 -0
  63. package/templates/modules/dependency-management/agents/engineer/skills/dependency-audit.fallback.md +18 -0
  64. package/templates/modules/dependency-management/module.meta.json +25 -0
  65. package/templates/modules/dependency-management/skills/dependency-audit.md +43 -0
  66. package/templates/modules/documentation/agents/ceo/skills/project-docs.fallback.md +16 -0
  67. package/templates/modules/documentation/agents/engineer/skills/project-docs.fallback.md +16 -0
  68. package/templates/modules/documentation/module.meta.json +22 -0
  69. package/templates/modules/documentation/skills/project-docs.md +25 -0
  70. package/templates/modules/game-design/agents/ceo/skills/game-design.fallback.md +17 -0
  71. package/templates/modules/game-design/agents/game-designer/skills/game-design.md +51 -0
  72. package/templates/modules/game-design/docs/engine-phaser.md +310 -0
  73. package/templates/modules/game-design/docs/engine-pixijs.md +289 -0
  74. package/templates/modules/game-design/docs/engine-threejs.md +304 -0
  75. package/templates/modules/game-design/docs/gdd-template.md +72 -0
  76. package/templates/modules/game-design/module.meta.json +22 -0
  77. package/templates/modules/game-design/skills/game-design.md +41 -0
  78. package/templates/modules/github-repo/README.md +23 -0
  79. package/templates/modules/github-repo/agents/engineer/skills/git-workflow.md +23 -0
  80. package/templates/modules/github-repo/docs/git-workflow.md +50 -0
  81. package/templates/modules/github-repo/module.meta.json +12 -0
  82. package/templates/modules/hiring-review/agents/ceo/skills/hiring-review.fallback.md +17 -0
  83. package/templates/modules/hiring-review/module.meta.json +21 -0
  84. package/templates/modules/hiring-review/skills/hiring-review.md +24 -0
  85. package/templates/modules/launch-mvp/module.meta.json +86 -0
  86. package/templates/modules/market-analysis/agents/ceo/skills/market-analysis.fallback.md +17 -0
  87. package/templates/modules/market-analysis/agents/cmo/skills/market-analysis.fallback.md +19 -0
  88. package/templates/modules/market-analysis/agents/product-owner/skills/market-analysis.fallback.md +18 -0
  89. package/templates/modules/market-analysis/agents/ux-researcher/skills/market-analysis.md +23 -0
  90. package/templates/modules/market-analysis/docs/market-analysis-template.md +32 -0
  91. package/templates/modules/market-analysis/module.meta.json +23 -0
  92. package/templates/modules/market-analysis/skills/market-analysis.md +21 -0
  93. package/templates/modules/monitoring/agents/devops/skills/monitoring.md +23 -0
  94. package/templates/modules/monitoring/agents/engineer/skills/monitoring.fallback.md +18 -0
  95. package/templates/modules/monitoring/docs/monitoring-template.md +46 -0
  96. package/templates/modules/monitoring/module.meta.json +24 -0
  97. package/templates/modules/monitoring/skills/monitoring.md +20 -0
  98. package/templates/modules/pr-review/README.md +43 -0
  99. package/templates/modules/pr-review/agents/code-reviewer/skills/code-review.md +29 -0
  100. package/templates/modules/pr-review/agents/devops/skills/infra-review.md +29 -0
  101. package/templates/modules/pr-review/agents/engineer/skills/pr-workflow.md +24 -0
  102. package/templates/modules/pr-review/agents/product-owner/skills/product-review.md +27 -0
  103. package/templates/modules/pr-review/agents/qa/skills/qa-review.md +29 -0
  104. package/templates/modules/pr-review/agents/ui-designer/skills/design-review.md +29 -0
  105. package/templates/modules/pr-review/agents/ux-researcher/skills/ux-review.md +29 -0
  106. package/templates/modules/pr-review/docs/pr-conventions.md +78 -0
  107. package/templates/modules/pr-review/module.meta.json +24 -0
  108. package/templates/modules/release-management/agents/engineer/skills/release-process.fallback.md +18 -0
  109. package/templates/modules/release-management/module.meta.json +25 -0
  110. package/templates/modules/release-management/skills/release-process.md +45 -0
  111. package/templates/modules/security-audit/agents/devops/skills/security-review.fallback.md +17 -0
  112. package/templates/modules/security-audit/agents/devops/skills/threat-model.fallback.md +17 -0
  113. package/templates/modules/security-audit/agents/engineer/skills/security-review.fallback.md +17 -0
  114. package/templates/modules/security-audit/agents/engineer/skills/threat-model.fallback.md +17 -0
  115. package/templates/modules/security-audit/module.meta.json +36 -0
  116. package/templates/modules/security-audit/skills/security-review.md +25 -0
  117. package/templates/modules/security-audit/skills/threat-model.md +22 -0
  118. package/templates/modules/stall-detection/README.md +27 -0
  119. package/templates/modules/stall-detection/agents/ceo/heartbeat-section.md +12 -0
  120. package/templates/modules/stall-detection/agents/ceo/skills/stall-detection.md +21 -0
  121. package/templates/modules/stall-detection/module.meta.json +15 -0
  122. package/templates/modules/tech-stack/agents/ceo/skills/tech-stack.fallback.md +16 -0
  123. package/templates/modules/tech-stack/docs/tech-stack-template.md +28 -0
  124. package/templates/modules/tech-stack/module.meta.json +21 -0
  125. package/templates/modules/tech-stack/skills/tech-stack.md +25 -0
  126. package/templates/modules/triage/agents/ceo/skills/issue-triage.fallback.md +19 -0
  127. package/templates/modules/triage/module.meta.json +25 -0
  128. package/templates/modules/triage/skills/issue-triage.md +42 -0
  129. package/templates/modules/user-testing/agents/ceo/skills/user-testing.fallback.md +17 -0
  130. package/templates/modules/user-testing/agents/product-owner/skills/user-testing.fallback.md +17 -0
  131. package/templates/modules/user-testing/agents/qa/skills/user-testing.md +30 -0
  132. package/templates/modules/user-testing/agents/ux-researcher/skills/user-testing.fallback.md +18 -0
  133. package/templates/modules/user-testing/docs/user-testing-template.md +37 -0
  134. package/templates/modules/user-testing/module.meta.json +23 -0
  135. package/templates/modules/user-testing/skills/user-testing.md +27 -0
  136. package/templates/modules/vision-workshop/agents/ceo/skills/vision-workshop.md +23 -0
  137. package/templates/modules/vision-workshop/agents/ux-researcher/skills/vision-workshop.md +19 -0
  138. package/templates/modules/vision-workshop/docs/vision-template.md +28 -0
  139. package/templates/modules/vision-workshop/module.meta.json +12 -0
  140. package/templates/modules/website-relaunch/agents/ui-designer/skills/site-audit.md +65 -0
  141. package/templates/modules/website-relaunch/module.meta.json +168 -0
  142. package/templates/modules/website-relaunch/skills/design-ingestion.md +111 -0
  143. package/templates/modules/website-relaunch/skills/site-audit.md +54 -0
  144. package/templates/presets/build-api/preset.meta.json +16 -0
  145. package/templates/presets/build-game/preset.meta.json +150 -0
  146. package/templates/presets/content/preset.meta.json +20 -0
  147. package/templates/presets/fast/preset.meta.json +16 -0
  148. package/templates/presets/full/preset.meta.json +22 -0
  149. package/templates/presets/gtm/preset.meta.json +21 -0
  150. package/templates/presets/launch-mvp/preset.meta.json +17 -0
  151. package/templates/presets/launch-pack/preset.meta.json +25 -0
  152. package/templates/presets/quality/preset.meta.json +17 -0
  153. package/templates/presets/rad/preset.meta.json +19 -0
  154. package/templates/presets/repo-maintenance/preset.meta.json +104 -0
  155. package/templates/presets/research/preset.meta.json +13 -0
  156. package/templates/presets/secure/preset.meta.json +22 -0
  157. package/templates/presets/startup/preset.meta.json +19 -0
  158. package/templates/presets/website-relaunch/preset.meta.json +18 -0
  159. package/templates/roles/audio-designer/AGENTS.md +29 -0
  160. package/templates/roles/audio-designer/HEARTBEAT.md +37 -0
  161. package/templates/roles/audio-designer/SOUL.md +17 -0
  162. package/templates/roles/audio-designer/TOOLS.md +3 -0
  163. package/templates/roles/audio-designer/role.meta.json +14 -0
  164. package/templates/roles/ceo/AGENTS.md +28 -0
  165. package/templates/roles/ceo/HEARTBEAT.md +75 -0
  166. package/templates/roles/ceo/SOUL.md +33 -0
  167. package/templates/roles/ceo/TOOLS.md +3 -0
  168. package/templates/roles/ceo/role.meta.json +14 -0
  169. package/templates/roles/cfo/AGENTS.md +31 -0
  170. package/templates/roles/cfo/HEARTBEAT.md +37 -0
  171. package/templates/roles/cfo/SOUL.md +17 -0
  172. package/templates/roles/cfo/TOOLS.md +3 -0
  173. package/templates/roles/cfo/role.meta.json +17 -0
  174. package/templates/roles/cmo/AGENTS.md +31 -0
  175. package/templates/roles/cmo/HEARTBEAT.md +37 -0
  176. package/templates/roles/cmo/SOUL.md +17 -0
  177. package/templates/roles/cmo/TOOLS.md +3 -0
  178. package/templates/roles/cmo/role.meta.json +17 -0
  179. package/templates/roles/code-reviewer/AGENTS.md +42 -0
  180. package/templates/roles/code-reviewer/HEARTBEAT.md +33 -0
  181. package/templates/roles/code-reviewer/SOUL.md +18 -0
  182. package/templates/roles/code-reviewer/TOOLS.md +3 -0
  183. package/templates/roles/code-reviewer/role.meta.json +12 -0
  184. package/templates/roles/cto/AGENTS.md +30 -0
  185. package/templates/roles/cto/HEARTBEAT.md +45 -0
  186. package/templates/roles/cto/SOUL.md +25 -0
  187. package/templates/roles/cto/TOOLS.md +3 -0
  188. package/templates/roles/cto/role.meta.json +18 -0
  189. package/templates/roles/customer-success/AGENTS.md +42 -0
  190. package/templates/roles/customer-success/HEARTBEAT.md +33 -0
  191. package/templates/roles/customer-success/SOUL.md +17 -0
  192. package/templates/roles/customer-success/TOOLS.md +3 -0
  193. package/templates/roles/customer-success/role.meta.json +17 -0
  194. package/templates/roles/devops/AGENTS.md +31 -0
  195. package/templates/roles/devops/HEARTBEAT.md +42 -0
  196. package/templates/roles/devops/SOUL.md +17 -0
  197. package/templates/roles/devops/TOOLS.md +3 -0
  198. package/templates/roles/devops/role.meta.json +17 -0
  199. package/templates/roles/engineer/AGENTS.md +29 -0
  200. package/templates/roles/engineer/HEARTBEAT.md +39 -0
  201. package/templates/roles/engineer/SOUL.md +20 -0
  202. package/templates/roles/engineer/TOOLS.md +3 -0
  203. package/templates/roles/engineer/role.meta.json +13 -0
  204. package/templates/roles/game-artist/AGENTS.md +29 -0
  205. package/templates/roles/game-artist/HEARTBEAT.md +37 -0
  206. package/templates/roles/game-artist/SOUL.md +24 -0
  207. package/templates/roles/game-artist/TOOLS.md +3 -0
  208. package/templates/roles/game-artist/role.meta.json +14 -0
  209. package/templates/roles/game-designer/AGENTS.md +29 -0
  210. package/templates/roles/game-designer/HEARTBEAT.md +37 -0
  211. package/templates/roles/game-designer/SOUL.md +17 -0
  212. package/templates/roles/game-designer/TOOLS.md +3 -0
  213. package/templates/roles/game-designer/role.meta.json +14 -0
  214. package/templates/roles/level-designer/AGENTS.md +29 -0
  215. package/templates/roles/level-designer/HEARTBEAT.md +37 -0
  216. package/templates/roles/level-designer/SOUL.md +17 -0
  217. package/templates/roles/level-designer/TOOLS.md +3 -0
  218. package/templates/roles/level-designer/role.meta.json +13 -0
  219. package/templates/roles/product-owner/AGENTS.md +29 -0
  220. package/templates/roles/product-owner/HEARTBEAT.md +35 -0
  221. package/templates/roles/product-owner/SOUL.md +17 -0
  222. package/templates/roles/product-owner/TOOLS.md +3 -0
  223. package/templates/roles/product-owner/role.meta.json +14 -0
  224. package/templates/roles/qa/AGENTS.md +31 -0
  225. package/templates/roles/qa/HEARTBEAT.md +37 -0
  226. package/templates/roles/qa/SOUL.md +17 -0
  227. package/templates/roles/qa/TOOLS.md +3 -0
  228. package/templates/roles/qa/role.meta.json +17 -0
  229. package/templates/roles/security-engineer/AGENTS.md +42 -0
  230. package/templates/roles/security-engineer/HEARTBEAT.md +33 -0
  231. package/templates/roles/security-engineer/SOUL.md +17 -0
  232. package/templates/roles/security-engineer/TOOLS.md +3 -0
  233. package/templates/roles/security-engineer/role.meta.json +17 -0
  234. package/templates/roles/technical-writer/AGENTS.md +41 -0
  235. package/templates/roles/technical-writer/HEARTBEAT.md +32 -0
  236. package/templates/roles/technical-writer/SOUL.md +17 -0
  237. package/templates/roles/technical-writer/TOOLS.md +3 -0
  238. package/templates/roles/technical-writer/role.meta.json +16 -0
  239. package/templates/roles/ui-designer/AGENTS.md +29 -0
  240. package/templates/roles/ui-designer/HEARTBEAT.md +37 -0
  241. package/templates/roles/ui-designer/SOUL.md +17 -0
  242. package/templates/roles/ui-designer/TOOLS.md +3 -0
  243. package/templates/roles/ui-designer/role.meta.json +17 -0
  244. package/templates/roles/ux-researcher/AGENTS.md +29 -0
  245. package/templates/roles/ux-researcher/HEARTBEAT.md +37 -0
  246. package/templates/roles/ux-researcher/SOUL.md +17 -0
  247. package/templates/roles/ux-researcher/TOOLS.md +3 -0
  248. package/templates/roles/ux-researcher/role.meta.json +14 -0
package/README.md ADDED
@@ -0,0 +1,748 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/starlein/paperclip-plugin-company-wizard/main/public/favicon.svg" alt="Company Wizard" width="48" height="48">
3
+ <h1 align="center">Company Wizard</h1>
4
+ <p align="center">
5
+ <strong>Bootstrap AI agent teams from modular templates.</strong>
6
+ </p>
7
+ <p align="center">
8
+ <a href="https://github.com/starlein/paperclip-plugin-company-wizard/pkgs/npm/paperclip-plugin-company-wizard"><img src="https://img.shields.io/badge/GitHub%20Packages-@starlein%2Fpaperclip--plugin--company--wizard-blue" alt="GitHub Packages"></a>
9
+ <a href="https://github.com/starlein/paperclip-plugin-company-wizard/actions/workflows/ci.yml"><img src="https://github.com/starlein/paperclip-plugin-company-wizard/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
10
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License"></a>
11
+ <a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%3E%3D20-brightgreen" alt="Node.js"></a>
12
+ </p>
13
+ </p>
14
+
15
+ ---
16
+
17
+ **Company Wizard** is a [Paperclip](https://github.com/paperclipai/paperclip) plugin that bootstraps an AI agent company for your project — roles, workflows, skills, and tasks — in a few clicks. Open it from the sidebar, answer a few questions (or just describe your project), and it assembles the workspace files and creates the company + CEO in Paperclip. The CEO then hires the team and sets up the backlog on its first heartbeat.
18
+
19
+ <br>
20
+
21
+ **npm package installation (Paperclip > Settings > Plugins > Install Plugin):**
22
+
23
+ ```bash
24
+ @starlein/paperclip-plugin-company-wizard
25
+ ```
26
+
27
+ <br>
28
+
29
+ ## Table of Contents
30
+
31
+ - [Two Ways to Start](#two-ways-to-start)
32
+ - [How Roles Work](#how-roles-work)
33
+ - [Presets](#presets)
34
+ - [Modules](#modules)
35
+ - [Roles](#roles)
36
+ - [Configuration](#configuration)
37
+ - [Development](#development)
38
+ - [Extending](#extending)
39
+ - [How It Works](#how-it-works)
40
+ - [Changelog](#changelog)
41
+ - [Contributing](#contributing)
42
+
43
+ <br>
44
+
45
+ ## Two Ways to Start
46
+
47
+ ### AI mode
48
+
49
+ Describe your project in plain language. The wizard analyzes it and picks the right preset, modules, and roles automatically.
50
+
51
+ > *"A fintech startup building a payment API, security is critical"*
52
+ > → selects `secure` preset, Security Engineer + Product Owner roles, provisions everything
53
+
54
+ Great for getting started fast when you're not sure which template fits.
55
+
56
+ ### Manual mode
57
+
58
+ Walk through the steps yourself: name your company, set a goal, pick a preset, add modules, choose roles. Each step shows descriptions and hover-card previews so you know what you're getting.
59
+
60
+ Before provisioning, you can **open any generated file and edit it inline** — tweak a persona, adjust a workflow, or add role-specific context.
61
+
62
+ <br>
63
+
64
+ ## How Roles Work
65
+
66
+ Every company starts with just the **CEO** — and that's already a functional team. Add roles and responsibilities shift automatically:
67
+
68
+ - Add an **Engineer** → they take over implementation, git workflow, and technical decisions
69
+ - Add a **Product Owner** → they take over backlog management and auto-assignment from the CEO
70
+ - Add a **UX Researcher** → they become the primary market analyst
71
+ - Add **DevOps** → they own CI/CD and monitoring (instead of Engineer or CEO)
72
+
73
+ No role is ever truly missing. When a specialist isn't present, the next best available person steps in. The CEO is always the final fallback.
74
+
75
+ <details>
76
+ <summary><strong>Full capability ownership table</strong></summary>
77
+
78
+ Start with just a CEO. Everything works. Add roles and responsibilities shift automatically:
79
+
80
+ | Capability | Primary Owner | Fallback | Module |
81
+ | :--------- | :------------ | :------- | :----- |
82
+ | `market-analysis` | UX Researcher → CMO → Product Owner | CEO | market-analysis |
83
+ | `hiring-review` | Product Owner | CEO | hiring-review |
84
+ | `backlog-health` | Product Owner | CEO | backlog |
85
+ | `auto-assign` | Product Owner | CEO | auto-assign |
86
+ | `user-testing` | QA → UX Researcher → Product Owner | CEO | user-testing |
87
+ | `brand-identity` | UI Designer → CMO | CEO | brand-identity |
88
+ | `ci-cd` | DevOps | Engineer | ci-cd |
89
+ | `monitoring` | DevOps | Engineer | monitoring |
90
+ | `tech-stack` | Engineer | CEO | tech-stack |
91
+ | `architecture-plan` | Engineer | CEO | architecture-plan |
92
+ | `design-system` | UI Designer | Engineer | architecture-plan |
93
+ | `pr-review` | Code Reviewer / Product Owner / UI Designer / UX Researcher / QA / DevOps | — | pr-review |
94
+ | `threat-model` | Security Engineer → DevOps | Engineer | security-audit |
95
+ | `security-review` | Security Engineer → DevOps | Engineer | security-audit |
96
+ | `project-docs` | Technical Writer → Engineer | CEO | documentation |
97
+ | `competitive-tracking` | Customer Success → CMO → Product Owner | CEO | competitive-intel |
98
+ | `accessibility-audit` | QA → UI Designer | Engineer | accessibility |
99
+ | `codebase-audit` | Engineer | CEO | codebase-onboarding |
100
+ | `issue-triage` | Product Owner → Engineer | CEO | triage |
101
+ | `dependency-audit` | DevOps → Security Engineer | Engineer | dependency-management |
102
+ | `release-process` | DevOps → Engineer | CEO | release-management |
103
+ | `game-design` | Game Designer → Engineer | CEO | game-design |
104
+ | `stall-detection` | CEO (always) | — | stall-detection |
105
+ | `vision-workshop` | CEO (always) | — | vision-workshop |
106
+
107
+ **How it works:** Primary owners get the full skill. Fallback owners get a safety-net variant that only activates when the primary is absent or stalled.
108
+
109
+ > **Example:** CEO only? They handle everything — strategy, backlog, auto-assign. Add an Engineer and they take over implementation. Add a Product Owner and they take over backlog management, with the CEO as fallback.
110
+
111
+ </details>
112
+
113
+ <br>
114
+
115
+ ## Presets
116
+
117
+ Presets are curated starting points that bundle a set of modules and optional roles for a specific use case. Pick one in the wizard and you're ready to go — or use it as a base and add modules on top.
118
+
119
+ | Preset | Modules | Best for |
120
+ | :----- | :------ | :------- |
121
+ | **`fast`** | github-repo, backlog, auto-assign, stall-detection | Solo engineer, prototypes, MVPs |
122
+ | **`quality`** | + pr-review, + Product Owner, + Code Reviewer | Teams, production systems |
123
+ | **`rad`** | + tech-stack, + hiring-review | Rapid prototyping, formalize later |
124
+ | **`startup`** | + vision, market, hiring, tech, architecture | Strategy-first, grow organically |
125
+ | **`research`** | vision, market, tech, hiring (no repo/code) | Planning phase only |
126
+ | **`full`** | All modules + Product Owner + Code Reviewer | Full planning + quality engineering |
127
+ | **`secure`** | + security-audit, + Security Engineer + Code Reviewer + PO | Regulated industries, fintech, healthtech |
128
+ | **`gtm`** | + competitive-intel, brand-identity, + CMO + Customer Success + PO | Market-facing products, competitive positioning |
129
+ | **`content`** | + documentation, accessibility, + Technical Writer + PO | Dev tools, documentation-heavy projects |
130
+ | **`launch-mvp`** | launch-mvp, github-repo, backlog, auto-assign, stall-detection | Ship a first version end-to-end |
131
+ | **`build-api`** | build-api, github-repo, backlog, auto-assign, ci-cd, stall-detection | Build a REST/GraphQL API from scratch |
132
+ | **`website-relaunch`** | website-relaunch, github-repo, pr-review, backlog, auto-assign, stall-detection + UI Designer + PO | Relaunch a website with external design assets |
133
+ | **`repo-maintenance`** | triage, codebase-onboarding, dependency-management, release-management, github-repo, pr-review, backlog, auto-assign, stall-detection + Code Reviewer + PO | Maintain an existing repository |
134
+ | **`build-game`** | game-design, tech-stack, github-repo, backlog, auto-assign, stall-detection + Game Designer + Game Artist + Audio Designer | Build a game from idea to release |
135
+ | **`launch-pack`** | vision-workshop, market-analysis, competitive-intel, brand-identity, tech-stack, architecture-plan, launch-mvp, github-repo, backlog, auto-assign, stall-detection + CTO + CMO | Full executive team launch: strategy, tech, and marketing from day one |
136
+
137
+ > **`fast`** is for a single engineer — multiple engineers without review will cause conflicts.
138
+ >
139
+ > **`research`** has no code workflow. Add `github-repo` and `backlog` when ready to build.
140
+
141
+ <details>
142
+ <summary><strong>Preset details</strong></summary>
143
+
144
+ **fast** — Solo engineer, direct-to-main, automated backlog. No review, no planning phase.
145
+
146
+ **quality** — Full review pipeline. Product Owner manages backlog and product alignment, Code Reviewer gates code quality. Feature branches with PR workflow.
147
+
148
+ **rad** — Rapid Application Development. Pick a tech stack, start building, hire when you hit bottlenecks. No upfront market research or architecture formalization — prototype first, learn from what you build, formalize later.
149
+
150
+ **startup** — Strategy-first. Starts with vision, market analysis, tech evaluation, and hiring review before any code. Grow the team through board approvals.
151
+
152
+ **research** — Planning only. Vision, market research, tech evaluation, and team assessment. No repo, no code workflow. Upgrade to `startup` or `full` when ready to build.
153
+
154
+ **full** — Everything. Full strategic planning, quality engineering with PR review, team growth via hiring review. Product Owner and Code Reviewer included. Best for serious projects that need both strategy and engineering rigor.
155
+
156
+ **secure** — Security-first. Threat modeling, security reviews, and quality gates on top of full planning and PR review. Security Engineer, Code Reviewer, and Product Owner included. Best for regulated industries, fintech, healthtech, or any project where security is a hard requirement.
157
+
158
+ **gtm** — Go-to-market focused. Competitive intelligence, market analysis, and brand identity. CMO for marketing strategy, Customer Success for competitive tracking, Product Owner for backlog. Best for products entering or competing in established markets.
159
+
160
+ **content** — Content and documentation focused. Technical Writer for developer docs and guides, accessibility for inclusive design, market analysis for positioning. Best for developer tools, documentation-heavy projects, or content-driven products.
161
+
162
+ **website-relaunch** — Relaunch an existing website with external design assets. Site audit, design ingestion, implementation, content migration, QA, and go-live. UI Designer for design analysis, Product Owner for backlog management. Includes a user-assigned "Provide design assets" issue as the entry point — upload your agency's designs, the team handles the rest.
163
+
164
+ **repo-maintenance** — Custodial maintenance for existing repositories. Agents review and merge open PRs, triage inbound GitHub issues, audit codebase health, manage dependencies, and handle releases. Code Reviewer for PR quality gates, Product Owner for issue triage and backlog. Inline goal bootstraps the team through repo onboarding, process setup, initial sweep, and steady-state maintenance.
165
+
166
+ **build-game** — Game development from idea to playable release. Game Designer owns the GDD, mechanics, and balancing. Game Artist generates sprites, textures, and tilesets via AI image generation and code-based approaches. Audio Designer creates sound effects, music, and soundscapes via AI generation and code-based synthesis. Inline goal with 5 milestones: concept (GDD + engine + art style), prototype (core loop + placeholder art + first playtest), vertical slice (one polished level), production (all content), polish & ship (balancing + distribution). Works for any genre.
167
+
168
+ </details>
169
+
170
+ <br>
171
+
172
+ ## Modules
173
+
174
+ Modules are composable capabilities you layer on top of the base team. Each module adds skills, tasks, and optionally heartbeat sections to the relevant roles. Modules are additive — you can combine them freely and they degrade gracefully when a role they extend isn't present.
175
+
176
+ ### Strategy & Planning
177
+
178
+ | Module | What it does | Kickoff task |
179
+ | :----- | :----------- | :----------- |
180
+ | **`vision-workshop`** | Define vision, success metrics, strategic milestones | CEO defines vision |
181
+ | **`market-analysis`** | Research market, competitors, positioning | Primary owner conducts analysis |
182
+ | **`hiring-review`** | Evaluate team gaps, propose hires via board approval | Primary owner reviews team |
183
+ | **`tech-stack`** | Evaluate and document technology choices | Primary owner evaluates stack |
184
+ | **`architecture-plan`** | Design system architecture + design system | Engineer + Designer (if present) |
185
+ | **`brand-identity`** | Brand book, visual identity, design guidelines | Primary owner defines brand |
186
+ | **`user-testing`** | Usability evaluations and findings | Primary owner runs evaluations |
187
+ | **`competitive-intel`** | Competitive landscape analysis and tracking | Primary owner builds landscape |
188
+ | **`documentation`** | Project docs, API refs, onboarding guides | Primary owner creates docs |
189
+ | **`security-audit`** | Threat modeling and security code review | Primary owner conducts audit |
190
+ | **`accessibility`** | WCAG 2.2 compliance audit and remediation | Primary owner runs audit |
191
+ | **`website-relaunch`** | Website relaunch: audit, design ingestion, implementation, migration | Primary owner audits + analyzes designs |
192
+ | **`launch-mvp`** | MVP lifecycle: scope, build core feature, deploy, iterate from feedback | CEO scopes, primary owner builds |
193
+ | **`game-design`** | Game Design Document, core mechanics, progression, balancing | Primary owner creates GDD |
194
+
195
+ ### Maintenance & Operations
196
+
197
+ | Module | What it does | Kickoff task |
198
+ | :----- | :----------- | :----------- |
199
+ | **`codebase-onboarding`** | Audit existing codebase, map architecture, track tech debt, ongoing cleanup | Primary owner audits codebase |
200
+ | **`triage`** | Classify, prioritize, and respond to inbound GitHub issues | Primary owner triages open issues |
201
+ | **`dependency-management`** | Dependency audits, CVE scanning, safe patching, upgrade planning | Primary owner audits dependencies |
202
+ | **`release-management`** | Semver, changelogs, git tagging, GitHub Releases, rollback procedures | Primary owner documents release process |
203
+
204
+ ### Engineering Workflow
205
+
206
+ | Module | What it does | Kickoff task |
207
+ | :----- | :----------- | :----------- |
208
+ | **`github-repo`** | Git workflow and commit conventions | Engineer initializes repo |
209
+ | **`pr-review`** | PR-based review workflow | Engineer sets up branch protection |
210
+ | **`backlog`** | Auto-generate issues from goals when backlog runs low | Primary owner creates initial backlog |
211
+ | **`auto-assign`** | Assign unassigned issues to idle agents | — |
212
+ | **`stall-detection`** | Detect stuck handovers, nudge or escalate | — |
213
+ | **`build-api`** | REST API: schema design, endpoints, auth, documentation | Engineer designs and implements |
214
+ | **`ci-cd`** | Continuous integration and deployment pipeline | Primary owner sets up CI/CD |
215
+ | **`monitoring`** | Observability, alerting, health checks | Primary owner sets up monitoring |
216
+
217
+ <details>
218
+ <summary><strong>Module details</strong></summary>
219
+
220
+ #### vision-workshop
221
+
222
+ Defines the strategic foundation. The CEO runs a vision workshop to refine the company goal into a vision statement, success metrics, and milestones.
223
+
224
+ - **Capability:** none (CEO-only strategic task)
225
+ - **Doc:** `docs/vision-template.md`
226
+ - With UX Researcher: contributes user-centered metrics and journey mapping
227
+
228
+ #### market-analysis
229
+
230
+ Researches the target market, competitors, and positioning.
231
+
232
+ - **Capability:** `market-analysis` — owners: `ux-researcher` → `cmo` → `product-owner` → `ceo`
233
+ - **Fallback:** CMO focuses on positioning and competitive landscape; CEO creates a brief overview only
234
+ - **Doc:** `docs/market-analysis-template.md`
235
+
236
+ #### hiring-review
237
+
238
+ Evaluates team composition against the goal and proposes hires through board approval.
239
+
240
+ - **Capability:** `hiring-review` — owners: `product-owner` → `ceo`
241
+ - **Fallback:** CEO proposes one urgent hire only
242
+
243
+ #### tech-stack
244
+
245
+ Evaluates technology options and documents decisions with rationale and trade-offs.
246
+
247
+ - **Capability:** `tech-stack` — owners: `engineer` → `ceo`
248
+ - **Fallback:** CEO makes pragmatic defaults, marks them provisional
249
+ - **Doc:** `docs/tech-stack-template.md`
250
+
251
+ #### architecture-plan
252
+
253
+ Designs the system architecture. Requires `tech-stack`. Includes a `design-system` capability for UI Designers.
254
+
255
+ - **Capability:** `architecture-plan` — owners: `engineer` → `ceo`
256
+ - **Capability:** `design-system` — owners: `ui-designer` → `engineer`
257
+ - **Docs:** `docs/architecture-template.md`, `docs/design-system-template.md`
258
+
259
+ #### github-repo
260
+
261
+ Git workflow and commit conventions.
262
+
263
+ - **Task:** Engineer initializes repo
264
+ - **Doc:** `docs/git-workflow.md`
265
+
266
+ #### pr-review
267
+
268
+ PR-based review workflow. Requires `github-repo`. Activates with `code-reviewer`, `product-owner`, `ui-designer`, `ux-researcher`, `qa`, or `devops`.
269
+
270
+ - **Task:** Engineer sets up branch protection
271
+ - **Doc:** `docs/pr-conventions.md`
272
+
273
+ #### backlog
274
+
275
+ Owns the product backlog lifecycle — from goal decomposition to a steady pipeline of actionable issues.
276
+
277
+ - **Capability:** `backlog-health` — owners: `product-owner` → `ceo`
278
+ - **Fallback:** CEO creates 1-2 issues only when backlog is critically empty
279
+ - **Doc:** `docs/backlog-process.md`
280
+
281
+ #### auto-assign
282
+
283
+ Assigns unassigned issues to idle agents.
284
+
285
+ - **Capability:** `auto-assign` — owners: `product-owner` → `ceo`
286
+ - **Fallback:** CEO assigns only when agents are critically idle
287
+
288
+ #### brand-identity
289
+
290
+ Creates brand guidelines: logo usage, color palette, typography, iconography, and tone of voice.
291
+
292
+ - **Capability:** `brand-identity` — owners: `ui-designer` → `cmo` → `ceo`
293
+ - **Fallback:** CMO focuses on brand strategy and messaging; CEO creates minimal provisional placeholder
294
+ - **Doc:** `docs/brand-identity-template.md`
295
+
296
+ #### user-testing
297
+
298
+ Designs and executes usability evaluations, documents findings with severity ratings.
299
+
300
+ - **Capability:** `user-testing` — owners: `qa` → `ux-researcher` → `product-owner` → `ceo`
301
+ - **Fallback:** QA adds test automation and edge case coverage; CEO creates a basic heuristic checklist
302
+ - **Doc:** `docs/user-testing-template.md`
303
+
304
+ #### ci-cd
305
+
306
+ Continuous integration and deployment pipeline. Requires `github-repo`.
307
+
308
+ - **Capability:** `ci-cd` — owners: `devops` → `engineer`
309
+ - **Fallback:** Engineer sets up basic CI (lint, test, build); DevOps owns full pipeline lifecycle including CD
310
+ - **Doc:** `docs/ci-cd-template.md`
311
+
312
+ #### monitoring
313
+
314
+ Observability, error tracking, logging, alerting, and health checks. Requires `github-repo`.
315
+
316
+ - **Capability:** `monitoring` — owners: `devops` → `engineer`
317
+ - **Fallback:** Engineer sets up basic health checks and structured logging; DevOps owns full observability stack
318
+ - **Doc:** `docs/monitoring-template.md`
319
+
320
+ #### security-audit
321
+
322
+ Threat modeling and security code review. Identifies attack surfaces, OWASP Top 10 vulnerabilities, and dependency CVEs.
323
+
324
+ - **Capability:** `threat-model` — owners: `security-engineer` → `devops` → `engineer`
325
+ - **Capability:** `security-review` — owners: `security-engineer` → `devops` → `engineer`
326
+ - **Fallback:** DevOps focuses on infrastructure security; Engineer runs basic checks only
327
+
328
+ #### documentation
329
+
330
+ Project documentation: READMEs, API references, architecture overviews, onboarding guides.
331
+
332
+ - **Capability:** `project-docs` — owners: `technical-writer` → `engineer` → `ceo`
333
+ - **Fallback:** Engineer writes minimal README; CEO creates bare-bones project overview
334
+
335
+ #### competitive-intel
336
+
337
+ Living competitive landscape — competitor profiles that evolve over time with positioning, strengths, and differentiation insights.
338
+
339
+ - **Capability:** `competitive-tracking` — owners: `customer-success` → `cmo` → `product-owner` → `ceo`
340
+ - **Fallback:** CMO focuses on positioning angles; CEO creates brief overview only
341
+
342
+ #### accessibility
343
+
344
+ WCAG 2.2 compliance auditing: semantic HTML, keyboard navigation, color contrast, ARIA, screen reader compatibility.
345
+
346
+ - **Capability:** `accessibility-audit` — owners: `qa` → `ui-designer` → `engineer`
347
+ - **Fallback:** UI Designer focuses on visual accessibility; Engineer runs automated checks
348
+
349
+ #### website-relaunch
350
+
351
+ Full website relaunch lifecycle: audit the current site, ingest design assets from an external agency, implement the new design, migrate content, and go live. Includes an inline goal with 5 milestones and 10 issues.
352
+
353
+ - **Capability:** `design-ingestion` — owners: `ui-designer` → `engineer` → `ceo`
354
+ - **Capability:** `site-audit` — owners: `ui-designer` → `engineer` → `ceo`
355
+ - **Goal:** Website Relaunch (with dedicated project, 5 milestones, 10 issues)
356
+
357
+ #### build-api
358
+
359
+ REST API development from schema to documentation. Inline goal with 4 milestones and 8 issues.
360
+
361
+ - **Capability:** `api-design` — owners: `engineer` → `ceo`
362
+ - **Requires:** `github-repo`
363
+ - **Goal:** Build a REST API (with dedicated project, 4 milestones, 8 issues)
364
+
365
+ #### launch-mvp
366
+
367
+ MVP project lifecycle: define scope tightly, build the core feature, deploy, and iterate from user feedback. No capabilities or skills — structured goal with milestones and issues.
368
+
369
+ - **Goal:** Launch MVP (with dedicated project, 4 milestones, 8 issues)
370
+
371
+ #### codebase-onboarding
372
+
373
+ Audit an existing codebase and maintain its health over time. Requires `github-repo`.
374
+
375
+ - **Capability:** `codebase-audit` — owners: `engineer` → `ceo`
376
+ - **Output:** `docs/CODEBASE-AUDIT.md`
377
+
378
+ #### triage
379
+
380
+ Processes inbound GitHub issues: classify by type and priority, respond to reporters, close duplicates, convert actionable items into Paperclip tasks. Requires `github-repo`.
381
+
382
+ - **Capability:** `issue-triage` — owners: `product-owner` → `engineer` → `ceo`
383
+
384
+ #### dependency-management
385
+
386
+ Dependency lifecycle: vulnerability scanning, outdated package detection, safe patch-level updates, and major version migration planning. Requires `github-repo`.
387
+
388
+ - **Capability:** `dependency-audit` — owners: `devops` → `security-engineer` → `engineer`
389
+ - **Output:** `docs/DEPENDENCY-AUDIT.md`
390
+
391
+ #### release-management
392
+
393
+ Release lifecycle: semantic versioning, changelog generation, git tagging, GitHub Releases, and rollback documentation. Requires `github-repo`.
394
+
395
+ - **Capability:** `release-process` — owners: `devops` → `engineer` → `ceo`
396
+ - **Output:** `docs/RELEASE-PROCESS.md`
397
+
398
+ #### game-design
399
+
400
+ Game Design Document creation and ongoing mechanic design, progression, and balancing. Ships a GDD template and engine reference docs (Phaser, PixiJS, Three.js).
401
+
402
+ - **Capability:** `game-design` — owners: `game-designer` → `engineer` → `ceo`
403
+ - **Docs:** `docs/gdd-template.md`, `docs/engine-phaser.md`, `docs/engine-pixijs.md`, `docs/engine-threejs.md`
404
+
405
+ #### stall-detection
406
+
407
+ Detects issues stuck in `in_progress` or `in_review` with no recent activity. Nudges the assigned agent, escalates to the board if nudging doesn't help.
408
+
409
+ - **Capability:** CEO-only
410
+
411
+ </details>
412
+
413
+ <br>
414
+
415
+ ## Roles
416
+
417
+ Every company starts with just the **CEO** (the only base role). All other roles are optional:
418
+
419
+ | Role | Paperclip role | Reports to | Enhances |
420
+ | :--- | :------------- | :--------- | :------- |
421
+ | **Product Owner** | `pm` | CEO | Takes over roadmap, auto-assign, hiring-review from CEO |
422
+ | **Code Reviewer** | `general` | CEO | Enables pr-review activation |
423
+ | **UI & Brand Designer** | `designer` | CEO | Takes over design-system and brand-identity |
424
+ | **UX Researcher** | `researcher` | CEO | Takes over market-analysis and user-testing |
425
+ | **CTO** | `cto` | CEO | Technical leadership, architecture oversight |
426
+ | **CMO** | `cmo` | CEO | Marketing strategy, go-to-market, growth metrics |
427
+ | **CFO** | `cfo` | CEO | Financial planning, budget tracking, cost analysis |
428
+ | **DevOps Engineer** | `devops` | CEO | Takes over ci-cd and monitoring from Engineer |
429
+ | **QA Engineer** | `qa` | CEO | Takes over user-testing, quality gates |
430
+ | **Technical Writer** | `general` | CEO | Takes over documentation, adds doc review pass |
431
+ | **Security Engineer** | `general` | CEO | Takes over security-audit, adds security review pass |
432
+ | **Customer Success** | `general` | CEO | Takes over competitive-intel customer analysis |
433
+ | **Game Designer** | `pm` | CEO | Takes over game-design from Engineer, playtesting focus |
434
+ | **Level Designer** | `pm` | CEO | Takes over level-specific design from Game Designer |
435
+ | **Game Artist** | `designer` | CEO | Takes over art asset creation from Engineer |
436
+ | **Audio Designer** | `designer` | CEO | Takes over audio asset creation from Engineer |
437
+
438
+ <details>
439
+ <summary><strong>Role details</strong></summary>
440
+
441
+ #### Product Owner
442
+
443
+ The voice of the user. Owns the backlog pipeline, validates engineering output against goals, manages scope discipline. Adds product-alignment review pass with pr-review module.
444
+
445
+ #### Code Reviewer
446
+
447
+ Owns code quality. Reviews PRs for correctness, style, security, and test coverage. Never writes code — only reviews it.
448
+
449
+ #### UI & Brand Designer
450
+
451
+ Owns visual identity, design systems, and brand consistency. Creates design specs that engineers implement. Outputs are design documents, not code. Adds design review pass with pr-review module.
452
+
453
+ #### UX Researcher
454
+
455
+ Owns user experience research, usability analysis, and journey mapping. Grounds design and product decisions in evidence-based user insights. Adds UX review pass with pr-review module.
456
+
457
+ #### CTO
458
+
459
+ Technical leadership and architecture oversight. Guides technology decisions, reviews system design, and ensures engineering quality at scale.
460
+
461
+ #### CMO
462
+
463
+ Owns marketing strategy, brand positioning, go-to-market planning, and growth metrics. Data-driven, measures everything.
464
+
465
+ #### CFO
466
+
467
+ Owns financial planning, budget tracking, cost analysis, and resource allocation. Monitors agent cost events and budget utilization.
468
+
469
+ #### DevOps Engineer
470
+
471
+ Owns infrastructure, CI/CD pipelines, deployment, monitoring, and platform reliability. Automation over manual work, infrastructure as code.
472
+
473
+ #### QA Engineer
474
+
475
+ Owns test strategy, test automation, quality gates, and regression prevention. Prevention over detection.
476
+
477
+ #### Technical Writer
478
+
479
+ Owns developer documentation, API references, READMEs, and onboarding guides. Keeps docs accurate as the codebase evolves.
480
+
481
+ #### Security Engineer
482
+
483
+ Owns threat modeling, security code reviews, OWASP compliance, and secure coding standards. Security issues are always blocking.
484
+
485
+ #### Customer Success Manager
486
+
487
+ Owns customer health monitoring, feedback synthesis, churn prevention, and competitive intelligence from the customer perspective.
488
+
489
+ #### Game Designer
490
+
491
+ Owns the Game Design Document, core mechanics, game loop, progression systems, difficulty curves, and balancing. Runs design experiments and iterates based on playtest data.
492
+
493
+ #### Level Designer
494
+
495
+ Owns level layout, pacing, difficulty curves, environmental storytelling, and spatial progression.
496
+
497
+ #### Game Artist
498
+
499
+ Owns visual art production: sprites, textures, tilesets, UI elements, and visual effects. Creates assets using AI image generation tools, code-based approaches, and asset pipeline tools.
500
+
501
+ #### Audio Designer
502
+
503
+ Owns audio production: sound effects, music, ambient soundscapes, and audio systems design. Creates audio using AI generation tools, code-based synthesis, and audio processing pipelines.
504
+
505
+ </details>
506
+
507
+ <br>
508
+
509
+ ## Configuration
510
+
511
+ Configure the plugin via **Settings → Plugins → Company Wizard** in the Paperclip UI.
512
+
513
+ | Field | Required | Description |
514
+ | --- | --- | --- |
515
+ | `companiesDir` | No | Where assembled company workspaces are written. Defaults to `~/.paperclip/instances/default/companies`. Override for Docker setups. |
516
+ | `templatesPath` | No | Path to the templates directory. Defaults to `~/.paperclip/plugin-templates` (auto-downloaded from `templatesRepoUrl` if missing). |
517
+ | `templatesRepoUrl` | No | GitHub tree URL to pull templates from when the templates directory does not exist. Defaults to the official @starlein/paperclip-plugin-company-wizard templates. |
518
+ | `paperclipUrl` | No | Paperclip instance URL. Defaults to `http://localhost:3100` or `PAPERCLIP_PUBLIC_URL` env var. |
519
+ | `paperclipEmail` | No | Board login email. Required for authenticated (non-`local_trusted`) instances. |
520
+ | `paperclipPassword` | No | Board login password. Stored as a secret ref. |
521
+ | `anthropicApiKey` | No | Anthropic API key for AI wizard mode. Stored as a secret ref. Required to use the AI-powered setup path. |
522
+ | `disableBoardApprovalOnNewCompanies` | No | If `true`, the wizard PATCHes new companies to set `requireBoardApprovalForNewAgents=false` during provisioning. Leave `false` to preserve approval-gated hiring. Defaults to `false`. |
523
+
524
+ <br>
525
+
526
+ ## Development
527
+
528
+ ```bash
529
+ pnpm install
530
+ pnpm build # esbuild: worker + manifest + UI → dist/
531
+ pnpm dev # watch mode
532
+ pnpm test # vitest: tests/**/*.spec.ts
533
+ pnpm test:logic # node --test: src/logic/*.test.js
534
+ pnpm typecheck # tsc --noEmit
535
+ ```
536
+
537
+ After `pnpm build`, reload the plugin in the Paperclip UI — no reinstall required.
538
+
539
+ <br>
540
+
541
+ ## Extending
542
+
543
+ ### Add a module
544
+
545
+ ```text
546
+ templates/modules/<name>/
547
+ ├── module.meta.json # Name, capabilities, tasks, dependencies, permissions
548
+ ├── skills/ # Shared skills (used by any primary owner)
549
+ │ └── <skill>.md
550
+ ├── agents/<role>/
551
+ │ ├── skills/ # Role-specific overrides and fallbacks
552
+ │ │ ├── <skill>.md # Override (replaces shared for this role)
553
+ │ │ └── <skill>.fallback.md # Fallback (safety-net for non-primary)
554
+ │ └── heartbeat-section.md # Optional: injected into role's HEARTBEAT.md
555
+ └── docs/ # Shared docs (→ docs/)
556
+ ```
557
+
558
+ <details>
559
+ <summary><strong>module.meta.json schema</strong></summary>
560
+
561
+ ```json
562
+ {
563
+ "name": "my-module",
564
+ "requires": ["other-module"],
565
+ "activatesWithRoles": ["my-role"],
566
+ "permissions": ["tasks:assign"],
567
+ "adapterOverrides": { "chrome": true },
568
+ "capabilities": [
569
+ {
570
+ "skill": "my-skill",
571
+ "owners": ["my-role", "ceo"],
572
+ "fallbackSkill": "my-skill.fallback"
573
+ }
574
+ ],
575
+ "tasks": [
576
+ {
577
+ "title": "Initial task",
578
+ "assignTo": "capability:my-skill",
579
+ "description": "Task description"
580
+ }
581
+ ],
582
+ "goal": {
583
+ "title": "My Goal",
584
+ "description": "What this goal achieves",
585
+ "project": true,
586
+ "milestones": [
587
+ { "id": "phase-1", "title": "Phase 1", "project": false }
588
+ ],
589
+ "issues": [
590
+ { "title": "First task", "milestone": "phase-1", "assignTo": "engineer", "priority": "high" }
591
+ ]
592
+ }
593
+ }
594
+ ```
595
+
596
+ | Field | Description |
597
+ | :---- | :---------- |
598
+ | `requires` | Other modules that must be selected |
599
+ | `activatesWithRoles` | Module only applies if one of these roles is present |
600
+ | `capabilities[].owners` | Priority order — first present role gets the primary skill |
601
+ | `capabilities[].fallbackSkill` | Filename (without `.md`) of the fallback variant |
602
+ | `tasks[].assignTo` | A role name or `"capability:<skill>"` to auto-resolve |
603
+ | `adapterOverrides` | Adapter config keys merged into all capability owner agents during provisioning |
604
+ | `goal` | Optional inline goal. When active, `tasks` are skipped. |
605
+ | `goal.project` | If `true` (default), creates a dedicated Paperclip project for this goal |
606
+ | `goal.issues[].assignTo` | Role name, `"capability:<skill>"`, or `"user"` (human pickup) |
607
+
608
+ </details>
609
+
610
+ <details>
611
+ <summary><strong>Skill resolution</strong></summary>
612
+
613
+ When assembling a capability's primary skill, the system checks in order:
614
+
615
+ 1. **Role-specific override:** `agents/<role>/skills/<skill>.md`
616
+ 2. **Shared skill:** `skills/<skill>.md`
617
+
618
+ First match wins. Most capabilities only need a shared skill. Role-specific overrides exist only when a role brings a genuinely different approach.
619
+
620
+ ```text
621
+ Example: market-analysis module
622
+ ├── skills/
623
+ │ └── market-analysis.md # Shared: any primary owner
624
+ ├── agents/
625
+ │ ├── ux-researcher/skills/
626
+ │ │ └── market-analysis.md # Override: user-focused
627
+ │ └── ceo/skills/
628
+ │ └── market-analysis.fallback.md # Fallback: brief overview
629
+ ```
630
+
631
+ - **UX Researcher** present → gets role-specific override (user-focused)
632
+ - **Product Owner** primary → gets shared skill
633
+ - **CEO** as fallback → gets fallback variant
634
+
635
+ </details>
636
+
637
+ <details>
638
+ <summary><strong>Doc references in skills</strong></summary>
639
+
640
+ Two kinds of docs end up in `{company}/docs/`:
641
+
642
+ - **Templates** (`lowercase-kebab.md`) — Shipped by modules, copied at assembly time. Guaranteed to exist if the module is active.
643
+ - **Agent output** (`UPPERCASE.md`) — Created by agents during execution. May or may not exist yet.
644
+
645
+ | Reference | Rule | Example |
646
+ | :--- | :--- | :--- |
647
+ | Define own output | Name the path directly | "Document in `docs/TECH-STACK.md`" |
648
+ | Read own template | Reference directly | "Follow conventions in `docs/pr-conventions.md`" |
649
+ | Read cross-module output | **Always conditional** | "If `docs/TECH-STACK.md` exists, review it. Otherwise, proceed based on project context." |
650
+
651
+ </details>
652
+
653
+ ### Add a role
654
+
655
+ ```text
656
+ templates/roles/<name>/
657
+ ├── role.meta.json # Name, title, base, paperclipRole, reportsTo, adapter
658
+ ├── AGENTS.md
659
+ ├── SOUL.md
660
+ ├── HEARTBEAT.md
661
+ └── TOOLS.md
662
+ ```
663
+
664
+ <details>
665
+ <summary><strong>role.meta.json schema</strong></summary>
666
+
667
+ ```json
668
+ {
669
+ "name": "my-role",
670
+ "title": "My Role",
671
+ "base": false,
672
+ "division": "engineering",
673
+ "tagline": "One-liner for wizard display and AI selection",
674
+ "paperclipRole": "general",
675
+ "description": "What this role does",
676
+ "reportsTo": "ceo",
677
+ "enhances": ["Takes over X from CEO"],
678
+ "adapter": {
679
+ "model": "claude-sonnet-4-6"
680
+ }
681
+ }
682
+ ```
683
+
684
+ | Field | Description |
685
+ | :---- | :---------- |
686
+ | `base` | `true` for always-present roles (ceo only) |
687
+ | `division` | Grouping: `leadership`, `engineering`, `design`, `product` |
688
+ | `tagline` | One-liner for wizard UX and AI selection |
689
+ | `paperclipRole` | Paperclip enum: `ceo`, `engineer`, `pm`, `qa`, `designer`, `cto`, `cmo`, `cfo`, `devops`, `researcher`, `general` |
690
+ | `adapter` | Passed to `adapterConfig` during provisioning |
691
+
692
+ </details>
693
+
694
+ ### Add a preset
695
+
696
+ Create `templates/presets/<name>/preset.meta.json`:
697
+
698
+ ```json
699
+ {
700
+ "name": "my-preset",
701
+ "description": "What this preset is for",
702
+ "constraints": [],
703
+ "roles": ["product-owner"],
704
+ "modules": ["github-repo", "backlog"]
705
+ }
706
+ ```
707
+
708
+ <br>
709
+
710
+ ## How It Works
711
+
712
+ ```text
713
+ ┌─────────────┐ ┌──────────────┐ ┌──────────────────┐
714
+ │ Wizard │────▶│ Assembly │────▶│ Provisioning │
715
+ │ (UI) │ │ (files) │ │ (Paperclip API)│
716
+ └─────────────┘ └──────────────┘ └──────────────────┘
717
+ ```
718
+
719
+ **Assembly** (always runs):
720
+
721
+ 1. Copies base role files (CEO, Engineer) into `agents/`
722
+ 2. Copies selected extra roles into `agents/`
723
+ 3. For each module: resolves capability ownership, installs skills, copies docs
724
+ 4. Injects module heartbeat sections into each role's `HEARTBEAT.md`
725
+ 5. Generates `BOOTSTRAP.md` with goal, project, agent paths, and initial tasks
726
+
727
+ **Provisioning** (Review → Provision step):
728
+
729
+ 1. Connects to Paperclip API (auto-detects `local_trusted` vs authenticated)
730
+ 2. Creates a new **company** in Paperclip — or targets an existing one if `existingCompanyId` is set in the review step
731
+ 3. Creates the **CEO agent** with adapter config (cwd, instructionsFilePath, model), or reuses the existing active CEO when targeting an existing company. If board approval is required, the wizard hires via `/agent-hires` and auto-approves
732
+ 4. Creates a **Bootstrap task** assigned to the CEO
733
+
734
+ The CEO then sets up the rest of the team on its first heartbeat: hiring the other roles from disk, creating the goal, project, and initial backlog issues. If provisioning fails after a **new** company is created, the partial company is automatically deleted — existing target companies are never deleted on error.
735
+
736
+ <br>
737
+
738
+ ## Changelog
739
+
740
+ See [CHANGELOG.md](CHANGELOG.md) for version history.
741
+
742
+ ## Contributing
743
+
744
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and guidelines.
745
+
746
+ ## License
747
+
748
+ [MIT](LICENSE)