owflow 0.1.0 → 0.1.2
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 +8 -1
- package/dist/agents/bottleneck-analyzer.md +329 -0
- package/dist/agents/code-quality-pragmatist.md +354 -0
- package/dist/agents/code-reviewer.md +239 -0
- package/dist/agents/codebase-analysis-reporter.md +246 -0
- package/dist/agents/docs-operator.md +23 -0
- package/dist/agents/e2e-test-verifier.md +448 -0
- package/dist/agents/gap-analyzer.md +502 -0
- package/dist/agents/implementation-completeness-checker.md +220 -0
- package/dist/agents/implementation-planner.md +309 -0
- package/dist/agents/information-gatherer.md +691 -0
- package/dist/agents/production-readiness-checker.md +279 -0
- package/dist/agents/project-analyzer.md +404 -0
- package/dist/agents/reality-assessor.md +366 -0
- package/dist/agents/research-planner.md +447 -0
- package/dist/agents/research-synthesizer.md +401 -0
- package/dist/agents/solution-brainstormer.md +257 -0
- package/dist/agents/solution-designer.md +372 -0
- package/dist/agents/spec-auditor.md +298 -0
- package/dist/agents/specification-creator.md +334 -0
- package/dist/agents/task-classifier.md +462 -0
- package/dist/agents/task-group-implementer.md +284 -0
- package/dist/agents/test-suite-runner.md +195 -0
- package/dist/agents/ui-mockup-generator.md +369 -0
- package/dist/agents/user-docs-generator.md +509 -0
- package/dist/commands/development.md +37 -0
- package/dist/commands/flow-init.md +37 -0
- package/dist/commands/migration.md +37 -0
- package/dist/commands/performance.md +37 -0
- package/dist/commands/product-design.md +37 -0
- package/dist/commands/quick-bugfix.md +37 -0
- package/dist/commands/quick-dev.md +140 -0
- package/dist/commands/quick-plan.md +132 -0
- package/dist/commands/research.md +37 -0
- package/dist/commands/reviews-code.md +90 -0
- package/dist/commands/reviews-pragmatic.md +99 -0
- package/dist/commands/reviews-production-readiness.md +113 -0
- package/dist/commands/reviews-reality-check.md +110 -0
- package/dist/commands/reviews-spec-audit.md +114 -0
- package/dist/commands/standards-discover.md +37 -0
- package/dist/commands/standards-update.md +37 -0
- package/dist/commands/work.md +284 -0
- package/dist/skills/codebase-analyzer/SKILL.md +162 -0
- package/dist/skills/codebase-analyzer/references/code-analysis.md +63 -0
- package/dist/skills/codebase-analyzer/references/combined.md +31 -0
- package/dist/skills/codebase-analyzer/references/context-discovery.md +63 -0
- package/dist/skills/codebase-analyzer/references/file-discovery.md +51 -0
- package/dist/skills/codebase-analyzer/references/migration-target.md +23 -0
- package/dist/skills/codebase-analyzer/references/pattern-mining.md +22 -0
- package/dist/skills/development/SKILL.md +669 -0
- package/dist/skills/docs-manager/SKILL.md +379 -0
- package/dist/skills/docs-manager/docs/INDEX.md +199 -0
- package/dist/skills/docs-manager/docs/standards/backend/api.md +25 -0
- package/dist/skills/docs-manager/docs/standards/backend/migrations.md +22 -0
- package/dist/skills/docs-manager/docs/standards/backend/models.md +25 -0
- package/dist/skills/docs-manager/docs/standards/backend/queries.md +22 -0
- package/dist/skills/docs-manager/docs/standards/frontend/accessibility.md +25 -0
- package/dist/skills/docs-manager/docs/standards/frontend/components.md +28 -0
- package/dist/skills/docs-manager/docs/standards/frontend/css.md +16 -0
- package/dist/skills/docs-manager/docs/standards/frontend/responsive.md +28 -0
- package/dist/skills/docs-manager/docs/standards/global/coding-style.md +25 -0
- package/dist/skills/docs-manager/docs/standards/global/commenting.md +10 -0
- package/dist/skills/docs-manager/docs/standards/global/conventions.md +31 -0
- package/dist/skills/docs-manager/docs/standards/global/error-handling.md +22 -0
- package/dist/skills/docs-manager/docs/standards/global/minimal-implementation.md +22 -0
- package/dist/skills/docs-manager/docs/standards/global/validation.md +28 -0
- package/dist/skills/docs-manager/docs/standards/testing/test-writing.md +25 -0
- package/dist/skills/docs-manager/references/claude-md-template.md +29 -0
- package/dist/skills/docs-manager/references/index-md-template.md +73 -0
- package/dist/skills/flow-init/SKILL.md +198 -0
- package/dist/skills/flow-init/references/architecture-template.md +45 -0
- package/dist/skills/flow-init/references/roadmap-templates.md +93 -0
- package/dist/skills/flow-init/references/tech-stack-template.md +70 -0
- package/dist/skills/flow-init/references/vision-templates.md +75 -0
- package/dist/skills/implementation-plan-executor/SKILL.md +378 -0
- package/dist/skills/implementation-verifier/SKILL.md +307 -0
- package/dist/skills/migration/SKILL.md +380 -0
- package/dist/skills/migration/references/migration-strategies.md +397 -0
- package/dist/skills/migration/references/migration-types.md +437 -0
- package/dist/skills/orchestrator-framework/SKILL.md +65 -0
- package/dist/skills/orchestrator-framework/references/orchestrator-creation-checklist.md +47 -0
- package/dist/skills/orchestrator-framework/references/orchestrator-patterns.md +329 -0
- package/dist/skills/performance/SKILL.md +418 -0
- package/dist/skills/performance/references/performance-optimization-guide.md +365 -0
- package/dist/skills/product-design/SKILL.md +843 -0
- package/dist/skills/product-design/references/characteristic-detection.md +92 -0
- package/dist/skills/product-design/references/interaction-patterns.md +206 -0
- package/dist/skills/product-design/references/visual-companion.md +190 -0
- package/dist/skills/product-design/server/index.ts +359 -0
- package/dist/skills/product-design/server/template.html +256 -0
- package/dist/skills/quick-bugfix/SKILL.md +241 -0
- package/dist/skills/research/SKILL.md +493 -0
- package/dist/skills/research/references/brainstorming-techniques.md +84 -0
- package/dist/skills/research/references/design-techniques.md +40 -0
- package/dist/skills/research/references/research-methodologies.md +710 -0
- package/dist/skills/standards-discover/SKILL.md +236 -0
- package/dist/skills/standards-discover/references/aggregation-strategy.md +76 -0
- package/dist/skills/standards-discover/references/code-pattern-prompt.md +68 -0
- package/dist/skills/standards-discover/references/config-analyzer-prompt.md +67 -0
- package/dist/skills/standards-discover/references/docs-extractor-prompt.md +65 -0
- package/dist/skills/standards-discover/references/external-analyzer-prompt.md +75 -0
- package/dist/skills/standards-update/SKILL.md +159 -0
- package/package.json +14 -6
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Roadmap Document Templates
|
|
2
|
+
|
|
3
|
+
Select the appropriate template based on project type detected by project-analyzer.
|
|
4
|
+
|
|
5
|
+
## New Project (Feature-Based)
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Development Roadmap
|
|
9
|
+
|
|
10
|
+
This roadmap outlines the planned features and development phases for [PROJECT_NAME].
|
|
11
|
+
|
|
12
|
+
## Phase 1: MVP (Minimum Viable Product)
|
|
13
|
+
**Timeline**: [Estimated]
|
|
14
|
+
|
|
15
|
+
- [ ] **Feature 1** — [Description] `[Effort: S/M/L]`
|
|
16
|
+
- [ ] **Feature 2** — [Description] `[Effort: S/M/L]`
|
|
17
|
+
- [ ] **Feature 3** — [Description] `[Effort: S/M/L]`
|
|
18
|
+
|
|
19
|
+
## Phase 2: Core Features
|
|
20
|
+
**Timeline**: [Estimated]
|
|
21
|
+
|
|
22
|
+
- [ ] **Feature 4** — [Description] `[Effort: S/M/L]`
|
|
23
|
+
- [ ] **Feature 5** — [Description] `[Effort: S/M/L]`
|
|
24
|
+
|
|
25
|
+
## Future Enhancements
|
|
26
|
+
- [ ] **Feature X** — [Nice to have]
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
**Effort Scale**: `S`: 2-3 days | `M`: 1 week | `L`: 2+ weeks
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Existing Project (Evolution)
|
|
33
|
+
|
|
34
|
+
```markdown
|
|
35
|
+
# Development Roadmap
|
|
36
|
+
|
|
37
|
+
## Current State
|
|
38
|
+
- **Version**: [From analysis]
|
|
39
|
+
- **Key Features**: [List major current features]
|
|
40
|
+
- **Recent Updates**: [From git history]
|
|
41
|
+
|
|
42
|
+
## Planned Enhancements (Next 3-6 Months)
|
|
43
|
+
|
|
44
|
+
### High Priority
|
|
45
|
+
- [ ] **Enhancement 1** — [Description and why it matters]
|
|
46
|
+
- [ ] **Enhancement 2** — [Description and why it matters]
|
|
47
|
+
|
|
48
|
+
### Medium Priority
|
|
49
|
+
- [ ] **Enhancement 3** — [Description]
|
|
50
|
+
|
|
51
|
+
### Technical Debt
|
|
52
|
+
- [ ] **Debt Item 1** — [From analysis, if applicable]
|
|
53
|
+
- [ ] **Debt Item 2** — [From analysis, if applicable]
|
|
54
|
+
|
|
55
|
+
## Future Considerations
|
|
56
|
+
- **Feature Ideas**: [Long-term possibilities]
|
|
57
|
+
- **Scalability**: [Performance improvements needed]
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Legacy Project (Modernization)
|
|
61
|
+
|
|
62
|
+
```markdown
|
|
63
|
+
# Modernization Roadmap
|
|
64
|
+
|
|
65
|
+
## Current State Assessment
|
|
66
|
+
- **Technology Age**: [From analysis]
|
|
67
|
+
- **Technical Debt**: [High/Medium/Low]
|
|
68
|
+
- **Outdated Components**: [List from analysis]
|
|
69
|
+
- **Security Concerns**: [If identified]
|
|
70
|
+
|
|
71
|
+
## Modernization Goals
|
|
72
|
+
|
|
73
|
+
### Critical (Must Do)
|
|
74
|
+
- [ ] **Upgrade [Component]** — [e.g., "Java 8 → Java 17 LTS"] `Risk: High if delayed`
|
|
75
|
+
- [ ] **Security Patch** — [Address known vulnerabilities]
|
|
76
|
+
|
|
77
|
+
### Important (Should Do)
|
|
78
|
+
- [ ] **Framework Update** — [e.g., "Spring 3.x → Spring Boot 3.x"]
|
|
79
|
+
- [ ] **Improve Test Coverage** — [Current: X%, Target: Y%]
|
|
80
|
+
|
|
81
|
+
### Improvements (Nice to Do)
|
|
82
|
+
- [ ] **Refactor Module X** — [Reduce technical debt]
|
|
83
|
+
- [ ] **Add Documentation** — [Architecture, deployment]
|
|
84
|
+
|
|
85
|
+
## Migration Strategy
|
|
86
|
+
[Step-by-step approach if major migration needed]
|
|
87
|
+
|
|
88
|
+
## Risk Mitigation
|
|
89
|
+
[How to reduce risk during modernization]
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
*Assessment based on project analysis performed [Date]*
|
|
93
|
+
```
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Tech Stack Document Template
|
|
2
|
+
|
|
3
|
+
Always generated (required documentation). Fill in all detected technologies, versions, and rationale from project analysis.
|
|
4
|
+
|
|
5
|
+
```markdown
|
|
6
|
+
# Technology Stack
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
This document describes the technology choices and rationale for [PROJECT_NAME].
|
|
10
|
+
|
|
11
|
+
## Languages
|
|
12
|
+
|
|
13
|
+
### [Primary Language] ([Version])
|
|
14
|
+
- **Usage**: [percentage]% of codebase
|
|
15
|
+
- **Rationale**: [Why this language?]
|
|
16
|
+
- **Key Features Used**: [Notable language features]
|
|
17
|
+
|
|
18
|
+
## Frameworks
|
|
19
|
+
|
|
20
|
+
### Frontend
|
|
21
|
+
[List detected frontend frameworks with versions and rationale]
|
|
22
|
+
|
|
23
|
+
### Backend
|
|
24
|
+
[List detected backend frameworks with versions and rationale]
|
|
25
|
+
|
|
26
|
+
### Testing
|
|
27
|
+
[List detected testing frameworks]
|
|
28
|
+
|
|
29
|
+
## Database
|
|
30
|
+
|
|
31
|
+
### [Database Name] ([Version])
|
|
32
|
+
- **Type**: [Relational/NoSQL/etc.]
|
|
33
|
+
- **ORM/Client**: [Detected library]
|
|
34
|
+
- **Rationale**: [Why this database?]
|
|
35
|
+
|
|
36
|
+
## Build Tools & Package Management
|
|
37
|
+
[From analysis: npm, Maven, pip, etc.]
|
|
38
|
+
|
|
39
|
+
## Infrastructure
|
|
40
|
+
|
|
41
|
+
### Containerization
|
|
42
|
+
[Docker, Docker Compose - if detected]
|
|
43
|
+
|
|
44
|
+
### CI/CD
|
|
45
|
+
[GitHub Actions, GitLab CI - if detected]
|
|
46
|
+
|
|
47
|
+
### Hosting
|
|
48
|
+
[Vercel, AWS, Heroku - if detected or known]
|
|
49
|
+
|
|
50
|
+
## Development Tools
|
|
51
|
+
|
|
52
|
+
### Linting & Formatting
|
|
53
|
+
[ESLint, Prettier, Black - from analysis]
|
|
54
|
+
|
|
55
|
+
### Type Checking
|
|
56
|
+
[TypeScript, MyPy - from analysis]
|
|
57
|
+
|
|
58
|
+
## Key Dependencies
|
|
59
|
+
[List major dependencies from package files]
|
|
60
|
+
|
|
61
|
+
## Version Management
|
|
62
|
+
[How versions are managed]
|
|
63
|
+
|
|
64
|
+
## Migration Path (for legacy projects)
|
|
65
|
+
[If applicable - planned upgrades]
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
*Last Updated*: [Date]
|
|
69
|
+
*Auto-detected*: [List what was auto-detected vs user-provided]
|
|
70
|
+
```
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Vision Document Templates
|
|
2
|
+
|
|
3
|
+
Select the appropriate template based on project type detected by project-analyzer.
|
|
4
|
+
|
|
5
|
+
## New Project
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Project Vision
|
|
9
|
+
|
|
10
|
+
## Pitch
|
|
11
|
+
[PROJECT_NAME] is a [TYPE] that helps [TARGET_USERS] [SOLVE_PROBLEM] by [VALUE_PROPOSITION].
|
|
12
|
+
|
|
13
|
+
## Problem Statement
|
|
14
|
+
[What problem are you solving? Why does it matter?]
|
|
15
|
+
|
|
16
|
+
## Target Users
|
|
17
|
+
[Who will use this? What are their needs?]
|
|
18
|
+
|
|
19
|
+
## Key Features
|
|
20
|
+
[Core features that deliver value]
|
|
21
|
+
|
|
22
|
+
## Success Criteria
|
|
23
|
+
[How will you measure success?]
|
|
24
|
+
|
|
25
|
+
## Differentiators
|
|
26
|
+
[What makes this unique?]
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Existing Project
|
|
30
|
+
|
|
31
|
+
```markdown
|
|
32
|
+
# Project Vision
|
|
33
|
+
|
|
34
|
+
## Overview
|
|
35
|
+
[PROJECT_NAME] is a [TYPE] that [CURRENT_PURPOSE].
|
|
36
|
+
|
|
37
|
+
## Current State
|
|
38
|
+
- **Age**: [X years/months]
|
|
39
|
+
- **Status**: [Active development/Maintenance/etc.]
|
|
40
|
+
- **Users**: [Current user base]
|
|
41
|
+
- **Tech Stack**: [Primary technologies]
|
|
42
|
+
|
|
43
|
+
## Purpose
|
|
44
|
+
[Why this project exists, what problem it solves]
|
|
45
|
+
|
|
46
|
+
## Goals (Next 6-12 Months)
|
|
47
|
+
[Planned improvements and new features]
|
|
48
|
+
|
|
49
|
+
## Evolution
|
|
50
|
+
[How the project has changed, where it's headed]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Legacy Project
|
|
54
|
+
|
|
55
|
+
```markdown
|
|
56
|
+
# Project Vision
|
|
57
|
+
|
|
58
|
+
## Overview
|
|
59
|
+
[PROJECT_NAME] is a [TYPE] built [X years ago] to [ORIGINAL_PURPOSE].
|
|
60
|
+
|
|
61
|
+
## Current State
|
|
62
|
+
- **Age**: [X years]
|
|
63
|
+
- **Tech Stack**: [Current technologies - note outdated items]
|
|
64
|
+
- **Technical Debt**: [Assessment from analysis]
|
|
65
|
+
- **Status**: [Production/Maintenance/Migration planned]
|
|
66
|
+
|
|
67
|
+
## Modernization Goals
|
|
68
|
+
[What needs to be updated and why]
|
|
69
|
+
|
|
70
|
+
## Migration Strategy
|
|
71
|
+
[If applicable - path from legacy to modern stack]
|
|
72
|
+
|
|
73
|
+
## Business Value
|
|
74
|
+
[Why maintain/modernize this system]
|
|
75
|
+
```
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implementation-plan-executor
|
|
3
|
+
description: Execute implementation plans by delegating each task group to task-group-implementer subagent. Main agent coordinates prepares context, invokes subagent, processes output, marks checkboxes, updates work-log. Uses lazy standards loading from INDEX.md with keyword-triggered discovery.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are an implementation plan executor that delegates task groups to subagents with continuous standards discovery.
|
|
8
|
+
|
|
9
|
+
## Core Principles
|
|
10
|
+
|
|
11
|
+
1. **Always delegate**: Every task group is executed by `task-group-implementer` subagent
|
|
12
|
+
2. **Lazy standards loading**: Load standards per task group, not all upfront
|
|
13
|
+
3. **Continuous discovery**: Subagent discovers standards during execution via keywords
|
|
14
|
+
4. **Test-driven**: Test step (N.1) before implementation steps (N.2+)
|
|
15
|
+
5. **Immediate progress**: Mark checkboxes right after each step completes
|
|
16
|
+
6. **Main agent owns visibility**: Work-log and checkboxes always updated by main agent
|
|
17
|
+
|
|
18
|
+
## Execution Model
|
|
19
|
+
|
|
20
|
+
**Always delegate.** Every task group is executed by the `task-group-implementer` subagent. The main agent NEVER writes implementation code directly.
|
|
21
|
+
|
|
22
|
+
**No exceptions**: "Patterns are clear" or "only a few steps" are NOT valid reasons to skip delegation.
|
|
23
|
+
|
|
24
|
+
❌ Wrong: "Let me read standards..." → Implement directly
|
|
25
|
+
✅ Right: Task tool → Process output → Mark checkboxes
|
|
26
|
+
|
|
27
|
+
## Phase 1: Initialize
|
|
28
|
+
|
|
29
|
+
1. **Locate task**: Get path from context or user
|
|
30
|
+
2. **Validate files exist**:
|
|
31
|
+
- `implementation/implementation-plan.md` (required)
|
|
32
|
+
- `implementation/spec.md` (recommended)
|
|
33
|
+
- `.owflow/docs/INDEX.md` (required for standards)
|
|
34
|
+
3. **Check for task group items**: Call `TaskList` to find existing task group items from the planner. If found, use them. If not, create them with `TaskCreate` for each task group (fallback for plans created before task system migration).
|
|
35
|
+
4. **Initialize work-log.md**:
|
|
36
|
+
|
|
37
|
+
```markdown
|
|
38
|
+
# Work Log
|
|
39
|
+
|
|
40
|
+
## [timestamp] - Implementation Started
|
|
41
|
+
|
|
42
|
+
**Total Steps**: [N]
|
|
43
|
+
**Task Groups**: [list]
|
|
44
|
+
|
|
45
|
+
## Standards Reading Log
|
|
46
|
+
|
|
47
|
+
### Loaded Per Group
|
|
48
|
+
|
|
49
|
+
(Entries added as groups execute)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**Do NOT read all standards upfront.** Standards are loaded lazily per task group.
|
|
53
|
+
|
|
54
|
+
## Phase 2: Execute
|
|
55
|
+
|
|
56
|
+
**FIRST action per group = Task tool invocation.** Then process results.
|
|
57
|
+
|
|
58
|
+
For each task group:
|
|
59
|
+
|
|
60
|
+
0. Use `TaskUpdate` to set the group task to `status: "in_progress"` with `owner: "task-group-implementer"`
|
|
61
|
+
|
|
62
|
+
1. **Prepare group context**:
|
|
63
|
+
- Extract group content from implementation-plan.md
|
|
64
|
+
- Check "Standards Compliance" section — identify standards relevant to this group
|
|
65
|
+
- Check INDEX.md for additional standards matching group topic
|
|
66
|
+
- Get relevant spec sections
|
|
67
|
+
|
|
68
|
+
2. **Invoke task-group-implementer subagent via Task tool**:
|
|
69
|
+
- subagent_type: `task-group-implementer`
|
|
70
|
+
- prompt: Include group content, initial standards, INDEX.md path, spec excerpt
|
|
71
|
+
- See "Subagent Invocation" section for full prompt template
|
|
72
|
+
|
|
73
|
+
3. **Process subagent output**:
|
|
74
|
+
- Parse completed steps
|
|
75
|
+
- Parse standards applied (initial + discovered)
|
|
76
|
+
- Parse test results
|
|
77
|
+
|
|
78
|
+
4. **Update artifacts** (main agent responsibility):
|
|
79
|
+
- Mark all group checkboxes in implementation-plan.md
|
|
80
|
+
- Add group entry to work-log.md with standards trail
|
|
81
|
+
- Verify test results are acceptable
|
|
82
|
+
|
|
83
|
+
5. Use `TaskUpdate` to set the group task to `status: "completed"` with `metadata: {completed_at, tests_passed, files_modified, standards_applied}`
|
|
84
|
+
|
|
85
|
+
6. **If subagent reports failure**:
|
|
86
|
+
- Do NOT auto-rollback (see Critical Principle in AGENTS.md)
|
|
87
|
+
- Assess: config issue? test setup? logic error?
|
|
88
|
+
- Use question for recovery path
|
|
89
|
+
- Keep group task as `in_progress` with `metadata: {failed_at, failure_reason}`
|
|
90
|
+
|
|
91
|
+
## Continuous Standards Discovery
|
|
92
|
+
|
|
93
|
+
**Philosophy**: Standards are discovered when relevant, not memorized upfront.
|
|
94
|
+
|
|
95
|
+
### Three Sources of Standards
|
|
96
|
+
|
|
97
|
+
1. **Implementation Plan Standards**: The "Standards Compliance" section in implementation-plan.md lists standards identified during planning. Filter these per task group based on relevance.
|
|
98
|
+
|
|
99
|
+
2. **INDEX.md Discovery**: The file `.owflow/docs/INDEX.md` maps topics to standard files. Use it to find standards not listed in the plan.
|
|
100
|
+
|
|
101
|
+
3. **Keyword-Triggered Discovery**: During execution, step descriptions may reveal need for additional standards.
|
|
102
|
+
|
|
103
|
+
### Keyword Triggers (Suggestive, Not Exhaustive)
|
|
104
|
+
|
|
105
|
+
These are **examples** to guide discovery. Do not limit discovery to only these triggers - use judgment to identify when other standards may apply.
|
|
106
|
+
|
|
107
|
+
| Example Keywords | May Suggest Standards For |
|
|
108
|
+
| ----------------------- | -------------------------- |
|
|
109
|
+
| file, upload, download | file handling, storage |
|
|
110
|
+
| auth, login, session | security, authentication |
|
|
111
|
+
| email, notification | external services |
|
|
112
|
+
| form, input, validation | forms, validation |
|
|
113
|
+
| API, endpoint | api design, error handling |
|
|
114
|
+
| migration, schema | database conventions |
|
|
115
|
+
|
|
116
|
+
**Key principle**: If a step involves a concept that likely has project standards, check INDEX.md even if no keyword explicitly matches.
|
|
117
|
+
|
|
118
|
+
### Discovery Flow
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
Per task group:
|
|
122
|
+
1. Check "Standards Compliance" section in implementation-plan.md
|
|
123
|
+
- Identify which listed standards are relevant to THIS group
|
|
124
|
+
- Read those standards
|
|
125
|
+
|
|
126
|
+
2. Check INDEX.md for additional standards matching group topic
|
|
127
|
+
|
|
128
|
+
3. During step execution:
|
|
129
|
+
- If step description suggests a standard may apply
|
|
130
|
+
- Check INDEX.md, read if found and not yet loaded
|
|
131
|
+
- Log discovery with trigger reason
|
|
132
|
+
|
|
133
|
+
4. Apply discovered standards to implementation
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Standards Reading Log Format
|
|
137
|
+
|
|
138
|
+
```markdown
|
|
139
|
+
## Standards Reading Log
|
|
140
|
+
|
|
141
|
+
### Group 1: [Name]
|
|
142
|
+
|
|
143
|
+
**From Implementation Plan**:
|
|
144
|
+
|
|
145
|
+
- [x] .owflow/docs/standards/backend/api.md - Listed in Standards Compliance
|
|
146
|
+
|
|
147
|
+
**From INDEX.md**:
|
|
148
|
+
|
|
149
|
+
- [x] .owflow/docs/standards/global/naming.md - Group topic match
|
|
150
|
+
|
|
151
|
+
**Discovered During Execution**:
|
|
152
|
+
|
|
153
|
+
- [x] .owflow/docs/standards/global/security.md - Step 1.3 (auth-related logic)
|
|
154
|
+
|
|
155
|
+
### Group 2: [Name]
|
|
156
|
+
|
|
157
|
+
**From Implementation Plan**:
|
|
158
|
+
|
|
159
|
+
- [x] .owflow/docs/standards/frontend/forms.md - Listed in Standards Compliance
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## Subagent Invocation
|
|
163
|
+
|
|
164
|
+
When delegating a task group, use this prompt structure:
|
|
165
|
+
|
|
166
|
+
```markdown
|
|
167
|
+
## Task: Execute Task Group [N]
|
|
168
|
+
|
|
169
|
+
### Task Group Content
|
|
170
|
+
|
|
171
|
+
[Paste the task group section from implementation-plan.md]
|
|
172
|
+
|
|
173
|
+
### Specification Excerpt
|
|
174
|
+
|
|
175
|
+
[Relevant sections from spec.md for this group]
|
|
176
|
+
|
|
177
|
+
### Standards from Implementation Plan
|
|
178
|
+
|
|
179
|
+
The implementation plan's "Standards Compliance" section lists these standards.
|
|
180
|
+
Identify which are relevant to this group and read them:
|
|
181
|
+
|
|
182
|
+
- [path/to/standard1.md] - [likely relevant because...]
|
|
183
|
+
- [path/to/standard2.md] - [likely relevant because...]
|
|
184
|
+
|
|
185
|
+
### Standards Discovery
|
|
186
|
+
|
|
187
|
+
You have access to `.owflow/docs/INDEX.md` for continuous standards discovery.
|
|
188
|
+
|
|
189
|
+
- Check INDEX.md for additional standards matching this group's topic
|
|
190
|
+
- During implementation, discover more standards as step context reveals needs
|
|
191
|
+
- Do not limit discovery to explicit keyword matches - use judgment
|
|
192
|
+
|
|
193
|
+
### Requirements
|
|
194
|
+
|
|
195
|
+
1. Execute in test-driven order: tests (N.1) → implementation (N.2+) → verify (N.n)
|
|
196
|
+
2. Log all standards applied (from plan, from INDEX.md, discovered during execution)
|
|
197
|
+
3. Report any failures with root cause analysis
|
|
198
|
+
4. Do NOT mark checkboxes - main agent handles that
|
|
199
|
+
|
|
200
|
+
### Expected Output Format
|
|
201
|
+
|
|
202
|
+
[See Subagent Output Format section]
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
## Subagent Output Format
|
|
206
|
+
|
|
207
|
+
The task-group-implementer returns structured output:
|
|
208
|
+
|
|
209
|
+
```markdown
|
|
210
|
+
## Group [N] Execution Report
|
|
211
|
+
|
|
212
|
+
### Status: [SUCCESS/PARTIAL/FAILED]
|
|
213
|
+
|
|
214
|
+
### Steps Completed
|
|
215
|
+
|
|
216
|
+
- [x] N.1 - [description]
|
|
217
|
+
- [x] N.2 - [description]
|
|
218
|
+
- [ ] N.3 - [description] (if incomplete)
|
|
219
|
+
|
|
220
|
+
### Standards Applied
|
|
221
|
+
|
|
222
|
+
**From Implementation Plan**:
|
|
223
|
+
|
|
224
|
+
- .owflow/docs/standards/backend/api.md
|
|
225
|
+
|
|
226
|
+
**From INDEX.md** (group topic):
|
|
227
|
+
|
|
228
|
+
- .owflow/docs/standards/global/naming.md
|
|
229
|
+
|
|
230
|
+
**Discovered During Execution**:
|
|
231
|
+
|
|
232
|
+
- .owflow/docs/standards/global/error-handling.md (step N.2, error handling logic)
|
|
233
|
+
|
|
234
|
+
### Test Results
|
|
235
|
+
|
|
236
|
+
**Command**: [test command run]
|
|
237
|
+
**Result**: [N passed, M failed]
|
|
238
|
+
**Details**: [if failures, brief explanation]
|
|
239
|
+
|
|
240
|
+
### Files Modified
|
|
241
|
+
|
|
242
|
+
- path/to/file1.ts (created)
|
|
243
|
+
- path/to/file2.ts (modified)
|
|
244
|
+
|
|
245
|
+
### Notes
|
|
246
|
+
|
|
247
|
+
[Any decisions made, blockers encountered, recommendations]
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
## Test-Driven Enforcement
|
|
251
|
+
|
|
252
|
+
### Pattern Per Task Group
|
|
253
|
+
|
|
254
|
+
```
|
|
255
|
+
N.1 - Write tests (2-8 focused tests)
|
|
256
|
+
N.2 - Implementation step
|
|
257
|
+
...
|
|
258
|
+
N.n-1 - Implementation step
|
|
259
|
+
N.n - Run tests (only this group's tests)
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### Enforcement
|
|
263
|
+
|
|
264
|
+
Before executing step N.2 or higher:
|
|
265
|
+
|
|
266
|
+
1. Verify N.1 (test step) is complete
|
|
267
|
+
2. If not complete, use question:
|
|
268
|
+
```
|
|
269
|
+
Question: "Test step N.1 not completed. How to proceed?"
|
|
270
|
+
Header: "Tests"
|
|
271
|
+
Options:
|
|
272
|
+
- "Complete tests first" - Execute N.1 now
|
|
273
|
+
- "Skip with justification" - Document reason, continue
|
|
274
|
+
- "Stop" - Pause for investigation
|
|
275
|
+
```
|
|
276
|
+
3. If skipped, mark as `- [~] N.1 SKIPPED: [reason]`
|
|
277
|
+
|
|
278
|
+
## Progress Tracking
|
|
279
|
+
|
|
280
|
+
### Checkbox Marking
|
|
281
|
+
|
|
282
|
+
**Format**: `- [ ]` → `- [x]` (or `- [~]` for skipped)
|
|
283
|
+
|
|
284
|
+
**Timing**: Immediately after step completion. Never batch. Never mark ahead.
|
|
285
|
+
|
|
286
|
+
**Responsibility**: Always main agent — subagent does NOT mark checkboxes.
|
|
287
|
+
|
|
288
|
+
### Work-Log Updates
|
|
289
|
+
|
|
290
|
+
After each task group:
|
|
291
|
+
|
|
292
|
+
```markdown
|
|
293
|
+
## [timestamp] - Group [N] Complete
|
|
294
|
+
|
|
295
|
+
**Steps**: N.1 through N.M completed
|
|
296
|
+
**Standards Applied**:
|
|
297
|
+
|
|
298
|
+
- From plan: [list]
|
|
299
|
+
- From INDEX.md: [list]
|
|
300
|
+
- Discovered: [list with trigger reason]
|
|
301
|
+
**Tests**: [N] passed
|
|
302
|
+
**Files Modified**: [list]
|
|
303
|
+
**Notes**: [any decisions or discoveries]
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
## Phase 3: Finalize
|
|
307
|
+
|
|
308
|
+
1. **Validate completion**:
|
|
309
|
+
- No `- [ ]` checkboxes remain
|
|
310
|
+
- All groups have work-log entries
|
|
311
|
+
- Standards Reading Log is complete
|
|
312
|
+
- All group tasks are `completed` via `TaskList` (cross-validate against markdown checkboxes)
|
|
313
|
+
|
|
314
|
+
2. **Run full project test suite** (all tests, not just feature tests — catches regressions in unrelated areas)
|
|
315
|
+
|
|
316
|
+
3. **Final work-log entry**:
|
|
317
|
+
|
|
318
|
+
```markdown
|
|
319
|
+
## [timestamp] - Implementation Complete
|
|
320
|
+
|
|
321
|
+
**Total Steps**: [N] completed
|
|
322
|
+
**Total Standards**: [M] applied
|
|
323
|
+
**Test Suite**: [status]
|
|
324
|
+
**Duration**: [if tracked]
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
4. **Return summary** to calling orchestrator
|
|
328
|
+
|
|
329
|
+
## Error Handling
|
|
330
|
+
|
|
331
|
+
### Subagent Failure
|
|
332
|
+
|
|
333
|
+
If task-group-implementer reports failure:
|
|
334
|
+
|
|
335
|
+
1. **Do NOT auto-rollback** - User-confirmed rollback only
|
|
336
|
+
2. **Analyze root cause** from subagent output
|
|
337
|
+
3. **Check for easy fixes**: config issues, missing dependencies, test setup
|
|
338
|
+
4. **Use question**:
|
|
339
|
+
```
|
|
340
|
+
Question: "Group [N] implementation failed: [brief reason]. How to proceed?"
|
|
341
|
+
Header: "Failure"
|
|
342
|
+
Options:
|
|
343
|
+
- "Try suggested fix" - [if easy fix identified]
|
|
344
|
+
- "Retry group" - Re-invoke subagent
|
|
345
|
+
- "Complete manually" - Main agent completes remaining steps for this group
|
|
346
|
+
- "Rollback changes" - Revert this group's changes
|
|
347
|
+
- "Stop" - Pause for investigation
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
### Test Failure
|
|
351
|
+
|
|
352
|
+
If tests fail after implementation:
|
|
353
|
+
|
|
354
|
+
1. Analyze failure output
|
|
355
|
+
2. If obvious fix: apply and re-run
|
|
356
|
+
3. If unclear: use question with options
|
|
357
|
+
|
|
358
|
+
## Validation Checklist
|
|
359
|
+
|
|
360
|
+
Before returning success:
|
|
361
|
+
|
|
362
|
+
### Completion
|
|
363
|
+
|
|
364
|
+
- [ ] All steps marked `[x]` or `[~]` (skipped with reason)
|
|
365
|
+
- [ ] All task groups have work-log entries
|
|
366
|
+
- [ ] Full test suite passes
|
|
367
|
+
|
|
368
|
+
### Standards
|
|
369
|
+
|
|
370
|
+
- [ ] Standards Reading Log complete for all groups
|
|
371
|
+
- [ ] All three sources logged: from plan, from INDEX.md, discovered
|
|
372
|
+
- [ ] Standards applied appropriately per step
|
|
373
|
+
|
|
374
|
+
### Artifacts
|
|
375
|
+
|
|
376
|
+
- [ ] implementation-plan.md checkboxes updated
|
|
377
|
+
- [ ] work-log.md complete with timeline
|
|
378
|
+
- [ ] No uncommitted partial changes
|