@rashidee/co2 1.2.5
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.
- package/dist/index.js +25449 -0
- package/drizzle/0000_remarkable_charles_xavier.sql +210 -0
- package/drizzle/0001_wise_wolf_cub.sql +13 -0
- package/drizzle/0002_secret_spyke.sql +16 -0
- package/drizzle/0003_workspace_config_singleton.sql +16 -0
- package/drizzle/0004_terminal_claim_v120.sql +11 -0
- package/drizzle/0005_brainstorm_v124.sql +10 -0
- package/drizzle/0006_project_v140.sql +6 -0
- package/drizzle/0007_prd_wizard_v124.sql +14 -0
- package/drizzle/0008_workflow_artifact_v126.sql +24 -0
- package/drizzle/0009_project_import_v150.sql +7 -0
- package/drizzle/0010_quality_v151.sql +3 -0
- package/drizzle/meta/0000_snapshot.json +1335 -0
- package/drizzle/meta/0001_snapshot.json +1416 -0
- package/drizzle/meta/0002_snapshot.json +1510 -0
- package/drizzle/meta/_journal.json +83 -0
- package/package.json +41 -0
- package/plugin/.claude-plugin/marketplace.json +36 -0
- package/plugin/.claude-plugin/plugin.json +22 -0
- package/plugin/README.md +625 -0
- package/plugin/SKILLS.md +350 -0
- package/plugin/co2.svg +5 -0
- package/plugin/commands/brainstorm-loop.md +129 -0
- package/plugin/skills/conductor-defect/SKILL.md +898 -0
- package/plugin/skills/conductor-feature-develop/SKILL.md +1383 -0
- package/plugin/skills/conductor-feature-develop/references/implementation-domain-template.md +131 -0
- package/plugin/skills/conductor-feature-develop/references/implementation-master-template.md +89 -0
- package/plugin/skills/conductor-feature-develop/references/playwright-setup.md +224 -0
- package/plugin/skills/conductor-feature-prepare/SKILL.md +604 -0
- package/plugin/skills/depgen-k8s/SKILL.md +468 -0
- package/plugin/skills/depgen-k8s/references/dockerfile-laravel.md +197 -0
- package/plugin/skills/depgen-k8s/references/dockerfile-nodejs.md +163 -0
- package/plugin/skills/depgen-k8s/references/dockerfile-spring-boot.md +174 -0
- package/plugin/skills/depgen-k8s/references/k8s-patterns.md +869 -0
- package/plugin/skills/mockgen-shadcn/SKILL.md +1067 -0
- package/plugin/skills/mockgen-shadcn/references/admin-layout-template.md +1467 -0
- package/plugin/skills/mockgen-shadcn/references/mockup-hub-template.md +498 -0
- package/plugin/skills/mockgen-shadcn/references/mockup-index-template.md +216 -0
- package/plugin/skills/mockgen-tailwind/SKILL.md +904 -0
- package/plugin/skills/mockgen-tailwind/references/admin-layout-template.md +720 -0
- package/plugin/skills/mockgen-tailwind/references/mockup-hub-template.md +498 -0
- package/plugin/skills/mockgen-tailwind/references/mockup-index-template.md +190 -0
- package/plugin/skills/modelgen-nosql/SKILL.md +617 -0
- package/plugin/skills/modelgen-nosql/references/model-extraction-methodology.md +497 -0
- package/plugin/skills/modelgen-nosql/references/nosql-design-guide.md +258 -0
- package/plugin/skills/modelgen-relational/SKILL.md +707 -0
- package/plugin/skills/modelgen-relational/references/model-extraction-methodology.md +499 -0
- package/plugin/skills/specgen-flutter-riverpod/SKILL.md +898 -0
- package/plugin/skills/specgen-flutter-riverpod/references/component-patterns.md +971 -0
- package/plugin/skills/specgen-flutter-riverpod/references/notification-patterns.md +457 -0
- package/plugin/skills/specgen-flutter-riverpod/references/routing-patterns.md +362 -0
- package/plugin/skills/specgen-flutter-riverpod/references/security-patterns.md +709 -0
- package/plugin/skills/specgen-flutter-riverpod/references/spec-template.md +1566 -0
- package/plugin/skills/specgen-flutter-riverpod/references/state-patterns.md +518 -0
- package/plugin/skills/specgen-flutter-riverpod/references/storage-patterns.md +370 -0
- package/plugin/skills/specgen-laravel-eloquent-bladehtmx/SKILL.md +984 -0
- package/plugin/skills/specgen-laravel-eloquent-bladehtmx/references/batch-patterns.md +359 -0
- package/plugin/skills/specgen-laravel-eloquent-bladehtmx/references/messaging-patterns.md +468 -0
- package/plugin/skills/specgen-laravel-eloquent-bladehtmx/references/modulith-patterns.md +461 -0
- package/plugin/skills/specgen-laravel-eloquent-bladehtmx/references/reporting-patterns.md +803 -0
- package/plugin/skills/specgen-laravel-eloquent-bladehtmx/references/security-patterns.md +501 -0
- package/plugin/skills/specgen-laravel-eloquent-bladehtmx/references/spec-template.md +1268 -0
- package/plugin/skills/specgen-laravel-eloquent-bladehtmx/references/web-patterns.md +301 -0
- package/plugin/skills/specgen-node-cli-web/SKILL.md +561 -0
- package/plugin/skills/specgen-node-cli-web/references/auth-patterns.md +293 -0
- package/plugin/skills/specgen-node-cli-web/references/cli-packaging-patterns.md +250 -0
- package/plugin/skills/specgen-node-cli-web/references/server-patterns.md +247 -0
- package/plugin/skills/specgen-node-cli-web/references/spec-template.md +401 -0
- package/plugin/skills/specgen-node-cli-web/references/testing-patterns.md +174 -0
- package/plugin/skills/specgen-react-mui/SKILL.md +789 -0
- package/plugin/skills/specgen-react-mui/references/component-patterns.md +1077 -0
- package/plugin/skills/specgen-react-mui/references/reporting-patterns.md +1998 -0
- package/plugin/skills/specgen-react-mui/references/routing-patterns.md +461 -0
- package/plugin/skills/specgen-react-mui/references/security-patterns.md +599 -0
- package/plugin/skills/specgen-react-mui/references/spec-template.md +1030 -0
- package/plugin/skills/specgen-react-mui/references/state-patterns.md +327 -0
- package/plugin/skills/specgen-react-tailwind/SKILL.md +859 -0
- package/plugin/skills/specgen-react-tailwind/references/component-patterns.md +1212 -0
- package/plugin/skills/specgen-react-tailwind/references/reporting-patterns.md +1529 -0
- package/plugin/skills/specgen-react-tailwind/references/routing-patterns.md +669 -0
- package/plugin/skills/specgen-react-tailwind/references/security-patterns.md +656 -0
- package/plugin/skills/specgen-react-tailwind/references/spec-template.md +1237 -0
- package/plugin/skills/specgen-react-tailwind/references/state-patterns.md +327 -0
- package/plugin/skills/specgen-sdk-java/SKILL.md +933 -0
- package/plugin/skills/specgen-sdk-java/references/api-extraction-patterns.md +247 -0
- package/plugin/skills/specgen-sdk-java/references/http-client-patterns.md +495 -0
- package/plugin/skills/specgen-sdk-java/references/packaging-patterns.md +366 -0
- package/plugin/skills/specgen-sdk-java/references/spec-template.md +956 -0
- package/plugin/skills/specgen-spring-jpa-jtehtmx/SKILL.md +1284 -0
- package/plugin/skills/specgen-spring-jpa-jtehtmx/references/batch-patterns.md +1224 -0
- package/plugin/skills/specgen-spring-jpa-jtehtmx/references/jasper-patterns.md +1638 -0
- package/plugin/skills/specgen-spring-jpa-jtehtmx/references/messaging-patterns.md +512 -0
- package/plugin/skills/specgen-spring-jpa-jtehtmx/references/modulith-patterns.md +354 -0
- package/plugin/skills/specgen-spring-jpa-jtehtmx/references/security-patterns.md +551 -0
- package/plugin/skills/specgen-spring-jpa-jtehtmx/references/spec-template.md +2502 -0
- package/plugin/skills/specgen-spring-jpa-jtehtmx/references/web-patterns.md +503 -0
- package/plugin/skills/specgen-spring-jpa-restapi/SKILL.md +990 -0
- package/plugin/skills/specgen-spring-jpa-restapi/references/batch-patterns.md +1224 -0
- package/plugin/skills/specgen-spring-jpa-restapi/references/messaging-patterns.md +512 -0
- package/plugin/skills/specgen-spring-jpa-restapi/references/modulith-patterns.md +279 -0
- package/plugin/skills/specgen-spring-jpa-restapi/references/reporting-patterns.md +1536 -0
- package/plugin/skills/specgen-spring-jpa-restapi/references/restapi-patterns.md +722 -0
- package/plugin/skills/specgen-spring-jpa-restapi/references/security-patterns.md +351 -0
- package/plugin/skills/specgen-spring-jpa-restapi/references/spec-template.md +553 -0
- package/plugin/skills/specgen-ts-cli/SKILL.md +861 -0
- package/plugin/skills/specgen-ts-cli/references/async-patterns.md +1101 -0
- package/plugin/skills/specgen-ts-cli/references/command-patterns.md +383 -0
- package/plugin/skills/specgen-ts-cli/references/config-patterns.md +430 -0
- package/plugin/skills/specgen-ts-cli/references/database-patterns.md +750 -0
- package/plugin/skills/specgen-ts-cli/references/packaging-patterns.md +426 -0
- package/plugin/skills/specgen-ts-cli/references/spec-template.md +1391 -0
- package/plugin/skills/specgen-ts-cli/references/testing-patterns.md +909 -0
- package/plugin/skills/testgen-functional/SKILL.md +1381 -0
- package/plugin/skills/tracegen-matrix/SKILL.md +243 -0
- package/plugin/skills/util-preparek8senv/SKILL.md +422 -0
- package/plugin/skills/util-projectinit/SKILL.md +307 -0
- package/plugin/skills/util-projectinit/reference/brainstorm-loop.md +129 -0
- package/plugin/skills/util-projectinit/reference/brainstorm-protocol.md +144 -0
- package/plugin/skills/util-projectinit/reference/brainstorm-setup-guide.md +153 -0
- package/plugin/skills/util-projectinit/reference/brainstorm-template-appdev.md +87 -0
- package/plugin/skills/util-projectinit/reference/co2-context-generation-guide.md +761 -0
- package/plugin/skills/util-projectsync/SKILL.md +501 -0
- package/plugin/skills/util-updprd/SKILL.md +324 -0
- package/plugin/skills/util-usanalyzer/SKILL.md +307 -0
- package/plugin/skills/util-ustagger/SKILL.md +154 -0
- package/static/assets/abnfDiagram-VRR7QNED-DvPuwyCV.js +1 -0
- package/static/assets/arc-DRKw7sjs.js +1 -0
- package/static/assets/architectureDiagram-ZJ3FMSHR-CaNcxUbC.js +36 -0
- package/static/assets/blockDiagram-677ZJIJ3-Demd4AOK.js +132 -0
- package/static/assets/c4Diagram-LMCZKHZV-PVKUfc2x.js +10 -0
- package/static/assets/channel-C2nVbuwv.js +1 -0
- package/static/assets/chunk-2Q5K7J3B-CExf8ww_.js +1 -0
- package/static/assets/chunk-32BRIVSS-CFPaoONF.js +1 -0
- package/static/assets/chunk-5VM5RSS4-DE2esM67.js +15 -0
- package/static/assets/chunk-EX3LRPZG-SON_YdDG.js +231 -0
- package/static/assets/chunk-JWPE2WC7-Qxah8LNr.js +1 -0
- package/static/assets/chunk-MOJQB5TN-BcWGQV3j.js +88 -0
- package/static/assets/chunk-RYQCIY6F-DkDj-OR5.js +1 -0
- package/static/assets/chunk-V7JOEXUC-BlI1Mrah.js +206 -0
- package/static/assets/chunk-VR4S4FIN-Agf__duj.js +1 -0
- package/static/assets/chunk-XXDRQBXY-B5CfAh85.js +1 -0
- package/static/assets/classDiagram-OUVF2IWQ-DXJIljsR.js +1 -0
- package/static/assets/classDiagram-v2-EOCWNBFH-DXJIljsR.js +1 -0
- package/static/assets/cose-bilkent-JH36ORCC-DO0cQkcy.js +1 -0
- package/static/assets/cynefin-VYW2F7L2-CfOnsnXc.js +178 -0
- package/static/assets/cynefinDiagram-TSTJHNR4-BJ8tULAv.js +62 -0
- package/static/assets/cytoscape.esm-DTSO7Bv0.js +331 -0
- package/static/assets/dagre-VKFMJZFB-DfjwzHqP.js +4 -0
- package/static/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/static/assets/diagram-FQU43EPY-CndSOIIM.js +3 -0
- package/static/assets/diagram-G47NLZAW-Czf5hN0Z.js +24 -0
- package/static/assets/diagram-NH7WQ7WH-COAyojGh.js +24 -0
- package/static/assets/diagram-OA4YK3LP-H8PoiN2m.js +30 -0
- package/static/assets/diagram-WEI45ONY-DzcaVzjp.js +41 -0
- package/static/assets/ebnfDiagram-CCIWWBDH-DPazGYLJ.js +1 -0
- package/static/assets/erDiagram-Q63AITRT-Bo-fubgF.js +85 -0
- package/static/assets/flowDiagram-23GEKE2U-CSvxUDwh.js +156 -0
- package/static/assets/ganttDiagram-NO4QXBWP-DnBveWX6.js +292 -0
- package/static/assets/gitGraphDiagram-IHSO6WYX-B3rVL8c-.js +106 -0
- package/static/assets/graph-C9eacEi8.js +1 -0
- package/static/assets/index-LZSQkLE2.css +41 -0
- package/static/assets/index-y7XDSgMG.js +495 -0
- package/static/assets/infoDiagram-FWYZ7A6U-CvWV9yy2.js +2 -0
- package/static/assets/init-Gi6I4Gst.js +1 -0
- package/static/assets/ishikawaDiagram-FXEZZL3T-DF28a1N6.js +70 -0
- package/static/assets/journeyDiagram-5HDEW3XC-CB6CugYk.js +139 -0
- package/static/assets/kanban-definition-HUTT4EX6-ResSLF6d.js +89 -0
- package/static/assets/katex-C5jXJg4s.js +257 -0
- package/static/assets/layout-DEXfKzaS.js +1 -0
- package/static/assets/linear-CLO--ryk.js +1 -0
- package/static/assets/map-Czzmt4hB.js +1 -0
- package/static/assets/mindmap-definition-LN4V7U3C-BvW3EbxX.js +96 -0
- package/static/assets/ordinal-Cboi1Yqb.js +1 -0
- package/static/assets/pegDiagram-2B236MQR-BHCgqrrM.js +1 -0
- package/static/assets/pieDiagram-ENE6RG2P-DVmCQ5FA.js +39 -0
- package/static/assets/quadrantDiagram-ABIIQ3AL-B3e5KR52.js +7 -0
- package/static/assets/railroadDiagram-RFXS5EU6-Csv5ysLc.js +1 -0
- package/static/assets/requirementDiagram-TGXJPOKE-DOMVzvnB.js +84 -0
- package/static/assets/sankeyDiagram-HTMAVEWB-B1dcTOvy.js +40 -0
- package/static/assets/sequenceDiagram-DBY2YBRQ-BY414yeO.js +162 -0
- package/static/assets/sizeCapture-X5ZJPWSS-CuJfrfBN.js +1 -0
- package/static/assets/stateDiagram-2N3HPSRC-FX4rJkzV.js +1 -0
- package/static/assets/stateDiagram-v2-6OUMAXLB-BVufbO_H.js +1 -0
- package/static/assets/swimlanes-5IMT3BWC-Sfy58mmv.js +2 -0
- package/static/assets/swimlanesDiagram-G3AALYLV-wDCDw08H.js +8 -0
- package/static/assets/timeline-definition-FHXFAJF6-CmV7by8p.js +120 -0
- package/static/assets/vennDiagram-L72KCM5P-FqIyFZFt.js +34 -0
- package/static/assets/wardleyDiagram-EHGQE667-BZ06O45i.js +78 -0
- package/static/assets/xychartDiagram-FW5EYKEG-BOkffR06.js +7 -0
- package/static/index.html +24 -0
package/plugin/README.md
ADDED
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
# Compound Context (CO2) Workflow
|
|
2
|
+
|
|
3
|
+
> https://compound-context.com
|
|
4
|
+
|
|
5
|
+
| Logo | Description |
|
|
6
|
+
|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
7
|
+
|  | an **OPINIONATED** approach to software development using AI coding agents. It emphasizes the importance of comprehensive and structured context to reduce AI hallucination and AI slop: |
|
|
8
|
+
|
|
9
|
+
# Key Features
|
|
10
|
+
|
|
11
|
+
📝 User Story to drive UI and UX design + Non-Functional Requirement to drive business logic and technical design + Constraints to drive technical design and implementation.
|
|
12
|
+
|
|
13
|
+
🔄 Versioning to keep track of the changes and updates in the context as the project progresses.
|
|
14
|
+
|
|
15
|
+
📦 Multi application support where each application will have its own context. This is to support:
|
|
16
|
+
- Microservices architecture (multiple backend services with REST API or GraphQL API)
|
|
17
|
+
- Mobile application development (mobile frontend + REST API backend)
|
|
18
|
+
- Single Page Application development (web frontend + REST API backend)
|
|
19
|
+
|
|
20
|
+
🔗 Traceability from the generated code to the artifacts in the context to the User Stories, Non-Functional Requirements and Constraints.
|
|
21
|
+
|
|
22
|
+
🧠 Comprehensive context to reduce AI hallucination and AI slop, which includes:
|
|
23
|
+
- Data Models
|
|
24
|
+
- HTML Mockups
|
|
25
|
+
- Technical Specifications
|
|
26
|
+
- Test Specifications
|
|
27
|
+
|
|
28
|
+
# Pre-requisites
|
|
29
|
+
- Claude Code (Preferably MAX plan)
|
|
30
|
+
- Claude Code Plugins
|
|
31
|
+
- Playwright Test Generator Plugin (for generating Playwright test specifications and test scripts)
|
|
32
|
+
- Ralph Loop Plugin (for orchestrating the development and bug fixing process)
|
|
33
|
+
- Node and npm version 18 or above (for serving the HTML mockups and running the Playwright test scripts)
|
|
34
|
+
|
|
35
|
+
# Getting Started
|
|
36
|
+
- Plugin Name: Compound Context (CO2) Workflow (see below for details)
|
|
37
|
+
|
|
38
|
+
To install the plugin:
|
|
39
|
+
~~~bash
|
|
40
|
+
# Step 1: Add the marketplace
|
|
41
|
+
/plugin marketplace add rashidee/co2-skills
|
|
42
|
+
|
|
43
|
+
# Step 2: Install the plugin
|
|
44
|
+
/plugin install co2-skills@co2
|
|
45
|
+
~~~
|
|
46
|
+
|
|
47
|
+
# Development Workflow
|
|
48
|
+
|
|
49
|
+
## Context Window Preparation
|
|
50
|
+
|
|
51
|
+
_This is the initial step where you want to ensure the AI coding agent has all the information needed to work._
|
|
52
|
+
|
|
53
|
+
### Project Bootstrap — Brainstorm Session
|
|
54
|
+
|
|
55
|
+
_For a brand-new project, the context (root `CLAUDE.md` + one `PRD.md` per application) is produced through an iterative, file-based brainstorming session instead of a one-shot generation:_
|
|
56
|
+
|
|
57
|
+
1. Run `/util-projectinit "<your application idea>"` — sets up the brainstorm kit in the project folder:
|
|
58
|
+
- `<topic>.brainstorm.md` — your session document (seeded with your idea)
|
|
59
|
+
- `brainstorm-protocol.md` — the turn-based session protocol
|
|
60
|
+
- `co2-context-generation-guide.md` — the artifact rules the agent follows when drafting
|
|
61
|
+
- the `/brainstorm-loop` slash command (ships with the plugin)
|
|
62
|
+
2. Fill in the `# Context` section of `<topic>.brainstorm.md` with your application idea — even one paragraph is enough; the agent probes for the rest.
|
|
63
|
+
3. Run `/brainstorm-loop` — each round the agent refines the drafts (`CLAUDE.md` in Phase A, then every application's `PRD.md` in Phase B) and appends focused questions to the session document; you answer in the document and **flip a status row** to commit your turn.
|
|
64
|
+
4. Flip `Session completion` to COMPLETED when satisfied — the context tree is finalized. Continue with `/util-projectsync`.
|
|
65
|
+
|
|
66
|
+
> 💡 The loop is token-efficient: it blocks on a 60-second file poll and only acts on your status flip — saves alone never trigger the agent, and idle waiting costs essentially zero tokens. It is **non-destructive** — existing session files are never overwritten.
|
|
67
|
+
|
|
68
|
+
### CLAUDE.md
|
|
69
|
+
⚠️ **Shared by the team - Checked in the repository**
|
|
70
|
+
- Project detail
|
|
71
|
+
- Project goals
|
|
72
|
+
- Terminology (if any)
|
|
73
|
+
- Applications (1 or more)
|
|
74
|
+
- Modules (System Modules and Business Modules)
|
|
75
|
+
|
|
76
|
+
### DEVTOOL.md
|
|
77
|
+
⚠️ **Per developer - NOT CHECKED IN the repository**
|
|
78
|
+
- Local development tools available to the AI coding agent (JDK, Maven, Node.js, kubectl, database CLIs, etc.)
|
|
79
|
+
|
|
80
|
+
### ENVIRONMENT.md
|
|
81
|
+
⚠️ **Per developer - NOT CHECKED IN the repository**
|
|
82
|
+
- Per-environment configs and credentials for all 3rd party supporting applications
|
|
83
|
+
- Auto-generated/updated by `util-preparek8senv` skill
|
|
84
|
+
|
|
85
|
+
## PRD Development
|
|
86
|
+
|
|
87
|
+
**PRD.md** is the main input for the development phase, which contains the User Stories, Non-Functional Requirements and Constraints. It is also the main reference for all the skills in this phase. The PRD.md should be updated and versioned as the project progresses.
|
|
88
|
+
|
|
89
|
+
> 💡 For a new project, the initial PRD.md of every application is generated by the brainstorm session above (Phase B). From then on you maintain it manually and evolve it with `/util-updprd`.
|
|
90
|
+
|
|
91
|
+
Example of the PRD.md structure:
|
|
92
|
+
~~~markdown
|
|
93
|
+
# Business Modules
|
|
94
|
+
|
|
95
|
+
## <Module 1>
|
|
96
|
+
### User Story
|
|
97
|
+
[v1.0.0]
|
|
98
|
+
- As a <type of user> I want to <perform some task> so that I can <achieve some goal>.
|
|
99
|
+
- As a <type of user> I want to <perform some task> so that I can <achieve some goal>.
|
|
100
|
+
### Non-Functional Requirement
|
|
101
|
+
[v1.0.0]
|
|
102
|
+
- <Non-Functional Requirement 1>
|
|
103
|
+
- ~~<Non-Functional Requirement 2>~~
|
|
104
|
+
[v1.0.1]
|
|
105
|
+
- <Updated Non-Functional Requirement 1>
|
|
106
|
+
- Removed <Non-Functional Requirement 2> since <reason for removal>
|
|
107
|
+
### Constraint
|
|
108
|
+
[v1.0.0]
|
|
109
|
+
- <Constraint 1>
|
|
110
|
+
- <Constraint 2>
|
|
111
|
+
### Reference
|
|
112
|
+
[v1.0.0]
|
|
113
|
+
- <Reference 1>
|
|
114
|
+
|
|
115
|
+
### <Module 2>
|
|
116
|
+
...
|
|
117
|
+
~~~
|
|
118
|
+
|
|
119
|
+
## PRD Clean Up
|
|
120
|
+
|
|
121
|
+
_Since PRD.md is based on human input, it may require some validation and each new points added need to be tagged with unique ID for traceability:_
|
|
122
|
+
|
|
123
|
+
The skills to invoke the `clean-up` process are:
|
|
124
|
+
|
|
125
|
+
| Skill | Example Skill Invocation | Objective | Output |
|
|
126
|
+
|--------------------|-------------------------------------------------|------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
127
|
+
| util-projectinit | /util-projectinit "app idea" | New Project Bootstrap (Brainstorm Setup) | Sets up a file-based brainstorming session in the project folder: generates `<topic>.brainstorm.md` from the appdev template (seeded with your idea), copies `brainstorm-protocol.md` and `co2-context-generation-guide.md`, and ensures the `/brainstorm-loop` command is installed. You fill in the session document and run `/brainstorm-loop` manually — the loop converges CLAUDE.md (Phase A) and per-application PRD.md (Phase B) round by round. Non-destructive — never overwrites existing session files. |
|
|
128
|
+
| util-projectsync | /util-projectsync | Project Structure Sync & Validation | Validates dependencies (circular, missing, logical) across all applications in CLAUDE.md. Creates missing application folders, scaffolds PRD.md and BUG.md from templates, and adds missing module sections. Inserts [TODO] annotations in CLAUDE.md for validation failures. |
|
|
129
|
+
| util-usanalyzer | /util-usanalyzer app1 | Quality Check | Identify any quality issues in the PRD.md such as incomplete stories, bad references, contradictions and duplicates. Output a report with the identified issues and suggestions for improvement. Example: "User Story 1 is incomplete because it does not have the acceptance criteria." |
|
|
130
|
+
| util-ustagger | /util-ustagger app1 v1.0.3 | Traceability | Each newly added point in PRD.md will be tagged with a unique 9-character ID code, which can be used for traceability in the later stages of the development. Example: [USL000009], [NFRL000009], [CONL000009], [REFL000009] |
|
|
131
|
+
| util-updprd | /util-updprd "add password reset for all users" | Requirement Change | Applies a free-form requirement change to the PRD.md files across the project. Determines the impacted applications, modules and subsections, decides per item whether to add/cancel/modify User Stories, NFRs, Constraints, References and Tests, auto-classifies the change as major/minor/patch, and layers the new/updated items under a NEW version tag on top of the existing versions in each PRD.md (prior versions kept immutable). Tags new items via util-ustagger and appends a CHANGELOG.md entry per impacted application. |
|
|
132
|
+
| util-preparek8senv | /util-preparek8senv [env] | K8s Infrastructure Preparation | Generates K8s StatefulSet manifests for all 3rd party supporting applications for a single target environment. Creates/updates ENVIRONMENT.md with per-environment configs. Output directly in environment/ folder (no per-environment subfolders — gitignored, each machine maintains its own copy). |
|
|
133
|
+
|
|
134
|
+
## Context Artifact Preparation
|
|
135
|
+
|
|
136
|
+
_The four artifact generation steps below (Data Model → HTML Mockup → Technical Specification → Test Specification) can each be run individually, or orchestrated in one shot:_
|
|
137
|
+
|
|
138
|
+
~~~bash
|
|
139
|
+
/conductor-feature-prepare <app_name> [version:<version>] [module:<module>] ## Runs util-ustagger, modelgen-*, mockgen-*, specgen-* and testgen-functional in sequence
|
|
140
|
+
~~~
|
|
141
|
+
|
|
142
|
+
When multiple versions are resolved, they are processed sequentially in ascending semver order — all artifacts for version N are fully generated before version N+1 begins. Say "resume preparation" to continue from where a previous session left off.
|
|
143
|
+
|
|
144
|
+
## Data Model
|
|
145
|
+
|
|
146
|
+
_The skill goal is to generate the data model for each module for you to **review** before proceeding to next step._
|
|
147
|
+
|
|
148
|
+
Example skill invocation for data model generation:
|
|
149
|
+
~~~bash
|
|
150
|
+
/modelgen-relational <app_name> ## For relational database model (SQL)
|
|
151
|
+
/modelgen-nosql <app_name> ## For NoSQL document database model (MongoDB, Couchbase, DynamoDB, Firestore, CosmosDB)
|
|
152
|
+
~~~
|
|
153
|
+
|
|
154
|
+
- Input:
|
|
155
|
+
- PRDd.md (User Stories, Non-Functional Requirements and Constraints)
|
|
156
|
+
- Output:
|
|
157
|
+
- Model Markdown file containing:
|
|
158
|
+
- Entity name
|
|
159
|
+
- Attributes (name, type, description)
|
|
160
|
+
- Relationships (type of relationship, related entity, description)
|
|
161
|
+
- ERD Diagram in Mermaid syntax
|
|
162
|
+
|
|
163
|
+
Example of the Model Markdown file structure:
|
|
164
|
+
~~~markdown
|
|
165
|
+
- context
|
|
166
|
+
- model
|
|
167
|
+
- <module_1_folder>
|
|
168
|
+
- model.md
|
|
169
|
+
- erd.mermaid
|
|
170
|
+
- <module_2_folder>
|
|
171
|
+
- model.md
|
|
172
|
+
- erd.mermaid
|
|
173
|
+
MODEL.md ## A summary of the data model for all the modules
|
|
174
|
+
~~~
|
|
175
|
+
|
|
176
|
+
### HTML Mockup
|
|
177
|
+
|
|
178
|
+
_The skill goal is to generate the HTML mockup for each screen for you to **review** before proceeding to next step._
|
|
179
|
+
|
|
180
|
+
Example skill invocation for HTML mockup generation:
|
|
181
|
+
~~~bash
|
|
182
|
+
/mockgen-tailwind <app_name> ## For generating HTML mockup using Tailwind CSS + HTMX + Alpine.js
|
|
183
|
+
/mockgen-shadcn <app_name> ## For generating React + shadcn/ui mockups (Vite + React Router, built to dist/)
|
|
184
|
+
~~~
|
|
185
|
+
|
|
186
|
+
- Input:
|
|
187
|
+
- PRD.md (User Stories, Non-Functional Requirements and Constraints)
|
|
188
|
+
- Data Model (to understand the data structure and relationships)
|
|
189
|
+
- Output:
|
|
190
|
+
- HTML mockup screens (assets only) in the application's `context/mockup/` folder
|
|
191
|
+
- **Mockup Hub** at `<root>/mockup` — ONE zero-dependency Node.js server (`npm start`, no install needed) that serves the mockups of ALL applications, with a landing page listing every application and role (roles are unclickable until their mockups are ready) and a configurable port (`PORT` env var or `mockup.config.json`)
|
|
192
|
+
- **MOCKUP.html** — A per-application screen index (served by the hub at `/{app_slug}`) with links to each screen, and each screen will have a link back to the related User Stories, Non-Functional Requirements and Constraints in PRD.md for traceability.
|
|
193
|
+
|
|
194
|
+
Example of the HTML mockup output:
|
|
195
|
+
~~~markdown
|
|
196
|
+
- mockup ## At project root — the shared Mockup Hub (ONE Node app serving ALL applications' mockups)
|
|
197
|
+
- server.js
|
|
198
|
+
- package.json
|
|
199
|
+
- mockup.config.json ## Configurable port (or PORT env var)
|
|
200
|
+
- <app_folder>
|
|
201
|
+
- context
|
|
202
|
+
- mockup ## Assets only — no per-app server
|
|
203
|
+
- <role_1_folder>
|
|
204
|
+
- screen1.html
|
|
205
|
+
- screen2.html
|
|
206
|
+
- <role_2_folder>
|
|
207
|
+
- screen1.html
|
|
208
|
+
- screen2.html
|
|
209
|
+
- MOCKUP.html ## Per-application screen index (served by the hub at /{app_slug})
|
|
210
|
+
- mockup-manifest.json ## Hub discovery manifest (app, stack, roles, version)
|
|
211
|
+
~~~
|
|
212
|
+
|
|
213
|
+
### Technical Specification
|
|
214
|
+
|
|
215
|
+
_The skill goal is to generate the technical specification for the application, which includes the architecture, components, APIs, etc. for you to **review** before proceeding to next step._
|
|
216
|
+
|
|
217
|
+
>⚠️ At this point, you should already **have determined the technology stack** as the technical specification generation will be based on the specific technology stack skill
|
|
218
|
+
|
|
219
|
+
Example skill invocation for technical specification generation:
|
|
220
|
+
~~~bash
|
|
221
|
+
/specgen-spring-jpa-jtehtmx <app_name> ## For generating Spring Boot 3 web application technical specification with JTE, Tailwind and htmx.
|
|
222
|
+
/specgen-spring-jpa-restapi <app_name> ## For generating Spring Boot 3 REST API technical specification.
|
|
223
|
+
/specgen-laravel-eloquent-bladehtmx <app_name> ## For generating Laravel 12 web application technical specification with Blade, Tailwind and htmx
|
|
224
|
+
/specgen-react-mui <app_name> ## For generating React 19 SPA technical specification with TypeScript, Vite, Material UI and more.
|
|
225
|
+
/specgen-react-tailwind <app_name> ## For generating React 19 SPA technical specification with TypeScript, Vite, Tailwind CSS, Headless UI and more.
|
|
226
|
+
/specgen-nextjs-react-tailwind <app_name> ## For generating Next.js 15 full-stack web application technical specification with App Router, Server Actions, Drizzle + SQLite, tiered auth (OIDC / hand-rolled sessions / Better Auth), Tailwind CSS v4 and shadcn/ui.
|
|
227
|
+
/specgen-flutter-riverpod <app_name> ## For generating Flutter 3 mobile application technical specification with Riverpod, Hive, Dio, go_router and Firebase Messaging.
|
|
228
|
+
/specgen-ts-cli <app_name> ## For generating Node.js CLI application technical specification with TypeScript, Commander.js and tsup.
|
|
229
|
+
/specgen-node-cli-web <app_name> ## For generating self-hosted Node.js web application technical specification distributed as a global npm CLI — Hono, embedded React SPA, Drizzle + SQLite, hand-rolled sessions and tsup.
|
|
230
|
+
~~~
|
|
231
|
+
|
|
232
|
+
- Input:
|
|
233
|
+
- PRD.md (User Stories, Non-Functional Requirements and Constraints)
|
|
234
|
+
- Data Model (to understand the data structure and relationships)
|
|
235
|
+
- HTML Mockup (to understand the UI design and user interactions)
|
|
236
|
+
- Output:
|
|
237
|
+
- Technical specification document containing:
|
|
238
|
+
- **SPEC.md** — A per-module specification file containing:
|
|
239
|
+
- Module overview (package, type, authentication)
|
|
240
|
+
- Traceability table mapping back to User Story IDs, NFR IDs and Constraint IDs
|
|
241
|
+
- Component design (components, responsibilities, interactions)
|
|
242
|
+
- **SPECIFICATION.md** — A summary of the technical specification for all the modules
|
|
243
|
+
|
|
244
|
+
Example of the technical specification output:
|
|
245
|
+
~~~markdown- context
|
|
246
|
+
- specification
|
|
247
|
+
- <module_1_folder>
|
|
248
|
+
- SPEC.md
|
|
249
|
+
- <module_2_folder>
|
|
250
|
+
- SPEC.md
|
|
251
|
+
SPECIFICATION.md ## A summary of the technical specification for all the modules
|
|
252
|
+
~~~
|
|
253
|
+
|
|
254
|
+
### Test Specification Generation
|
|
255
|
+
_The skill goal is to generate the test specification for the application, which includes the test cases and scenarios to validate the functionality and performance of the application, for you to **review** before proceeding to next step._
|
|
256
|
+
|
|
257
|
+
Example skill invocation for test specification generation:
|
|
258
|
+
~~~bash
|
|
259
|
+
/testgen-functional <app_name> ## For generating Playwright E2E test plan and per-module test specifications as Markdown blueprints.
|
|
260
|
+
~~~
|
|
261
|
+
|
|
262
|
+
- Input:
|
|
263
|
+
- PRD.md (User Stories, Non-Functional Requirements and Constraints)
|
|
264
|
+
- Data Model (to understand the data structure and relationships)
|
|
265
|
+
- HTML Mockup (to understand the UI design and user interactions)
|
|
266
|
+
- Technical Specification (to understand the technical design and implementation)
|
|
267
|
+
- Output:
|
|
268
|
+
- Test specification document containing:
|
|
269
|
+
- **TEST_SPEC.md** — A per-module test specification file containing:
|
|
270
|
+
- Module overview
|
|
271
|
+
- Traceability table mapping back to User Story IDs, NFR IDs and Constraint IDs
|
|
272
|
+
- Test cases and scenarios (test case ID, description, preconditions, steps, expected results)
|
|
273
|
+
- **TEST_PLAN.mmd** - Summary of all the test cases and scenarios.
|
|
274
|
+
|
|
275
|
+
Example of the test specification output:
|
|
276
|
+
~~~markdown
|
|
277
|
+
- context
|
|
278
|
+
- test
|
|
279
|
+
- <module_1_folder>
|
|
280
|
+
- TEST_SPEC.md
|
|
281
|
+
- <module_2_folder>
|
|
282
|
+
- TEST_SPEC.md
|
|
283
|
+
TEST_PLAN.mmd ## A summary of all the test cases and scenarios in Mermaid syntax
|
|
284
|
+
~~~
|
|
285
|
+
|
|
286
|
+
### K8s Environment Preparation
|
|
287
|
+
|
|
288
|
+
_The skill goal is to prepare the Kubernetes infrastructure by generating K8s manifests for all 3rd party supporting applications (databases, message queues, caches, SSO, API gateways, etc.) across all environments defined in CLAUDE.md._
|
|
289
|
+
|
|
290
|
+
>⚠️ This step should be run **before** application development to ensure the infrastructure is ready.
|
|
291
|
+
|
|
292
|
+
Example skill invocation for K8s environment preparation:
|
|
293
|
+
~~~bash
|
|
294
|
+
/util-preparek8senv [environment] ## Generates K8s manifests for all 3rd party apps for one target environment
|
|
295
|
+
~~~
|
|
296
|
+
|
|
297
|
+
- Input:
|
|
298
|
+
- CLAUDE.md (environments, 3rd party applications, credential rules)
|
|
299
|
+
- DEVTOOL.md (local CLI tools — kubectl, mysql, mongosh, etc.)
|
|
300
|
+
- ENVIRONMENT.md (per-environment configs and credentials — created if missing)
|
|
301
|
+
- Output:
|
|
302
|
+
- **ENVIRONMENT.md** — Created/updated with per-environment configs for all 3rd party apps
|
|
303
|
+
- **environment/\<env\>/** — Per-environment folders with K8s manifests:
|
|
304
|
+
- `namespace.yaml` — Project namespace
|
|
305
|
+
- `<service>.yaml` — One StatefulSet-based manifest per 3rd party application (with PVC, ConfigMap, Secret, headless Service, NodePort Service)
|
|
306
|
+
|
|
307
|
+
Example of the output:
|
|
308
|
+
~~~markdown
|
|
309
|
+
- environment
|
|
310
|
+
- localhost
|
|
311
|
+
- namespace.yaml
|
|
312
|
+
- hub_cache.yaml
|
|
313
|
+
- hub_core_database.yaml
|
|
314
|
+
- hub_support_database.yaml
|
|
315
|
+
- hub_single_sign_on.yaml
|
|
316
|
+
- ...
|
|
317
|
+
- home_server
|
|
318
|
+
- namespace.yaml
|
|
319
|
+
- hub_cache.yaml
|
|
320
|
+
- hub_core_database.yaml
|
|
321
|
+
- ...
|
|
322
|
+
- ENVIRONMENT.md
|
|
323
|
+
~~~
|
|
324
|
+
|
|
325
|
+
### Application Development
|
|
326
|
+
_The skill goal is to develop the application based on all the context generated above, and you can track the development progress using the output from this skill._
|
|
327
|
+
|
|
328
|
+
>⚠️ Requires the context artifacts (models, mockups, specifications, test specs) to already exist — run `/conductor-feature-prepare <app_name>` first if they don't. Say "resume implementation" to continue from where a previous session left off.
|
|
329
|
+
|
|
330
|
+
Example skill invocation for application development:
|
|
331
|
+
~~~bash
|
|
332
|
+
/conductor-feature-develop <app_name> ## For orchestrating full-stack application development module-by-module using all generated artifacts.
|
|
333
|
+
~~~
|
|
334
|
+
|
|
335
|
+
- Input:
|
|
336
|
+
- PRD.md (User Stories, Non-Functional Requirements and Constraints)
|
|
337
|
+
- Data Model (to understand the data structure and relationships)
|
|
338
|
+
- HTML Mockup (to understand the UI design and user interactions)
|
|
339
|
+
- Technical Specification (to understand the technical design and implementation)
|
|
340
|
+
- Test Specification (to understand the test cases and scenarios to validate the functionality and performance of the application)
|
|
341
|
+
- Output:
|
|
342
|
+
- Source code files for the application, organized by module and component.
|
|
343
|
+
- **IMPLEMENTATION_MASTER.md** — Master tracking file containing:
|
|
344
|
+
- Application overview (name, source code path, context path)
|
|
345
|
+
- Overall status (PENDING → IN PROGRESS → COMPLETED)
|
|
346
|
+
- Execution order (copied from TEST_PLAN.md)
|
|
347
|
+
- Pre-implementation checklist (project skeleton, build config, security, layouts, database, error handling, theming, pagination, Playwright setup)
|
|
348
|
+
- Module implementation status table (module name, layer, status, start/completion dates)
|
|
349
|
+
- Module details with dependencies and resource paths
|
|
350
|
+
- **IMPLEMENTATION_MODULE.md** — Per-module tracking file containing:
|
|
351
|
+
- Module overview (name, layer, status, dates)
|
|
352
|
+
- Resources table (user story IDs, model/schema/specification/test spec/mockup paths)
|
|
353
|
+
- Implementation checklist (entities, repositories, services, mappers, controllers, views, tests)
|
|
354
|
+
- User Stories and NFR completion checklists for traceability
|
|
355
|
+
- Visual consistency checklist (colors, spacing, layout, typography)
|
|
356
|
+
- Source files created table
|
|
357
|
+
- Implementation log with timestamped entries
|
|
358
|
+
- **Playwright E2E test suite** — functional and visual consistency tests per module
|
|
359
|
+
- **TRACEABILITY.md** — per-application requirement-to-code traceability matrix (generated by `tracegen-matrix` as the final step, see below)
|
|
360
|
+
|
|
361
|
+
### Traceability Matrix
|
|
362
|
+
|
|
363
|
+
_The skill goal is to link every PRD requirement ID (User Stories, NFRs, Constraints) and bug code to the source code that implements it._
|
|
364
|
+
|
|
365
|
+
>⚠️ This step is automatically invoked as the final traceability step of `conductor-feature-develop` and `conductor-defect`. You can also invoke it manually.
|
|
366
|
+
|
|
367
|
+
Example skill invocation for traceability matrix generation:
|
|
368
|
+
~~~bash
|
|
369
|
+
/tracegen-matrix <app_name> [version] [module] ## Generates/updates the per-application traceability matrix
|
|
370
|
+
~~~
|
|
371
|
+
|
|
372
|
+
- Input:
|
|
373
|
+
- PRD.md (requirement IDs) and per-module SPEC.md files (traceability tables)
|
|
374
|
+
- Application source code — resolves links primarily from the in-source CO2 traceability comments (`Implements:`, `NFR:`, `Constraints:`, `Bug fixes:`) written during development and bug fixing, with a name-based source-scan fallback
|
|
375
|
+
- (Optional) codebase-memory MCP for precision enrichment — works fully without it
|
|
376
|
+
- Output:
|
|
377
|
+
- **context/TRACEABILITY.md** — matrix linking every requirement ID and bug code to the implementing source files
|
|
378
|
+
|
|
379
|
+
### Deployment Artifacts
|
|
380
|
+
|
|
381
|
+
_The skill goal is to generate deployment artifacts (Dockerfile and deployment specification) for the application, for you to **review** before deploying._
|
|
382
|
+
|
|
383
|
+
>⚠️ This step is automatically invoked by `conductor-feature-develop` after all modules are completed. You can also invoke it manually.
|
|
384
|
+
|
|
385
|
+
Example skill invocation for deployment artifact generation:
|
|
386
|
+
~~~bash
|
|
387
|
+
/depgen-k8s <app_name> [environment] ## For generating Dockerfile and Kubernetes manifests
|
|
388
|
+
~~~
|
|
389
|
+
|
|
390
|
+
- Input:
|
|
391
|
+
- SPECIFICATION.md (to understand the technology stack and configuration)
|
|
392
|
+
- CLAUDE.md (to understand dependencies and 3rd party applications)
|
|
393
|
+
- Application source code (to detect stack via pom.xml, composer.json, or package.json)
|
|
394
|
+
- Output:
|
|
395
|
+
- **Dockerfile** — Production-ready, multi-stage Docker build file in the application folder
|
|
396
|
+
- **Kubernetes manifests** — Manifests directly in `<app_folder>/k8s/` (gitignored, each machine maintains its own copy) containing:
|
|
397
|
+
- Namespace, ConfigMap, Secret, Deployment, Service, Ingress (separate YAML files)
|
|
398
|
+
- Environment variable mapping from `.env` to Kubernetes ConfigMap/Secret
|
|
399
|
+
- Health check and readiness probe configuration
|
|
400
|
+
|
|
401
|
+
Example of the deployment artifact output:
|
|
402
|
+
~~~markdown
|
|
403
|
+
- <application_folder>
|
|
404
|
+
- Dockerfile
|
|
405
|
+
- k8s
|
|
406
|
+
- local_development_environment
|
|
407
|
+
- namespace.yaml
|
|
408
|
+
- configmap.yaml
|
|
409
|
+
- secret.yaml
|
|
410
|
+
- deployment.yaml
|
|
411
|
+
- service.yaml
|
|
412
|
+
- home_server_environment
|
|
413
|
+
- namespace.yaml
|
|
414
|
+
- configmap.yaml
|
|
415
|
+
- secret.yaml
|
|
416
|
+
- deployment.yaml
|
|
417
|
+
- service.yaml
|
|
418
|
+
~~~
|
|
419
|
+
|
|
420
|
+
| Skill | Technology Stack |
|
|
421
|
+
|-------|-----------------|
|
|
422
|
+
| `depgen-k8s` | Kubernetes (Spring Boot, Laravel, Node.js) |
|
|
423
|
+
|
|
424
|
+
# Bug Fixing Workflow
|
|
425
|
+
|
|
426
|
+
## Bug Reporting
|
|
427
|
+
Report bugs in `<app_folder>/context/BUG.md` following the module-based structure:
|
|
428
|
+
~~~markdown
|
|
429
|
+
# Business Module
|
|
430
|
+
|
|
431
|
+
## <Module Name>
|
|
432
|
+
[v1.0.4]
|
|
433
|
+
- Bug description here
|
|
434
|
+
- Priority: High
|
|
435
|
+
- Steps to Reproduce:
|
|
436
|
+
- Expected Result:
|
|
437
|
+
~~~
|
|
438
|
+
|
|
439
|
+
## Bug Fixing
|
|
440
|
+
|
|
441
|
+
Example skill invocation for bug fixing:
|
|
442
|
+
~~~bash
|
|
443
|
+
/conductor-defect <app_name> ## For orchestrating bug fixing from BUG.md
|
|
444
|
+
~~~
|
|
445
|
+
|
|
446
|
+
- Input:
|
|
447
|
+
- BUG.md (bug reports organized by module)
|
|
448
|
+
- All context artifacts from the development phase (PRD.md, models, mockups, specifications, test specs)
|
|
449
|
+
- Flow:
|
|
450
|
+
1. **Tag untagged bugs** — Assign sequential `[BUG-XXX]` tags to new bug entries in BUG.md
|
|
451
|
+
2. **Create BUG_MASTER.md** — Master tracking checklist with all bugs, statuses and summary counts
|
|
452
|
+
3. **For each bug** (processed sequentially):
|
|
453
|
+
- **Reproduce** — Write and run a Playwright script to reproduce the bug, capture screenshot
|
|
454
|
+
- **Write test spec** — Create `BUG_TEST_SPEC.md` with verification steps and expected results
|
|
455
|
+
- **Analyze and plan** — Identify root cause, assess impact, create `BUG_FIX_PLAN.md` with fix checklist
|
|
456
|
+
- **Apply fix** — Make code changes as planned, log progress in fix plan
|
|
457
|
+
- **Verify fix** — Run Playwright verification script, capture post-fix screenshot
|
|
458
|
+
- **Update artifacts** — Sync affected mockups, specifications, models and PRD.md with the fix
|
|
459
|
+
4. **Completion** — Update BUG_MASTER.md status to COMPLETED when all bugs are resolved
|
|
460
|
+
- Output:
|
|
461
|
+
- **BUG_MASTER.md** — Master tracking file with bug statuses (NEW, IN_PROGRESS, FIXED, CANNOT_REPRODUCE, HIGH_IMPACT)
|
|
462
|
+
- **Per-bug folder** (`<app_folder>/context/bug/<module-slug>/<BUG-XXX>/`) containing:
|
|
463
|
+
- `reproduce.spec.ts` — Playwright reproduction script
|
|
464
|
+
- `screenshot_reproduce.png` — Pre-fix screenshot
|
|
465
|
+
- `BUG_TEST_SPEC.md` — Test specification for verification
|
|
466
|
+
- `BUG_FIX_PLAN.md` — Fix plan with checklist, files to modify, and timestamped fix log
|
|
467
|
+
- `screenshot_fixed.png` — Post-fix screenshot
|
|
468
|
+
|
|
469
|
+
Example of the BUG_MASTER.md structure:
|
|
470
|
+
~~~markdown
|
|
471
|
+
- context
|
|
472
|
+
- bug
|
|
473
|
+
- <module_1_folder>
|
|
474
|
+
- <BUG-001>
|
|
475
|
+
- reproduce.spec.ts
|
|
476
|
+
- screenshot_reproduce.png
|
|
477
|
+
- BUG_TEST_SPEC.md
|
|
478
|
+
- BUG_FIX_PLAN.md
|
|
479
|
+
- screenshot_fixed.png
|
|
480
|
+
- <BUG-002>
|
|
481
|
+
...
|
|
482
|
+
- <module_2_folder>
|
|
483
|
+
- <BUG-003>
|
|
484
|
+
...
|
|
485
|
+
BUG_MASTER.md ## Master tracking file for all bugs in the application
|
|
486
|
+
~~~
|
|
487
|
+
|
|
488
|
+
# Directory Structure
|
|
489
|
+
- Each application will have its own root-level folder containing both context and source code.
|
|
490
|
+
- The context folder will contain all the artifacts generated in the Context Window Preparation Phase and Development Phase
|
|
491
|
+
- The source code files will be generated in the root-level folder of the application.
|
|
492
|
+
- The CLAUDE.md, DEVTOOL.md and ENVIRONMENT.md will be in the root-level folder of the project, and they will be used as reference for all the applications in the project.
|
|
493
|
+
- The brainstorm kit files (`<topic>.brainstorm.md`, `brainstorm-protocol.md`, `co2-context-generation-guide.md`) also live at the project root when the project was bootstrapped via `/util-projectinit`.
|
|
494
|
+
- Example of the directory structure:
|
|
495
|
+
|
|
496
|
+
~~~
|
|
497
|
+
- <project_folder>
|
|
498
|
+
- CLAUDE.md
|
|
499
|
+
- DEVTOOL.md (per developer — local CLI tools)
|
|
500
|
+
- ENVIRONMENT.md (per developer — per-environment configs/credentials)
|
|
501
|
+
- <topic>.brainstorm.md (brainstorm session document — generated by util-projectinit)
|
|
502
|
+
- brainstorm-protocol.md (brainstorm turn protocol — copied by util-projectinit)
|
|
503
|
+
- co2-context-generation-guide.md (artifact rules for the brainstorm — copied by util-projectinit)
|
|
504
|
+
- environment (K8s manifests for 3rd party apps — generated by util-preparek8senv; gitignored, each machine has its own copy)
|
|
505
|
+
- <application_1_folder>
|
|
506
|
+
- context
|
|
507
|
+
- model
|
|
508
|
+
- <module_1_folder>
|
|
509
|
+
- model.md
|
|
510
|
+
- erd.mermaid
|
|
511
|
+
- <module_2_folder>
|
|
512
|
+
- model.md
|
|
513
|
+
- erd.mermaid
|
|
514
|
+
- mockup
|
|
515
|
+
- <role_1_folder>
|
|
516
|
+
- screen1.html
|
|
517
|
+
- screen2.html
|
|
518
|
+
- <role_2_folder>
|
|
519
|
+
- screen1.html
|
|
520
|
+
- screen2.html
|
|
521
|
+
MOCKUP.html
|
|
522
|
+
- specification
|
|
523
|
+
- <module_1_folder>
|
|
524
|
+
- SPEC.md
|
|
525
|
+
- <module_2_folder>
|
|
526
|
+
- SPEC.md
|
|
527
|
+
SPECIFICATION.md
|
|
528
|
+
- test
|
|
529
|
+
- <module_1_folder>
|
|
530
|
+
- TEST_SPEC.md
|
|
531
|
+
- <module_2_folder>
|
|
532
|
+
- TEST_SPEC.md
|
|
533
|
+
TEST_PLAN.mmd
|
|
534
|
+
- develop
|
|
535
|
+
- bug
|
|
536
|
+
- PRD.md
|
|
537
|
+
- BUG.md
|
|
538
|
+
- CHANGELOG.md (auto-generated — per-application version history; serves as version gate)
|
|
539
|
+
- (source code files)
|
|
540
|
+
~~~
|
|
541
|
+
|
|
542
|
+
# Community
|
|
543
|
+
|
|
544
|
+
| Document | Description |
|
|
545
|
+
|----------|-------------|
|
|
546
|
+
| [CONTRIBUTING.md](CONTRIBUTING.md) | Full contributor guide — repository structure, skill anatomy, development workflow, quality checklist, branch strategy and commit conventions |
|
|
547
|
+
| [NEW_SKILL.md](NEW_SKILL.md) | Issue template for proposing a new skill before starting development |
|
|
548
|
+
| [BUG_REPORT.md](BUG_REPORT.md) | Issue template for reporting incorrect behaviour in an existing skill |
|
|
549
|
+
| [FEATURE_REQUEST.md](FEATURE_REQUEST.md) | Issue template for suggesting improvements to the workflow or existing skills |
|
|
550
|
+
| [PULL_REQUEST_TEMPLATE.md](PULL_REQUEST_TEMPLATE.md) | PR template with checklists for structure, content, output contract and testing |
|
|
551
|
+
|
|
552
|
+
# Contribution
|
|
553
|
+
We welcome contributions from the community! Here are some ways you can contribute:
|
|
554
|
+
|
|
555
|
+
## Specification Generator Skills (`specgen-*`)
|
|
556
|
+
|
|
557
|
+
This is the **highest impact area** for contribution. The CO2 workflow is designed to be technology-agnostic, but each `specgen-*` skill targets a specific technology stack. We currently support:
|
|
558
|
+
|
|
559
|
+
| Skill | Technology Stack |
|
|
560
|
+
|-------|-----------------|
|
|
561
|
+
| `specgen-spring-jpa-jtehtmx` | Spring Boot 3 + JTE + Tailwind + htmx |
|
|
562
|
+
| `specgen-spring-jpa-restapi` | Spring Boot 3 REST API |
|
|
563
|
+
| `specgen-laravel-eloquent-bladehtmx` | Laravel 12 + Blade + Tailwind + htmx |
|
|
564
|
+
| `specgen-react-mui` | React 19 + TypeScript 5 + Vite 6 + Material UI v6 |
|
|
565
|
+
| `specgen-react-tailwind` | React 19 + TypeScript 5 + Vite 6 + Tailwind CSS v3 + Headless UI v2 + Heroicons |
|
|
566
|
+
| `specgen-nextjs-react-tailwind` | Next.js 15 (App Router) + React 19 + TypeScript 5 + Tailwind CSS v4 + shadcn/ui + Drizzle ORM + SQLite + tiered auth (OIDC / hand-rolled sessions / Better Auth) + Biome + Vitest + Playwright |
|
|
567
|
+
| `specgen-flutter-riverpod` | Flutter 3 + Dart 3 + Riverpod 2 + Hive 2 + Dio 5 + go_router 14 + Firebase Messaging |
|
|
568
|
+
| `specgen-ts-cli` | Node.js CLI + TypeScript + Commander.js + tsup + pkg |
|
|
569
|
+
| `specgen-node-cli-web` | Self-hosted Node.js web app as a global npm CLI — Node 22 + commander 12 + Hono 4 + embedded React 19/Vite 6 SPA + Tailwind CSS v4 + shadcn/ui + Drizzle ORM + SQLite + hand-rolled scrypt sessions + tsup + Biome + Vitest + Playwright |
|
|
570
|
+
| `specgen-sdk-java` | Java SDK library — Maven Multi-Release fat JAR (JDK 8 baseline + JDK 11+ overlay) + OkHttp |
|
|
571
|
+
|
|
572
|
+
We are looking for contributors to create new `specgen-*` skills for other technology stacks, such as:
|
|
573
|
+
|
|
574
|
+
- **Backend**: Django, FastAPI, Express.js, NestJS, ASP.NET Core, Ruby on Rails, Phoenix (Elixir), Go (Gin/Echo/Fiber)
|
|
575
|
+
- **Frontend**: Nuxt.js, SvelteKit, Remix, Astro
|
|
576
|
+
- **Mobile**: React Native, Swift (iOS), Kotlin (Android)
|
|
577
|
+
- **Full-stack**: T3 Stack, RedwoodJS, Adonis.js, Meteor
|
|
578
|
+
|
|
579
|
+
Each `specgen-*` skill takes the same inputs (PRD.md, data models, HTML mockups) and produces a `SPECIFICATION.md` summary and per-module `SPEC.md` files tailored to the target stack. If you are experienced in a technology stack not listed above, your contribution would help the community generate specifications for that stack.
|
|
580
|
+
|
|
581
|
+
## Deployment Generator Skills (`depgen-*`)
|
|
582
|
+
|
|
583
|
+
We currently support:
|
|
584
|
+
|
|
585
|
+
| Skill | Deployment Stack |
|
|
586
|
+
|-------|-----------------|
|
|
587
|
+
| `depgen-k8s` | Kubernetes (Spring Boot, Laravel, Node.js) |
|
|
588
|
+
|
|
589
|
+
We are looking for contributors to create new `depgen-*` skills for other deployment strategies, such as:
|
|
590
|
+
|
|
591
|
+
- **Container Orchestration**: Docker Compose, Docker Swarm, Nomad
|
|
592
|
+
- **Cloud-native**: AWS ECS/Fargate, Google Cloud Run, Azure Container Apps
|
|
593
|
+
- **Platform-as-a-Service**: Heroku, Railway, Fly.io, Render
|
|
594
|
+
- **Serverless**: AWS Lambda + API Gateway, Vercel, Netlify
|
|
595
|
+
- **Infrastructure-as-Code**: Terraform, Pulumi, CDK
|
|
596
|
+
|
|
597
|
+
Each `depgen-*` skill takes the same inputs (SPECIFICATION.md, CLAUDE.md, application source code) and produces a `Dockerfile` and deployment manifests tailored to the target deployment strategy.
|
|
598
|
+
|
|
599
|
+
## Other Contribution Areas
|
|
600
|
+
|
|
601
|
+
- **Data Model Skills (`modelgen-*`)** — Support for additional database types (e.g., graph databases like Neo4j, time-series databases like InfluxDB)
|
|
602
|
+
- **Mockup Generator Skills (`mockgen-*`)** — Currently supports `mockgen-tailwind` (Tailwind + HTMX + Alpine.js) and `mockgen-shadcn` (React + Vite + shadcn/ui), both served by the single shared Mockup Hub at `<root>/mockup`. Contributions welcome for alternative UI frameworks or design systems (e.g., Bootstrap, Material UI, Ant Design)
|
|
603
|
+
- **Test Generator Skills (`testgen-*`)** — Support for additional testing frameworks (e.g., Cypress, Selenium)
|
|
604
|
+
- **Bug reports and feature requests** — Open an issue at https://github.com/rashidee/co2-skills/issues
|
|
605
|
+
- **Documentation improvements** — Help improve the README, skill documentation, or examples
|
|
606
|
+
|
|
607
|
+
# Example Applications
|
|
608
|
+
|
|
609
|
+
Below are example applications developed using the CO2 workflow. More examples will be added over time to demonstrate the versatility of the workflow across different domains and technology stacks.:
|
|
610
|
+
|
|
611
|
+
1. **SimpleCMS** — A simple content management system built from structured requirements through to working code. Demonstrates the full CO2 workflow end-to-end.
|
|
612
|
+
- Admin Portal: Spring Boot 3 + JTE + Tailwind + htmx
|
|
613
|
+
- Landing Page: Laravel 12 + Blade + htmx
|
|
614
|
+
- Database: PostgreSQL 14
|
|
615
|
+
- Repository: [co2-example-simplecms](https://github.com/rashidee/co2-example-simplecms)
|
|
616
|
+
|
|
617
|
+
# Disclaimer
|
|
618
|
+
🤖 Currently only Claude Code Agent is supported, but we are planning to support more AI coding agents in the future.
|
|
619
|
+
|
|
620
|
+
🪙 This workflow can consume a lot of tokens. It is designed to generate consistent and comprehensive context for the AI coding agent, which may require a large amount of tokens. Please be mindful of the token usage when using this workflow.
|
|
621
|
+
|
|
622
|
+
🆕 This workflow is currently designed for new application development, not maintenance of existing application. We are planning to support maintenance of existing application in the future, but for now please use this workflow for new application development only.
|
|
623
|
+
|
|
624
|
+
🚧 `**THIS IS STILL A WORK IN PROGRESS**`. We are continuously improving the workflow and the skills, so please expect some changes and updates in the future. We welcome any feedback and suggestions for improvement.
|
|
625
|
+
|