agileflow 2.37.2 → 2.39.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 +2 -0
- package/package.json +1 -1
- package/src/core/agents/api.md +24 -0
- package/src/core/agents/database.md +25 -0
- package/src/core/agents/devops.md +25 -0
- package/src/core/agents/mentor.md +35 -0
- package/src/core/agents/performance.md +25 -0
- package/src/core/agents/refactor.md +25 -0
- package/src/core/agents/security.md +25 -0
- package/src/core/agents/ui.md +24 -0
- package/src/core/commands/babysit.md +56 -0
- package/src/core/experts/accessibility/expertise.yaml +41 -3
- package/src/core/experts/adr-writer/expertise.yaml +78 -31
- package/src/core/experts/analytics/expertise.yaml +49 -3
- package/src/core/experts/api/expertise.yaml +113 -107
- package/src/core/experts/ci/expertise.yaml +92 -55
- package/src/core/experts/compliance/expertise.yaml +34 -3
- package/src/core/experts/database/expertise.yaml +65 -12
- package/src/core/experts/datamigration/expertise.yaml +37 -3
- package/src/core/experts/design/expertise.yaml +22 -3
- package/src/core/experts/devops/expertise.yaml +95 -66
- package/src/core/experts/documentation/expertise.yaml +124 -51
- package/src/core/experts/epic-planner/expertise.yaml +69 -31
- package/src/core/experts/integrations/expertise.yaml +93 -3
- package/src/core/experts/mentor/expertise.yaml +80 -34
- package/src/core/experts/mobile/expertise.yaml +17 -3
- package/src/core/experts/monitoring/expertise.yaml +34 -3
- package/src/core/experts/performance/expertise.yaml +27 -3
- package/src/core/experts/product/expertise.yaml +82 -24
- package/src/core/experts/qa/expertise.yaml +22 -3
- package/src/core/experts/readme-updater/expertise.yaml +87 -40
- package/src/core/experts/refactor/expertise.yaml +121 -50
- package/src/core/experts/research/expertise.yaml +88 -45
- package/src/core/experts/security/expertise.yaml +66 -3
- package/src/core/experts/testing/expertise.yaml +103 -58
- package/src/core/experts/ui/expertise.yaml +46 -5
- package/tools/cli/commands/list.js +372 -0
- package/tools/cli/installers/ide/_base-ide.js +7 -4
- package/tools/cli/installers/ide/claude-code.js +78 -47
package/README.md
CHANGED
|
@@ -41,6 +41,7 @@ This will:
|
|
|
41
41
|
agileflow setup # Set up AgileFlow in project
|
|
42
42
|
agileflow status # Check installation + updates
|
|
43
43
|
agileflow update # Update to latest version
|
|
44
|
+
agileflow list # List installed components
|
|
44
45
|
agileflow doctor # Diagnose issues
|
|
45
46
|
agileflow uninstall # Remove from project
|
|
46
47
|
```
|
|
@@ -50,6 +51,7 @@ agileflow uninstall # Remove from project
|
|
|
50
51
|
npx agileflow setup # Set up AgileFlow in project
|
|
51
52
|
npx agileflow status # Check installation + updates
|
|
52
53
|
npx agileflow update # Update to latest version
|
|
54
|
+
npx agileflow list # List installed components
|
|
53
55
|
npx agileflow doctor # Diagnose issues
|
|
54
56
|
npx agileflow uninstall # Remove from project
|
|
55
57
|
```
|
package/package.json
CHANGED
package/src/core/agents/api.md
CHANGED
|
@@ -364,6 +364,30 @@ RESEARCH INTEGRATION
|
|
|
364
364
|
- Validation libraries (Zod, Yup, class-validator)
|
|
365
365
|
- External integrations (Stripe, SendGrid, Twilio, etc.)
|
|
366
366
|
|
|
367
|
+
PLAN MODE FOR COMPLEX API WORK
|
|
368
|
+
|
|
369
|
+
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
370
|
+
|
|
371
|
+
Before implementing, evaluate complexity:
|
|
372
|
+
|
|
373
|
+
| Situation | Action |
|
|
374
|
+
|-----------|--------|
|
|
375
|
+
| Simple CRUD endpoint | Just implement it |
|
|
376
|
+
| Schema migration | → `EnterPlanMode` (analyze impact) |
|
|
377
|
+
| New auth pattern | → `EnterPlanMode` (architectural decision) |
|
|
378
|
+
| External integration | → `EnterPlanMode` (research first) |
|
|
379
|
+
| Multi-service changes | → `EnterPlanMode` (coordinate approach) |
|
|
380
|
+
|
|
381
|
+
**Plan Mode Workflow**:
|
|
382
|
+
1. `EnterPlanMode` → Read-only exploration
|
|
383
|
+
2. Explore existing API patterns (routes, middleware, validation)
|
|
384
|
+
3. Design endpoint/schema approach
|
|
385
|
+
4. Present plan with file paths
|
|
386
|
+
5. Get approval → `ExitPlanMode`
|
|
387
|
+
6. Implement
|
|
388
|
+
|
|
389
|
+
**Skip Plan Mode For**: Single endpoint additions following existing patterns, simple CRUD operations, minor bug fixes.
|
|
390
|
+
|
|
367
391
|
WORKFLOW
|
|
368
392
|
1. **[KNOWLEDGE LOADING]** Before implementation:
|
|
369
393
|
- Read CLAUDE.md for project-specific API conventions
|
|
@@ -305,6 +305,31 @@ SLASH COMMANDS
|
|
|
305
305
|
- `/agileflow:impact-analysis` → Analyze impact of schema changes on other tables
|
|
306
306
|
- `/agileflow:status STORY=... STATUS=...` → Update status
|
|
307
307
|
|
|
308
|
+
PLAN MODE FOR DATABASE CHANGES (CRITICAL)
|
|
309
|
+
|
|
310
|
+
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
311
|
+
|
|
312
|
+
**Database changes are high-risk**. Always plan before schema modifications:
|
|
313
|
+
|
|
314
|
+
| Situation | Action |
|
|
315
|
+
|-----------|--------|
|
|
316
|
+
| Simple query optimization | May skip planning |
|
|
317
|
+
| New table/column | → `EnterPlanMode` (design schema) |
|
|
318
|
+
| Schema migration | → `EnterPlanMode` (rollback strategy) |
|
|
319
|
+
| Index changes | → `EnterPlanMode` (analyze query patterns) |
|
|
320
|
+
| Data model refactoring | → `EnterPlanMode` (impact on all queries) |
|
|
321
|
+
|
|
322
|
+
**Plan Mode Workflow**:
|
|
323
|
+
1. `EnterPlanMode` → Read-only exploration
|
|
324
|
+
2. Map current schema and relationships
|
|
325
|
+
3. Identify all queries affected by change
|
|
326
|
+
4. Design migration with rollback strategy
|
|
327
|
+
5. Plan data migration if needed
|
|
328
|
+
6. Present plan → Get approval → `ExitPlanMode`
|
|
329
|
+
7. Implement with reversible migrations
|
|
330
|
+
|
|
331
|
+
**Database Principle**: Schema changes are permanent. Plan twice, migrate once.
|
|
332
|
+
|
|
308
333
|
WORKFLOW
|
|
309
334
|
|
|
310
335
|
1. **[KNOWLEDGE LOADING]**:
|
|
@@ -291,6 +291,31 @@ RESEARCH INTEGRATION
|
|
|
291
291
|
- Monitoring and observability (Prometheus, Grafana, Datadog, Sentry)
|
|
292
292
|
- Infrastructure as Code (Terraform, Pulumi, CloudFormation)
|
|
293
293
|
|
|
294
|
+
PLAN MODE FOR INFRASTRUCTURE CHANGES
|
|
295
|
+
|
|
296
|
+
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
297
|
+
|
|
298
|
+
**Infrastructure changes affect production**. Plan before deploying:
|
|
299
|
+
|
|
300
|
+
| Situation | Action |
|
|
301
|
+
|-----------|--------|
|
|
302
|
+
| Minor config tweak | May skip planning |
|
|
303
|
+
| New CI/CD pipeline | → `EnterPlanMode` (design workflow) |
|
|
304
|
+
| Deployment strategy change | → `EnterPlanMode` (rollback plan) |
|
|
305
|
+
| Infrastructure as Code | → `EnterPlanMode` (terraform plan) |
|
|
306
|
+
| Environment changes | → `EnterPlanMode` (impact analysis) |
|
|
307
|
+
|
|
308
|
+
**Plan Mode Workflow**:
|
|
309
|
+
1. `EnterPlanMode` → Read-only exploration
|
|
310
|
+
2. Map current infrastructure and dependencies
|
|
311
|
+
3. Design change with rollback strategy
|
|
312
|
+
4. Identify blast radius (what breaks if this fails?)
|
|
313
|
+
5. Plan monitoring/alerting for the change
|
|
314
|
+
6. Present plan → Get approval → `ExitPlanMode`
|
|
315
|
+
7. Implement with verification at each step
|
|
316
|
+
|
|
317
|
+
**DevOps Principle**: Infrastructure is cattle, not pets—but still needs planning.
|
|
318
|
+
|
|
294
319
|
WORKFLOW
|
|
295
320
|
1. **[KNOWLEDGE LOADING]** Before implementation:
|
|
296
321
|
- Read CLAUDE.md for project-specific infrastructure setup
|
|
@@ -241,6 +241,41 @@ IMPLEMENTATION FLOW
|
|
|
241
241
|
8. Generate PR body with /agileflow:pr-template command
|
|
242
242
|
9. Suggest syncing docs/context.md and saving research if applicable
|
|
243
243
|
|
|
244
|
+
PLAN MODE FOR COMPLEX IMPLEMENTATIONS
|
|
245
|
+
|
|
246
|
+
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
247
|
+
|
|
248
|
+
Before implementing, evaluate task complexity:
|
|
249
|
+
|
|
250
|
+
| Situation | Action |
|
|
251
|
+
|-----------|--------|
|
|
252
|
+
| Trivial fix (typo, small tweak) | Just do it |
|
|
253
|
+
| Specific instructions given | Follow directly |
|
|
254
|
+
| Research/exploration only | Use Task tool with Explore agent |
|
|
255
|
+
| Complex/multi-file/unclear | → `EnterPlanMode` first |
|
|
256
|
+
|
|
257
|
+
**When to Enter Plan Mode**:
|
|
258
|
+
- New features with multiple valid approaches
|
|
259
|
+
- Multi-file changes or refactoring
|
|
260
|
+
- Architectural decisions (choosing patterns, libraries, approaches)
|
|
261
|
+
- Unclear requirements (need to explore before designing)
|
|
262
|
+
|
|
263
|
+
**Plan Mode Workflow**:
|
|
264
|
+
1. `EnterPlanMode` → Read-only exploration
|
|
265
|
+
2. Explore codebase with Glob, Grep, Read
|
|
266
|
+
3. Design implementation approach
|
|
267
|
+
4. Present plan with file paths and steps
|
|
268
|
+
5. Clarify decisions with user
|
|
269
|
+
6. Get approval → `ExitPlanMode`
|
|
270
|
+
7. Implement the approved plan
|
|
271
|
+
|
|
272
|
+
**Plan Quality Checklist**:
|
|
273
|
+
- [ ] Explored relevant codebase
|
|
274
|
+
- [ ] Identified all files to change
|
|
275
|
+
- [ ] Considered existing patterns
|
|
276
|
+
- [ ] Noted risks/breaking changes
|
|
277
|
+
- [ ] Got user approval
|
|
278
|
+
|
|
244
279
|
AGENT COORDINATION PATTERNS
|
|
245
280
|
|
|
246
281
|
**When to Delegate to Specialized Agents**:
|
|
@@ -308,6 +308,31 @@ SLASH COMMANDS
|
|
|
308
308
|
- `/agileflow:impact-analysis` → Analyze performance impact of changes
|
|
309
309
|
- `/agileflow:status STORY=... STATUS=...` → Update status
|
|
310
310
|
|
|
311
|
+
PLAN MODE FOR PERFORMANCE OPTIMIZATION
|
|
312
|
+
|
|
313
|
+
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
314
|
+
|
|
315
|
+
**Performance work requires measurement first**. Always plan before optimizing:
|
|
316
|
+
|
|
317
|
+
| Situation | Action |
|
|
318
|
+
|-----------|--------|
|
|
319
|
+
| "Make it faster" (vague) | → `EnterPlanMode` (profile first!) |
|
|
320
|
+
| Known bottleneck | → `EnterPlanMode` (design optimization) |
|
|
321
|
+
| Caching implementation | → `EnterPlanMode` (invalidation strategy) |
|
|
322
|
+
| Query optimization | → `EnterPlanMode` (measure before/after) |
|
|
323
|
+
| Bundle size reduction | → `EnterPlanMode` (analyze dependencies) |
|
|
324
|
+
|
|
325
|
+
**Plan Mode Workflow**:
|
|
326
|
+
1. `EnterPlanMode` → Read-only exploration
|
|
327
|
+
2. **Profile first** - measure current performance
|
|
328
|
+
3. Identify actual bottlenecks (not assumptions)
|
|
329
|
+
4. Design optimization with benchmarks
|
|
330
|
+
5. Plan verification (how to prove it's faster?)
|
|
331
|
+
6. Present plan → Get approval → `ExitPlanMode`
|
|
332
|
+
7. Implement, measure, verify improvement
|
|
333
|
+
|
|
334
|
+
**Performance Principle**: Measure, don't guess. Premature optimization is the root of all evil.
|
|
335
|
+
|
|
311
336
|
WORKFLOW
|
|
312
337
|
|
|
313
338
|
1. **[KNOWLEDGE LOADING]**:
|
|
@@ -345,6 +345,31 @@ SLASH COMMANDS
|
|
|
345
345
|
- `/agileflow:impact-analysis` → Analyze impact of refactoring changes
|
|
346
346
|
- `/agileflow:status STORY=... STATUS=...` → Update status
|
|
347
347
|
|
|
348
|
+
PLAN MODE FOR REFACTORING (ALWAYS USE)
|
|
349
|
+
|
|
350
|
+
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
351
|
+
|
|
352
|
+
**Refactoring REQUIRES planning**. Always enter plan mode before refactoring:
|
|
353
|
+
|
|
354
|
+
| Situation | Action |
|
|
355
|
+
|-----------|--------|
|
|
356
|
+
| ANY refactoring work | → `EnterPlanMode` |
|
|
357
|
+
| Rename across codebase | → `EnterPlanMode` (find all usages) |
|
|
358
|
+
| Extract component/function | → `EnterPlanMode` (identify dependencies) |
|
|
359
|
+
| Architectural changes | → `EnterPlanMode` (impact analysis) |
|
|
360
|
+
| Technical debt cleanup | → `EnterPlanMode` (prioritize changes) |
|
|
361
|
+
|
|
362
|
+
**Plan Mode Workflow**:
|
|
363
|
+
1. `EnterPlanMode` → Read-only exploration
|
|
364
|
+
2. Map current architecture and dependencies
|
|
365
|
+
3. Identify all affected files and tests
|
|
366
|
+
4. Design migration path (small, reversible steps)
|
|
367
|
+
5. Note breaking changes and risks
|
|
368
|
+
6. Present plan → Get approval → `ExitPlanMode`
|
|
369
|
+
7. Implement incrementally, verify tests after each step
|
|
370
|
+
|
|
371
|
+
**Refactoring Principle**: Never refactor without a plan. Small changes cascade.
|
|
372
|
+
|
|
348
373
|
WORKFLOW
|
|
349
374
|
|
|
350
375
|
1. **[KNOWLEDGE LOADING]**:
|
|
@@ -303,6 +303,31 @@ AGENT COORDINATION
|
|
|
303
303
|
{"ts":"2025-10-21T10:10:00Z","from":"AG-SECURITY","type":"status","story":"US-0050","text":"Security review complete: 3 high vulnerabilities found in dependency X, recommended updates"}
|
|
304
304
|
```
|
|
305
305
|
|
|
306
|
+
PLAN MODE FOR SECURITY IMPLEMENTATIONS
|
|
307
|
+
|
|
308
|
+
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
309
|
+
|
|
310
|
+
**Security changes require careful planning**. Always plan before implementing:
|
|
311
|
+
|
|
312
|
+
| Situation | Action |
|
|
313
|
+
|-----------|--------|
|
|
314
|
+
| Simple dependency update | May skip planning |
|
|
315
|
+
| New auth mechanism | → `EnterPlanMode` (design security model) |
|
|
316
|
+
| Vulnerability remediation | → `EnterPlanMode` (root cause analysis) |
|
|
317
|
+
| Access control changes | → `EnterPlanMode` (audit impact) |
|
|
318
|
+
| Encryption/secrets handling | → `EnterPlanMode` (key management plan) |
|
|
319
|
+
|
|
320
|
+
**Plan Mode Workflow**:
|
|
321
|
+
1. `EnterPlanMode` → Read-only exploration
|
|
322
|
+
2. Audit current security posture
|
|
323
|
+
3. Identify all attack surfaces affected
|
|
324
|
+
4. Design fix with defense-in-depth approach
|
|
325
|
+
5. Plan verification (how to prove it's secure?)
|
|
326
|
+
6. Present plan → Get approval → `ExitPlanMode`
|
|
327
|
+
7. Implement with security review at each step
|
|
328
|
+
|
|
329
|
+
**Security Principle**: Security is not a feature—it's a property. Plan comprehensively.
|
|
330
|
+
|
|
306
331
|
WORKFLOW
|
|
307
332
|
|
|
308
333
|
1. **[KNOWLEDGE LOADING]** Before review:
|
package/src/core/agents/ui.md
CHANGED
|
@@ -606,6 +606,30 @@ RESEARCH INTEGRATION
|
|
|
606
606
|
- Animation libraries (Framer Motion, React Spring, GSAP)
|
|
607
607
|
- State management for UI (React Context, Zustand, Redux)
|
|
608
608
|
|
|
609
|
+
PLAN MODE FOR COMPLEX UI WORK
|
|
610
|
+
|
|
611
|
+
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
612
|
+
|
|
613
|
+
Before implementing, evaluate complexity:
|
|
614
|
+
|
|
615
|
+
| Situation | Action |
|
|
616
|
+
|-----------|--------|
|
|
617
|
+
| Simple component tweak | Just implement it |
|
|
618
|
+
| New design system pattern | → `EnterPlanMode` (explore existing patterns) |
|
|
619
|
+
| Multi-component feature | → `EnterPlanMode` (plan component hierarchy) |
|
|
620
|
+
| Responsive/accessibility overhaul | → `EnterPlanMode` (audit first) |
|
|
621
|
+
| State management changes | → `EnterPlanMode` (impact analysis) |
|
|
622
|
+
|
|
623
|
+
**Plan Mode Workflow**:
|
|
624
|
+
1. `EnterPlanMode` → Read-only exploration
|
|
625
|
+
2. Explore existing UI patterns (components, styles, state)
|
|
626
|
+
3. Design component structure and props
|
|
627
|
+
4. Present plan with file paths
|
|
628
|
+
5. Get approval → `ExitPlanMode`
|
|
629
|
+
6. Implement
|
|
630
|
+
|
|
631
|
+
**Skip Plan Mode For**: Single component additions following existing patterns, style tweaks, minor bug fixes.
|
|
632
|
+
|
|
609
633
|
WORKFLOW
|
|
610
634
|
1. **[PROACTIVE - First Story Only]** Check for design system (see DESIGN SYSTEM INITIALIZATION section above)
|
|
611
635
|
- If none exists → Ask to create one
|
|
@@ -546,6 +546,62 @@ This ensures the expert loads their mental model before working.
|
|
|
546
546
|
|
|
547
547
|
---
|
|
548
548
|
|
|
549
|
+
PLAN MODE FOR COMPLEX IMPLEMENTATIONS
|
|
550
|
+
|
|
551
|
+
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
552
|
+
|
|
553
|
+
Before implementing features, evaluate complexity to decide whether to plan first or implement directly.
|
|
554
|
+
|
|
555
|
+
**Decision Tree**:
|
|
556
|
+
```
|
|
557
|
+
Is this a trivial fix (typo, obvious bug, small tweak)?
|
|
558
|
+
→ Just do it (no planning needed)
|
|
559
|
+
|
|
560
|
+
Are specific, detailed instructions given?
|
|
561
|
+
→ Follow instructions directly
|
|
562
|
+
|
|
563
|
+
Is this research/exploration only?
|
|
564
|
+
→ Use Task tool with Explore agent (no plan mode)
|
|
565
|
+
|
|
566
|
+
Is this complex, multi-file, or unclear?
|
|
567
|
+
→ EnterPlanMode FIRST
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
**When to Enter Plan Mode**:
|
|
571
|
+
| Trigger | Example |
|
|
572
|
+
|---------|---------|
|
|
573
|
+
| New feature with choices | "Add user authentication" (JWT vs sessions?) |
|
|
574
|
+
| Multiple valid approaches | "Add caching" (Redis vs in-memory?) |
|
|
575
|
+
| Multi-file changes | "Refactor the auth system" |
|
|
576
|
+
| Architectural decisions | "Add real-time updates" (WebSocket vs SSE?) |
|
|
577
|
+
| Unclear requirements | "Make the app faster" |
|
|
578
|
+
|
|
579
|
+
**Plan Mode Workflow**:
|
|
580
|
+
1. `EnterPlanMode` → Switches to read-only exploration
|
|
581
|
+
2. Explore with Glob, Grep, Read (understand codebase)
|
|
582
|
+
3. Design implementation approach
|
|
583
|
+
4. Present plan to user with file paths and steps
|
|
584
|
+
5. Use AskUserQuestion to clarify decisions
|
|
585
|
+
6. Get user approval
|
|
586
|
+
7. `ExitPlanMode` → Resume with write access
|
|
587
|
+
8. Implement the approved plan
|
|
588
|
+
|
|
589
|
+
**Skip Plan Mode For**:
|
|
590
|
+
- Single-line or few-line fixes
|
|
591
|
+
- Adding a single function with clear requirements
|
|
592
|
+
- Tasks where user gave very specific instructions
|
|
593
|
+
- Pure research (use Task tool with Explore agent)
|
|
594
|
+
|
|
595
|
+
**Plan Quality Checklist** (before ExitPlanMode):
|
|
596
|
+
- [ ] Explored relevant parts of codebase
|
|
597
|
+
- [ ] Identified all files that need changes
|
|
598
|
+
- [ ] Considered existing patterns/conventions
|
|
599
|
+
- [ ] Noted potential risks or breaking changes
|
|
600
|
+
- [ ] Presented clear implementation steps
|
|
601
|
+
- [ ] Got explicit user approval
|
|
602
|
+
|
|
603
|
+
---
|
|
604
|
+
|
|
549
605
|
ERROR HANDLING & RECOVERY
|
|
550
606
|
|
|
551
607
|
When things go wrong, diagnose the issue and provide recovery steps. Follow the general recovery pattern:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
domain: accessibility
|
|
2
|
-
last_updated: 2025-12-
|
|
3
|
-
version: 1.
|
|
2
|
+
last_updated: 2025-12-21
|
|
3
|
+
version: 1.1
|
|
4
4
|
|
|
5
5
|
files:
|
|
6
6
|
components:
|
|
@@ -21,6 +21,12 @@ files:
|
|
|
21
21
|
- path: ACCESSIBILITY.md
|
|
22
22
|
purpose: Accessibility statement
|
|
23
23
|
|
|
24
|
+
cli:
|
|
25
|
+
- path: packages/cli/src/core/
|
|
26
|
+
purpose: CLI commands and agents (primary accessibility focus for AgileFlow)
|
|
27
|
+
- path: packages/cli/tools/
|
|
28
|
+
purpose: CLI tools and installers
|
|
29
|
+
|
|
24
30
|
relationships:
|
|
25
31
|
- component_type: form
|
|
26
32
|
requirements: [labels, error_messages, focus_management]
|
|
@@ -31,6 +37,9 @@ relationships:
|
|
|
31
37
|
- component_type: navigation
|
|
32
38
|
requirements: [keyboard_nav, skip_links, landmarks]
|
|
33
39
|
aria: [role=navigation, aria-current]
|
|
40
|
+
- component_type: cli_prompt
|
|
41
|
+
requirements: [clear_instructions, keyboard_only, error_feedback]
|
|
42
|
+
libraries: [inquirer, chalk, ora]
|
|
34
43
|
|
|
35
44
|
patterns:
|
|
36
45
|
- name: Focus Management
|
|
@@ -45,6 +54,15 @@ patterns:
|
|
|
45
54
|
- name: Color Contrast
|
|
46
55
|
description: "4.5:1 for text, 3:1 for large text"
|
|
47
56
|
implementation: "Use contrast checker tools"
|
|
57
|
+
- name: CLI Semantic Colors
|
|
58
|
+
description: "Terminal colors convey meaning consistently"
|
|
59
|
+
implementation: "Green=success, Red=error, Yellow=warning, Cyan=info, no color-only indicators"
|
|
60
|
+
- name: CLI Progress Feedback
|
|
61
|
+
description: "Visual feedback for long-running operations"
|
|
62
|
+
implementation: "Ora spinners with descriptive text, percentage indicators where applicable"
|
|
63
|
+
- name: CLI Error Messages
|
|
64
|
+
description: "Clear, actionable error messages"
|
|
65
|
+
implementation: "Context + problem + solution, colored output with chalk, exit codes for automation"
|
|
48
66
|
|
|
49
67
|
conventions:
|
|
50
68
|
- "WCAG 2.1 AA minimum, AAA preferred"
|
|
@@ -54,6 +72,10 @@ conventions:
|
|
|
54
72
|
- "Color never sole indicator of meaning"
|
|
55
73
|
- "Motion respects prefers-reduced-motion"
|
|
56
74
|
- "Skip links for keyboard users"
|
|
75
|
+
- "CLI: Always provide text with colored output (never color-only)"
|
|
76
|
+
- "CLI: All prompts keyboard-navigable (arrow keys, tab, enter)"
|
|
77
|
+
- "CLI: Error messages include context and next steps"
|
|
78
|
+
- "CLI: Progress indicators have descriptive text"
|
|
57
79
|
|
|
58
80
|
wcag_checklist:
|
|
59
81
|
perceivable:
|
|
@@ -74,4 +96,20 @@ wcag_checklist:
|
|
|
74
96
|
- "4.1.1 Parsing (A)"
|
|
75
97
|
- "4.1.2 Name, Role, Value (A)"
|
|
76
98
|
|
|
77
|
-
learnings:
|
|
99
|
+
learnings:
|
|
100
|
+
- date: 2025-12-21
|
|
101
|
+
context: "AgileFlow CLI accessibility patterns"
|
|
102
|
+
insight: "AgileFlow is a CLI tool, not a web application. Accessibility focuses on terminal UX: clear error messages with semantic colors (chalk), keyboard-friendly prompts (inquirer), progress indicators (ora spinners), and consistent color conventions (green=success, red=error, yellow=warning)."
|
|
103
|
+
impact: "Shifted accessibility focus from WCAG web patterns to CLI usability patterns. All user-facing output should be screen-reader friendly by always pairing colors with descriptive text."
|
|
104
|
+
- date: 2025-12-21
|
|
105
|
+
context: "CLI semantic color system"
|
|
106
|
+
insight: "Terminal colors must never be the sole indicator of meaning. Always include descriptive text alongside colored output. Example: '✓ Success: Installation complete' (green) vs just green checkmark."
|
|
107
|
+
impact: "Ensures CLI output is accessible to users with color blindness or screen readers. All installers (ui.js, docs-setup.js) follow this pattern."
|
|
108
|
+
- date: 2025-12-21
|
|
109
|
+
context: "Interactive prompts accessibility"
|
|
110
|
+
insight: "All CLI prompts use inquirer library which provides built-in keyboard navigation (arrow keys, tab, enter, escape). Prompts always include clear instructions and validation error messages."
|
|
111
|
+
impact: "Users can navigate all AgileFlow prompts without mouse. Validation errors are actionable and specific (e.g., 'Please enter a valid directory path' vs 'Invalid input')."
|
|
112
|
+
- date: 2025-12-21
|
|
113
|
+
context: "Long-running operation feedback"
|
|
114
|
+
insight: "AgileFlow uses ora spinners for operations >1 second. Spinners always have descriptive text explaining current action (e.g., 'Installing dependencies...' not just spinner). Completion shows success/failure with clear messaging."
|
|
115
|
+
impact: "Users always know what's happening during installs, setups, and file operations. No silent failures or mysterious waiting periods. Screen readers can announce status changes."
|
|
@@ -3,36 +3,43 @@
|
|
|
3
3
|
# AUTO-UPDATED by self-improve.md after completing work
|
|
4
4
|
|
|
5
5
|
domain: adr-writer
|
|
6
|
-
last_updated: 2025-12-
|
|
7
|
-
version: 1.
|
|
6
|
+
last_updated: 2025-12-21
|
|
7
|
+
version: 1.1
|
|
8
8
|
|
|
9
|
+
# AgileFlow-specific ADR patterns (learned from actual codebase)
|
|
9
10
|
files:
|
|
10
11
|
decisions:
|
|
11
12
|
- path: docs/03-decisions/
|
|
12
13
|
purpose: "Architecture Decision Records"
|
|
13
|
-
conventions: "
|
|
14
|
-
|
|
15
|
-
purpose: "ADR template"
|
|
14
|
+
conventions: "adr-NNNN-slug.md naming (e.g., adr-0001-agent-expert-system.md)"
|
|
15
|
+
example: "adr-0001-agent-expert-system.md"
|
|
16
16
|
- path: docs/03-decisions/README.md
|
|
17
|
-
purpose: "ADR index"
|
|
17
|
+
purpose: "ADR index listing all decisions"
|
|
18
18
|
|
|
19
19
|
research:
|
|
20
20
|
- path: docs/10-research/
|
|
21
21
|
purpose: "Research supporting ADR alternatives"
|
|
22
|
+
naming: "YYYYMMDD-slug.md format"
|
|
22
23
|
- path: docs/10-research/README.md
|
|
23
24
|
purpose: "Research index"
|
|
24
25
|
|
|
25
26
|
context:
|
|
26
27
|
- path: CLAUDE.md
|
|
27
|
-
purpose: "Project context informing decisions"
|
|
28
|
+
purpose: "Project context informing decisions (internal)"
|
|
28
29
|
- path: docs/04-architecture/
|
|
29
30
|
purpose: "Architecture documentation"
|
|
31
|
+
- path: docs/05-epics/
|
|
32
|
+
purpose: "Epics link to ADRs for context"
|
|
30
33
|
|
|
31
34
|
relationships:
|
|
32
35
|
- parent: research
|
|
33
36
|
child: adrs
|
|
34
37
|
type: informs
|
|
35
|
-
notes: "Research provides alternatives for ADRs"
|
|
38
|
+
notes: "Research provides alternatives for ADRs (see ADR-0001 referencing research)"
|
|
39
|
+
- parent: adrs
|
|
40
|
+
child: epics
|
|
41
|
+
type: linked_from
|
|
42
|
+
notes: "Epics reference ADRs (EP-0001 → ADR-0001)"
|
|
36
43
|
- parent: adrs
|
|
37
44
|
child: implementation
|
|
38
45
|
type: constrains
|
|
@@ -43,35 +50,56 @@ relationships:
|
|
|
43
50
|
notes: "Old ADRs can be superseded by new ones"
|
|
44
51
|
|
|
45
52
|
patterns:
|
|
46
|
-
- name: ADR Structure
|
|
47
|
-
description: "
|
|
53
|
+
- name: ADR Structure (AgileFlow)
|
|
54
|
+
description: "Status, Date, Decision Makers, Epic link, then sections"
|
|
55
|
+
location: docs/03-decisions/adr-0001-agent-expert-system.md
|
|
56
|
+
sections:
|
|
57
|
+
- "Context (problem statement with research foundation)"
|
|
58
|
+
- "Decision (what we're doing)"
|
|
59
|
+
- "Options Considered (3-4 alternatives with rationale)"
|
|
60
|
+
- "Consequences (Benefits and Trade-offs)"
|
|
61
|
+
- "Implementation Plan (phased approach)"
|
|
62
|
+
- "Risks and Mitigations (table format)"
|
|
63
|
+
- "Success Criteria (qualitative and quantitative)"
|
|
64
|
+
- "Related Documents (links to epic, research)"
|
|
65
|
+
|
|
66
|
+
- name: ADR Header Format
|
|
67
|
+
description: "Markdown frontmatter style at top"
|
|
48
68
|
location: docs/03-decisions/
|
|
49
69
|
example: |
|
|
50
|
-
# ADR-0001:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
description: "Proposed → Accepted → (Deprecated | Superseded)"
|
|
70
|
+
# ADR-0001: Agent Expert System
|
|
71
|
+
**Status**: Accepted
|
|
72
|
+
**Date**: 2025-12-16
|
|
73
|
+
**Decision Makers**: Development Team
|
|
74
|
+
**Epic**: [EP-0001](../05-epics/EP-0001-agent-expert-pilot.md)
|
|
75
|
+
|
|
76
|
+
- name: Options Considered Format
|
|
77
|
+
description: "Each option with brief rationale"
|
|
59
78
|
location: docs/03-decisions/
|
|
60
|
-
example:
|
|
79
|
+
example: |
|
|
80
|
+
### Option 1: Single Global Expert (Rejected)
|
|
81
|
+
- Description
|
|
82
|
+
- **Rejected**: Reason why not selected
|
|
83
|
+
|
|
84
|
+
- name: Risks Table Format
|
|
85
|
+
description: "Risk and Mitigation columns"
|
|
86
|
+
location: docs/03-decisions/
|
|
87
|
+
example: "| Stale expertise | Mandatory validation step |"
|
|
61
88
|
|
|
62
89
|
- name: Research-First ADR
|
|
63
|
-
description: "Always research
|
|
90
|
+
description: "Always reference research that informed decision"
|
|
64
91
|
location: docs/10-research/
|
|
65
|
-
example: "
|
|
92
|
+
example: "See: docs/10-research/20251216-agent-experts-self-improving-agents.md"
|
|
66
93
|
|
|
67
94
|
conventions:
|
|
68
95
|
- "Research alternatives before writing ADR"
|
|
69
|
-
- "
|
|
70
|
-
- "
|
|
71
|
-
- "
|
|
72
|
-
- "
|
|
73
|
-
- "
|
|
74
|
-
- "
|
|
96
|
+
- "Link ADR to epic that drove the decision"
|
|
97
|
+
- "Document 3-4 alternatives with rationale for rejection/deferral"
|
|
98
|
+
- "Include Implementation Plan with phases"
|
|
99
|
+
- "Add Risks and Mitigations table"
|
|
100
|
+
- "Define Success Criteria (qualitative + quantitative)"
|
|
101
|
+
- "Link to Related Documents (epic, research, other ADRs)"
|
|
102
|
+
- "Use lowercase-hyphenated naming: adr-0001-slug.md"
|
|
75
103
|
|
|
76
104
|
adr_statuses:
|
|
77
105
|
proposed: "Under review, not yet approved"
|
|
@@ -81,11 +109,30 @@ adr_statuses:
|
|
|
81
109
|
|
|
82
110
|
decision_categories:
|
|
83
111
|
- "Technology choices (framework, database, language)"
|
|
84
|
-
- "Architecture patterns (
|
|
112
|
+
- "Architecture patterns (Agent Expert system)"
|
|
85
113
|
- "Data modeling (schema design, caching)"
|
|
86
114
|
- "Security approaches (auth, encryption)"
|
|
87
115
|
- "Infrastructure (hosting, CI/CD)"
|
|
88
116
|
- "Development practices (testing, branching)"
|
|
89
117
|
|
|
90
|
-
#
|
|
91
|
-
learnings:
|
|
118
|
+
# Learned from AgileFlow codebase exploration
|
|
119
|
+
learnings:
|
|
120
|
+
- date: 2025-12-21
|
|
121
|
+
context: "Analyzed ADR-0001 structure"
|
|
122
|
+
insight: "ADRs have rich structure: Status/Date/Epic header, Context with research, Decision, Options Considered, Consequences, Implementation Plan, Risks table, Success Criteria, Related Docs"
|
|
123
|
+
source: "docs/03-decisions/adr-0001-agent-expert-system.md"
|
|
124
|
+
|
|
125
|
+
- date: 2025-12-21
|
|
126
|
+
context: "Analyzed ADR-Epic relationship"
|
|
127
|
+
insight: "ADRs link to epics that drove the decision; epics link back to ADRs for context"
|
|
128
|
+
source: "docs/03-decisions/adr-0001-agent-expert-system.md, docs/05-epics/ep-0001-agent-expert-pilot.md"
|
|
129
|
+
|
|
130
|
+
- date: 2025-12-21
|
|
131
|
+
context: "Analyzed Options Considered format"
|
|
132
|
+
insight: "Options include: Selected, Rejected (with reason), Deferred (for future consideration)"
|
|
133
|
+
source: "docs/03-decisions/adr-0001-agent-expert-system.md"
|
|
134
|
+
|
|
135
|
+
- date: 2025-12-21
|
|
136
|
+
context: "Analyzed Implementation Plan"
|
|
137
|
+
insight: "ADRs include phased implementation: Phase 1 (Pilot), Phase 2 (Full Rollout), Phase 3 (Refinement) with checkboxes"
|
|
138
|
+
source: "docs/03-decisions/adr-0001-agent-expert-system.md"
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# AUTO-UPDATED by self-improve.md after completing work
|
|
4
4
|
|
|
5
5
|
domain: analytics
|
|
6
|
-
last_updated: 2025-12-
|
|
7
|
-
version: 1.
|
|
6
|
+
last_updated: 2025-12-21
|
|
7
|
+
version: 1.1
|
|
8
8
|
|
|
9
9
|
files:
|
|
10
10
|
tracking:
|
|
@@ -164,4 +164,50 @@ key_metrics:
|
|
|
164
164
|
|
|
165
165
|
# Learnings are AUTO-UPDATED by self-improve.md
|
|
166
166
|
# Do not edit manually - let the agent learn from experience
|
|
167
|
-
learnings:
|
|
167
|
+
learnings:
|
|
168
|
+
- date: 2025-12-21
|
|
169
|
+
context: AgileFlow metrics tracking patterns
|
|
170
|
+
learning: |
|
|
171
|
+
AgileFlow tracks expertise system metrics via scripts/expertise-metrics.sh script.
|
|
172
|
+
This script analyzes all expert expertise.yaml files to generate health metrics:
|
|
173
|
+
- Total number of experts
|
|
174
|
+
- Experts with learnings vs without
|
|
175
|
+
- Average learnings per expert
|
|
176
|
+
- Most active experts (by learning count)
|
|
177
|
+
- Stale experts (not updated recently)
|
|
178
|
+
Use this pattern for analyzing distributed knowledge across multiple expertise files.
|
|
179
|
+
|
|
180
|
+
- date: 2025-12-21
|
|
181
|
+
context: Validation script health metrics
|
|
182
|
+
learning: |
|
|
183
|
+
AgileFlow validation scripts (scripts/validate-*.sh) provide structured health metrics
|
|
184
|
+
with PASS/WARN/FAIL counts. Key patterns:
|
|
185
|
+
- Each validation script outputs structured results (not just exit codes)
|
|
186
|
+
- Metrics include: total checks, passed, warnings, failures
|
|
187
|
+
- validate-all.sh aggregates metrics from individual validators
|
|
188
|
+
- Health dashboard can be built by parsing validation output
|
|
189
|
+
This pattern enables tracking system health trends over time.
|
|
190
|
+
|
|
191
|
+
- date: 2025-12-21
|
|
192
|
+
context: Story completion metrics from status.json
|
|
193
|
+
learning: |
|
|
194
|
+
AgileFlow tracks project progress via docs/09-agents/status.json.
|
|
195
|
+
Key metrics available:
|
|
196
|
+
- Total stories vs completed stories (completion percentage)
|
|
197
|
+
- Stories by status: backlog, in_progress, blocked, completed
|
|
198
|
+
- WIP (work in progress) count
|
|
199
|
+
- Stories by epic (epic-level progress)
|
|
200
|
+
- Average story age (time in current status)
|
|
201
|
+
Parse status.json to generate project health dashboards and velocity metrics.
|
|
202
|
+
|
|
203
|
+
- date: 2025-12-21
|
|
204
|
+
context: Agent activity tracking via log.jsonl
|
|
205
|
+
learning: |
|
|
206
|
+
AgileFlow tracks agent activity in docs/09-agents/bus/log.jsonl (append-only).
|
|
207
|
+
Each line is a JSON object with: timestamp, agent, action, metadata.
|
|
208
|
+
Key patterns:
|
|
209
|
+
- Append-only format (never edit existing lines)
|
|
210
|
+
- Parse line-by-line to analyze agent activity patterns
|
|
211
|
+
- Track agent invocation frequency, success rates, common errors
|
|
212
|
+
- Identify most active agents and underutilized agents
|
|
213
|
+
Use this for agent performance analytics and optimization insights.
|