@ydtb/specsmd 0.1.22
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 +322 -0
- package/bin/cli.js +21 -0
- package/flows/aidlc/README.md +372 -0
- package/flows/aidlc/agents/construction-agent.md +80 -0
- package/flows/aidlc/agents/inception-agent.md +97 -0
- package/flows/aidlc/agents/master-agent.md +61 -0
- package/flows/aidlc/agents/operations-agent.md +89 -0
- package/flows/aidlc/commands/construction-agent.md +67 -0
- package/flows/aidlc/commands/inception-agent.md +59 -0
- package/flows/aidlc/commands/master-agent.md +51 -0
- package/flows/aidlc/commands/operations-agent.md +81 -0
- package/flows/aidlc/context-config.yaml +67 -0
- package/flows/aidlc/memory-bank.yaml +105 -0
- package/flows/aidlc/quick-start.md +322 -0
- package/flows/aidlc/scripts/artifact-validator.cjs +594 -0
- package/flows/aidlc/scripts/bolt-complete.cjs +606 -0
- package/flows/aidlc/scripts/status-integrity.cjs +598 -0
- package/flows/aidlc/skills/construction/bolt-list.md +163 -0
- package/flows/aidlc/skills/construction/bolt-replan.md +345 -0
- package/flows/aidlc/skills/construction/bolt-start.md +442 -0
- package/flows/aidlc/skills/construction/bolt-status.md +185 -0
- package/flows/aidlc/skills/construction/navigator.md +196 -0
- package/flows/aidlc/skills/construction/prototype-apply.md +311 -0
- package/flows/aidlc/skills/inception/bolt-plan.md +372 -0
- package/flows/aidlc/skills/inception/context.md +171 -0
- package/flows/aidlc/skills/inception/intent-create.md +211 -0
- package/flows/aidlc/skills/inception/intent-list.md +124 -0
- package/flows/aidlc/skills/inception/navigator.md +207 -0
- package/flows/aidlc/skills/inception/requirements.md +227 -0
- package/flows/aidlc/skills/inception/review.md +248 -0
- package/flows/aidlc/skills/inception/story-create.md +304 -0
- package/flows/aidlc/skills/inception/units.md +278 -0
- package/flows/aidlc/skills/inception/vibe-to-spec.md +410 -0
- package/flows/aidlc/skills/master/analyze-context.md +239 -0
- package/flows/aidlc/skills/master/answer-question.md +141 -0
- package/flows/aidlc/skills/master/explain-flow.md +158 -0
- package/flows/aidlc/skills/master/project-init.md +281 -0
- package/flows/aidlc/skills/master/route-request.md +126 -0
- package/flows/aidlc/skills/operations/build.md +237 -0
- package/flows/aidlc/skills/operations/deploy.md +259 -0
- package/flows/aidlc/skills/operations/monitor.md +265 -0
- package/flows/aidlc/skills/operations/navigator.md +209 -0
- package/flows/aidlc/skills/operations/verify.md +224 -0
- package/flows/aidlc/templates/construction/bolt-template.md +226 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +49 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +55 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +67 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +62 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +590 -0
- package/flows/aidlc/templates/construction/bolt-types/simple-construction-bolt.md +347 -0
- package/flows/aidlc/templates/construction/bolt-types/spike-bolt.md +240 -0
- package/flows/aidlc/templates/construction/construction-log-template.md +129 -0
- package/flows/aidlc/templates/construction/standards/coding-standards.md +29 -0
- package/flows/aidlc/templates/construction/standards/system-architecture.md +22 -0
- package/flows/aidlc/templates/construction/standards/tech-stack.md +19 -0
- package/flows/aidlc/templates/inception/inception-log-template.md +134 -0
- package/flows/aidlc/templates/inception/project/README.md +55 -0
- package/flows/aidlc/templates/inception/requirements-template.md +144 -0
- package/flows/aidlc/templates/inception/stories-template.md +38 -0
- package/flows/aidlc/templates/inception/story-template.md +147 -0
- package/flows/aidlc/templates/inception/system-context-template.md +29 -0
- package/flows/aidlc/templates/inception/unit-brief-template.md +177 -0
- package/flows/aidlc/templates/inception/units-template.md +52 -0
- package/flows/aidlc/templates/standards/catalog.yaml +345 -0
- package/flows/aidlc/templates/standards/coding-standards.guide.md +553 -0
- package/flows/aidlc/templates/standards/data-stack.guide.md +162 -0
- package/flows/aidlc/templates/standards/decision-index-template.md +32 -0
- package/flows/aidlc/templates/standards/tech-stack.guide.md +280 -0
- package/flows/fire/README.md +19 -0
- package/flows/fire/agents/builder/agent.md +254 -0
- package/flows/fire/agents/builder/skills/code-review/SKILL.md +257 -0
- package/flows/fire/agents/builder/skills/code-review/references/auto-fix-rules.md +218 -0
- package/flows/fire/agents/builder/skills/code-review/references/review-categories.md +154 -0
- package/flows/fire/agents/builder/skills/code-review/templates/review-report.md.hbs +120 -0
- package/flows/fire/agents/builder/skills/commit-changes/SKILL.md +232 -0
- package/flows/fire/agents/builder/skills/commit-changes/scripts/commit-changes.cjs +447 -0
- package/flows/fire/agents/builder/skills/run-execute/SKILL.md +700 -0
- package/flows/fire/agents/builder/skills/run-execute/scripts/complete-run.cjs +748 -0
- package/flows/fire/agents/builder/skills/run-execute/scripts/init-run.cjs +457 -0
- package/flows/fire/agents/builder/skills/run-execute/scripts/update-phase.cjs +239 -0
- package/flows/fire/agents/builder/skills/run-execute/templates/plan.md.hbs +61 -0
- package/flows/fire/agents/builder/skills/run-execute/templates/test-report.md.hbs +81 -0
- package/flows/fire/agents/builder/skills/run-plan/SKILL.md +366 -0
- package/flows/fire/agents/builder/skills/run-status/SKILL.md +96 -0
- package/flows/fire/agents/builder/skills/walkthrough-generate/SKILL.md +181 -0
- package/flows/fire/agents/builder/skills/walkthrough-generate/templates/walkthrough.md.hbs +108 -0
- package/flows/fire/agents/orchestrator/agent.md +144 -0
- package/flows/fire/agents/orchestrator/skills/project-init/SKILL.md +226 -0
- package/flows/fire/agents/orchestrator/skills/project-init/templates/coding-standards.md.hbs +149 -0
- package/flows/fire/agents/orchestrator/skills/project-init/templates/constitution.md.hbs +43 -0
- package/flows/fire/agents/orchestrator/skills/project-init/templates/system-architecture.md.hbs +101 -0
- package/flows/fire/agents/orchestrator/skills/project-init/templates/tech-stack.md.hbs +136 -0
- package/flows/fire/agents/orchestrator/skills/project-init/templates/testing-standards.md.hbs +94 -0
- package/flows/fire/agents/orchestrator/skills/route/SKILL.md +146 -0
- package/flows/fire/agents/orchestrator/skills/status/SKILL.md +696 -0
- package/flows/fire/agents/planner/agent.md +143 -0
- package/flows/fire/agents/planner/skills/design-doc-generate/SKILL.md +156 -0
- package/flows/fire/agents/planner/skills/design-doc-generate/templates/design.md.hbs +124 -0
- package/flows/fire/agents/planner/skills/intent-capture/SKILL.md +125 -0
- package/flows/fire/agents/planner/skills/intent-capture/templates/brief.md.hbs +40 -0
- package/flows/fire/agents/planner/skills/work-item-decompose/SKILL.md +166 -0
- package/flows/fire/agents/planner/skills/work-item-decompose/templates/work-item.md.hbs +40 -0
- package/flows/fire/commands/fire-builder.md +56 -0
- package/flows/fire/commands/fire-planner.md +48 -0
- package/flows/fire/commands/fire.md +46 -0
- package/flows/fire/memory-bank.yaml +240 -0
- package/flows/fire/quick-start.md +146 -0
- package/flows/simple/README.md +190 -0
- package/flows/simple/agents/agent.md +404 -0
- package/flows/simple/commands/agent.md +60 -0
- package/flows/simple/context-config.yaml +34 -0
- package/flows/simple/memory-bank.yaml +66 -0
- package/flows/simple/quick-start.md +231 -0
- package/flows/simple/skills/design.md +96 -0
- package/flows/simple/skills/execute.md +190 -0
- package/flows/simple/skills/requirements.md +94 -0
- package/flows/simple/skills/tasks.md +136 -0
- package/flows/simple/templates/design-template.md +138 -0
- package/flows/simple/templates/requirements-template.md +85 -0
- package/flows/simple/templates/tasks-template.md +104 -0
- package/lib/InstallerFactory.js +36 -0
- package/lib/analytics/env-detector.js +92 -0
- package/lib/analytics/index.js +22 -0
- package/lib/analytics/machine-id.js +33 -0
- package/lib/analytics/tracker.js +232 -0
- package/lib/cli-utils.js +342 -0
- package/lib/constants.js +44 -0
- package/lib/installer.js +406 -0
- package/lib/installers/AntigravityInstaller.js +22 -0
- package/lib/installers/ClaudeInstaller.js +85 -0
- package/lib/installers/ClineInstaller.js +21 -0
- package/lib/installers/CodexInstaller.js +21 -0
- package/lib/installers/CopilotInstaller.js +113 -0
- package/lib/installers/CursorInstaller.js +63 -0
- package/lib/installers/GeminiInstaller.js +75 -0
- package/lib/installers/KiroInstaller.js +77 -0
- package/lib/installers/OpenCodeInstaller.js +30 -0
- package/lib/installers/RooInstaller.js +22 -0
- package/lib/installers/ToolInstaller.js +76 -0
- package/lib/installers/WindsurfInstaller.js +22 -0
- package/lib/markdown-validator.ts +175 -0
- package/lib/yaml-validator.ts +99 -0
- package/package.json +69 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Coding Standards
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
{{overview}}
|
|
6
|
+
|
|
7
|
+
## Code Formatting
|
|
8
|
+
|
|
9
|
+
**Tool**: {{formatter}}
|
|
10
|
+
**Config**: {{formatter_config}}
|
|
11
|
+
**Enforcement**: {{formatter_enforcement}}
|
|
12
|
+
|
|
13
|
+
### Key Settings
|
|
14
|
+
|
|
15
|
+
{{#each formatter_settings}}
|
|
16
|
+
- **{{this.setting}}**: {{this.value}}
|
|
17
|
+
{{/each}}
|
|
18
|
+
|
|
19
|
+
## Linting
|
|
20
|
+
|
|
21
|
+
**Tool**: {{linter}}
|
|
22
|
+
**Base Config**: {{linter_base}}
|
|
23
|
+
**Strictness**: {{linter_strictness}}
|
|
24
|
+
|
|
25
|
+
### Key Rules
|
|
26
|
+
|
|
27
|
+
{{#each linter_rules}}
|
|
28
|
+
- `{{this.rule}}`: {{this.setting}} — {{this.rationale}}
|
|
29
|
+
{{/each}}
|
|
30
|
+
|
|
31
|
+
## Naming Conventions
|
|
32
|
+
|
|
33
|
+
### Variables and Functions
|
|
34
|
+
|
|
35
|
+
| Element | Convention | Example |
|
|
36
|
+
|---------|------------|---------|
|
|
37
|
+
{{#each naming_conventions}}
|
|
38
|
+
| {{this.element}} | {{this.convention}} | `{{this.example}}` |
|
|
39
|
+
{{/each}}
|
|
40
|
+
|
|
41
|
+
### Files and Folders
|
|
42
|
+
|
|
43
|
+
{{#each file_naming}}
|
|
44
|
+
- **{{this.type}}**: {{this.convention}} (e.g., `{{this.example}}`)
|
|
45
|
+
{{/each}}
|
|
46
|
+
|
|
47
|
+
## File Organization
|
|
48
|
+
|
|
49
|
+
### Project Structure
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
{{project_structure}}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Conventions
|
|
56
|
+
|
|
57
|
+
{{#each organization_conventions}}
|
|
58
|
+
- **{{this.item}}**: {{this.convention}}
|
|
59
|
+
{{/each}}
|
|
60
|
+
|
|
61
|
+
## Import Order
|
|
62
|
+
|
|
63
|
+
```{{language}}
|
|
64
|
+
{{import_order_example}}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**Rules**:
|
|
68
|
+
{{#each import_rules}}
|
|
69
|
+
- {{this}}
|
|
70
|
+
{{/each}}
|
|
71
|
+
|
|
72
|
+
## Error Handling
|
|
73
|
+
|
|
74
|
+
### Pattern
|
|
75
|
+
|
|
76
|
+
**Approach**: {{error_pattern}}
|
|
77
|
+
|
|
78
|
+
### Guidelines
|
|
79
|
+
|
|
80
|
+
{{#each error_guidelines}}
|
|
81
|
+
- {{this}}
|
|
82
|
+
{{/each}}
|
|
83
|
+
|
|
84
|
+
### Example
|
|
85
|
+
|
|
86
|
+
```{{language}}
|
|
87
|
+
{{error_example}}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Logging
|
|
91
|
+
|
|
92
|
+
**Tool**: {{logging_tool}}
|
|
93
|
+
**Format**: {{logging_format}}
|
|
94
|
+
|
|
95
|
+
### Log Levels
|
|
96
|
+
|
|
97
|
+
| Level | Usage |
|
|
98
|
+
|-------|-------|
|
|
99
|
+
{{#each log_levels}}
|
|
100
|
+
| {{this.level}} | {{this.usage}} |
|
|
101
|
+
{{/each}}
|
|
102
|
+
|
|
103
|
+
### Guidelines
|
|
104
|
+
|
|
105
|
+
**Always log**:
|
|
106
|
+
{{#each log_always}}
|
|
107
|
+
- {{this}}
|
|
108
|
+
{{/each}}
|
|
109
|
+
|
|
110
|
+
**Never log**:
|
|
111
|
+
{{#each log_never}}
|
|
112
|
+
- {{this}}
|
|
113
|
+
{{/each}}
|
|
114
|
+
|
|
115
|
+
## Comments and Documentation
|
|
116
|
+
|
|
117
|
+
### When to Comment
|
|
118
|
+
|
|
119
|
+
{{#each comment_guidelines}}
|
|
120
|
+
- {{this}}
|
|
121
|
+
{{/each}}
|
|
122
|
+
|
|
123
|
+
### Documentation Format
|
|
124
|
+
|
|
125
|
+
**Functions**: {{doc_format_functions}}
|
|
126
|
+
**Classes**: {{doc_format_classes}}
|
|
127
|
+
|
|
128
|
+
## Code Patterns
|
|
129
|
+
|
|
130
|
+
### Preferred Patterns
|
|
131
|
+
|
|
132
|
+
{{#each preferred_patterns}}
|
|
133
|
+
#### {{this.name}}
|
|
134
|
+
|
|
135
|
+
{{this.description}}
|
|
136
|
+
|
|
137
|
+
```{{../language}}
|
|
138
|
+
{{this.example}}
|
|
139
|
+
```
|
|
140
|
+
{{/each}}
|
|
141
|
+
|
|
142
|
+
### Anti-Patterns to Avoid
|
|
143
|
+
|
|
144
|
+
{{#each anti_patterns}}
|
|
145
|
+
- **{{this.name}}**: {{this.why}}
|
|
146
|
+
{{/each}}
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
*Generated by specs.md - fabriqa.ai FIRE Flow*
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Project Constitution
|
|
2
|
+
|
|
3
|
+
> Universal policies that apply to ALL code in this project.
|
|
4
|
+
> This file is always inherited from root — modules cannot override it.
|
|
5
|
+
|
|
6
|
+
## Git Workflow
|
|
7
|
+
|
|
8
|
+
- **Commit Style**: {{#if commit_style}}{{commit_style}}{{else}}Conventional commits (feat:, fix:, chore:, docs:, refactor:, test:){{/if}}
|
|
9
|
+
- **Branch Strategy**: {{#if branch_strategy}}{{branch_strategy}}{{else}}Feature branches merged via pull request{{/if}}
|
|
10
|
+
- **Main Branch**: {{#if main_branch}}{{main_branch}}{{else}}main{{/if}} is always deployable
|
|
11
|
+
|
|
12
|
+
## Code Review
|
|
13
|
+
|
|
14
|
+
- All changes require pull request review
|
|
15
|
+
- {{#if approval_count}}{{approval_count}}{{else}}At least one{{/if}} approval required before merge
|
|
16
|
+
- No self-merging to main/master
|
|
17
|
+
- Security-sensitive changes require additional review
|
|
18
|
+
|
|
19
|
+
## CI/CD
|
|
20
|
+
|
|
21
|
+
{{#if ci_platform}}
|
|
22
|
+
- **Platform**: {{ci_platform}}
|
|
23
|
+
{{else}}
|
|
24
|
+
- All PRs must pass CI checks before merge
|
|
25
|
+
{{/if}}
|
|
26
|
+
- Automated tests run on every push
|
|
27
|
+
- Main branch deployments are automated
|
|
28
|
+
|
|
29
|
+
## Security Policies
|
|
30
|
+
|
|
31
|
+
- **No secrets in code** — use environment variables or secret management
|
|
32
|
+
- Dependencies must be from trusted sources
|
|
33
|
+
- Security vulnerabilities addressed within SLA
|
|
34
|
+
- No credentials, API keys, or tokens in source control
|
|
35
|
+
|
|
36
|
+
## Documentation
|
|
37
|
+
|
|
38
|
+
- Public APIs must be documented
|
|
39
|
+
- Breaking changes require migration notes
|
|
40
|
+
- README kept up to date with setup instructions
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
*Generated by specs.md - fabriqa.ai FIRE Flow*
|
package/flows/fire/agents/orchestrator/skills/project-init/templates/system-architecture.md.hbs
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# System Architecture
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
{{overview}}
|
|
6
|
+
|
|
7
|
+
## System Context
|
|
8
|
+
|
|
9
|
+
{{system_context}}
|
|
10
|
+
|
|
11
|
+
### Context Diagram
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
{{context_diagram}}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Users
|
|
18
|
+
|
|
19
|
+
{{#each users}}
|
|
20
|
+
- **{{this.name}}**: {{this.description}}
|
|
21
|
+
{{/each}}
|
|
22
|
+
|
|
23
|
+
### External Systems
|
|
24
|
+
|
|
25
|
+
{{#each external_systems}}
|
|
26
|
+
- **{{this.name}}**: {{this.purpose}}
|
|
27
|
+
{{/each}}
|
|
28
|
+
|
|
29
|
+
## Architecture Pattern
|
|
30
|
+
|
|
31
|
+
**Pattern**: {{architecture_pattern}}
|
|
32
|
+
**Rationale**: {{architecture_rationale}}
|
|
33
|
+
|
|
34
|
+
## Component Architecture
|
|
35
|
+
|
|
36
|
+
### Components
|
|
37
|
+
|
|
38
|
+
{{#each components}}
|
|
39
|
+
#### {{this.name}}
|
|
40
|
+
|
|
41
|
+
- **Purpose**: {{this.purpose}}
|
|
42
|
+
- **Responsibilities**: {{this.responsibilities}}
|
|
43
|
+
- **Dependencies**: {{this.dependencies}}
|
|
44
|
+
{{/each}}
|
|
45
|
+
|
|
46
|
+
### Component Diagram
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
{{component_diagram}}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Data Flow
|
|
53
|
+
|
|
54
|
+
{{data_flow_description}}
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
{{data_flow_diagram}}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Technology Stack
|
|
61
|
+
|
|
62
|
+
| Layer | Technology | Purpose |
|
|
63
|
+
|-------|------------|---------|
|
|
64
|
+
{{#each tech_stack}}
|
|
65
|
+
| {{this.layer}} | {{this.technology}} | {{this.purpose}} |
|
|
66
|
+
{{/each}}
|
|
67
|
+
|
|
68
|
+
## Non-Functional Requirements
|
|
69
|
+
|
|
70
|
+
### Performance
|
|
71
|
+
|
|
72
|
+
{{#each nfr_performance}}
|
|
73
|
+
- **{{this.metric}}**: {{this.target}}
|
|
74
|
+
{{/each}}
|
|
75
|
+
|
|
76
|
+
### Security
|
|
77
|
+
|
|
78
|
+
{{#each nfr_security}}
|
|
79
|
+
- {{this}}
|
|
80
|
+
{{/each}}
|
|
81
|
+
|
|
82
|
+
### Scalability
|
|
83
|
+
|
|
84
|
+
{{scalability_approach}}
|
|
85
|
+
|
|
86
|
+
## Constraints
|
|
87
|
+
|
|
88
|
+
{{#each constraints}}
|
|
89
|
+
- {{this}}
|
|
90
|
+
{{/each}}
|
|
91
|
+
|
|
92
|
+
## Key Decisions
|
|
93
|
+
|
|
94
|
+
| Decision | Choice | Rationale |
|
|
95
|
+
|----------|--------|-----------|
|
|
96
|
+
{{#each key_decisions}}
|
|
97
|
+
| {{this.decision}} | {{this.choice}} | {{this.rationale}} |
|
|
98
|
+
{{/each}}
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
*Generated by specs.md - fabriqa.ai FIRE Flow*
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# Tech Stack
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
{{overview}}
|
|
6
|
+
|
|
7
|
+
## Core Technologies
|
|
8
|
+
|
|
9
|
+
### Language
|
|
10
|
+
|
|
11
|
+
**Primary**: {{primary_language}}
|
|
12
|
+
**Version**: {{language_version}}
|
|
13
|
+
|
|
14
|
+
### Framework
|
|
15
|
+
|
|
16
|
+
**Framework**: {{framework}}
|
|
17
|
+
**Version**: {{framework_version}}
|
|
18
|
+
**Rationale**: {{framework_rationale}}
|
|
19
|
+
|
|
20
|
+
### Runtime
|
|
21
|
+
|
|
22
|
+
**Runtime**: {{runtime}}
|
|
23
|
+
**Version**: {{runtime_version}}
|
|
24
|
+
|
|
25
|
+
## Data Layer
|
|
26
|
+
|
|
27
|
+
### Database
|
|
28
|
+
|
|
29
|
+
**Type**: {{database_type}}
|
|
30
|
+
**Database**: {{database}}
|
|
31
|
+
**Version**: {{database_version}}
|
|
32
|
+
|
|
33
|
+
### ORM / Data Access
|
|
34
|
+
|
|
35
|
+
**Tool**: {{orm}}
|
|
36
|
+
**Rationale**: {{orm_rationale}}
|
|
37
|
+
|
|
38
|
+
### Caching
|
|
39
|
+
|
|
40
|
+
{{#if caching}}
|
|
41
|
+
**Solution**: {{caching}}
|
|
42
|
+
{{else}}
|
|
43
|
+
Not configured.
|
|
44
|
+
{{/if}}
|
|
45
|
+
|
|
46
|
+
## API Layer
|
|
47
|
+
|
|
48
|
+
### API Style
|
|
49
|
+
|
|
50
|
+
**Style**: {{api_style}}
|
|
51
|
+
|
|
52
|
+
### Documentation
|
|
53
|
+
|
|
54
|
+
**Tool**: {{api_docs}}
|
|
55
|
+
|
|
56
|
+
## Frontend (if applicable)
|
|
57
|
+
|
|
58
|
+
{{#if frontend}}
|
|
59
|
+
### UI Framework
|
|
60
|
+
|
|
61
|
+
**Framework**: {{frontend.framework}}
|
|
62
|
+
**Version**: {{frontend.version}}
|
|
63
|
+
|
|
64
|
+
### Styling
|
|
65
|
+
|
|
66
|
+
**Approach**: {{frontend.styling}}
|
|
67
|
+
|
|
68
|
+
### State Management
|
|
69
|
+
|
|
70
|
+
**Solution**: {{frontend.state_management}}
|
|
71
|
+
{{else}}
|
|
72
|
+
Not applicable (backend-only or CLI project).
|
|
73
|
+
{{/if}}
|
|
74
|
+
|
|
75
|
+
## Infrastructure
|
|
76
|
+
|
|
77
|
+
### Hosting
|
|
78
|
+
|
|
79
|
+
**Platform**: {{hosting_platform}}
|
|
80
|
+
|
|
81
|
+
### Containerization
|
|
82
|
+
|
|
83
|
+
{{#if containerization}}
|
|
84
|
+
**Tool**: {{containerization}}
|
|
85
|
+
{{else}}
|
|
86
|
+
Not configured.
|
|
87
|
+
{{/if}}
|
|
88
|
+
|
|
89
|
+
### CI/CD
|
|
90
|
+
|
|
91
|
+
**Platform**: {{ci_platform}}
|
|
92
|
+
|
|
93
|
+
## Development Tools
|
|
94
|
+
|
|
95
|
+
### Package Manager
|
|
96
|
+
|
|
97
|
+
**Manager**: {{package_manager}}
|
|
98
|
+
|
|
99
|
+
### Build Tool
|
|
100
|
+
|
|
101
|
+
**Tool**: {{build_tool}}
|
|
102
|
+
|
|
103
|
+
### Linting
|
|
104
|
+
|
|
105
|
+
**Linter**: {{linter}}
|
|
106
|
+
**Config**: {{linter_config}}
|
|
107
|
+
|
|
108
|
+
### Formatting
|
|
109
|
+
|
|
110
|
+
**Formatter**: {{formatter}}
|
|
111
|
+
**Config**: {{formatter_config}}
|
|
112
|
+
|
|
113
|
+
## Dependencies
|
|
114
|
+
|
|
115
|
+
### Production Dependencies
|
|
116
|
+
|
|
117
|
+
{{#each prod_dependencies}}
|
|
118
|
+
- `{{this.name}}` ({{this.version}}) — {{this.purpose}}
|
|
119
|
+
{{/each}}
|
|
120
|
+
|
|
121
|
+
### Development Dependencies
|
|
122
|
+
|
|
123
|
+
{{#each dev_dependencies}}
|
|
124
|
+
- `{{this.name}}` ({{this.version}}) — {{this.purpose}}
|
|
125
|
+
{{/each}}
|
|
126
|
+
|
|
127
|
+
## Version Requirements
|
|
128
|
+
|
|
129
|
+
| Tool | Minimum Version | Recommended |
|
|
130
|
+
|------|-----------------|-------------|
|
|
131
|
+
{{#each version_requirements}}
|
|
132
|
+
| {{this.tool}} | {{this.minimum}} | {{this.recommended}} |
|
|
133
|
+
{{/each}}
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
*Generated by specs.md - fabriqa.ai FIRE Flow*
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Testing Standards
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
{{overview}}
|
|
6
|
+
|
|
7
|
+
## Testing Framework
|
|
8
|
+
|
|
9
|
+
**Framework**: {{framework}}
|
|
10
|
+
**Runner**: {{runner}}
|
|
11
|
+
|
|
12
|
+
## Test Types
|
|
13
|
+
|
|
14
|
+
| Type | Tool | Location | When to Use |
|
|
15
|
+
|------|------|----------|-------------|
|
|
16
|
+
{{#each test_types}}
|
|
17
|
+
| {{this.type}} | {{this.tool}} | `{{this.location}}` | {{this.when}} |
|
|
18
|
+
{{/each}}
|
|
19
|
+
|
|
20
|
+
## Coverage Requirements
|
|
21
|
+
|
|
22
|
+
**Target**: {{coverage_target}}%
|
|
23
|
+
**Enforcement**: {{coverage_enforcement}}
|
|
24
|
+
|
|
25
|
+
**Critical paths that MUST have coverage:**
|
|
26
|
+
{{#each critical_paths}}
|
|
27
|
+
- {{this}}
|
|
28
|
+
{{/each}}
|
|
29
|
+
|
|
30
|
+
## Test Naming
|
|
31
|
+
|
|
32
|
+
**Pattern**: `{{naming_pattern}}`
|
|
33
|
+
|
|
34
|
+
**Examples**:
|
|
35
|
+
{{#each naming_examples}}
|
|
36
|
+
- `{{this.name}}` — {{this.description}}
|
|
37
|
+
{{/each}}
|
|
38
|
+
|
|
39
|
+
## Test Structure
|
|
40
|
+
|
|
41
|
+
```{{language}}
|
|
42
|
+
{{test_structure}}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Mock Strategy
|
|
46
|
+
|
|
47
|
+
**Approach**: {{mock_approach}}
|
|
48
|
+
|
|
49
|
+
**Guidelines**:
|
|
50
|
+
{{#each mock_guidelines}}
|
|
51
|
+
- {{this}}
|
|
52
|
+
{{/each}}
|
|
53
|
+
|
|
54
|
+
## Test Data
|
|
55
|
+
|
|
56
|
+
**Strategy**: {{test_data_strategy}}
|
|
57
|
+
|
|
58
|
+
**Guidelines**:
|
|
59
|
+
{{#each test_data_guidelines}}
|
|
60
|
+
- {{this}}
|
|
61
|
+
{{/each}}
|
|
62
|
+
|
|
63
|
+
## Running Tests
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Run all tests
|
|
67
|
+
{{run_all_command}}
|
|
68
|
+
|
|
69
|
+
# Run with coverage
|
|
70
|
+
{{run_coverage_command}}
|
|
71
|
+
|
|
72
|
+
# Run specific test file
|
|
73
|
+
{{run_single_command}}
|
|
74
|
+
|
|
75
|
+
# Run in watch mode
|
|
76
|
+
{{run_watch_command}}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## CI/CD Integration
|
|
80
|
+
|
|
81
|
+
{{#if ci_enabled}}
|
|
82
|
+
**Pipeline**: {{ci_pipeline}}
|
|
83
|
+
**Trigger**: {{ci_trigger}}
|
|
84
|
+
|
|
85
|
+
**Required gates**:
|
|
86
|
+
{{#each ci_gates}}
|
|
87
|
+
- {{this}}
|
|
88
|
+
{{/each}}
|
|
89
|
+
{{else}}
|
|
90
|
+
CI/CD integration not configured.
|
|
91
|
+
{{/if}}
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
*Generated by specs.md - fabriqa.ai FIRE Flow*
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: route
|
|
3
|
+
description: Analyze project state and route user to the appropriate agent based on current context.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Analyze project state and route user to the appropriate agent.
|
|
9
|
+
</objective>
|
|
10
|
+
|
|
11
|
+
<triggers>
|
|
12
|
+
- User runs `/specsmd-fire` on initialized project
|
|
13
|
+
- After any agent completes its task
|
|
14
|
+
</triggers>
|
|
15
|
+
|
|
16
|
+
<llm critical="true">
|
|
17
|
+
<mandate>ALWAYS scan file system for intents/work-items not in state.yaml</mandate>
|
|
18
|
+
<mandate>FILE SYSTEM is source of truth — state.yaml may be incomplete</mandate>
|
|
19
|
+
<mandate>Route based on VERIFIED state, not assumptions</mandate>
|
|
20
|
+
</llm>
|
|
21
|
+
|
|
22
|
+
<flow>
|
|
23
|
+
<step n="1" title="Discover and Read State">
|
|
24
|
+
<action>Read .specs-fire/state.yaml</action>
|
|
25
|
+
|
|
26
|
+
<file_system_scan critical="true">
|
|
27
|
+
Use these EXACT glob patterns:
|
|
28
|
+
|
|
29
|
+
<pattern purpose="Find intent briefs">
|
|
30
|
+
.specs-fire/intents/*/brief.md
|
|
31
|
+
</pattern>
|
|
32
|
+
|
|
33
|
+
<pattern purpose="Find work items">
|
|
34
|
+
.specs-fire/intents/*/work-items/*.md
|
|
35
|
+
</pattern>
|
|
36
|
+
|
|
37
|
+
Work items are {work-item-id}.md files directly in work-items/ folder.
|
|
38
|
+
</file_system_scan>
|
|
39
|
+
|
|
40
|
+
<action>Reconcile: add discovered items to state as pending</action>
|
|
41
|
+
<action>Parse current project state</action>
|
|
42
|
+
</step>
|
|
43
|
+
|
|
44
|
+
<step n="2" title="Check Active Run">
|
|
45
|
+
<check if="runs.active is not empty">
|
|
46
|
+
<output>
|
|
47
|
+
Resuming active run: {runs.active[0].id}
|
|
48
|
+
Scope: {runs.active[0].scope}
|
|
49
|
+
Current item: {runs.active[0].current_item}
|
|
50
|
+
Progress: {completed_count}/{total_count} items
|
|
51
|
+
</output>
|
|
52
|
+
<route_to>builder-agent (run-execute)</route_to>
|
|
53
|
+
<stop/>
|
|
54
|
+
</check>
|
|
55
|
+
</step>
|
|
56
|
+
|
|
57
|
+
<step n="3" title="Check Pending Work Items">
|
|
58
|
+
<action>Find work items with status == pending across all intents</action>
|
|
59
|
+
<check if="pending work items exist">
|
|
60
|
+
<output>
|
|
61
|
+
**{pending_count} pending work items** found across {intent_count} intent(s).
|
|
62
|
+
|
|
63
|
+
Plan run scope and start execution? [Y/n]
|
|
64
|
+
</output>
|
|
65
|
+
<check if="response == y">
|
|
66
|
+
<route_to>builder-agent (run-plan)</route_to>
|
|
67
|
+
</check>
|
|
68
|
+
<stop/>
|
|
69
|
+
</check>
|
|
70
|
+
</step>
|
|
71
|
+
|
|
72
|
+
<step n="4" title="Check Active Intent">
|
|
73
|
+
<action>Find intents with status == in_progress</action>
|
|
74
|
+
<check if="active intent has no work items">
|
|
75
|
+
<output>
|
|
76
|
+
Intent "{intent.title}" needs decomposition.
|
|
77
|
+
Routing to Planner to create work items.
|
|
78
|
+
</output>
|
|
79
|
+
<route_to>planner-agent (work-item-decompose)</route_to>
|
|
80
|
+
<stop/>
|
|
81
|
+
</check>
|
|
82
|
+
<check if="all work items completed">
|
|
83
|
+
<action>Mark intent as completed</action>
|
|
84
|
+
<output>
|
|
85
|
+
Intent "{intent.title}" completed!
|
|
86
|
+
|
|
87
|
+
Work items delivered:
|
|
88
|
+
{list completed work items}
|
|
89
|
+
|
|
90
|
+
Ready for next intent? [Y/n]
|
|
91
|
+
</output>
|
|
92
|
+
</check>
|
|
93
|
+
</step>
|
|
94
|
+
|
|
95
|
+
<step n="5" title="No Active Work">
|
|
96
|
+
<output>
|
|
97
|
+
No active work. Ready for a new intent.
|
|
98
|
+
|
|
99
|
+
What do you want to build?
|
|
100
|
+
</output>
|
|
101
|
+
<route_to>planner-agent (intent-capture)</route_to>
|
|
102
|
+
</step>
|
|
103
|
+
</flow>
|
|
104
|
+
|
|
105
|
+
<routing_decision_tree>
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
state.yaml + file system scan
|
|
109
|
+
│
|
|
110
|
+
├── runs.active? ─────────────> Builder (run-execute, resume)
|
|
111
|
+
│
|
|
112
|
+
├── pending work items? ──────> Builder (run-plan, then execute)
|
|
113
|
+
│
|
|
114
|
+
├── intent without work items? > Planner (work-item-decompose)
|
|
115
|
+
│
|
|
116
|
+
└── no active intents ────────> Planner (intent-capture)
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
</routing_decision_tree>
|
|
120
|
+
|
|
121
|
+
<context_passed_to_agents>
|
|
122
|
+
**To Planner:**
|
|
123
|
+
|
|
124
|
+
```yaml
|
|
125
|
+
context:
|
|
126
|
+
action: intent-capture | work-item-decompose
|
|
127
|
+
intent_id: {if decomposing}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**To Builder:**
|
|
131
|
+
|
|
132
|
+
```yaml
|
|
133
|
+
context:
|
|
134
|
+
action: run-plan | run-execute | resume
|
|
135
|
+
pending_items: [{list of pending work items}] # for run-plan
|
|
136
|
+
run_id: {if resuming}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
</context_passed_to_agents>
|
|
140
|
+
|
|
141
|
+
<success_criteria>
|
|
142
|
+
<criterion>File system scanned for untracked intents/work-items</criterion>
|
|
143
|
+
<criterion>State reconciled with file system</criterion>
|
|
144
|
+
<criterion>Correct agent selected based on state</criterion>
|
|
145
|
+
<criterion>Context passed to target agent</criterion>
|
|
146
|
+
</success_criteria>
|