ctx-cc 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -12
- package/agents/ctx-designer.md +638 -0
- package/agents/ctx-verifier.md +168 -11
- package/commands/help.md +91 -10
- package/commands/init.md +74 -7
- package/package.json +2 -2
- package/templates/BRAND_KIT.md +265 -0
- package/templates/DESIGN_BRIEF.md +163 -0
- package/templates/PRD.json +33 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# CTX 2.
|
|
1
|
+
# CTX 2.3 - Continuous Task eXecution
|
|
2
2
|
|
|
3
|
-
> Smart workflow orchestration for Claude Code. PRD-driven. 8 commands. Debug loop until 100% fixed.
|
|
3
|
+
> Smart workflow orchestration for Claude Code. PRD-driven. Design-first. 8 commands. Debug loop until 100% fixed.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -15,11 +15,14 @@ npx ctx-cc --project # Install to .claude in current directory
|
|
|
15
15
|
npx ctx-cc --force # Overwrite existing installation
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
## Why CTX 2.
|
|
18
|
+
## Why CTX 2.3?
|
|
19
19
|
|
|
20
|
-
| Feature | Before | CTX 2.
|
|
20
|
+
| Feature | Before | CTX 2.3 |
|
|
21
21
|
|---------|--------|---------|
|
|
22
22
|
| Requirements | Ad-hoc goals | **PRD.json with stories** |
|
|
23
|
+
| Design | Manual workflow | **Full design system** |
|
|
24
|
+
| Accessibility | Manual checks | **WCAG 2.2 AA + EAA 2025** |
|
|
25
|
+
| Tokens | Custom formats | **W3C Design Tokens** |
|
|
23
26
|
| Verification | Task-based | **Acceptance criteria** |
|
|
24
27
|
| Commands | 12-27 | **8** (organized) |
|
|
25
28
|
| Router | Manual | **Smart (auto-routing)** |
|
|
@@ -48,12 +51,47 @@ CTX gathers EVERYTHING at initialization:
|
|
|
48
51
|
- **Acceptance criteria** → How to verify each story
|
|
49
52
|
- **Test credentials** → .ctx/.env (gitignored)
|
|
50
53
|
- **Constitution** → Rules for autonomous decisions
|
|
54
|
+
- **Design context** → Brand personality, inspirations, accessibility needs
|
|
51
55
|
|
|
52
56
|
Then executes autonomously:
|
|
53
57
|
- Only interrupts for architecture decisions (Rule 4)
|
|
58
|
+
- Only interrupts for design approvals at gates
|
|
54
59
|
- Uses stored credentials for browser testing
|
|
55
60
|
- Loops through stories until all pass
|
|
56
61
|
|
|
62
|
+
## Design System (New in 2.3)
|
|
63
|
+
|
|
64
|
+
CTX handles visual work with dedicated agents and approval gates.
|
|
65
|
+
|
|
66
|
+
### Story Types
|
|
67
|
+
| Type | Agent | Purpose |
|
|
68
|
+
|------|-------|---------|
|
|
69
|
+
| feature | ctx-executor | Standard implementation |
|
|
70
|
+
| brand | ctx-designer | BRAND_KIT.md + W3C tokens |
|
|
71
|
+
| design | ctx-designer | UI components/pages |
|
|
72
|
+
|
|
73
|
+
### 3 Options Pattern
|
|
74
|
+
All design decisions present three options:
|
|
75
|
+
- **Option A**: Conservative (safe, proven)
|
|
76
|
+
- **Option B**: Balanced (recommended)
|
|
77
|
+
- **Option C**: Bold (distinctive)
|
|
78
|
+
|
|
79
|
+
### Design Approval Gates
|
|
80
|
+
```
|
|
81
|
+
Mood Board → Direction (A/B/C) → Prototype → Final
|
|
82
|
+
```
|
|
83
|
+
Each gate requires user approval before proceeding.
|
|
84
|
+
|
|
85
|
+
### WCAG 2.2 AA + EAA 2025
|
|
86
|
+
| Criterion | Requirement |
|
|
87
|
+
|-----------|-------------|
|
|
88
|
+
| 2.4.11 | Focus not obscured |
|
|
89
|
+
| 2.5.7 | Drag alternatives |
|
|
90
|
+
| 2.5.8 | 24x24px targets |
|
|
91
|
+
| 3.3.8 | Accessible auth |
|
|
92
|
+
|
|
93
|
+
EU markets require EAA 2025 compliance (enforcement: June 28, 2025).
|
|
94
|
+
|
|
57
95
|
## The 8 Commands
|
|
58
96
|
|
|
59
97
|
### Smart (Auto-routing)
|
|
@@ -145,13 +183,14 @@ Big work = multiple phases, not bigger plans.
|
|
|
145
183
|
### STATE.md - Single Source of Truth
|
|
146
184
|
~100 lines. Always accurate. Always read first.
|
|
147
185
|
|
|
148
|
-
##
|
|
186
|
+
## 6 Specialized Agents
|
|
149
187
|
|
|
150
188
|
| Agent | Spawned when |
|
|
151
189
|
|-------|--------------|
|
|
152
190
|
| ctx-researcher | status = initializing |
|
|
153
191
|
| ctx-planner | after research |
|
|
154
|
-
| ctx-executor | status = executing |
|
|
192
|
+
| ctx-executor | status = executing (feature stories) |
|
|
193
|
+
| ctx-designer | status = executing (brand/design stories) |
|
|
155
194
|
| ctx-debugger | status = debugging |
|
|
156
195
|
| ctx-verifier | status = verifying |
|
|
157
196
|
|
|
@@ -177,6 +216,18 @@ Auto-runs during debugging and verification:
|
|
|
177
216
|
- Check elements exist
|
|
178
217
|
- Take screenshot proof
|
|
179
218
|
|
|
219
|
+
### Figma MCP (Design Context)
|
|
220
|
+
Auto-runs during design stories:
|
|
221
|
+
- Extract design tokens
|
|
222
|
+
- Get component metadata
|
|
223
|
+
- Screenshot references
|
|
224
|
+
|
|
225
|
+
### Gemini Design MCP (Visual Generation)
|
|
226
|
+
Auto-runs during design stories:
|
|
227
|
+
- Generate UI mockups
|
|
228
|
+
- Create UI code
|
|
229
|
+
- Analyze designs for accessibility
|
|
230
|
+
|
|
180
231
|
## Directory Structure
|
|
181
232
|
|
|
182
233
|
```
|
|
@@ -186,23 +237,53 @@ Auto-runs during debugging and verification:
|
|
|
186
237
|
├── phases/{story_id}/ # Per-story data
|
|
187
238
|
│ ├── RESEARCH.md # ArguSeek + ChunkHound results
|
|
188
239
|
│ ├── PLAN.md # Tasks mapped to acceptance criteria
|
|
189
|
-
│
|
|
240
|
+
│ ├── VERIFY.md # Verification report
|
|
241
|
+
│ ├── MOOD_BOARD.md # Design references (design stories)
|
|
242
|
+
│ └── DESIGN_BRIEF.md # Design decisions (design stories)
|
|
190
243
|
├── checkpoints/ # Auto-checkpoints
|
|
191
244
|
├── debug/ # Debug screenshots
|
|
192
245
|
└── memory/ # Decision memory
|
|
246
|
+
|
|
247
|
+
project/
|
|
248
|
+
├── BRAND_KIT.md # Visual foundation (brand stories)
|
|
249
|
+
└── tokens/ # W3C design tokens
|
|
250
|
+
├── primitive.tokens.json
|
|
251
|
+
├── semantic.tokens.json
|
|
252
|
+
└── component.tokens.json
|
|
193
253
|
```
|
|
194
254
|
|
|
195
255
|
## PRD.json - Requirements Contract
|
|
196
256
|
|
|
197
257
|
```json
|
|
198
258
|
{
|
|
259
|
+
"brand": {
|
|
260
|
+
"hasBrandKit": false,
|
|
261
|
+
"personality": ["professional", "modern"],
|
|
262
|
+
"euMarket": true
|
|
263
|
+
},
|
|
264
|
+
"design": {
|
|
265
|
+
"wcagLevel": "AA",
|
|
266
|
+
"eaaCompliance": true,
|
|
267
|
+
"tokenFormat": "w3c"
|
|
268
|
+
},
|
|
199
269
|
"stories": [
|
|
200
270
|
{
|
|
201
271
|
"id": "S001",
|
|
202
|
-
"
|
|
272
|
+
"type": "brand",
|
|
273
|
+
"title": "Establish brand kit",
|
|
274
|
+
"acceptanceCriteria": [
|
|
275
|
+
"BRAND_KIT.md exists",
|
|
276
|
+
"tokens/ directory populated"
|
|
277
|
+
],
|
|
278
|
+
"passes": false
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"id": "S002",
|
|
282
|
+
"type": "design",
|
|
283
|
+
"title": "Login page",
|
|
203
284
|
"acceptanceCriteria": [
|
|
204
|
-
"
|
|
205
|
-
"
|
|
285
|
+
"WCAG 2.2 AA compliant",
|
|
286
|
+
"All states implemented"
|
|
206
287
|
],
|
|
207
288
|
"passes": false
|
|
208
289
|
}
|
|
@@ -210,7 +291,7 @@ Auto-runs during debugging and verification:
|
|
|
210
291
|
"metadata": {
|
|
211
292
|
"currentStory": "S001",
|
|
212
293
|
"passedStories": 0,
|
|
213
|
-
"totalStories":
|
|
294
|
+
"totalStories": 2
|
|
214
295
|
}
|
|
215
296
|
}
|
|
216
297
|
```
|
|
@@ -260,4 +341,4 @@ MIT
|
|
|
260
341
|
|
|
261
342
|
---
|
|
262
343
|
|
|
263
|
-
*CTX 2.
|
|
344
|
+
*CTX 2.3 - PRD-driven, design-first, story-verified, debug loop until 100% fixed*
|