astragentic 1.0.0 → 2.0.0-y
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/CHANGELOG.md +10 -0
- package/README.md +16 -0
- package/assets/_astraler/workflows/brownfield.md +32 -21
- package/assets/_astraler/workflows/greenfield.md +122 -95
- package/assets/claude-code/CLAUDE-TEMPLATE.md +26 -119
- package/assets/claude-code/commands/astra/board.md +176 -0
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [2.0.0-y] - 2026-01-05
|
|
6
|
+
- using Kanban for tasks management
|
|
7
|
+
|
|
8
|
+
## [1.0.0] - 2026-01-05
|
|
9
|
+
- Initial release of Astragentic Installer.
|
|
10
|
+
- Automated installation of .claude and _astraler.
|
package/README.md
CHANGED
|
@@ -6,8 +6,17 @@ This is the installer for the Astragentic DevKit. It sets up the necessary confi
|
|
|
6
6
|
|
|
7
7
|
Run the following command in your project root:
|
|
8
8
|
|
|
9
|
+
### Default (Latest)
|
|
9
10
|
```bash
|
|
10
11
|
npx astragentic install
|
|
12
|
+
# OR explicitly:
|
|
13
|
+
npx astragentic@latest install
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### Specific Version
|
|
17
|
+
If you need to install a specific version (e.g., to downgrade or ensure consistency):
|
|
18
|
+
```bash
|
|
19
|
+
npx astragentic@1.0.0 install
|
|
11
20
|
```
|
|
12
21
|
|
|
13
22
|
This command will:
|
|
@@ -40,9 +49,16 @@ When publishing manually from your local machine, **you do not need to manually
|
|
|
40
49
|
|
|
41
50
|
The script will:
|
|
42
51
|
- Update the version in `package.json`.
|
|
52
|
+
- **Prompt to update `CHANGELOG.md`** (optional).
|
|
43
53
|
- Bundle the latest `devkit/claude-code` and `_astraler` content.
|
|
44
54
|
- Ask for confirmation before running `npm publish`.
|
|
45
55
|
|
|
56
|
+
**Changelog & Non-interactive Mode:**
|
|
57
|
+
- To pass a changelog message automatically (e.g., in CI or fast mode):
|
|
58
|
+
```bash
|
|
59
|
+
./scripts/ship.sh 0.0.1 -y "Your changelog message here"
|
|
60
|
+
```
|
|
61
|
+
|
|
46
62
|
### Automated Publishing (CI/CD)
|
|
47
63
|
|
|
48
64
|
For CI/CD (like GitHub Actions), we use an automation token.
|
|
@@ -305,7 +305,10 @@ Generate ALL of these in one pass:
|
|
|
305
305
|
- Webhooks (if found)
|
|
306
306
|
- Confidence markers for inferred sections
|
|
307
307
|
|
|
308
|
-
#### `atlas/
|
|
308
|
+
#### `atlas/6-backlog.md`
|
|
309
|
+
- Phases overview (Documentation → Tech Debt → New Features)
|
|
310
|
+
- Phase index table
|
|
311
|
+
- Per-phase backlog items (BL-*)
|
|
309
312
|
- Documentation completion tasks
|
|
310
313
|
- Technical debt identified
|
|
311
314
|
- Suggested improvements
|
|
@@ -392,8 +395,9 @@ Mark sections with confidence:
|
|
|
392
395
|
| `atlas/screens.md` (per domain) | `02-spec/domains/{domain}.md` (screens) |
|
|
393
396
|
| `atlas/api.md` (cross-domain) | `02-spec/core/flows.md` |
|
|
394
397
|
| `atlas/api.md` (per domain) | `02-spec/domains/{domain}.md` (API) |
|
|
395
|
-
| `atlas/
|
|
396
|
-
| `atlas/
|
|
398
|
+
| `atlas/6-backlog.md` | `04-tasks/phases.md` |
|
|
399
|
+
| `atlas/6-backlog.md` (milestones) | `04-tasks/milestones.md` |
|
|
400
|
+
| `atlas/6-backlog.md` (per domain) | `04-tasks/domains/{domain}.tasks.md` (Kanban board) |
|
|
397
401
|
| Scan results | `context/constraints.md` |
|
|
398
402
|
| Clarification | `context/assumptions.md` |
|
|
399
403
|
| Code analysis | `context/glossary.md` |
|
|
@@ -403,12 +407,13 @@ Mark sections with confidence:
|
|
|
403
407
|
```
|
|
404
408
|
.astraler-docs/
|
|
405
409
|
├── _index.md
|
|
406
|
-
├── atlas/ # SOURCE (human-approved)
|
|
407
|
-
│ ├──
|
|
408
|
-
│ ├──
|
|
409
|
-
│ ├──
|
|
410
|
-
│ ├──
|
|
411
|
-
│
|
|
410
|
+
├── atlas/ # SOURCE (human-approved, read 1→6)
|
|
411
|
+
│ ├── 1-overview.md
|
|
412
|
+
│ ├── 2-context.md
|
|
413
|
+
│ ├── 3-database.md
|
|
414
|
+
│ ├── 4-screens.md
|
|
415
|
+
│ ├── 5-api.md
|
|
416
|
+
│ └── 6-backlog.md # Phases + backlog items
|
|
412
417
|
│
|
|
413
418
|
├── 02-spec/ # AUTO-GENERATED from Atlas
|
|
414
419
|
│ ├── _index.md
|
|
@@ -428,11 +433,12 @@ Mark sections with confidence:
|
|
|
428
433
|
│ └── domains/
|
|
429
434
|
│ └── {domain}.arch.md # One per detected domain
|
|
430
435
|
│
|
|
431
|
-
├── 04-tasks/ # AUTO-GENERATED from Atlas
|
|
436
|
+
├── 04-tasks/ # AUTO-GENERATED from Atlas (Kanban)
|
|
432
437
|
│ ├── _index.md
|
|
433
|
-
│ ├──
|
|
438
|
+
│ ├── phases.md # ← from atlas/6-backlog.md
|
|
439
|
+
│ ├── milestones.md # ← from atlas/6-backlog.md
|
|
434
440
|
│ └── domains/
|
|
435
|
-
│ └── {domain}.tasks.md #
|
|
441
|
+
│ └── {domain}.tasks.md # Kanban board + tasks
|
|
436
442
|
│
|
|
437
443
|
├── 05-changes/
|
|
438
444
|
│ ├── _index.md
|
|
@@ -480,8 +486,10 @@ These sections need human validation:
|
|
|
480
486
|
1. `03-arch/domains/payment.arch.md` — State machine inferred
|
|
481
487
|
2. `02-spec/domains/order.md` — Business rules unclear
|
|
482
488
|
|
|
483
|
-
### Ready to Build
|
|
484
|
-
-
|
|
489
|
+
### Ready to Build (Kanban Flow)
|
|
490
|
+
- View phases: `04-tasks/phases.md` (PO visibility)
|
|
491
|
+
- View board: `/astra:board {domain}` (dev visibility)
|
|
492
|
+
- Pull next task: `/astra:board --next`
|
|
485
493
|
- Validate: Low-confidence sections before implementation
|
|
486
494
|
- Reference: `atlas/` for complete picture
|
|
487
495
|
- Changes: Use `/astra:change` to modify approved docs
|
|
@@ -544,17 +552,20 @@ After expansion:
|
|
|
544
552
|
- [ ] Business context provided
|
|
545
553
|
- [ ] High-priority gaps resolved
|
|
546
554
|
|
|
547
|
-
### Phase 3: Atlas Complete
|
|
548
|
-
- [ ] `atlas/
|
|
549
|
-
- [ ] `atlas/
|
|
550
|
-
- [ ] `atlas/
|
|
551
|
-
- [ ] `atlas/
|
|
552
|
-
- [ ] `atlas/
|
|
555
|
+
### Phase 3: Atlas Complete (read in order)
|
|
556
|
+
- [ ] `atlas/1-overview.md` — All domains, tech stack
|
|
557
|
+
- [ ] `atlas/2-context.md` — Constraints, assumptions, glossary
|
|
558
|
+
- [ ] `atlas/3-database.md` — All entities, relationships
|
|
559
|
+
- [ ] `atlas/4-screens.md` — All screens (if UI)
|
|
560
|
+
- [ ] `atlas/5-api.md` — All endpoints
|
|
561
|
+
- [ ] `atlas/6-backlog.md` — Phases + backlog items
|
|
553
562
|
|
|
554
563
|
### Phase 4: Expansion Complete
|
|
555
564
|
- [ ] `02-spec/` — Core + all domain specs
|
|
556
565
|
- [ ] `03-arch/` — Overview + all domain arch
|
|
557
|
-
- [ ] `04-tasks
|
|
566
|
+
- [ ] `04-tasks/phases.md` — Phase definitions
|
|
567
|
+
- [ ] `04-tasks/milestones.md` — Milestone tracking (no dates)
|
|
568
|
+
- [ ] `04-tasks/domains/*.tasks.md` — Kanban boards per domain
|
|
558
569
|
- [ ] `context/` — Constraints, assumptions, glossary
|
|
559
570
|
- [ ] `ai/` — Guardrails, quality gates
|
|
560
571
|
- [ ] All files have proper headers
|
|
@@ -144,19 +144,18 @@ Validate complete understanding before generation:
|
|
|
144
144
|
|
|
145
145
|
### Atlas Folder Structure
|
|
146
146
|
|
|
147
|
+
**Reading Order:** Files are numbered 1→6 for sequential reading.
|
|
148
|
+
|
|
147
149
|
```
|
|
148
150
|
.astraler-docs/
|
|
149
151
|
├── _index.md
|
|
150
|
-
├── atlas/
|
|
151
|
-
│ ├──
|
|
152
|
-
│ ├──
|
|
153
|
-
│ ├──
|
|
154
|
-
│ ├──
|
|
155
|
-
│
|
|
156
|
-
|
|
157
|
-
│ ├── constraints.md
|
|
158
|
-
│ ├── assumptions.md
|
|
159
|
-
│ └── glossary.md
|
|
152
|
+
├── atlas/ # PRIMARY - read in order 1→6
|
|
153
|
+
│ ├── 1-overview.md # High-level vision, goals, domains (start here)
|
|
154
|
+
│ ├── 2-context.md # Constraints, assumptions, glossary
|
|
155
|
+
│ ├── 3-database.md # Complete schema, ALL entities
|
|
156
|
+
│ ├── 4-screens.md # UI inventory (if UI exists)
|
|
157
|
+
│ ├── 5-api.md # API surface inventory (not detailed contracts)
|
|
158
|
+
│ └── 6-backlog.md # Product backlog with Phases (PO visibility)
|
|
160
159
|
├── changes/
|
|
161
160
|
│ ├── changelog.md
|
|
162
161
|
│ └── impact/
|
|
@@ -167,39 +166,55 @@ Validate complete understanding before generation:
|
|
|
167
166
|
|
|
168
167
|
### Atlas File Specifications
|
|
169
168
|
|
|
170
|
-
#### `
|
|
171
|
-
- Project vision
|
|
172
|
-
-
|
|
173
|
-
-
|
|
174
|
-
-
|
|
169
|
+
#### `1-overview.md` — High-Level Overview (Start Here)
|
|
170
|
+
- Project vision (1-2 sentences)
|
|
171
|
+
- Success metrics (table)
|
|
172
|
+
- Tech stack summary (table)
|
|
173
|
+
- ALL domains listed with purpose and priority
|
|
174
|
+
- Domain relationship diagram (Mermaid flowchart)
|
|
175
175
|
- Project structure (folder tree)
|
|
176
|
-
- External integrations
|
|
177
176
|
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
**Simplicity:** Keep high-level; detailed domain specs go in `domains/` if needed.
|
|
178
|
+
|
|
179
|
+
#### `2-context.md` — Background & Constraints
|
|
180
|
+
- Key constraints (technical, business, timeline)
|
|
181
|
+
- Assumptions and risks
|
|
182
|
+
- Glossary of domain terms
|
|
183
|
+
|
|
184
|
+
**Simplicity:** Consolidates what was previously a separate `context/` folder.
|
|
185
|
+
|
|
186
|
+
#### `3-database.md` — Data Model
|
|
187
|
+
- Complete ERD (Mermaid erDiagram)
|
|
180
188
|
- ALL tables with columns, types, constraints
|
|
181
189
|
- ALL relationships and foreign keys
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
#### `
|
|
192
|
-
- Base URL and authentication
|
|
193
|
-
- ALL endpoints summary table
|
|
194
|
-
-
|
|
195
|
-
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
-
|
|
200
|
-
-
|
|
201
|
-
-
|
|
202
|
-
-
|
|
190
|
+
- Migration strategy (if applicable)
|
|
191
|
+
|
|
192
|
+
#### `4-screens.md` — UI Inventory (If UI Exists)
|
|
193
|
+
- Navigation map (Mermaid flowchart)
|
|
194
|
+
- ALL screens table (route, domain, auth requirement)
|
|
195
|
+
- Brief screen purpose (1 line each)
|
|
196
|
+
|
|
197
|
+
**Simplicity:** No detailed component breakdowns; just inventory.
|
|
198
|
+
|
|
199
|
+
#### `5-api.md` — API Surface Inventory
|
|
200
|
+
- Base URL and authentication method
|
|
201
|
+
- ALL endpoints summary table (method, route, domain, auth)
|
|
202
|
+
- Estimated endpoint count per domain
|
|
203
|
+
- External integrations (Stripe, SendGrid, etc.)
|
|
204
|
+
|
|
205
|
+
**Simplicity:** Sketch the API surface only. No request/response schemas yet — those come during `/astra:plan` or implementation.
|
|
206
|
+
|
|
207
|
+
#### `6-backlog.md` — Product Backlog with Phases
|
|
208
|
+
- Phases overview diagram (Mermaid flowchart)
|
|
209
|
+
- Phase index table (Phase, Goal, Milestones, Status)
|
|
210
|
+
- Per-phase details:
|
|
211
|
+
- User value statement
|
|
212
|
+
- Included milestones
|
|
213
|
+
- High-level backlog items (BL-001, BL-002...)
|
|
214
|
+
- Phase acceptance criteria
|
|
215
|
+
- Backlog prioritization guide (P0, P1, P2)
|
|
216
|
+
|
|
217
|
+
**Purpose:** PO visibility into what each phase delivers. Backlog items (BL-*) expand into detailed tasks (TSK-*) during `/astra:plan`.
|
|
203
218
|
|
|
204
219
|
---
|
|
205
220
|
|
|
@@ -210,17 +225,25 @@ After Atlas generation, present for review:
|
|
|
210
225
|
```markdown
|
|
211
226
|
## Atlas Complete
|
|
212
227
|
|
|
213
|
-
### Generated Files
|
|
214
|
-
- `atlas/
|
|
215
|
-
- `atlas/
|
|
216
|
-
- `atlas/
|
|
217
|
-
- `atlas/
|
|
218
|
-
- `atlas/
|
|
228
|
+
### Generated Files (read in order 1→6)
|
|
229
|
+
- `atlas/1-overview.md` — {X} domains, tech stack, vision
|
|
230
|
+
- `atlas/2-context.md` — constraints, assumptions, glossary
|
|
231
|
+
- `atlas/3-database.md` — {Y} tables, {Z} relationships
|
|
232
|
+
- `atlas/4-screens.md` — {W} screens across all domains
|
|
233
|
+
- `atlas/5-api.md` — ~{V} endpoints (surface inventory)
|
|
234
|
+
- `atlas/6-backlog.md` — {P} phases, {B} backlog items
|
|
235
|
+
|
|
236
|
+
### Phases Defined
|
|
237
|
+
| Phase | Goal | Milestones |
|
|
238
|
+
|-------|------|------------|
|
|
239
|
+
| Phase 1 | {user value} | M-01, M-02, ... |
|
|
240
|
+
| Phase 2 | {user value} | M-03, M-04, ... |
|
|
241
|
+
{ALL phases listed}
|
|
219
242
|
|
|
220
243
|
### Domains Covered
|
|
221
|
-
| Domain | Entities | Screens | Endpoints |
|
|
222
|
-
|
|
223
|
-
| {domain} |
|
|
244
|
+
| Domain | Priority | Entities | Screens | Endpoints |
|
|
245
|
+
|--------|----------|----------|---------|-----------|
|
|
246
|
+
| {domain} | P0/P1 | {count} | {count} | ~{count} |
|
|
224
247
|
{ALL domains listed}
|
|
225
248
|
|
|
226
249
|
### Ready to Expand
|
|
@@ -228,7 +251,7 @@ Upon approval, will auto-generate:
|
|
|
228
251
|
- 02-spec/core/* (3 files)
|
|
229
252
|
- 02-spec/domains/* ({N} files)
|
|
230
253
|
- 03-arch/* (3 files + {N} domain files)
|
|
231
|
-
- 04-tasks/* (
|
|
254
|
+
- 04-tasks/* (phases.md + milestones.md + {N} domain files)
|
|
232
255
|
|
|
233
256
|
---
|
|
234
257
|
**Approve Atlas?**
|
|
@@ -247,36 +270,39 @@ Upon approval, will auto-generate:
|
|
|
247
270
|
|
|
248
271
|
| Atlas Source | Generates |
|
|
249
272
|
|--------------|-----------|
|
|
250
|
-
| `atlas/
|
|
251
|
-
| `atlas/
|
|
252
|
-
| `atlas/
|
|
253
|
-
| `atlas/
|
|
254
|
-
| `atlas/database.md`
|
|
255
|
-
| `atlas/
|
|
256
|
-
| `atlas/
|
|
257
|
-
| `atlas/api.md` (
|
|
258
|
-
| `atlas/api.md` (per domain) | `
|
|
259
|
-
| `atlas/
|
|
260
|
-
| `atlas/
|
|
273
|
+
| `atlas/1-overview.md` | `02-spec/core/overview.md` |
|
|
274
|
+
| `atlas/1-overview.md` | `03-arch/overview.md` |
|
|
275
|
+
| `atlas/1-overview.md` (domains) | `02-spec/domains/{domain}.md` (overview section) |
|
|
276
|
+
| `atlas/2-context.md` | Constraints/assumptions embedded in specs |
|
|
277
|
+
| `atlas/3-database.md` | `03-arch/data-schema.md` |
|
|
278
|
+
| `atlas/3-database.md` (per domain) | `03-arch/domains/{domain}.arch.md` (data models) |
|
|
279
|
+
| `atlas/4-screens.md` (per domain) | `02-spec/domains/{domain}.md` (screens section) |
|
|
280
|
+
| `atlas/5-api.md` (cross-domain) | `02-spec/core/flows.md` |
|
|
281
|
+
| `atlas/5-api.md` (per domain) | `02-spec/domains/{domain}.md` (API section) |
|
|
282
|
+
| `atlas/5-api.md` (per domain) | `03-arch/domains/{domain}.arch.md` (contracts) |
|
|
283
|
+
| `atlas/6-backlog.md` | `04-tasks/phases.md` |
|
|
284
|
+
| `atlas/6-backlog.md` (milestones) | `04-tasks/milestones.md` |
|
|
285
|
+
| `atlas/6-backlog.md` (per domain) | `04-tasks/domains/{domain}.tasks.md` (Kanban board) |
|
|
261
286
|
|
|
262
287
|
### Generated Structure
|
|
263
288
|
|
|
264
289
|
```
|
|
265
290
|
.astraler-docs/
|
|
266
291
|
├── _index.md
|
|
267
|
-
├── atlas/ # SOURCE (human-approved)
|
|
268
|
-
│ ├──
|
|
269
|
-
│ ├──
|
|
270
|
-
│ ├──
|
|
271
|
-
│ ├──
|
|
272
|
-
│
|
|
292
|
+
├── atlas/ # SOURCE (human-approved, read 1→6)
|
|
293
|
+
│ ├── 1-overview.md
|
|
294
|
+
│ ├── 2-context.md
|
|
295
|
+
│ ├── 3-database.md
|
|
296
|
+
│ ├── 4-screens.md
|
|
297
|
+
│ ├── 5-api.md
|
|
298
|
+
│ └── 6-backlog.md # Phases + backlog items
|
|
273
299
|
│
|
|
274
300
|
├── 02-spec/ # AUTO-GENERATED from Atlas
|
|
275
301
|
│ ├── _index.md
|
|
276
302
|
│ ├── core/
|
|
277
|
-
│ │ ├── overview.md # ← from atlas/
|
|
278
|
-
│ │ ├── flows.md # ← from atlas/api.md (cross-domain)
|
|
279
|
-
│ │ └── rules.md # ← from atlas/api.md (validation)
|
|
303
|
+
│ │ ├── overview.md # ← from atlas/1-overview.md
|
|
304
|
+
│ │ ├── flows.md # ← from atlas/5-api.md (cross-domain)
|
|
305
|
+
│ │ └── rules.md # ← from atlas/5-api.md (validation)
|
|
280
306
|
│ └── domains/
|
|
281
307
|
│ ├── auth.md # ← from atlas (auth sections)
|
|
282
308
|
│ ├── catalog.md # ← from atlas (catalog sections)
|
|
@@ -285,8 +311,8 @@ Upon approval, will auto-generate:
|
|
|
285
311
|
│
|
|
286
312
|
├── 03-arch/ # AUTO-GENERATED from Atlas
|
|
287
313
|
│ ├── _index.md
|
|
288
|
-
│ ├── overview.md # ← from atlas/
|
|
289
|
-
│ ├── data-schema.md # ← from atlas/database.md
|
|
314
|
+
│ ├── overview.md # ← from atlas/1-overview.md
|
|
315
|
+
│ ├── data-schema.md # ← from atlas/3-database.md
|
|
290
316
|
│ ├── standards.md # ← generated (DoD, conventions)
|
|
291
317
|
│ ├── decisions.md # ← generated (ADR template)
|
|
292
318
|
│ └── domains/
|
|
@@ -295,13 +321,14 @@ Upon approval, will auto-generate:
|
|
|
295
321
|
│ ├── order.arch.md # ← from atlas (order sections)
|
|
296
322
|
│ └── ... # One per domain
|
|
297
323
|
│
|
|
298
|
-
├── 04-tasks/ # AUTO-GENERATED from Atlas
|
|
324
|
+
├── 04-tasks/ # AUTO-GENERATED from Atlas (Kanban)
|
|
299
325
|
│ ├── _index.md
|
|
300
|
-
│ ├──
|
|
326
|
+
│ ├── phases.md # ← from atlas/6-backlog.md
|
|
327
|
+
│ ├── milestones.md # ← from atlas/6-backlog.md
|
|
301
328
|
│ └── domains/
|
|
302
|
-
│ ├── auth.tasks.md #
|
|
303
|
-
│ ├── catalog.tasks.md
|
|
304
|
-
│ ├── order.tasks.md
|
|
329
|
+
│ ├── auth.tasks.md # Kanban board + tasks
|
|
330
|
+
│ ├── catalog.tasks.md
|
|
331
|
+
│ ├── order.tasks.md
|
|
305
332
|
│ └── ... # One per domain
|
|
306
333
|
│
|
|
307
334
|
├── 05-changes/
|
|
@@ -309,11 +336,6 @@ Upon approval, will auto-generate:
|
|
|
309
336
|
│ ├── changelog.md
|
|
310
337
|
│ └── impact/
|
|
311
338
|
│
|
|
312
|
-
├── context/
|
|
313
|
-
│ ├── constraints.md
|
|
314
|
-
│ ├── assumptions.md
|
|
315
|
-
│ └── glossary.md
|
|
316
|
-
│
|
|
317
339
|
└── ai/
|
|
318
340
|
├── guardrails.md
|
|
319
341
|
└── quality_gates.md
|
|
@@ -335,16 +357,18 @@ Upon approval, will auto-generate:
|
|
|
335
357
|
### Files Generated
|
|
336
358
|
| Folder | Files | From Atlas |
|
|
337
359
|
|--------|-------|------------|
|
|
338
|
-
| 02-spec/core/ | 3 |
|
|
360
|
+
| 02-spec/core/ | 3 | 1-overview.md, 5-api.md |
|
|
339
361
|
| 02-spec/domains/ | {N} | All atlas files |
|
|
340
|
-
| 03-arch/ | 4 |
|
|
341
|
-
| 03-arch/domains/ | {N} | database.md, api.md |
|
|
342
|
-
| 04-tasks/ |
|
|
343
|
-
| 04-tasks/domains/ | {N} |
|
|
362
|
+
| 03-arch/ | 4 | 1-overview.md, 3-database.md |
|
|
363
|
+
| 03-arch/domains/ | {N} | 3-database.md, 5-api.md |
|
|
364
|
+
| 04-tasks/ | 2 | phases.md, milestones.md |
|
|
365
|
+
| 04-tasks/domains/ | {N} | 6-backlog.md (Kanban boards) |
|
|
344
366
|
| **Total** | **{total}** | |
|
|
345
367
|
|
|
346
|
-
### Ready to Build
|
|
347
|
-
-
|
|
368
|
+
### Ready to Build (Kanban Flow)
|
|
369
|
+
- View phases: `04-tasks/phases.md` (PO visibility)
|
|
370
|
+
- View board: `/astra:board {domain}` (dev visibility)
|
|
371
|
+
- Pull next task: `/astra:board --next`
|
|
348
372
|
- Reference: `atlas/` for complete picture
|
|
349
373
|
- Changes: Use `/astra:change` to modify approved docs
|
|
350
374
|
```
|
|
@@ -400,16 +424,19 @@ After expansion:
|
|
|
400
424
|
- [ ] Tech stack decided
|
|
401
425
|
- [ ] Cognitive Sync confirmed
|
|
402
426
|
|
|
403
|
-
### Atlas Files Complete
|
|
404
|
-
- [ ] `atlas/
|
|
405
|
-
- [ ] `atlas/
|
|
406
|
-
- [ ] `atlas/
|
|
407
|
-
- [ ] `atlas/
|
|
408
|
-
- [ ] `atlas/
|
|
427
|
+
### Atlas Files Complete (read in order)
|
|
428
|
+
- [ ] `atlas/1-overview.md` — Vision, domains, tech stack
|
|
429
|
+
- [ ] `atlas/2-context.md` — Constraints, assumptions, glossary
|
|
430
|
+
- [ ] `atlas/3-database.md` — All entities, relationships
|
|
431
|
+
- [ ] `atlas/4-screens.md` — All screens, navigation
|
|
432
|
+
- [ ] `atlas/5-api.md` — API surface inventory (~count per domain)
|
|
433
|
+
- [ ] `atlas/6-backlog.md` — Phases + backlog items (PO visibility)
|
|
409
434
|
|
|
410
435
|
### After Expansion
|
|
411
436
|
- [ ] `02-spec/` — Core + all domain specs
|
|
412
437
|
- [ ] `03-arch/` — Overview + all domain arch
|
|
413
|
-
- [ ] `04-tasks
|
|
438
|
+
- [ ] `04-tasks/phases.md` — Phase definitions
|
|
439
|
+
- [ ] `04-tasks/milestones.md` — Milestone tracking (no dates)
|
|
440
|
+
- [ ] `04-tasks/domains/*.tasks.md` — Kanban boards per domain
|
|
414
441
|
- [ ] All files have proper headers
|
|
415
442
|
- [ ] All files have required diagrams
|
|
@@ -10,128 +10,55 @@ This file provides guidance to Claude Code when working with this repository.
|
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Start Here
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
**New to this project? Read the Atlas first:**
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|------|----------|---------|
|
|
19
|
-
| **Artifacts** | `.astraler-docs/` | Source of truth for all design documents |
|
|
20
|
-
| **Commands** | `.claude/commands/astra/` | AI command definitions (slash commands) |
|
|
21
|
-
| **Engine** | `_astraler/` | Execution rules, workflows, and governance |
|
|
17
|
+
→ [`.astraler-docs/atlas/index.md`](.astraler-docs/atlas/index.md)
|
|
22
18
|
|
|
23
|
-
|
|
24
|
-
your-project/
|
|
25
|
-
├── .astraler-docs/ # What we're building (artifacts)
|
|
26
|
-
│ ├── 01-context/ # Vision, constraints, glossary
|
|
27
|
-
│ ├── 02-spec/ # Business requirements by domain
|
|
28
|
-
│ ├── 03-arch/ # Technical architecture by domain
|
|
29
|
-
│ ├── 04-tasks/ # Implementation breakdown
|
|
30
|
-
│ ├── 05-changes/ # Change records (CHG)
|
|
31
|
-
│ └── ai/ # Rules, guardrails, quality gates
|
|
32
|
-
│
|
|
33
|
-
├── .claude/ # AI operating system
|
|
34
|
-
│ └── commands/astra/ # Slash command definitions
|
|
35
|
-
│
|
|
36
|
-
└── _astraler/ # Framework engine
|
|
37
|
-
├── engine.md # Core execution rules
|
|
38
|
-
└── workflows/ # greenfield, brownfield, change
|
|
39
|
-
```
|
|
19
|
+
The Atlas contains the complete project blueprint: vision, tech stack, database schema, screens, API contracts, and implementation tasks.
|
|
40
20
|
|
|
41
21
|
---
|
|
42
22
|
|
|
43
|
-
##
|
|
44
|
-
|
|
45
|
-
All project documentation lives in `.astraler-docs/`. Read these before making changes:
|
|
46
|
-
|
|
47
|
-
### Context & Vision
|
|
48
|
-
- [Product Vision](.astraler-docs/01-context/product.md) - North star, priorities, anti-goals
|
|
49
|
-
- [Constraints](.astraler-docs/01-context/constraints.md) - Technical & business boundaries
|
|
50
|
-
- [Assumptions](.astraler-docs/01-context/assumptions.md) - Validatable assumptions
|
|
51
|
-
- [Glossary](.astraler-docs/01-context/glossary.md) - Domain terminology
|
|
23
|
+
## Documentation
|
|
52
24
|
|
|
53
|
-
|
|
54
|
-
- [Tech Stack](.astraler-docs/03-arch/overview.md) - Technology choices, infrastructure
|
|
55
|
-
- [Data Schema](.astraler-docs/03-arch/data-schema.md) - Database structure, relationships
|
|
56
|
-
- [Engineering Standards](.astraler-docs/03-arch/standards.md) - DoD, code standards, testing
|
|
57
|
-
- [Architecture Decisions](.astraler-docs/03-arch/decisions.md) - ADRs
|
|
25
|
+
All project documentation lives in `.astraler-docs/`:
|
|
58
26
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
27
|
+
| Document | What It Contains |
|
|
28
|
+
|----------|-----------------|
|
|
29
|
+
| [`atlas/`](.astraler-docs/atlas/) | **Complete project blueprint** (start here) |
|
|
30
|
+
| [`context/`](.astraler-docs/context/) | Constraints, assumptions, glossary |
|
|
31
|
+
| [`domains/`](.astraler-docs/domains/) | Deep-dives for complex domains (optional) |
|
|
32
|
+
| [`changes/`](.astraler-docs/changes/) | Change history and impact records |
|
|
33
|
+
| [`ai/`](.astraler-docs/ai/) | AI guardrails and quality gates |
|
|
63
34
|
|
|
64
|
-
|
|
65
|
-
- [Milestones](.astraler-docs/04-tasks/milestones.md) - Epic-level goals
|
|
66
|
-
- [Changelog](.astraler-docs/05-changes/changelog.md) - Change history
|
|
67
|
-
|
|
68
|
-
### AI Governance
|
|
69
|
-
- [Guardrails](.astraler-docs/ai/guardrails.md) - AI agent constraints
|
|
70
|
-
- [Rules](.astraler-docs/ai/rules.md) - Development rules
|
|
71
|
-
- [Quality Gates](.astraler-docs/ai/quality_gates.md) - Test taxonomy, gates
|
|
35
|
+
See [`.astraler-docs/_index.md`](.astraler-docs/_index.md) for full navigation.
|
|
72
36
|
|
|
73
37
|
---
|
|
74
38
|
|
|
75
39
|
## Astra Commands
|
|
76
40
|
|
|
77
|
-
### Discovery & Status
|
|
78
|
-
|
|
79
41
|
| Command | Purpose |
|
|
80
42
|
|---------|---------|
|
|
81
43
|
| `/astra:start` | Bootstrap project or scan existing codebase |
|
|
82
|
-
| `/astra:status` | Show current
|
|
83
|
-
| `/astra:help` | List available commands and workflow guidance |
|
|
84
|
-
|
|
85
|
-
### Design Phase
|
|
86
|
-
|
|
87
|
-
| Command | Purpose |
|
|
88
|
-
|---------|---------|
|
|
89
|
-
| `/astra:spec <domain>` | Create/update domain specification |
|
|
90
|
-
| `/astra:arch <domain>` | Create/update domain architecture |
|
|
91
|
-
| `/astra:plan <domain>` | Generate implementation tasks |
|
|
92
|
-
|
|
93
|
-
### Build Phase
|
|
94
|
-
|
|
95
|
-
| Command | Purpose |
|
|
96
|
-
|---------|---------|
|
|
97
|
-
| `/astra:build <task> [--auto]` | Implement tasks with code + tests |
|
|
98
|
-
| `/astra:verify` | Check documentation consistency |
|
|
99
|
-
|
|
100
|
-
### Governance
|
|
101
|
-
|
|
102
|
-
| Command | Purpose |
|
|
103
|
-
|---------|---------|
|
|
44
|
+
| `/astra:status` | Show current state and suggest next action |
|
|
104
45
|
| `/astra:change <title>` | Manage changes to approved docs |
|
|
46
|
+
| `/astra:help` | List available commands |
|
|
105
47
|
|
|
106
48
|
---
|
|
107
49
|
|
|
108
50
|
## Development Rules
|
|
109
51
|
|
|
110
52
|
### Before Coding
|
|
111
|
-
1. Read
|
|
112
|
-
2.
|
|
113
|
-
3.
|
|
114
|
-
|
|
115
|
-
### Code Standards
|
|
116
|
-
[CUSTOMIZE: Add your coding conventions]
|
|
117
|
-
|
|
118
|
-
- Follow naming conventions in [standards](.astraler-docs/03-arch/standards.md)
|
|
119
|
-
- Match existing patterns in the codebase
|
|
120
|
-
- [CUSTOMIZE: Additional rules]
|
|
53
|
+
1. Read [`atlas/index.md`](.astraler-docs/atlas/index.md) for project overview
|
|
54
|
+
2. Check [`atlas/database.md`](.astraler-docs/atlas/database.md) for data models
|
|
55
|
+
3. Review [`atlas/api.md`](.astraler-docs/atlas/api.md) for API contracts
|
|
56
|
+
4. See [`ai/guardrails.md`](.astraler-docs/ai/guardrails.md) for AI rules
|
|
121
57
|
|
|
122
|
-
###
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
-
|
|
126
|
-
- [CUSTOMIZE: Coverage requirements]
|
|
127
|
-
- [CUSTOMIZE: Test naming conventions]
|
|
128
|
-
|
|
129
|
-
### Forbidden Patterns
|
|
130
|
-
[CUSTOMIZE: Add patterns to avoid]
|
|
131
|
-
|
|
132
|
-
- Never edit `Approved` docs without a CHG record
|
|
133
|
-
- [CUSTOMIZE: Security anti-patterns]
|
|
134
|
-
- [CUSTOMIZE: Architecture violations]
|
|
58
|
+
### Critical Rules
|
|
59
|
+
- Never edit `Approved` docs without a Change Record (CHG)
|
|
60
|
+
- Atlas is the source of truth — changes flow Atlas → expanded docs
|
|
61
|
+
- [CUSTOMIZE: Add project-specific forbidden patterns]
|
|
135
62
|
|
|
136
63
|
---
|
|
137
64
|
|
|
@@ -160,26 +87,6 @@ All project documentation lives in `.astraler-docs/`. Read these before making c
|
|
|
160
87
|
When requirements change:
|
|
161
88
|
1. Run `/astra:change "<title>"` to create a change record
|
|
162
89
|
2. Wait for impact analysis and human approval
|
|
163
|
-
3. Changes
|
|
164
|
-
4. Run `/astra:verify` to confirm consistency
|
|
165
|
-
|
|
166
|
-
See [changelog](.astraler-docs/05-changes/changelog.md) for recent changes.
|
|
167
|
-
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
## Domain Quick Links
|
|
171
|
-
|
|
172
|
-
[CUSTOMIZE: Add your domains after running /astra:spec]
|
|
173
|
-
|
|
174
|
-
| Domain | Spec | Arch | Tasks |
|
|
175
|
-
|--------|------|------|-------|
|
|
176
|
-
| [DOMAIN] | [spec](.astraler-docs/02-spec/domains/[DOMAIN].md) | [arch](.astraler-docs/03-arch/domains/[DOMAIN].arch.md) | [tasks](.astraler-docs/04-tasks/domains/[DOMAIN].tasks.md) |
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
## Navigation
|
|
90
|
+
3. Changes propagate: Atlas → expanded docs → code
|
|
181
91
|
|
|
182
|
-
|
|
183
|
-
- **Understanding the system?** See [System Overview](.astraler-docs/02-spec/core/overview.md)
|
|
184
|
-
- **Technical questions?** Check [Tech Stack](.astraler-docs/03-arch/overview.md) and [Data Schema](.astraler-docs/03-arch/data-schema.md)
|
|
185
|
-
- **Need to implement?** See [Milestones](.astraler-docs/04-tasks/milestones.md)
|
|
92
|
+
See [`changes/changelog.md`](.astraler-docs/changes/changelog.md) for history.
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Visualize and manage Kanban board"
|
|
3
|
+
argument-hint: "[domain|all] [--move <task> <column>] [--prioritize <task> <P0|P1|P2>] [--next]"
|
|
4
|
+
allowed-tools: ["Read", "Write", "Edit", "Glob"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Kanban board visualization and task flow management.
|
|
8
|
+
|
|
9
|
+
## Activation
|
|
10
|
+
|
|
11
|
+
1. LOAD engine rules from `@_astraler/engine.md`
|
|
12
|
+
2. Parse domain or subcommand from arguments
|
|
13
|
+
3. Execute appropriate action
|
|
14
|
+
|
|
15
|
+
## Subcommands
|
|
16
|
+
|
|
17
|
+
### `/astra:board [domain]`
|
|
18
|
+
|
|
19
|
+
Display current board state for a domain (or all domains):
|
|
20
|
+
|
|
21
|
+
1. Read `.astraler-docs/04-tasks/domains/{domain}.tasks.md`
|
|
22
|
+
2. Parse tasks by column (Backlog, Ready, In Progress, Review, Done)
|
|
23
|
+
3. Display board visualization
|
|
24
|
+
4. Highlight WIP violations (if In Progress > wip-limit)
|
|
25
|
+
5. Show blocked tasks
|
|
26
|
+
6. Display cycle time metrics
|
|
27
|
+
|
|
28
|
+
**Output:**
|
|
29
|
+
```
|
|
30
|
+
## {Domain} Kanban Board
|
|
31
|
+
|
|
32
|
+
| Backlog | Ready | In Progress (2/2) | Review | Done |
|
|
33
|
+
|---------|-------|-------------------|--------|------|
|
|
34
|
+
| TSK-004 | - | TSK-002 P1 | - | TSK-001 |
|
|
35
|
+
| TSK-005 | | TSK-003 P1 | | TSK-008 |
|
|
36
|
+
| ... | | | | |
|
|
37
|
+
|
|
38
|
+
Metrics:
|
|
39
|
+
- WIP: 2/2 (at limit)
|
|
40
|
+
- Avg Cycle Time: 1.5 days
|
|
41
|
+
- Throughput (7d): 2 tasks
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### `/astra:board --move <task> <column>`
|
|
45
|
+
|
|
46
|
+
Move a task to a new column:
|
|
47
|
+
|
|
48
|
+
1. Validate task exists
|
|
49
|
+
2. Validate column name (Backlog, Ready, In Progress, Review, Done)
|
|
50
|
+
3. Check WIP limit for "In Progress" column
|
|
51
|
+
4. Update task status in file
|
|
52
|
+
5. Record timestamp for metrics (Entered Ready, Started, etc.)
|
|
53
|
+
6. Update board visualization in file
|
|
54
|
+
7. Display updated board
|
|
55
|
+
|
|
56
|
+
**Columns:**
|
|
57
|
+
| Column | Status Value | Timestamp Field |
|
|
58
|
+
|--------|--------------|-----------------|
|
|
59
|
+
| Backlog | Backlog | - |
|
|
60
|
+
| Ready | Ready | Entered Ready |
|
|
61
|
+
| In Progress | In Progress | Started |
|
|
62
|
+
| Review | Review | - |
|
|
63
|
+
| Done | Done | Completed |
|
|
64
|
+
|
|
65
|
+
**WIP Enforcement:**
|
|
66
|
+
- If moving to "In Progress" would exceed wip-limit, warn and ask for confirmation
|
|
67
|
+
- Suggest which task to move out first
|
|
68
|
+
|
|
69
|
+
### `/astra:board --prioritize <task> <priority>`
|
|
70
|
+
|
|
71
|
+
Change task priority:
|
|
72
|
+
|
|
73
|
+
1. Validate task exists
|
|
74
|
+
2. Validate priority (P0, P1, P2, Backlog)
|
|
75
|
+
3. Update priority field in task
|
|
76
|
+
4. If P0 (Critical), highlight in output
|
|
77
|
+
5. Reorder task in column by priority
|
|
78
|
+
6. Display updated board
|
|
79
|
+
|
|
80
|
+
**Priority Meanings:**
|
|
81
|
+
| Priority | Label | Description |
|
|
82
|
+
|----------|-------|-------------|
|
|
83
|
+
| P0 | Critical | Blocking other work, immediate attention |
|
|
84
|
+
| P1 | Current | Active focus, pull next |
|
|
85
|
+
| P2 | Next | Coming soon, after P1 cleared |
|
|
86
|
+
| Backlog | Future | Identified but not prioritized |
|
|
87
|
+
|
|
88
|
+
### `/astra:board --next`
|
|
89
|
+
|
|
90
|
+
Pull next task to work on:
|
|
91
|
+
|
|
92
|
+
1. Find highest priority task in Ready column
|
|
93
|
+
2. Check WIP limit
|
|
94
|
+
3. If at limit, suggest completing or moving a task first
|
|
95
|
+
4. If under limit, move task to In Progress
|
|
96
|
+
5. Display task details for starting work
|
|
97
|
+
|
|
98
|
+
**Output:**
|
|
99
|
+
```
|
|
100
|
+
## Next Task: TSK-order-004
|
|
101
|
+
|
|
102
|
+
**Cancel order endpoint (DELETE /api/v1/orders/:id)**
|
|
103
|
+
|
|
104
|
+
Priority: P2 → P1 (now active)
|
|
105
|
+
Column: Ready → In Progress
|
|
106
|
+
Dependencies: TSK-order-001 ✅, TSK-order-002 ✅
|
|
107
|
+
|
|
108
|
+
Acceptance Criteria:
|
|
109
|
+
- [ ] DELETE /api/v1/orders/:id endpoint
|
|
110
|
+
- [ ] Authorization check (owner or seller or admin)
|
|
111
|
+
- [ ] Return 200 with cancellation details
|
|
112
|
+
...
|
|
113
|
+
|
|
114
|
+
Ready to start? [y/n]
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Reads
|
|
118
|
+
|
|
119
|
+
- `.astraler-docs/04-tasks/domains/{domain}.tasks.md`
|
|
120
|
+
- `.astraler-docs/04-tasks/phases.md` (for phase context)
|
|
121
|
+
- `.astraler-docs/04-tasks/milestones.md` (for milestone context)
|
|
122
|
+
|
|
123
|
+
## Writes
|
|
124
|
+
|
|
125
|
+
- `.astraler-docs/04-tasks/domains/{domain}.tasks.md` (when moving/prioritizing)
|
|
126
|
+
|
|
127
|
+
## Board Visualization
|
|
128
|
+
|
|
129
|
+
The board is stored as a Mermaid block-beta diagram in each tasks file:
|
|
130
|
+
|
|
131
|
+
```mermaid
|
|
132
|
+
block-beta
|
|
133
|
+
columns 5
|
|
134
|
+
|
|
135
|
+
block:backlog["Backlog"]
|
|
136
|
+
T004["TSK-004"]
|
|
137
|
+
T005["TSK-005"]
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
block:ready["Ready"]
|
|
141
|
+
space
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
block:doing["In Progress (2)"]
|
|
145
|
+
T002["TSK-002 P1"]
|
|
146
|
+
T003["TSK-003 P1"]
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
block:review["Review"]
|
|
150
|
+
space
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
block:done["Done"]
|
|
154
|
+
T001["TSK-001"]
|
|
155
|
+
T008["TSK-008"]
|
|
156
|
+
end
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Metrics Tracking
|
|
160
|
+
|
|
161
|
+
Track in each task file:
|
|
162
|
+
|
|
163
|
+
| Metric | Calculation |
|
|
164
|
+
|--------|-------------|
|
|
165
|
+
| WIP Current | Count of tasks in "In Progress" |
|
|
166
|
+
| WIP Limit | From frontmatter `wip-limit` |
|
|
167
|
+
| Avg Cycle Time | Avg (Completed - Entered Ready) for Done tasks |
|
|
168
|
+
| Throughput | Count of tasks moved to Done in last 7 days |
|
|
169
|
+
|
|
170
|
+
## Output
|
|
171
|
+
|
|
172
|
+
After any board operation, display:
|
|
173
|
+
1. Updated board visualization
|
|
174
|
+
2. Current metrics
|
|
175
|
+
3. WIP status (under/at/over limit)
|
|
176
|
+
4. Next suggested action (if applicable)
|