ardfw 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/package.json +3 -2
- package/src/project_config/AGENTICS.md +476 -13
- package/src/workflows/parent/_docs/architecture.md +220 -0
- package/src/workflows/parent/_docs/common-workflow-tools.csv +19 -0
- package/src/workflows/parent/_docs/csv-data-file-standards.md +206 -0
- package/src/workflows/parent/_docs/index.md +45 -0
- package/src/workflows/parent/_docs/intent-vs-prescriptive-spectrum.md +220 -0
- package/src/workflows/parent/_docs/kb.csv +0 -0
- package/src/workflows/parent/_docs/templates/step-01-init-continuable-template.md +241 -0
- package/src/workflows/parent/_docs/templates/step-1b-template.md +223 -0
- package/src/workflows/parent/_docs/templates/step-file.md +139 -0
- package/src/workflows/parent/_docs/templates/step-template.md +290 -0
- package/src/workflows/parent/_docs/templates/workflow-template.md +104 -0
- package/src/workflows/parent/_docs/templates/workflow.md +58 -0
- package/src/workflows/parent/_docs/terms.md +97 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/data/macro-calculator.csv +16 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/data/recipe-database.csv +28 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/steps/step-01-init.md +177 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/steps/step-01b-continue.md +121 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/steps/step-02-profile.md +165 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/steps/step-03-assessment.md +154 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/steps/step-04-strategy.md +183 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/steps/step-05-shopping.md +168 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/steps/step-06-prep-schedule.md +195 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/templates/assessment-section.md +25 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/templates/profile-section.md +47 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/templates/shopping-section.md +37 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/templates/strategy-section.md +18 -0
- package/src/workflows/parent/_reference/meal-prep-nutrition/workflow.md +59 -0
- package/src/workflows/parent/analysis/create-product-brief/product-brief.template.md +10 -0
- package/src/workflows/parent/analysis/create-product-brief/steps/step-01-init.md +182 -0
- package/src/workflows/parent/analysis/create-product-brief/steps/step-01b-continue.md +166 -0
- package/src/workflows/parent/analysis/create-product-brief/steps/step-02-vision.md +204 -0
- package/src/workflows/parent/analysis/create-product-brief/steps/step-03-users.md +207 -0
- package/src/workflows/parent/analysis/create-product-brief/steps/step-04-metrics.md +210 -0
- package/src/workflows/parent/analysis/create-product-brief/steps/step-05-scope.md +224 -0
- package/src/workflows/parent/analysis/create-product-brief/steps/step-06-complete.md +199 -0
- package/src/workflows/parent/analysis/create-product-brief/workflow.md +58 -0
- package/src/workflows/parent/analysis/research/domain-steps/step-01-init.md +137 -0
- package/src/workflows/parent/analysis/research/domain-steps/step-02-domain-analysis.md +229 -0
- package/src/workflows/parent/analysis/research/domain-steps/step-03-competitive-landscape.md +238 -0
- package/src/workflows/parent/analysis/research/domain-steps/step-04-regulatory-focus.md +206 -0
- package/src/workflows/parent/analysis/research/domain-steps/step-05-technical-trends.md +234 -0
- package/src/workflows/parent/analysis/research/domain-steps/step-06-research-synthesis.md +443 -0
- package/src/workflows/parent/analysis/research/market-steps/step-01-init.md +182 -0
- package/src/workflows/parent/analysis/research/market-steps/step-02-customer-behavior.md +237 -0
- package/src/workflows/parent/analysis/research/market-steps/step-02-customer-insights.md +200 -0
- package/src/workflows/parent/analysis/research/market-steps/step-03-customer-pain-points.md +249 -0
- package/src/workflows/parent/analysis/research/market-steps/step-04-customer-decisions.md +259 -0
- package/src/workflows/parent/analysis/research/market-steps/step-05-competitive-analysis.md +177 -0
- package/src/workflows/parent/analysis/research/market-steps/step-06-research-completion.md +475 -0
- package/src/workflows/parent/analysis/research/research.template.md +29 -0
- package/src/workflows/parent/analysis/research/technical-steps/step-01-init.md +137 -0
- package/src/workflows/parent/analysis/research/technical-steps/step-02-technical-overview.md +239 -0
- package/src/workflows/parent/analysis/research/technical-steps/step-03-integration-patterns.md +248 -0
- package/src/workflows/parent/analysis/research/technical-steps/step-04-architectural-patterns.md +202 -0
- package/src/workflows/parent/analysis/research/technical-steps/step-05-implementation-research.md +239 -0
- package/src/workflows/parent/analysis/research/technical-steps/step-06-research-synthesis.md +486 -0
- package/src/workflows/parent/analysis/research/workflow.md +173 -0
- package/src/workflows/parent/architecture/check-implementation-readiness/steps/step-01-document-discovery.md +190 -0
- package/src/workflows/parent/architecture/check-implementation-readiness/steps/step-02-prd-analysis.md +178 -0
- package/src/workflows/parent/architecture/check-implementation-readiness/steps/step-03-epic-coverage-validation.md +179 -0
- package/src/workflows/parent/architecture/check-implementation-readiness/steps/step-04-ux-alignment.md +139 -0
- package/src/workflows/parent/architecture/check-implementation-readiness/steps/step-05-epic-quality-review.md +252 -0
- package/src/workflows/parent/architecture/check-implementation-readiness/steps/step-06-final-assessment.md +133 -0
- package/src/workflows/parent/architecture/check-implementation-readiness/templates/readiness-report-template.md +4 -0
- package/src/workflows/parent/architecture/check-implementation-readiness/workflow.md +55 -0
- package/src/workflows/parent/architecture/create-architecture/architecture-decision-template.md +12 -0
- package/src/workflows/parent/architecture/create-architecture/data/domain-complexity.csv +11 -0
- package/src/workflows/parent/architecture/create-architecture/data/project-types.csv +7 -0
- package/src/workflows/parent/architecture/create-architecture/steps/step-01-init.md +153 -0
- package/src/workflows/parent/architecture/create-architecture/steps/step-01b-continue.md +164 -0
- package/src/workflows/parent/architecture/create-architecture/steps/step-02-context.md +224 -0
- package/src/workflows/parent/architecture/create-architecture/steps/step-03-starter.md +331 -0
- package/src/workflows/parent/architecture/create-architecture/steps/step-04-decisions.md +318 -0
- package/src/workflows/parent/architecture/create-architecture/steps/step-05-patterns.md +359 -0
- package/src/workflows/parent/architecture/create-architecture/steps/step-06-structure.md +379 -0
- package/src/workflows/parent/architecture/create-architecture/steps/step-07-validation.md +359 -0
- package/src/workflows/parent/architecture/create-architecture/steps/step-08-complete.md +352 -0
- package/src/workflows/parent/architecture/create-architecture/workflow.md +50 -0
- package/src/workflows/parent/architecture/create-epics-and-stories/steps/step-01-validate-prerequisites.md +259 -0
- package/src/workflows/parent/architecture/create-epics-and-stories/steps/step-02-design-epics.md +233 -0
- package/src/workflows/parent/architecture/create-epics-and-stories/steps/step-03-create-stories.md +272 -0
- package/src/workflows/parent/architecture/create-epics-and-stories/steps/step-04-final-validation.md +145 -0
- package/src/workflows/parent/architecture/create-epics-and-stories/templates/epics-template.md +57 -0
- package/src/workflows/parent/architecture/create-epics-and-stories/workflow.md +59 -0
- package/src/workflows/parent/core/tasks/review-adversarial-general.xml +41 -0
- package/src/workflows/parent/core/tasks/validate-workflow.xml +89 -0
- package/src/workflows/parent/core/tasks/workflow.xml +235 -0
- package/src/workflows/parent/core/workflows/advanced-elicitation/methods.csv +51 -0
- package/src/workflows/parent/core/workflows/advanced-elicitation/workflow.xml +117 -0
- package/src/workflows/parent/core/workflows/brainstorming/brain-methods.csv +62 -0
- package/src/workflows/parent/core/workflows/brainstorming/steps/step-01-session-setup.md +197 -0
- package/src/workflows/parent/core/workflows/brainstorming/steps/step-01b-continue.md +122 -0
- package/src/workflows/parent/core/workflows/brainstorming/steps/step-02a-user-selected.md +225 -0
- package/src/workflows/parent/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +237 -0
- package/src/workflows/parent/core/workflows/brainstorming/steps/step-02c-random-selection.md +209 -0
- package/src/workflows/parent/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +264 -0
- package/src/workflows/parent/core/workflows/brainstorming/steps/step-03-technique-execution.md +340 -0
- package/src/workflows/parent/core/workflows/brainstorming/steps/step-04-idea-organization.md +303 -0
- package/src/workflows/parent/core/workflows/brainstorming/template.md +15 -0
- package/src/workflows/parent/core/workflows/brainstorming/workflow.md +51 -0
- package/src/workflows/parent/core/workflows/party-mode/steps/step-01-agent-loading.md +139 -0
- package/src/workflows/parent/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +204 -0
- package/src/workflows/parent/core/workflows/party-mode/steps/step-03-graceful-exit.md +159 -0
- package/src/workflows/parent/core/workflows/party-mode/workflow.md +206 -0
- package/src/workflows/parent/create-module/steps/step-01-init.md +156 -0
- package/src/workflows/parent/create-module/steps/step-01b-continue.md +170 -0
- package/src/workflows/parent/create-module/steps/step-02-concept.md +218 -0
- package/src/workflows/parent/create-module/steps/step-03-components.md +268 -0
- package/src/workflows/parent/create-module/steps/step-04-structure.md +229 -0
- package/src/workflows/parent/create-module/steps/step-05-config.md +234 -0
- package/src/workflows/parent/create-module/steps/step-06-agents.md +297 -0
- package/src/workflows/parent/create-module/steps/step-07-workflows.md +229 -0
- package/src/workflows/parent/create-module/steps/step-08-installer.md +187 -0
- package/src/workflows/parent/create-module/steps/step-09-documentation.md +310 -0
- package/src/workflows/parent/create-module/steps/step-10-roadmap.md +338 -0
- package/src/workflows/parent/create-module/steps/step-11-validate.md +336 -0
- package/src/workflows/parent/create-module/templates/agent.template.md +313 -0
- package/src/workflows/parent/create-module/templates/installer.template.js +47 -0
- package/src/workflows/parent/create-module/templates/module-plan.template.md +5 -0
- package/src/workflows/parent/create-module/templates/module.template.yaml +53 -0
- package/src/workflows/parent/create-module/templates/workflow-plan-template.md +23 -0
- package/src/workflows/parent/create-module/validation.md +126 -0
- package/src/workflows/parent/create-module/workflow.md +88 -0
- package/src/workflows/parent/create-workflow/steps/step-01-init.md +158 -0
- package/src/workflows/parent/create-workflow/steps/step-02-gather.md +212 -0
- package/src/workflows/parent/create-workflow/steps/step-03-tools-configuration.md +251 -0
- package/src/workflows/parent/create-workflow/steps/step-04-plan-review.md +217 -0
- package/src/workflows/parent/create-workflow/steps/step-05-output-format-design.md +290 -0
- package/src/workflows/parent/create-workflow/steps/step-06-design.md +272 -0
- package/src/workflows/parent/create-workflow/steps/step-07-build.md +323 -0
- package/src/workflows/parent/create-workflow/steps/step-08-review.md +285 -0
- package/src/workflows/parent/create-workflow/steps/step-09-complete.md +188 -0
- package/src/workflows/parent/create-workflow/workflow.md +86 -0
- package/src/workflows/parent/document-project/checklist.md +245 -0
- package/src/workflows/parent/document-project/documentation-requirements.csv +12 -0
- package/src/workflows/parent/document-project/instructions.md +221 -0
- package/src/workflows/parent/document-project/templates/deep-dive-template.md +345 -0
- package/src/workflows/parent/document-project/templates/index-template.md +169 -0
- package/src/workflows/parent/document-project/templates/project-overview-template.md +103 -0
- package/src/workflows/parent/document-project/templates/project-scan-report-schema.json +160 -0
- package/src/workflows/parent/document-project/templates/source-tree-template.md +135 -0
- package/src/workflows/parent/document-project/workflow.yaml +30 -0
- package/src/workflows/parent/document-project/workflows/deep-dive-instructions.md +298 -0
- package/src/workflows/parent/document-project/workflows/deep-dive.yaml +31 -0
- package/src/workflows/parent/document-project/workflows/full-scan-instructions.md +1106 -0
- package/src/workflows/parent/document-project/workflows/full-scan.yaml +31 -0
- package/src/workflows/parent/edit-workflow/steps/step-01-analyze.md +217 -0
- package/src/workflows/parent/edit-workflow/steps/step-02-discover.md +254 -0
- package/src/workflows/parent/edit-workflow/steps/step-03-improve.md +218 -0
- package/src/workflows/parent/edit-workflow/steps/step-04-validate.md +194 -0
- package/src/workflows/parent/edit-workflow/steps/step-05-compliance-check.md +246 -0
- package/src/workflows/parent/edit-workflow/templates/completion-summary.md +75 -0
- package/src/workflows/parent/edit-workflow/templates/improvement-goals.md +68 -0
- package/src/workflows/parent/edit-workflow/templates/improvement-log.md +40 -0
- package/src/workflows/parent/edit-workflow/templates/validation-results.md +51 -0
- package/src/workflows/parent/edit-workflow/templates/workflow-analysis.md +56 -0
- package/src/workflows/parent/edit-workflow/workflow.md +59 -0
- package/src/workflows/parent/excalidraw-diagrams/_shared/excalidraw-library.json +90 -0
- package/src/workflows/parent/excalidraw-diagrams/_shared/excalidraw-templates.yaml +127 -0
- package/src/workflows/parent/excalidraw-diagrams/create-dataflow/checklist.md +39 -0
- package/src/workflows/parent/excalidraw-diagrams/create-dataflow/instructions.md +130 -0
- package/src/workflows/parent/excalidraw-diagrams/create-dataflow/workflow.yaml +27 -0
- package/src/workflows/parent/excalidraw-diagrams/create-diagram/checklist.md +43 -0
- package/src/workflows/parent/excalidraw-diagrams/create-diagram/instructions.md +141 -0
- package/src/workflows/parent/excalidraw-diagrams/create-diagram/workflow.yaml +27 -0
- package/src/workflows/parent/excalidraw-diagrams/create-flowchart/checklist.md +49 -0
- package/src/workflows/parent/excalidraw-diagrams/create-flowchart/instructions.md +241 -0
- package/src/workflows/parent/excalidraw-diagrams/create-flowchart/workflow.yaml +27 -0
- package/src/workflows/parent/excalidraw-diagrams/create-wireframe/checklist.md +38 -0
- package/src/workflows/parent/excalidraw-diagrams/create-wireframe/instructions.md +133 -0
- package/src/workflows/parent/excalidraw-diagrams/create-wireframe/workflow.yaml +27 -0
- package/src/workflows/parent/generate-project-context/project-context-template.md +21 -0
- package/src/workflows/parent/generate-project-context/steps/step-01-discover.md +184 -0
- package/src/workflows/parent/generate-project-context/steps/step-02-generate.md +318 -0
- package/src/workflows/parent/generate-project-context/steps/step-03-complete.md +278 -0
- package/src/workflows/parent/generate-project-context/workflow.md +49 -0
- package/src/workflows/parent/parent.yaml +168 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-01-init.md +135 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-01b-continue.md +127 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-02-discovery.md +190 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-03-core-experience.md +216 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-04-emotional-response.md +219 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-05-inspiration.md +234 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-06-design-system.md +252 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-07-defining-experience.md +254 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +224 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-09-design-directions.md +224 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-10-user-journeys.md +241 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-11-component-strategy.md +248 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +237 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +264 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/steps/step-14-complete.md +228 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/ux-design-template.md +13 -0
- package/src/workflows/parent/plan-workflows/create-ux-design/workflow.md +43 -0
- package/src/workflows/parent/plan-workflows/prd/domain-complexity.csv +13 -0
- package/src/workflows/parent/plan-workflows/prd/prd-template.md +11 -0
- package/src/workflows/parent/plan-workflows/prd/project-types.csv +11 -0
- package/src/workflows/parent/plan-workflows/prd/steps/step-01-init.md +197 -0
- package/src/workflows/parent/plan-workflows/prd/steps/step-01b-continue.md +166 -0
- package/src/workflows/parent/plan-workflows/prd/steps/step-02-discovery.md +421 -0
- package/src/workflows/parent/plan-workflows/prd/steps/step-03-success.md +290 -0
- package/src/workflows/parent/plan-workflows/prd/steps/step-04-journeys.md +291 -0
- package/src/workflows/parent/plan-workflows/prd/steps/step-05-domain.md +271 -0
- package/src/workflows/parent/plan-workflows/prd/steps/step-06-innovation.md +262 -0
- package/src/workflows/parent/plan-workflows/prd/steps/step-07-project-type.md +258 -0
- package/src/workflows/parent/plan-workflows/prd/steps/step-08-scoping.md +299 -0
- package/src/workflows/parent/plan-workflows/prd/steps/step-09-functional.md +270 -0
- package/src/workflows/parent/plan-workflows/prd/steps/step-10-nonfunctional.md +294 -0
- package/src/workflows/parent/plan-workflows/prd/steps/step-11-complete.md +186 -0
- package/src/workflows/parent/plan-workflows/prd/workflow.md +63 -0
- package/src/workflows/parent/quick-flow/create-tech-spec/steps/step-01-understand.md +189 -0
- package/src/workflows/parent/quick-flow/create-tech-spec/steps/step-02-investigate.md +144 -0
- package/src/workflows/parent/quick-flow/create-tech-spec/steps/step-03-generate.md +128 -0
- package/src/workflows/parent/quick-flow/create-tech-spec/steps/step-04-review.md +173 -0
- package/src/workflows/parent/quick-flow/create-tech-spec/tech-spec-template.md +74 -0
- package/src/workflows/parent/quick-flow/create-tech-spec/workflow.md +79 -0
- package/src/workflows/parent/quick-flow/quick-dev/steps/step-01-mode-detection.md +156 -0
- package/src/workflows/parent/quick-flow/quick-dev/steps/step-02-context-gathering.md +120 -0
- package/src/workflows/parent/quick-flow/quick-dev/steps/step-03-execute.md +113 -0
- package/src/workflows/parent/quick-flow/quick-dev/steps/step-04-self-check.md +113 -0
- package/src/workflows/parent/quick-flow/quick-dev/steps/step-05-adversarial-review.md +106 -0
- package/src/workflows/parent/quick-flow/quick-dev/steps/step-06-resolve-findings.md +140 -0
- package/src/workflows/parent/quick-flow/quick-dev/workflow.md +52 -0
- package/src/workflows/parent/workflow-status/init/instructions.md +346 -0
- package/src/workflows/parent/workflow-status/init/workflow.yaml +30 -0
- package/src/workflows/parent/workflow-status/instructions.md +395 -0
- package/src/workflows/parent/workflow-status/paths/enterprise-brownfield.yaml +103 -0
- package/src/workflows/parent/workflow-status/paths/enterprise-greenfield.yaml +100 -0
- package/src/workflows/parent/workflow-status/paths/method-brownfield.yaml +103 -0
- package/src/workflows/parent/workflow-status/paths/method-greenfield.yaml +100 -0
- package/src/workflows/parent/workflow-status/project-levels.yaml +59 -0
- package/src/workflows/parent/workflow-status/workflow-status-template.yaml +24 -0
- package/src/workflows/parent/workflow-status/workflow.yaml +32 -0
- package/src/workflows/subagent/_templates/step.template.md +50 -0
- package/src/workflows/subagent/_templates/workflow.template.md +63 -0
- package/src/workflows/subagent/agent-dev/agent-capability-assessment/workflow.md +87 -0
- package/src/workflows/subagent/agent-dev/create-agent-spec/steps/step-01-analyze.md +48 -0
- package/src/workflows/subagent/agent-dev/create-agent-spec/steps/step-02-design.md +52 -0
- package/src/workflows/subagent/agent-dev/create-agent-spec/steps/step-03-define.md +53 -0
- package/src/workflows/subagent/agent-dev/create-agent-spec/steps/step-04-document.md +52 -0
- package/src/workflows/subagent/agent-dev/create-agent-spec/workflow.md +115 -0
- package/src/workflows/subagent/agent-dev/create-custom-skill/workflow.md +96 -0
- package/src/workflows/subagent/agent-dev/design-agent-workflow/steps/step-01-analyze.md +47 -0
- package/src/workflows/subagent/agent-dev/design-agent-workflow/steps/step-02-design.md +52 -0
- package/src/workflows/subagent/agent-dev/design-agent-workflow/workflow.md +101 -0
- package/src/workflows/subagent/agent-dev/update-agent-definition/workflow.md +81 -0
- package/src/workflows/subagent/analyst/analyze-requirements/steps/step-01-gather.md +48 -0
- package/src/workflows/subagent/analyst/analyze-requirements/steps/step-02-analyze.md +53 -0
- package/src/workflows/subagent/analyst/analyze-requirements/steps/step-03-prioritize.md +55 -0
- package/src/workflows/subagent/analyst/analyze-requirements/steps/step-04-document.md +57 -0
- package/src/workflows/subagent/analyst/analyze-requirements/workflow.md +92 -0
- package/src/workflows/subagent/analyst/competitive-analysis/steps/step-01-identify.md +46 -0
- package/src/workflows/subagent/analyst/competitive-analysis/steps/step-02-research.md +51 -0
- package/src/workflows/subagent/analyst/competitive-analysis/steps/step-03-analyze.md +51 -0
- package/src/workflows/subagent/analyst/competitive-analysis/workflow.md +90 -0
- package/src/workflows/subagent/analyst/define-metrics/workflow.md +94 -0
- package/src/workflows/subagent/analyst/gap-analysis/workflow.md +120 -0
- package/src/workflows/subagent/analyst/impact-assessment/workflow.md +98 -0
- package/src/workflows/subagent/architect/create-adr/workflow.md +109 -0
- package/src/workflows/subagent/architect/define-api-contracts/workflow.md +125 -0
- package/src/workflows/subagent/architect/design-component/steps/step-01-analyze.md +50 -0
- package/src/workflows/subagent/architect/design-component/steps/step-02-design.md +60 -0
- package/src/workflows/subagent/architect/design-component/steps/step-03-document.md +61 -0
- package/src/workflows/subagent/architect/design-component/workflow.md +84 -0
- package/src/workflows/subagent/architect/review-architecture/workflow.md +84 -0
- package/src/workflows/subagent/architect/select-technology/workflow.md +91 -0
- package/src/workflows/subagent/data-science/data-quality-assessment/workflow.md +97 -0
- package/src/workflows/subagent/data-science/design-ab-test/steps/step-01-hypothesis.md +48 -0
- package/src/workflows/subagent/data-science/design-ab-test/steps/step-02-design.md +55 -0
- package/src/workflows/subagent/data-science/design-ab-test/steps/step-03-analysis-plan.md +51 -0
- package/src/workflows/subagent/data-science/design-ab-test/workflow.md +116 -0
- package/src/workflows/subagent/data-science/design-metrics/steps/step-01-understand.md +48 -0
- package/src/workflows/subagent/data-science/design-metrics/steps/step-02-design.md +51 -0
- package/src/workflows/subagent/data-science/design-metrics/workflow.md +99 -0
- package/src/workflows/subagent/data-science/model-selection/workflow.md +108 -0
- package/src/workflows/subagent/data-science/statistical-analysis/workflow.md +105 -0
- package/src/workflows/subagent/dev/code-review/workflow.md +91 -0
- package/src/workflows/subagent/dev/fix-bug/workflow.md +82 -0
- package/src/workflows/subagent/dev/implement-feature/steps/step-01-analyze.md +48 -0
- package/src/workflows/subagent/dev/implement-feature/steps/step-02-implement.md +53 -0
- package/src/workflows/subagent/dev/implement-feature/steps/step-03-test.md +53 -0
- package/src/workflows/subagent/dev/implement-feature/steps/step-04-document.md +52 -0
- package/src/workflows/subagent/dev/implement-feature/workflow.md +93 -0
- package/src/workflows/subagent/dev/refactor-code/workflow.md +100 -0
- package/src/workflows/subagent/dev/write-tests/workflow.md +87 -0
- package/src/workflows/subagent/meta-agent/agent-consistency-check/workflow.md +89 -0
- package/src/workflows/subagent/meta-agent/agent-deprecation-plan/workflow.md +120 -0
- package/src/workflows/subagent/meta-agent/agent-ecosystem-audit/steps/step-01-inventory.md +48 -0
- package/src/workflows/subagent/meta-agent/agent-ecosystem-audit/steps/step-02-analyze.md +53 -0
- package/src/workflows/subagent/meta-agent/agent-ecosystem-audit/steps/step-03-recommend.md +51 -0
- package/src/workflows/subagent/meta-agent/agent-ecosystem-audit/workflow.md +108 -0
- package/src/workflows/subagent/meta-agent/create-agent-cluster/workflow.md +102 -0
- package/src/workflows/subagent/meta-agent/design-agent-orchestration/steps/step-01-analyze.md +49 -0
- package/src/workflows/subagent/meta-agent/design-agent-orchestration/steps/step-02-design.md +51 -0
- package/src/workflows/subagent/meta-agent/design-agent-orchestration/workflow.md +108 -0
- package/src/workflows/subagent/pm/define-acceptance-criteria/workflow.md +92 -0
- package/src/workflows/subagent/pm/prioritize-features/steps/step-01-analyze.md +51 -0
- package/src/workflows/subagent/pm/prioritize-features/steps/step-02-prioritize.md +49 -0
- package/src/workflows/subagent/pm/prioritize-features/workflow.md +91 -0
- package/src/workflows/subagent/pm/release-planning/workflow.md +105 -0
- package/src/workflows/subagent/pm/scope-feature/workflow.md +95 -0
- package/src/workflows/subagent/pm/write-user-story/workflow.md +89 -0
- package/src/workflows/subagent/sm/facilitate-retrospective/steps/step-01-prepare.md +49 -0
- package/src/workflows/subagent/sm/facilitate-retrospective/steps/step-02-facilitate.md +53 -0
- package/src/workflows/subagent/sm/facilitate-retrospective/workflow.md +96 -0
- package/src/workflows/subagent/sm/identify-blockers/workflow.md +97 -0
- package/src/workflows/subagent/sm/process-improvement/workflow.md +109 -0
- package/src/workflows/subagent/sm/sprint-planning-support/workflow.md +100 -0
- package/src/workflows/subagent/sm/team-health-check/workflow.md +109 -0
- package/src/workflows/subagent/subagent.yaml +252 -0
- package/src/workflows/subagent/tech-writer/create-guide/steps/step-01-research.md +48 -0
- package/src/workflows/subagent/tech-writer/create-guide/steps/step-02-write.md +51 -0
- package/src/workflows/subagent/tech-writer/create-guide/workflow.md +84 -0
- package/src/workflows/subagent/tech-writer/document-api/workflow.md +115 -0
- package/src/workflows/subagent/tech-writer/document-feature/workflow.md +115 -0
- package/src/workflows/subagent/tech-writer/write-readme/workflow.md +116 -0
- package/src/workflows/subagent/tech-writer/write-release-notes/workflow.md +109 -0
- package/src/workflows/subagent/ux-designer/accessibility-audit/workflow.md +100 -0
- package/src/workflows/subagent/ux-designer/create-wireframes/workflow.md +113 -0
- package/src/workflows/subagent/ux-designer/design-component/steps/step-01-research.md +48 -0
- package/src/workflows/subagent/ux-designer/design-component/steps/step-02-design.md +56 -0
- package/src/workflows/subagent/ux-designer/design-component/workflow.md +100 -0
- package/src/workflows/subagent/ux-designer/design-review/workflow.md +88 -0
- package/src/workflows/subagent/ux-designer/user-flow-analysis/workflow.md +99 -0
- package/tools/cli/commands/install.js +7 -1
- package/tools/cli/lib/config.js +54 -4
- package/tools/cli/lib/installer.js +211 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ardfw",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Agentics Framework CLI - Multi-agent system for Claude Code and OpenCode",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ardfw": "tools/ard-npx-wrapper.js",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"tools/",
|
|
11
|
-
"src/project_config/"
|
|
11
|
+
"src/project_config/",
|
|
12
|
+
"src/workflows/"
|
|
12
13
|
],
|
|
13
14
|
"scripts": {
|
|
14
15
|
"test": "echo \"No tests yet\"",
|
|
@@ -1,19 +1,482 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AGENTICS Framework Reference
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
<!-- Describe your project here -->
|
|
3
|
+
> Agent-facing documentation for the Agentics multi-agent framework.
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
<!-- List key technologies, frameworks, and tools -->
|
|
5
|
+
This document consolidates prompt engineering guidelines, subagent specifications, and workflow patterns into a single reference for agents operating within the framework.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
<!-- Describe directory layout and organization -->
|
|
7
|
+
---
|
|
11
8
|
|
|
12
|
-
##
|
|
13
|
-
<!-- Document coding conventions, naming patterns, etc. -->
|
|
9
|
+
## Table of Contents
|
|
14
10
|
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
1. [Prompt Engineering Framework](#1-prompt-engineering-framework)
|
|
12
|
+
2. [Subagent Reference](#2-subagent-reference)
|
|
13
|
+
3. [Workflow Categories](#3-workflow-categories)
|
|
14
|
+
4. [When to Use Parent vs Subagent Workflows](#4-when-to-use-parent-vs-subagent-workflows)
|
|
15
|
+
5. [Invocation Patterns](#5-invocation-patterns)
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 1. Prompt Engineering Framework
|
|
20
|
+
|
|
21
|
+
> Scale your compute to scale your impact. Each agentic prompt you write can be used, reused, and chained.
|
|
22
|
+
|
|
23
|
+
### 1.1 Prompt Levels
|
|
24
|
+
|
|
25
|
+
Prompts are structured at four levels of complexity:
|
|
26
|
+
|
|
27
|
+
| Level | Name | Description | Difficulty |
|
|
28
|
+
|-------|------|-------------|------------|
|
|
29
|
+
| **L1** | Metadata | Frontmatter: description, tools, arguments, model | C Tier |
|
|
30
|
+
| **L2** | Workflow | Sequential numbered steps | C Tier |
|
|
31
|
+
| **L3** | Control Flow | Conditions and loops with `<loop>` XML blocks | B Tier |
|
|
32
|
+
| **L4** | Delegation | Sub-agent invocation via Task tool | A Tier |
|
|
33
|
+
|
|
34
|
+
### 1.2 Prompt Sections & Tier System
|
|
35
|
+
|
|
36
|
+
Include sections based on prompt complexity:
|
|
37
|
+
|
|
38
|
+
| Section | Description | Tier |
|
|
39
|
+
|---------|-------------|------|
|
|
40
|
+
| **Metadata** | Frontmatter with description, allowed-tools, argument-hints, model | C |
|
|
41
|
+
| **Workflow** | Sequential activities to perform | C |
|
|
42
|
+
| **Report** | Output format specification | C |
|
|
43
|
+
| **Information** | System context and structure (precedes workflow) | B |
|
|
44
|
+
| **Variables** | What the agent works with (inputs, paths, configs) | A |
|
|
45
|
+
| **Context Map** | Files/resources to fetch before execution | A |
|
|
46
|
+
| **Quality Checklist** | Validation criteria for output | S |
|
|
47
|
+
|
|
48
|
+
**Tier Progression:**
|
|
49
|
+
- **C Tier**: Metadata + Workflow + Report (simple commands)
|
|
50
|
+
- **B Tier**: + Information (contextual commands)
|
|
51
|
+
- **A Tier**: + Variables + Context Map (complex commands)
|
|
52
|
+
- **S Tier**: + Quality Checklist (production-grade)
|
|
53
|
+
|
|
54
|
+
### 1.3 Metadata Fields
|
|
55
|
+
|
|
56
|
+
```yaml
|
|
57
|
+
---
|
|
58
|
+
name: command-name
|
|
59
|
+
description: When to invoke and what it does
|
|
60
|
+
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
61
|
+
argument-hints: [arg1] [arg2]
|
|
62
|
+
model: sonnet | opus | haiku
|
|
63
|
+
---
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### 1.4 Control Flow with XML Blocks
|
|
67
|
+
|
|
68
|
+
For repeating operations, use XML loop blocks:
|
|
69
|
+
|
|
70
|
+
```markdown
|
|
71
|
+
## Workflow
|
|
72
|
+
|
|
73
|
+
1. Initialize environment
|
|
74
|
+
2. For each item, execute the processing loop:
|
|
75
|
+
|
|
76
|
+
<process-loop>
|
|
77
|
+
- Load item from queue
|
|
78
|
+
- Transform data
|
|
79
|
+
- Validate output
|
|
80
|
+
- Save results
|
|
81
|
+
</process-loop>
|
|
82
|
+
|
|
83
|
+
3. Generate summary report
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### 1.5 Step-File Architecture
|
|
87
|
+
|
|
88
|
+
Workflows use micro-file design with strict execution rules:
|
|
89
|
+
|
|
90
|
+
**Principles:**
|
|
91
|
+
- **Micro-file design**: One step per file
|
|
92
|
+
- **Just-in-time loading**: Only current step in memory
|
|
93
|
+
- **Sequential enforcement**: No skipping or optimization
|
|
94
|
+
- **State tracking**: Progress in frontmatter `stepsCompleted` array
|
|
95
|
+
- **Append-only building**: Documents grow through steps
|
|
96
|
+
|
|
97
|
+
**Execution Rules:**
|
|
98
|
+
- NEVER load multiple step files simultaneously
|
|
99
|
+
- ALWAYS read entire step file before execution
|
|
100
|
+
- NEVER skip steps or optimize sequence
|
|
101
|
+
- ALWAYS update frontmatter when completing steps
|
|
102
|
+
- For parent workflows: HALT at menus for user input
|
|
103
|
+
- For subagent workflows: AUTO-PROCEED through all steps
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## 2. Subagent Reference
|
|
108
|
+
|
|
109
|
+
> Subagents execute delegated tasks without parent context. They are prompted by the parent agent, not the user.
|
|
110
|
+
|
|
111
|
+
### 2.1 Context Engineering Principles
|
|
112
|
+
|
|
113
|
+
- **Reduce Context**: Less context = better focus = predictable responses
|
|
114
|
+
- **Delegate**: Offload work without polluting parent context window
|
|
115
|
+
- **Isolate**: Subagents have no awareness of each other
|
|
116
|
+
|
|
117
|
+
### 2.2 Agent Registry
|
|
118
|
+
|
|
119
|
+
| Agent | Role | Model | Tools | Access |
|
|
120
|
+
|-------|------|-------|-------|--------|
|
|
121
|
+
| **architect** | System design, tech stack decisions | opus | Read, Glob, Grep, WebFetch, WebSearch | read-only |
|
|
122
|
+
| **analyst** | Business analysis, requirements, metrics | sonnet | Read, Glob, Grep, WebFetch, WebSearch | read-only |
|
|
123
|
+
| **dev** | Implementation, debugging, testing | sonnet | Read, Write, Edit, Bash, Grep, Glob | write |
|
|
124
|
+
| **pm** | Product management, PRDs, priorities | opus | Read, Glob, Grep, WebFetch, WebSearch | read-only |
|
|
125
|
+
| **ux-designer** | UI/UX design, accessibility | sonnet | Read, Glob, Grep, WebFetch | read-only |
|
|
126
|
+
| **tech-writer** | Documentation, guides, API docs | sonnet | Read, Glob, Grep, WebFetch | read-only |
|
|
127
|
+
| **data-science** | Analytics, ML, A/B testing | sonnet | Read, Glob, Grep, WebFetch, WebSearch | read-only |
|
|
128
|
+
| **sm** | Process coordination, blockers | sonnet | Read, Glob, Grep | read-only |
|
|
129
|
+
| **agent-dev** | Agent specifications, workflows | opus | Read, Write, Edit, Glob, Grep, Bash | write |
|
|
130
|
+
| **meta-agent** | Ecosystem management, audits | opus | Read, Write, Edit, Glob, Grep, Bash | write |
|
|
131
|
+
|
|
132
|
+
### 2.3 When to Invoke Each Agent
|
|
133
|
+
|
|
134
|
+
| Agent | Delegate When | Use Proactively |
|
|
135
|
+
|-------|---------------|-----------------|
|
|
136
|
+
| **architect** | PRD needs technical translation, tech stack decisions | Designing new systems, reviewing architectures |
|
|
137
|
+
| **analyst** | Business questions need data-driven answers | Requirements elicitation, impact assessment |
|
|
138
|
+
| **dev** | Implementing features from specs, fixing bugs | After bug reports, code review requests |
|
|
139
|
+
| **pm** | Translating user needs into PRDs | New feature requests, prioritization needed |
|
|
140
|
+
| **ux-designer** | Designing interfaces, accessibility audits | Frontend UX quality review |
|
|
141
|
+
| **tech-writer** | APIs need documentation | After dev completes implementation |
|
|
142
|
+
| **data-science** | Metrics definition, A/B test design | Compute optimization, statistical validation |
|
|
143
|
+
| **sm** | Multi-agent coordination needed, blockers arise | Process improvement, workflow optimization |
|
|
144
|
+
| **agent-dev** | Creating new agents, updating definitions | Agent capability assessment |
|
|
145
|
+
| **meta-agent** | Ecosystem audit, orchestration design | Agent consistency checks |
|
|
146
|
+
|
|
147
|
+
### 2.4 Isolation Protocol
|
|
148
|
+
|
|
149
|
+
All subagents follow strict isolation rules:
|
|
150
|
+
|
|
151
|
+
1. **Cannot communicate** directly with other sub-agents
|
|
152
|
+
2. **Cannot spawn** or invoke other sub-agents
|
|
153
|
+
3. **All outputs** return exclusively to the parent agent
|
|
154
|
+
4. **No cross-agent awareness** - each operates independently
|
|
155
|
+
5. **Sequential chaining** managed only by parent agent
|
|
156
|
+
|
|
157
|
+
### 2.5 Agent Definition Structure
|
|
158
|
+
|
|
159
|
+
Agent files in `src/system_config/agents/*.md` follow this structure:
|
|
160
|
+
|
|
161
|
+
```markdown
|
|
162
|
+
---
|
|
163
|
+
name: agent-name
|
|
164
|
+
description: Trigger condition and purpose
|
|
165
|
+
tools: Read, Glob, Grep
|
|
166
|
+
model: sonnet
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
# Agent Name
|
|
170
|
+
|
|
171
|
+
## Use Cases
|
|
172
|
+
- Delegate when...
|
|
173
|
+
- Use proactively when...
|
|
174
|
+
|
|
175
|
+
## Objectives
|
|
176
|
+
- Primary goals
|
|
177
|
+
|
|
178
|
+
## Constraints
|
|
179
|
+
- Boundaries and limitations
|
|
180
|
+
|
|
181
|
+
## Communication Protocol
|
|
182
|
+
[Standard isolation rules]
|
|
183
|
+
|
|
184
|
+
## Report Format
|
|
185
|
+
[Output structure]
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## 3. Workflow Organization
|
|
191
|
+
|
|
192
|
+
### 3.1 Workflow Modules
|
|
193
|
+
|
|
194
|
+
**Workflow Modules** are top-level organizational folders that group related workflows together. Each module:
|
|
195
|
+
- Contains one or more related workflows
|
|
196
|
+
- Has a dedicated artifact output folder in `_ard/artifacts/{module-name}/`
|
|
197
|
+
- Is registered in `src/workflows/parent/parent.yaml`
|
|
198
|
+
|
|
199
|
+
**Parent Workflow Modules:**
|
|
200
|
+
|
|
201
|
+
| Module | Description | Workflows | Artifact Path |
|
|
202
|
+
|--------|-------------|-----------|---------------|
|
|
203
|
+
| `analysis` | Discovery and research | create-product-brief, research | `{artifacts.analysis}` |
|
|
204
|
+
| `plan-workflows` | Requirements and UX | prd, create-ux-design | `{artifacts.plan-workflows}` |
|
|
205
|
+
| `architecture` | System design | create-architecture, create-epics-and-stories, check-implementation-readiness | `{artifacts.architecture}` |
|
|
206
|
+
| `quick-flow` | Rapid development | create-tech-spec, quick-dev | `{artifacts.quick-flow}` |
|
|
207
|
+
| `core` | Support workflows | party-mode, brainstorming | - |
|
|
208
|
+
|
|
209
|
+
**Standalone Workflows** (no module):
|
|
210
|
+
- `create-workflow`, `edit-workflow`, `create-module` - Meta/framework extension
|
|
211
|
+
- `document-project`, `generate-project-context` - Utility
|
|
212
|
+
|
|
213
|
+
### 3.2 Creating New Workflows & Modules
|
|
214
|
+
|
|
215
|
+
When creating new workflows or modules:
|
|
216
|
+
|
|
217
|
+
1. **New Workflow in Existing Module:**
|
|
218
|
+
- Add workflow folder to `src/workflows/parent/{module-name}/{workflow-name}/`
|
|
219
|
+
- Register in `parent.yaml` under the module's `workflows:` section
|
|
220
|
+
|
|
221
|
+
2. **New Module:**
|
|
222
|
+
- Create folder `src/workflows/parent/{module-name}/`
|
|
223
|
+
- Add module definition to `parent.yaml`
|
|
224
|
+
- Add artifact path to `config.js`: `artifacts.{module-name}`
|
|
225
|
+
|
|
226
|
+
Use `/create-workflow` to create a new workflow, or `/create-module` to create a new module.
|
|
227
|
+
|
|
228
|
+
### 3.3 Parent Workflows (Interactive)
|
|
229
|
+
|
|
230
|
+
Parent workflows require **user collaboration** at decision points. They use menu gates where users select options to proceed.
|
|
231
|
+
|
|
232
|
+
*Full inventory: `src/workflows/parent/parent.yaml`*
|
|
233
|
+
|
|
234
|
+
### 3.4 Subagent Workflows (Non-interactive)
|
|
235
|
+
|
|
236
|
+
Subagent workflows execute **autonomously** without user gates. They have defined input/output contracts.
|
|
237
|
+
|
|
238
|
+
| Agent | Example Workflows | Complexity | Total |
|
|
239
|
+
|-------|-------------------|------------|-------|
|
|
240
|
+
| **architect** | design-component, review-architecture, select-technology, create-adr, define-api-contracts | 1 multi-step, 4 simple | 5 |
|
|
241
|
+
| **analyst** | analyze-requirements, competitive-analysis, define-metrics, impact-assessment, gap-analysis | 2 multi-step, 3 simple | 5 |
|
|
242
|
+
| **dev** | implement-feature, fix-bug, code-review, write-tests, refactor-code | 1 multi-step, 4 simple | 5 |
|
|
243
|
+
| **pm** | write-user-story, prioritize-features, scope-feature, define-acceptance-criteria, release-planning | 1 multi-step, 4 simple | 5 |
|
|
244
|
+
| **ux-designer** | design-component, accessibility-audit, user-flow-analysis, design-review, create-wireframes | 1 multi-step, 4 simple | 5 |
|
|
245
|
+
| **tech-writer** | document-api, write-readme, create-guide, document-feature, write-release-notes | 1 multi-step, 4 simple | 5 |
|
|
246
|
+
| **data-science** | design-metrics, design-ab-test, model-selection, data-quality-assessment, statistical-analysis | 2 multi-step, 3 simple | 5 |
|
|
247
|
+
| **sm** | identify-blockers, facilitate-retrospective, process-improvement, sprint-planning-support, team-health-check | 1 multi-step, 4 simple | 5 |
|
|
248
|
+
| **agent-dev** | create-agent-spec, design-agent-workflow, update-agent-definition, agent-capability-assessment, create-custom-skill | 2 multi-step, 3 simple | 5 |
|
|
249
|
+
| **meta-agent** | agent-ecosystem-audit, design-agent-orchestration, agent-consistency-check, create-agent-cluster, agent-deprecation-plan | 2 multi-step, 3 simple | 5 |
|
|
250
|
+
|
|
251
|
+
**Totals:** 10 agents, 50 workflows (15 multi-step, 35 simple)
|
|
252
|
+
|
|
253
|
+
*Full inventory: `src/workflows/subagent/subagent.yaml`*
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
## 4. When to Use Parent vs Subagent Workflows
|
|
258
|
+
|
|
259
|
+
### 4.1 Use Parent Workflows When:
|
|
260
|
+
|
|
261
|
+
- **User collaboration required** at decision points
|
|
262
|
+
- **Discovery-driven work** - exploring product vision, requirements, architecture
|
|
263
|
+
- **Sequential human decisions** needed throughout the process
|
|
264
|
+
- **Multi-step facilitation** requiring guidance at each stage
|
|
265
|
+
- **Building planning artifacts** through dialogue (PRDs, specs, architecture docs)
|
|
266
|
+
- **Strategic planning** with multiple options to evaluate
|
|
267
|
+
|
|
268
|
+
**Key Indicator:** If the task requires "what do you think?" or "which option?" questions, use a parent workflow.
|
|
269
|
+
|
|
270
|
+
### 4.2 Use Subagent Workflows When:
|
|
271
|
+
|
|
272
|
+
- **Task can execute autonomously** without user gates
|
|
273
|
+
- **Clear input contract** leads to **predictable output**
|
|
274
|
+
- **Specialist expertise** needed (data science analysis, UX audit, code review)
|
|
275
|
+
- **Re-usable building block** within larger parent workflows
|
|
276
|
+
- **Delegated work** that doesn't need human review per step
|
|
277
|
+
- **Context isolation** is beneficial (reduce parent context pollution)
|
|
278
|
+
|
|
279
|
+
**Key Indicator:** If you can fully specify the task upfront with clear inputs and expected outputs, use a subagent workflow.
|
|
280
|
+
|
|
281
|
+
### 4.3 Decision Matrix
|
|
282
|
+
|
|
283
|
+
| Scenario | Use |
|
|
284
|
+
|----------|-----|
|
|
285
|
+
| "Help me figure out the product requirements" | Parent: prd |
|
|
286
|
+
| "Analyze these requirements and document gaps" | Subagent: analyst/analyze-requirements |
|
|
287
|
+
| "Design the system architecture" | Parent: create-architecture |
|
|
288
|
+
| "Review this architecture for issues" | Subagent: architect/review-architecture |
|
|
289
|
+
| "Implement user authentication" | Subagent: dev/implement-feature |
|
|
290
|
+
| "Create a tech spec for this feature" | Parent: create-tech-spec |
|
|
291
|
+
| "Write tests for this module" | Subagent: dev/write-tests |
|
|
292
|
+
| "Help me prioritize the backlog" | Parent (if discussion needed) OR Subagent: pm/prioritize-features |
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## 5. Invocation Patterns
|
|
297
|
+
|
|
298
|
+
### 5.1 Task Tool - Subagent Delegation
|
|
299
|
+
|
|
300
|
+
Use the Task tool to delegate work to a subagent:
|
|
301
|
+
|
|
302
|
+
```markdown
|
|
303
|
+
Use Task tool:
|
|
304
|
+
subagent_type: dev
|
|
305
|
+
prompt: |
|
|
306
|
+
Execute workflow: implement-feature
|
|
307
|
+
|
|
308
|
+
Input:
|
|
309
|
+
specification: |
|
|
310
|
+
Add user authentication with JWT tokens.
|
|
311
|
+
- Login endpoint POST /auth/login
|
|
312
|
+
- Register endpoint POST /auth/register
|
|
313
|
+
- Protected routes require Bearer token
|
|
314
|
+
target_files:
|
|
315
|
+
- src/routes/auth.ts
|
|
316
|
+
- src/middleware/auth.ts
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### 5.2 Parent Workflow Loading
|
|
320
|
+
|
|
321
|
+
To execute a parent workflow:
|
|
322
|
+
|
|
323
|
+
```markdown
|
|
324
|
+
Load workflow: src/workflows/parent/bmad-quick-flow/create-tech-spec/workflow.md
|
|
325
|
+
|
|
326
|
+
Execute following step-file rules:
|
|
327
|
+
1. Read entire step file before taking action
|
|
328
|
+
2. Execute step instructions in order
|
|
329
|
+
3. HALT at menu options and wait for user selection
|
|
330
|
+
4. Update stepsCompleted array in frontmatter on completion
|
|
331
|
+
5. Load next step file only after current step completes
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
### 5.3 Subagent Workflow from Parent
|
|
335
|
+
|
|
336
|
+
When a parent workflow delegates to a subagent with a specific workflow:
|
|
337
|
+
|
|
338
|
+
```markdown
|
|
339
|
+
<delegate>
|
|
340
|
+
Use Task tool:
|
|
341
|
+
subagent_type: analyst
|
|
342
|
+
prompt: |
|
|
343
|
+
Execute workflow: analyze-requirements
|
|
344
|
+
|
|
345
|
+
Input:
|
|
346
|
+
project_context: "E-commerce platform redesign for mobile-first experience"
|
|
347
|
+
stakeholders:
|
|
348
|
+
- product team
|
|
349
|
+
- engineering leads
|
|
350
|
+
- design team
|
|
351
|
+
existing_docs:
|
|
352
|
+
- docs/current-requirements.md
|
|
353
|
+
- docs/user-research.md
|
|
354
|
+
</delegate>
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
### 5.4 Parallel Subagent Execution
|
|
358
|
+
|
|
359
|
+
For independent tasks, invoke multiple subagents in parallel:
|
|
360
|
+
|
|
361
|
+
```markdown
|
|
362
|
+
<delegate-parallel>
|
|
363
|
+
1. Use Task tool:
|
|
364
|
+
subagent_type: architect
|
|
365
|
+
prompt: Execute workflow: review-architecture
|
|
366
|
+
Input: { architecture_docs: ["docs/system-design.md"] }
|
|
367
|
+
|
|
368
|
+
2. Use Task tool:
|
|
369
|
+
subagent_type: analyst
|
|
370
|
+
prompt: Execute workflow: impact-assessment
|
|
371
|
+
Input: { change_description: "Migrating to microservices" }
|
|
372
|
+
|
|
373
|
+
3. Use Task tool:
|
|
374
|
+
subagent_type: data-science
|
|
375
|
+
prompt: Execute workflow: design-metrics
|
|
376
|
+
Input: { business_objective: "Improve checkout conversion" }
|
|
377
|
+
</delegate-parallel>
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
382
|
+
## Quick Reference
|
|
383
|
+
|
|
384
|
+
### Prompt Tier Quick Selection
|
|
385
|
+
|
|
386
|
+
| Complexity | Tier | Include |
|
|
387
|
+
|------------|------|---------|
|
|
388
|
+
| Simple command | C | Metadata, Workflow, Report |
|
|
389
|
+
| Context-aware | B | + Information |
|
|
390
|
+
| Complex with inputs | A | + Variables, Context Map |
|
|
391
|
+
| Production-grade | S | + Quality Checklist |
|
|
392
|
+
|
|
393
|
+
### Agent Quick Selection
|
|
394
|
+
|
|
395
|
+
| Need | Agent |
|
|
396
|
+
|------|-------|
|
|
397
|
+
| Design systems | architect |
|
|
398
|
+
| Analyze data/requirements | analyst |
|
|
399
|
+
| Write code | dev |
|
|
400
|
+
| Define product | pm |
|
|
401
|
+
| Design UI | ux-designer |
|
|
402
|
+
| Write docs | tech-writer |
|
|
403
|
+
| Design experiments | data-science |
|
|
404
|
+
| Coordinate work | sm |
|
|
405
|
+
| Create agents | agent-dev |
|
|
406
|
+
| Manage ecosystem | meta-agent |
|
|
407
|
+
|
|
408
|
+
### Workflow Quick Selection
|
|
409
|
+
|
|
410
|
+
| Interactive? | User decisions? | Use |
|
|
411
|
+
|--------------|-----------------|-----|
|
|
412
|
+
| Yes | Multiple | Parent workflow |
|
|
413
|
+
| No | Upfront only | Subagent workflow |
|
|
414
|
+
|
|
415
|
+
---
|
|
416
|
+
|
|
417
|
+
## Configuration
|
|
418
|
+
|
|
419
|
+
Framework configuration: `_ard/config.yaml`
|
|
420
|
+
|
|
421
|
+
```yaml
|
|
422
|
+
# Artifact output paths by module
|
|
423
|
+
artifacts:
|
|
424
|
+
base: _ard/artifacts
|
|
425
|
+
# Parent workflow modules
|
|
426
|
+
analysis: _ard/artifacts/analysis
|
|
427
|
+
plan-workflows: _ard/artifacts/plan-workflows
|
|
428
|
+
architecture: _ard/artifacts/architecture
|
|
429
|
+
quick-flow: _ard/artifacts/quick-flow
|
|
430
|
+
# Subagent categories
|
|
431
|
+
analyst: _ard/artifacts/analyst
|
|
432
|
+
architect: _ard/artifacts/architect
|
|
433
|
+
# ... (one per agent type)
|
|
434
|
+
|
|
435
|
+
# Workflow locations (system vs project separation)
|
|
436
|
+
workflows:
|
|
437
|
+
system:
|
|
438
|
+
parent: _ard/workflows/system/parent
|
|
439
|
+
subagent: _ard/workflows/system/subagent
|
|
440
|
+
project:
|
|
441
|
+
parent: _ard/workflows/project/parent
|
|
442
|
+
subagent: _ard/workflows/project/subagent
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
### Workflow Directory Structure
|
|
446
|
+
|
|
447
|
+
```
|
|
448
|
+
_ard/workflows/
|
|
449
|
+
system/ # Framework-provided workflows
|
|
450
|
+
parent/ # Interactive parent workflows
|
|
451
|
+
parent.yaml # Registry of parent workflows
|
|
452
|
+
analysis/ # Category folder
|
|
453
|
+
create-product-brief.md
|
|
454
|
+
research.md
|
|
455
|
+
quick-flow/
|
|
456
|
+
quick-dev.md
|
|
457
|
+
create-tech-spec.md
|
|
458
|
+
create-module.md # Single workflows at root
|
|
459
|
+
create-workflow.md
|
|
460
|
+
subagent/ # Autonomous subagent workflows
|
|
461
|
+
subagent.yaml # Registry of subagent workflows
|
|
462
|
+
dev/ # Agent folder
|
|
463
|
+
implement-feature.md
|
|
464
|
+
fix-bug.md
|
|
465
|
+
analyst/
|
|
466
|
+
analyze-requirements.md
|
|
467
|
+
project/ # User-customizable workflows
|
|
468
|
+
parent/ # Custom parent workflows
|
|
469
|
+
.gitkeep
|
|
470
|
+
subagent/ # Custom subagent workflows
|
|
471
|
+
.gitkeep
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
**IDE Access:**
|
|
475
|
+
- `.claude/commands/workflows/system/parent/` - System parent workflows
|
|
476
|
+
- `.claude/commands/workflows/system/subagent/` - System subagent workflows
|
|
477
|
+
- `.claude/commands/workflows/project/parent/` - Custom parent workflows
|
|
478
|
+
- `.claude/commands/workflows/project/subagent/` - Custom subagent workflows
|
|
479
|
+
|
|
480
|
+
---
|
|
481
|
+
|
|
482
|
+
*Last updated: 2026-01-02*
|