red64-cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +454 -0
- package/dist/cli/parseArgs.d.ts +16 -0
- package/dist/cli/parseArgs.d.ts.map +1 -0
- package/dist/cli/parseArgs.js +172 -0
- package/dist/cli/parseArgs.js.map +1 -0
- package/dist/cli/validateFlags.d.ts +22 -0
- package/dist/cli/validateFlags.d.ts.map +1 -0
- package/dist/cli/validateFlags.js +24 -0
- package/dist/cli/validateFlags.js.map +1 -0
- package/dist/cli.d.ts +7 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +90 -0
- package/dist/cli.js.map +1 -0
- package/dist/components/App.d.ts +20 -0
- package/dist/components/App.d.ts.map +1 -0
- package/dist/components/App.js +35 -0
- package/dist/components/App.js.map +1 -0
- package/dist/components/CommandRouter.d.ts +21 -0
- package/dist/components/CommandRouter.d.ts.map +1 -0
- package/dist/components/CommandRouter.js +30 -0
- package/dist/components/CommandRouter.js.map +1 -0
- package/dist/components/GlobalConfig.d.ts +26 -0
- package/dist/components/GlobalConfig.d.ts.map +1 -0
- package/dist/components/GlobalConfig.js +30 -0
- package/dist/components/GlobalConfig.js.map +1 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +9 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/init/CompleteStep.d.ts +11 -0
- package/dist/components/init/CompleteStep.d.ts.map +1 -0
- package/dist/components/init/CompleteStep.js +15 -0
- package/dist/components/init/CompleteStep.js.map +1 -0
- package/dist/components/init/ErrorStep.d.ts +14 -0
- package/dist/components/init/ErrorStep.d.ts.map +1 -0
- package/dist/components/init/ErrorStep.js +36 -0
- package/dist/components/init/ErrorStep.js.map +1 -0
- package/dist/components/init/FetchStep.d.ts +15 -0
- package/dist/components/init/FetchStep.d.ts.map +1 -0
- package/dist/components/init/FetchStep.js +33 -0
- package/dist/components/init/FetchStep.js.map +1 -0
- package/dist/components/init/SetupStep.d.ts +14 -0
- package/dist/components/init/SetupStep.d.ts.map +1 -0
- package/dist/components/init/SetupStep.js +78 -0
- package/dist/components/init/SetupStep.js.map +1 -0
- package/dist/components/init/SteeringStep.d.ts +12 -0
- package/dist/components/init/SteeringStep.d.ts.map +1 -0
- package/dist/components/init/SteeringStep.js +43 -0
- package/dist/components/init/SteeringStep.js.map +1 -0
- package/dist/components/init/WelcomeStep.d.ts +12 -0
- package/dist/components/init/WelcomeStep.d.ts.map +1 -0
- package/dist/components/init/WelcomeStep.js +52 -0
- package/dist/components/init/WelcomeStep.js.map +1 -0
- package/dist/components/init/index.d.ts +11 -0
- package/dist/components/init/index.d.ts.map +1 -0
- package/dist/components/init/index.js +10 -0
- package/dist/components/init/index.js.map +1 -0
- package/dist/components/init/types.d.ts +98 -0
- package/dist/components/init/types.d.ts.map +1 -0
- package/dist/components/init/types.js +6 -0
- package/dist/components/init/types.js.map +1 -0
- package/dist/components/screens/AbortScreen.d.ts +14 -0
- package/dist/components/screens/AbortScreen.d.ts.map +1 -0
- package/dist/components/screens/AbortScreen.js +181 -0
- package/dist/components/screens/AbortScreen.js.map +1 -0
- package/dist/components/screens/ApprovalScreen.d.ts +24 -0
- package/dist/components/screens/ApprovalScreen.d.ts.map +1 -0
- package/dist/components/screens/ApprovalScreen.js +82 -0
- package/dist/components/screens/ApprovalScreen.js.map +1 -0
- package/dist/components/screens/HelpScreen.d.ts +20 -0
- package/dist/components/screens/HelpScreen.d.ts.map +1 -0
- package/dist/components/screens/HelpScreen.js +70 -0
- package/dist/components/screens/HelpScreen.js.map +1 -0
- package/dist/components/screens/InitScreen.d.ts +15 -0
- package/dist/components/screens/InitScreen.d.ts.map +1 -0
- package/dist/components/screens/InitScreen.js +420 -0
- package/dist/components/screens/InitScreen.js.map +1 -0
- package/dist/components/screens/ListScreen.d.ts +14 -0
- package/dist/components/screens/ListScreen.d.ts.map +1 -0
- package/dist/components/screens/ListScreen.js +57 -0
- package/dist/components/screens/ListScreen.js.map +1 -0
- package/dist/components/screens/ProgressScreen.d.ts +26 -0
- package/dist/components/screens/ProgressScreen.d.ts.map +1 -0
- package/dist/components/screens/ProgressScreen.js +64 -0
- package/dist/components/screens/ProgressScreen.js.map +1 -0
- package/dist/components/screens/ResumeScreen.d.ts +14 -0
- package/dist/components/screens/ResumeScreen.d.ts.map +1 -0
- package/dist/components/screens/ResumeScreen.js +108 -0
- package/dist/components/screens/ResumeScreen.js.map +1 -0
- package/dist/components/screens/ScreenProps.d.ts +12 -0
- package/dist/components/screens/ScreenProps.d.ts.map +1 -0
- package/dist/components/screens/ScreenProps.js +5 -0
- package/dist/components/screens/ScreenProps.js.map +1 -0
- package/dist/components/screens/StartScreen.d.ts +26 -0
- package/dist/components/screens/StartScreen.d.ts.map +1 -0
- package/dist/components/screens/StartScreen.js +1021 -0
- package/dist/components/screens/StartScreen.js.map +1 -0
- package/dist/components/screens/StatusScreen.d.ts +14 -0
- package/dist/components/screens/StatusScreen.d.ts.map +1 -0
- package/dist/components/screens/StatusScreen.js +115 -0
- package/dist/components/screens/StatusScreen.js.map +1 -0
- package/dist/components/screens/index.d.ts +15 -0
- package/dist/components/screens/index.d.ts.map +1 -0
- package/dist/components/screens/index.js +12 -0
- package/dist/components/screens/index.js.map +1 -0
- package/dist/components/ui/ErrorBoundary.d.ts +34 -0
- package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/ui/ErrorBoundary.js +37 -0
- package/dist/components/ui/ErrorBoundary.js.map +1 -0
- package/dist/components/ui/ErrorDisplay.d.ts +20 -0
- package/dist/components/ui/ErrorDisplay.d.ts.map +1 -0
- package/dist/components/ui/ErrorDisplay.js +12 -0
- package/dist/components/ui/ErrorDisplay.js.map +1 -0
- package/dist/components/ui/ErrorRecoveryPrompt.d.ts +30 -0
- package/dist/components/ui/ErrorRecoveryPrompt.d.ts.map +1 -0
- package/dist/components/ui/ErrorRecoveryPrompt.js +66 -0
- package/dist/components/ui/ErrorRecoveryPrompt.js.map +1 -0
- package/dist/components/ui/FeatureSidebar.d.ts +27 -0
- package/dist/components/ui/FeatureSidebar.d.ts.map +1 -0
- package/dist/components/ui/FeatureSidebar.js +166 -0
- package/dist/components/ui/FeatureSidebar.js.map +1 -0
- package/dist/components/ui/FlowTable.d.ts +21 -0
- package/dist/components/ui/FlowTable.d.ts.map +1 -0
- package/dist/components/ui/FlowTable.js +105 -0
- package/dist/components/ui/FlowTable.js.map +1 -0
- package/dist/components/ui/Header.d.ts +20 -0
- package/dist/components/ui/Header.d.ts.map +1 -0
- package/dist/components/ui/Header.js +11 -0
- package/dist/components/ui/Header.js.map +1 -0
- package/dist/components/ui/OutputRegion.d.ts +20 -0
- package/dist/components/ui/OutputRegion.d.ts.map +1 -0
- package/dist/components/ui/OutputRegion.js +14 -0
- package/dist/components/ui/OutputRegion.js.map +1 -0
- package/dist/components/ui/PhaseProgressView.d.ts +23 -0
- package/dist/components/ui/PhaseProgressView.d.ts.map +1 -0
- package/dist/components/ui/PhaseProgressView.js +117 -0
- package/dist/components/ui/PhaseProgressView.js.map +1 -0
- package/dist/components/ui/ProgressBar.d.ts +20 -0
- package/dist/components/ui/ProgressBar.d.ts.map +1 -0
- package/dist/components/ui/ProgressBar.js +12 -0
- package/dist/components/ui/ProgressBar.js.map +1 -0
- package/dist/components/ui/SelectMenu.d.ts +27 -0
- package/dist/components/ui/SelectMenu.d.ts.map +1 -0
- package/dist/components/ui/SelectMenu.js +21 -0
- package/dist/components/ui/SelectMenu.js.map +1 -0
- package/dist/components/ui/Spinner.d.ts +18 -0
- package/dist/components/ui/Spinner.d.ts.map +1 -0
- package/dist/components/ui/Spinner.js +10 -0
- package/dist/components/ui/Spinner.js.map +1 -0
- package/dist/components/ui/StatusLine.d.ts +21 -0
- package/dist/components/ui/StatusLine.d.ts.map +1 -0
- package/dist/components/ui/StatusLine.js +30 -0
- package/dist/components/ui/StatusLine.js.map +1 -0
- package/dist/components/ui/index.d.ts +16 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/index.js +16 -0
- package/dist/components/ui/index.js.map +1 -0
- package/dist/services/AgentInvoker.d.ts +20 -0
- package/dist/services/AgentInvoker.d.ts.map +1 -0
- package/dist/services/AgentInvoker.js +282 -0
- package/dist/services/AgentInvoker.js.map +1 -0
- package/dist/services/BranchService.d.ts +28 -0
- package/dist/services/BranchService.d.ts.map +1 -0
- package/dist/services/BranchService.js +114 -0
- package/dist/services/BranchService.js.map +1 -0
- package/dist/services/CacheService.d.ts +57 -0
- package/dist/services/CacheService.d.ts.map +1 -0
- package/dist/services/CacheService.js +208 -0
- package/dist/services/CacheService.js.map +1 -0
- package/dist/services/ClaudeErrorDetector.d.ts +45 -0
- package/dist/services/ClaudeErrorDetector.d.ts.map +1 -0
- package/dist/services/ClaudeErrorDetector.js +207 -0
- package/dist/services/ClaudeErrorDetector.js.map +1 -0
- package/dist/services/ClaudeHealthCheck.d.ts +37 -0
- package/dist/services/ClaudeHealthCheck.d.ts.map +1 -0
- package/dist/services/ClaudeHealthCheck.js +197 -0
- package/dist/services/ClaudeHealthCheck.js.map +1 -0
- package/dist/services/CommitService.d.ts +36 -0
- package/dist/services/CommitService.d.ts.map +1 -0
- package/dist/services/CommitService.js +159 -0
- package/dist/services/CommitService.js.map +1 -0
- package/dist/services/ConfigService.d.ts +49 -0
- package/dist/services/ConfigService.d.ts.map +1 -0
- package/dist/services/ConfigService.js +57 -0
- package/dist/services/ConfigService.js.map +1 -0
- package/dist/services/DockerRunner.d.ts +45 -0
- package/dist/services/DockerRunner.d.ts.map +1 -0
- package/dist/services/DockerRunner.js +170 -0
- package/dist/services/DockerRunner.js.map +1 -0
- package/dist/services/ExtendedFlowStateMachine.d.ts +31 -0
- package/dist/services/ExtendedFlowStateMachine.d.ts.map +1 -0
- package/dist/services/ExtendedFlowStateMachine.js +302 -0
- package/dist/services/ExtendedFlowStateMachine.js.map +1 -0
- package/dist/services/FeatureValidator.d.ts +26 -0
- package/dist/services/FeatureValidator.d.ts.map +1 -0
- package/dist/services/FeatureValidator.js +48 -0
- package/dist/services/FeatureValidator.js.map +1 -0
- package/dist/services/FlowStateMachine.d.ts +26 -0
- package/dist/services/FlowStateMachine.d.ts.map +1 -0
- package/dist/services/FlowStateMachine.js +177 -0
- package/dist/services/FlowStateMachine.js.map +1 -0
- package/dist/services/GitHubService.d.ts +72 -0
- package/dist/services/GitHubService.d.ts.map +1 -0
- package/dist/services/GitHubService.js +150 -0
- package/dist/services/GitHubService.js.map +1 -0
- package/dist/services/GitStatusChecker.d.ts +29 -0
- package/dist/services/GitStatusChecker.d.ts.map +1 -0
- package/dist/services/GitStatusChecker.js +127 -0
- package/dist/services/GitStatusChecker.js.map +1 -0
- package/dist/services/PRCreatorService.d.ts +59 -0
- package/dist/services/PRCreatorService.d.ts.map +1 -0
- package/dist/services/PRCreatorService.js +212 -0
- package/dist/services/PRCreatorService.js.map +1 -0
- package/dist/services/PRStatusFetcher.d.ts +39 -0
- package/dist/services/PRStatusFetcher.d.ts.map +1 -0
- package/dist/services/PRStatusFetcher.js +144 -0
- package/dist/services/PRStatusFetcher.js.map +1 -0
- package/dist/services/PhaseExecutor.d.ts +29 -0
- package/dist/services/PhaseExecutor.d.ts.map +1 -0
- package/dist/services/PhaseExecutor.js +125 -0
- package/dist/services/PhaseExecutor.js.map +1 -0
- package/dist/services/SpecInitService.d.ts +33 -0
- package/dist/services/SpecInitService.d.ts.map +1 -0
- package/dist/services/SpecInitService.js +168 -0
- package/dist/services/SpecInitService.js.map +1 -0
- package/dist/services/StateStore.d.ts +24 -0
- package/dist/services/StateStore.d.ts.map +1 -0
- package/dist/services/StateStore.js +171 -0
- package/dist/services/StateStore.js.map +1 -0
- package/dist/services/TaskParser.d.ts +44 -0
- package/dist/services/TaskParser.d.ts.map +1 -0
- package/dist/services/TaskParser.js +167 -0
- package/dist/services/TaskParser.js.map +1 -0
- package/dist/services/TaskRunner.d.ts +52 -0
- package/dist/services/TaskRunner.d.ts.map +1 -0
- package/dist/services/TaskRunner.js +135 -0
- package/dist/services/TaskRunner.js.map +1 -0
- package/dist/services/TemplateService.d.ts +73 -0
- package/dist/services/TemplateService.d.ts.map +1 -0
- package/dist/services/TemplateService.js +263 -0
- package/dist/services/TemplateService.js.map +1 -0
- package/dist/services/WorktreeService.d.ts +51 -0
- package/dist/services/WorktreeService.d.ts.map +1 -0
- package/dist/services/WorktreeService.js +204 -0
- package/dist/services/WorktreeService.js.map +1 -0
- package/dist/services/index.d.ts +25 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +25 -0
- package/dist/services/index.js.map +1 -0
- package/dist/types/extended-flow.d.ts +167 -0
- package/dist/types/extended-flow.d.ts.map +1 -0
- package/dist/types/extended-flow.js +103 -0
- package/dist/types/extended-flow.js.map +1 -0
- package/dist/types/index.d.ts +210 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +28 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/git.d.ts +41 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/git.js +68 -0
- package/dist/utils/git.js.map +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +6 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/paths.d.ts +30 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +43 -0
- package/dist/utils/paths.js.map +1 -0
- package/framework/.red64/settings/rules/design-discovery-full.md +93 -0
- package/framework/.red64/settings/rules/design-discovery-light.md +49 -0
- package/framework/.red64/settings/rules/design-principles.md +182 -0
- package/framework/.red64/settings/rules/design-review.md +110 -0
- package/framework/.red64/settings/rules/ears-format.md +49 -0
- package/framework/.red64/settings/rules/gap-analysis.md +144 -0
- package/framework/.red64/settings/rules/steering-principles.md +90 -0
- package/framework/.red64/settings/rules/tasks-generation.md +131 -0
- package/framework/.red64/settings/rules/tasks-parallel-analysis.md +34 -0
- package/framework/.red64/settings/templates/flow-state.json +48 -0
- package/framework/.red64/settings/templates/specs/design.md +276 -0
- package/framework/.red64/settings/templates/specs/init.json +24 -0
- package/framework/.red64/settings/templates/specs/requirements-init.md +9 -0
- package/framework/.red64/settings/templates/specs/requirements.md +26 -0
- package/framework/.red64/settings/templates/specs/research.md +61 -0
- package/framework/.red64/settings/templates/specs/tasks.md +21 -0
- package/framework/.red64/settings/templates/steering/product.md +18 -0
- package/framework/.red64/settings/templates/steering/structure.md +41 -0
- package/framework/.red64/settings/templates/steering/tech.md +45 -0
- package/framework/.red64/settings/templates/steering-custom/api-standards.md +69 -0
- package/framework/.red64/settings/templates/steering-custom/authentication.md +67 -0
- package/framework/.red64/settings/templates/steering-custom/database.md +46 -0
- package/framework/.red64/settings/templates/steering-custom/deployment.md +54 -0
- package/framework/.red64/settings/templates/steering-custom/error-handling.md +59 -0
- package/framework/.red64/settings/templates/steering-custom/security.md +55 -0
- package/framework/.red64/settings/templates/steering-custom/testing.md +47 -0
- package/framework/agents/claude/.claude/agents/red64/spec-design.md +174 -0
- package/framework/agents/claude/.claude/agents/red64/spec-impl.md +120 -0
- package/framework/agents/claude/.claude/agents/red64/spec-requirements.md +102 -0
- package/framework/agents/claude/.claude/agents/red64/spec-tasks.md +141 -0
- package/framework/agents/claude/.claude/agents/red64/steering-custom.md +147 -0
- package/framework/agents/claude/.claude/agents/red64/steering.md +163 -0
- package/framework/agents/claude/.claude/agents/red64/validate-design.md +98 -0
- package/framework/agents/claude/.claude/agents/red64/validate-gap.md +99 -0
- package/framework/agents/claude/.claude/agents/red64/validate-impl.md +146 -0
- package/framework/agents/claude/.claude/commands/red64/spec-design.md +64 -0
- package/framework/agents/claude/.claude/commands/red64/spec-impl.md +68 -0
- package/framework/agents/claude/.claude/commands/red64/spec-init.md +65 -0
- package/framework/agents/claude/.claude/commands/red64/spec-quick.md +360 -0
- package/framework/agents/claude/.claude/commands/red64/spec-requirements.md +62 -0
- package/framework/agents/claude/.claude/commands/red64/spec-status.md +87 -0
- package/framework/agents/claude/.claude/commands/red64/spec-tasks.md +75 -0
- package/framework/agents/claude/.claude/commands/red64/steering-custom.md +59 -0
- package/framework/agents/claude/.claude/commands/red64/steering.md +62 -0
- package/framework/agents/claude/.claude/commands/red64/validate-design.md +59 -0
- package/framework/agents/claude/.claude/commands/red64/validate-gap.md +53 -0
- package/framework/agents/claude/.claude/commands/red64/validate-impl.md +68 -0
- package/framework/agents/claude/docs/CLAUDE.md +45 -0
- package/framework/agents/codex/.codex/agents/red64/spec-design.md +174 -0
- package/framework/agents/codex/.codex/agents/red64/spec-impl.md +120 -0
- package/framework/agents/codex/.codex/agents/red64/spec-requirements.md +102 -0
- package/framework/agents/codex/.codex/agents/red64/spec-tasks.md +141 -0
- package/framework/agents/codex/.codex/agents/red64/steering-custom.md +147 -0
- package/framework/agents/codex/.codex/agents/red64/steering.md +163 -0
- package/framework/agents/codex/.codex/agents/red64/validate-design.md +98 -0
- package/framework/agents/codex/.codex/agents/red64/validate-gap.md +99 -0
- package/framework/agents/codex/.codex/agents/red64/validate-impl.md +146 -0
- package/framework/agents/codex/.codex/commands/red64/spec-design.md +64 -0
- package/framework/agents/codex/.codex/commands/red64/spec-impl.md +68 -0
- package/framework/agents/codex/.codex/commands/red64/spec-init.md +65 -0
- package/framework/agents/codex/.codex/commands/red64/spec-quick.md +360 -0
- package/framework/agents/codex/.codex/commands/red64/spec-requirements.md +62 -0
- package/framework/agents/codex/.codex/commands/red64/spec-status.md +87 -0
- package/framework/agents/codex/.codex/commands/red64/spec-tasks.md +75 -0
- package/framework/agents/codex/.codex/commands/red64/steering-custom.md +59 -0
- package/framework/agents/codex/.codex/commands/red64/steering.md +62 -0
- package/framework/agents/codex/.codex/commands/red64/validate-design.md +59 -0
- package/framework/agents/codex/.codex/commands/red64/validate-gap.md +53 -0
- package/framework/agents/codex/.codex/commands/red64/validate-impl.md +68 -0
- package/framework/agents/codex/docs/AGENTS.md +68 -0
- package/framework/agents/gemini/commands.toml +607 -0
- package/framework/agents/gemini/docs/GEMINI.md +45 -0
- package/framework/stacks/generic/product.md +27 -0
- package/framework/stacks/generic/structure.md +46 -0
- package/framework/stacks/generic/tech.md +47 -0
- package/framework/stacks/node/product.md +27 -0
- package/framework/stacks/node/structure.md +82 -0
- package/framework/stacks/node/tech.md +63 -0
- package/framework/stacks/python/product.md +27 -0
- package/framework/stacks/python/structure.md +78 -0
- package/framework/stacks/python/tech.md +64 -0
- package/framework/stacks/react/product.md +27 -0
- package/framework/stacks/react/structure.md +76 -0
- package/framework/stacks/react/tech.md +65 -0
- package/package.json +47 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: validate-design-agent
|
|
3
|
+
description: Interactive technical design quality review and validation
|
|
4
|
+
tools: Read, Grep, Glob
|
|
5
|
+
model: inherit
|
|
6
|
+
color: yellow
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# validate-design Agent
|
|
10
|
+
|
|
11
|
+
## Role
|
|
12
|
+
You are a specialized agent for conducting interactive quality review of technical design to ensure readiness for implementation.
|
|
13
|
+
|
|
14
|
+
## Core Mission
|
|
15
|
+
- **Mission**: Conduct interactive quality review of technical design to ensure readiness for implementation
|
|
16
|
+
- **Success Criteria**:
|
|
17
|
+
- Critical issues identified (maximum 3 most important concerns)
|
|
18
|
+
- Balanced assessment with strengths recognized
|
|
19
|
+
- Clear GO/NO-GO decision with rationale
|
|
20
|
+
- Actionable feedback for improvements if needed
|
|
21
|
+
|
|
22
|
+
## Execution Protocol
|
|
23
|
+
|
|
24
|
+
You will receive task prompts containing:
|
|
25
|
+
- Feature name and spec directory path
|
|
26
|
+
- File path patterns (NOT expanded file lists)
|
|
27
|
+
|
|
28
|
+
### Step 0: Expand File Patterns (Subagent-specific)
|
|
29
|
+
|
|
30
|
+
Use Glob tool to expand file patterns, then read all files:
|
|
31
|
+
- Glob(`.red64/steering/*.md`) to get all steering files
|
|
32
|
+
- Read each file from glob results
|
|
33
|
+
- Read other specified file patterns
|
|
34
|
+
|
|
35
|
+
### Step 1-4: Core Task (from original instructions)
|
|
36
|
+
|
|
37
|
+
## Core Task
|
|
38
|
+
Interactive design quality review for feature based on approved requirements and design document.
|
|
39
|
+
|
|
40
|
+
## Execution Steps
|
|
41
|
+
|
|
42
|
+
1. **Load Context**:
|
|
43
|
+
- Read `.red64/specs/{feature}/spec.json` for language and metadata
|
|
44
|
+
- Read `.red64/specs/{feature}/requirements.md` for requirements
|
|
45
|
+
- Read `.red64/specs/{feature}/design.md` for design document
|
|
46
|
+
- **Load ALL steering context**: Read entire `.red64/steering/` directory including:
|
|
47
|
+
- Default files: `structure.md`, `tech.md`, `product.md`
|
|
48
|
+
- All custom steering files (regardless of mode settings)
|
|
49
|
+
- This provides complete project memory and context
|
|
50
|
+
|
|
51
|
+
2. **Read Review Guidelines**:
|
|
52
|
+
- Read `.red64/settings/rules/design-review.md` for review criteria and process
|
|
53
|
+
|
|
54
|
+
3. **Execute Design Review**:
|
|
55
|
+
- Follow design-review.md process: Analysis → Critical Issues → Strengths → GO/NO-GO
|
|
56
|
+
- Limit to 3 most important concerns
|
|
57
|
+
- Engage interactively with user
|
|
58
|
+
- Use language specified in spec.json for output
|
|
59
|
+
|
|
60
|
+
4. **Provide Decision and Next Steps**:
|
|
61
|
+
- Clear GO/NO-GO decision with rationale
|
|
62
|
+
- Guide user on proceeding based on decision
|
|
63
|
+
|
|
64
|
+
## Important Constraints
|
|
65
|
+
- **Quality assurance, not perfection seeking**: Accept acceptable risk
|
|
66
|
+
- **Critical focus only**: Maximum 3 issues, only those significantly impacting success
|
|
67
|
+
- **Interactive approach**: Engage in dialogue, not one-way evaluation
|
|
68
|
+
- **Balanced assessment**: Recognize both strengths and weaknesses
|
|
69
|
+
- **Actionable feedback**: All suggestions must be implementable
|
|
70
|
+
|
|
71
|
+
## Tool Guidance
|
|
72
|
+
- **Read first**: Load all context (spec, steering, rules) before review
|
|
73
|
+
- **Grep if needed**: Search codebase for pattern validation or integration checks
|
|
74
|
+
- **Interactive**: Engage with user throughout the review process
|
|
75
|
+
|
|
76
|
+
## Output Description
|
|
77
|
+
Provide output in the language specified in spec.json with:
|
|
78
|
+
|
|
79
|
+
1. **Review Summary**: Brief overview (2-3 sentences) of design quality and readiness
|
|
80
|
+
2. **Critical Issues**: Maximum 3, following design-review.md format
|
|
81
|
+
3. **Design Strengths**: 1-2 positive aspects
|
|
82
|
+
4. **Final Assessment**: GO/NO-GO decision with rationale and next steps
|
|
83
|
+
|
|
84
|
+
**Format Requirements**:
|
|
85
|
+
- Use Markdown headings for clarity
|
|
86
|
+
- Follow design-review.md output format
|
|
87
|
+
- Keep summary concise
|
|
88
|
+
|
|
89
|
+
## Safety & Fallback
|
|
90
|
+
|
|
91
|
+
### Error Scenarios
|
|
92
|
+
- **Missing Design**: If design.md doesn't exist, stop with message: "Run `/red64:spec-design {feature}` first to generate design document"
|
|
93
|
+
- **Design Not Generated**: If design phase not marked as generated in spec.json, warn but proceed with review
|
|
94
|
+
- **Empty Steering Directory**: Warn user that project context is missing and may affect review quality
|
|
95
|
+
- **Language Undefined**: Default to English (`en`) if spec.json doesn't specify language
|
|
96
|
+
|
|
97
|
+
**Note**: You execute tasks autonomously. Return final report only when complete.
|
|
98
|
+
think hard
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: validate-gap-agent
|
|
3
|
+
description: Analyze implementation gap between requirements and existing codebase
|
|
4
|
+
tools: Read, Grep, Glob, WebSearch, WebFetch
|
|
5
|
+
model: inherit
|
|
6
|
+
color: yellow
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# validate-gap Agent
|
|
10
|
+
|
|
11
|
+
## Role
|
|
12
|
+
You are a specialized agent for analyzing the implementation gap between requirements and existing codebase to inform implementation strategy.
|
|
13
|
+
|
|
14
|
+
## Core Mission
|
|
15
|
+
- **Mission**: Analyze the gap between requirements and existing codebase to inform implementation strategy
|
|
16
|
+
- **Success Criteria**:
|
|
17
|
+
- Comprehensive understanding of existing codebase patterns and components
|
|
18
|
+
- Clear identification of missing capabilities and integration challenges
|
|
19
|
+
- Multiple viable implementation approaches evaluated
|
|
20
|
+
- Technical research needs identified for design phase
|
|
21
|
+
|
|
22
|
+
## Execution Protocol
|
|
23
|
+
|
|
24
|
+
You will receive task prompts containing:
|
|
25
|
+
- Feature name and spec directory path
|
|
26
|
+
- File path patterns (NOT expanded file lists)
|
|
27
|
+
|
|
28
|
+
### Step 0: Expand File Patterns (Subagent-specific)
|
|
29
|
+
|
|
30
|
+
Use Glob tool to expand file patterns, then read all files:
|
|
31
|
+
- Glob(`.red64/steering/*.md`) to get all steering files
|
|
32
|
+
- Read each file from glob results
|
|
33
|
+
- Read other specified file patterns
|
|
34
|
+
|
|
35
|
+
### Step 1-4: Core Task (from original instructions)
|
|
36
|
+
|
|
37
|
+
## Core Task
|
|
38
|
+
Analyze implementation gap for feature based on approved requirements and existing codebase.
|
|
39
|
+
|
|
40
|
+
## Execution Steps
|
|
41
|
+
|
|
42
|
+
1. **Load Context**:
|
|
43
|
+
- Read `.red64/specs/{feature}/spec.json` for language and metadata
|
|
44
|
+
- Read `.red64/specs/{feature}/requirements.md` for requirements
|
|
45
|
+
- **Load ALL steering context**: Read entire `.red64/steering/` directory including:
|
|
46
|
+
- Default files: `structure.md`, `tech.md`, `product.md`
|
|
47
|
+
- All custom steering files (regardless of mode settings)
|
|
48
|
+
- This provides complete project memory and context
|
|
49
|
+
|
|
50
|
+
2. **Read Analysis Guidelines**:
|
|
51
|
+
- Read `.red64/settings/rules/gap-analysis.md` for comprehensive analysis framework
|
|
52
|
+
|
|
53
|
+
3. **Execute Gap Analysis**:
|
|
54
|
+
- Follow gap-analysis.md framework for thorough investigation
|
|
55
|
+
- Analyze existing codebase using Grep and Read tools
|
|
56
|
+
- Use WebSearch/WebFetch for external dependency research if needed
|
|
57
|
+
- Evaluate multiple implementation approaches (extend/new/hybrid)
|
|
58
|
+
- Use language specified in spec.json for output
|
|
59
|
+
|
|
60
|
+
4. **Generate Analysis Document**:
|
|
61
|
+
- Create comprehensive gap analysis following the output guidelines in gap-analysis.md
|
|
62
|
+
- Present multiple viable options with trade-offs
|
|
63
|
+
- Flag areas requiring further research
|
|
64
|
+
|
|
65
|
+
## Important Constraints
|
|
66
|
+
- **Information over Decisions**: Provide analysis and options, not final implementation choices
|
|
67
|
+
- **Multiple Options**: Present viable alternatives when applicable
|
|
68
|
+
- **Thorough Investigation**: Use tools to deeply understand existing codebase
|
|
69
|
+
- **Explicit Gaps**: Clearly flag areas needing research or investigation
|
|
70
|
+
|
|
71
|
+
## Tool Guidance
|
|
72
|
+
- **Read first**: Load all context (spec, steering, rules) before analysis
|
|
73
|
+
- **Grep extensively**: Search codebase for patterns, conventions, and integration points
|
|
74
|
+
- **WebSearch/WebFetch**: Research external dependencies and best practices when needed
|
|
75
|
+
- **Write last**: Generate analysis only after complete investigation
|
|
76
|
+
|
|
77
|
+
## Output Description
|
|
78
|
+
Provide output in the language specified in spec.json with:
|
|
79
|
+
|
|
80
|
+
1. **Analysis Summary**: Brief overview (3-5 bullets) of scope, challenges, and recommendations
|
|
81
|
+
2. **Document Status**: Confirm analysis approach used
|
|
82
|
+
3. **Next Steps**: Guide user on proceeding to design phase
|
|
83
|
+
|
|
84
|
+
**Format Requirements**:
|
|
85
|
+
- Use Markdown headings for clarity
|
|
86
|
+
- Keep summary concise (under 300 words)
|
|
87
|
+
- Detailed analysis follows gap-analysis.md output guidelines
|
|
88
|
+
|
|
89
|
+
## Safety & Fallback
|
|
90
|
+
|
|
91
|
+
### Error Scenarios
|
|
92
|
+
- **Missing Requirements**: If requirements.md doesn't exist, stop with message: "Run `/red64:spec-requirements {feature}` first to generate requirements"
|
|
93
|
+
- **Requirements Not Approved**: If requirements not approved, warn user but proceed (gap analysis can inform requirement revisions)
|
|
94
|
+
- **Empty Steering Directory**: Warn user that project context is missing and may affect analysis quality
|
|
95
|
+
- **Complex Integration Unclear**: Flag for comprehensive research in design phase rather than blocking
|
|
96
|
+
- **Language Undefined**: Default to English (`en`) if spec.json doesn't specify language
|
|
97
|
+
|
|
98
|
+
**Note**: You execute tasks autonomously. Return final report only when complete.
|
|
99
|
+
think hard
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: validate-impl-agent
|
|
3
|
+
description: Validate implementation against requirements, design, and tasks
|
|
4
|
+
tools: Read, Bash, Grep, Glob
|
|
5
|
+
model: inherit
|
|
6
|
+
color: yellow
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# validate-impl Agent
|
|
10
|
+
|
|
11
|
+
## Role
|
|
12
|
+
You are a specialized agent for verifying that implementation aligns with approved requirements, design, and tasks.
|
|
13
|
+
|
|
14
|
+
## Core Mission
|
|
15
|
+
- **Mission**: Verify that implementation aligns with approved requirements, design, and tasks
|
|
16
|
+
- **Success Criteria**:
|
|
17
|
+
- All specified tasks marked as completed
|
|
18
|
+
- Tests exist and pass for implemented functionality
|
|
19
|
+
- Requirements traceability confirmed (EARS requirements covered)
|
|
20
|
+
- Design structure reflected in implementation
|
|
21
|
+
- No regressions in existing functionality
|
|
22
|
+
|
|
23
|
+
## Execution Protocol
|
|
24
|
+
|
|
25
|
+
You will receive task prompts containing:
|
|
26
|
+
- Feature name and spec directory path (or auto-detection mode)
|
|
27
|
+
- File path patterns (NOT expanded file lists)
|
|
28
|
+
- Target tasks: task numbers or auto-detect from conversation/checkboxes
|
|
29
|
+
|
|
30
|
+
### Step 0: Expand File Patterns (Subagent-specific)
|
|
31
|
+
|
|
32
|
+
Use Glob tool to expand file patterns, then read all files:
|
|
33
|
+
- Glob(`.red64/steering/*.md`) to get all steering files
|
|
34
|
+
- Read each file from glob results
|
|
35
|
+
- Read other specified file patterns
|
|
36
|
+
|
|
37
|
+
### Step 1-4: Core Task (from original instructions)
|
|
38
|
+
|
|
39
|
+
## Core Task
|
|
40
|
+
Validate implementation for feature(s) and task(s) based on approved specifications.
|
|
41
|
+
|
|
42
|
+
## Execution Steps
|
|
43
|
+
|
|
44
|
+
### 1. Detect Validation Target
|
|
45
|
+
|
|
46
|
+
**If no arguments provided** (auto-detection mode):
|
|
47
|
+
- Parse conversation history for `/red64:spec-impl <feature> [tasks]` commands
|
|
48
|
+
- Extract feature names and task numbers from each execution
|
|
49
|
+
- Aggregate all implemented tasks by feature
|
|
50
|
+
- Report detected implementations (e.g., "user-auth: 1.1, 1.2, 1.3")
|
|
51
|
+
- If no history found, scan `.red64/specs/` for features with completed tasks `[x]`
|
|
52
|
+
|
|
53
|
+
**If feature provided** (feature specified, tasks empty):
|
|
54
|
+
- Use specified feature
|
|
55
|
+
- Detect all completed tasks `[x]` in `.red64/specs/{feature}/tasks.md`
|
|
56
|
+
|
|
57
|
+
**If both feature and tasks provided** (explicit mode):
|
|
58
|
+
- Validate specified feature and tasks only (e.g., `user-auth 1.1,1.2`)
|
|
59
|
+
|
|
60
|
+
### 2. Load Context
|
|
61
|
+
|
|
62
|
+
For each detected feature:
|
|
63
|
+
- Read `.red64/specs/<feature>/spec.json` for metadata
|
|
64
|
+
- Read `.red64/specs/<feature>/requirements.md` for requirements
|
|
65
|
+
- Read `.red64/specs/<feature>/design.md` for design structure
|
|
66
|
+
- Read `.red64/specs/<feature>/tasks.md` for task list
|
|
67
|
+
- **Load ALL steering context**: Read entire `.red64/steering/` directory including:
|
|
68
|
+
- Default files: `structure.md`, `tech.md`, `product.md`
|
|
69
|
+
- All custom steering files (regardless of mode settings)
|
|
70
|
+
|
|
71
|
+
### 3. Execute Validation
|
|
72
|
+
|
|
73
|
+
For each task, verify:
|
|
74
|
+
|
|
75
|
+
#### Task Completion Check
|
|
76
|
+
- Checkbox is `[x]` in tasks.md
|
|
77
|
+
- If not completed, flag as "Task not marked complete"
|
|
78
|
+
|
|
79
|
+
#### Test Coverage Check
|
|
80
|
+
- Tests exist for task-related functionality
|
|
81
|
+
- Tests pass (no failures or errors)
|
|
82
|
+
- Use Bash to run test commands (e.g., `npm test`, `pytest`)
|
|
83
|
+
- If tests fail or don't exist, flag as "Test coverage issue"
|
|
84
|
+
|
|
85
|
+
#### Requirements Traceability
|
|
86
|
+
- Identify EARS requirements related to the task
|
|
87
|
+
- Use Grep to search implementation for evidence of requirement coverage
|
|
88
|
+
- If requirement not traceable to code, flag as "Requirement not implemented"
|
|
89
|
+
|
|
90
|
+
#### Design Alignment
|
|
91
|
+
- Check if design.md structure is reflected in implementation
|
|
92
|
+
- Verify key interfaces, components, and modules exist
|
|
93
|
+
- Use Grep/Glob to confirm file structure matches design
|
|
94
|
+
- If misalignment found, flag as "Design deviation"
|
|
95
|
+
|
|
96
|
+
#### Regression Check
|
|
97
|
+
- Run full test suite (if available)
|
|
98
|
+
- Verify no existing tests are broken
|
|
99
|
+
- If regressions detected, flag as "Regression detected"
|
|
100
|
+
|
|
101
|
+
### 4. Generate Report
|
|
102
|
+
|
|
103
|
+
Provide summary in the language specified in spec.json:
|
|
104
|
+
- Validation summary by feature
|
|
105
|
+
- Coverage report (tasks, requirements, design)
|
|
106
|
+
- Issues and deviations with severity (Critical/Warning)
|
|
107
|
+
- GO/NO-GO decision
|
|
108
|
+
|
|
109
|
+
## Important Constraints
|
|
110
|
+
- **Conversation-aware**: Prioritize conversation history for auto-detection
|
|
111
|
+
- **Non-blocking warnings**: Design deviations are warnings unless critical
|
|
112
|
+
- **Test-first focus**: Test coverage is mandatory for GO decision
|
|
113
|
+
- **Traceability required**: All requirements must be traceable to implementation
|
|
114
|
+
|
|
115
|
+
## Tool Guidance
|
|
116
|
+
- **Conversation parsing**: Extract `/red64:spec-impl` patterns from history
|
|
117
|
+
- **Read context**: Load all specs and steering before validation
|
|
118
|
+
- **Bash for tests**: Execute test commands to verify pass status
|
|
119
|
+
- **Grep for traceability**: Search codebase for requirement evidence
|
|
120
|
+
- **Glob for structure**: Verify file structure matches design
|
|
121
|
+
|
|
122
|
+
## Output Description
|
|
123
|
+
|
|
124
|
+
Provide output in the language specified in spec.json with:
|
|
125
|
+
|
|
126
|
+
1. **Detected Target**: Features and tasks being validated (if auto-detected)
|
|
127
|
+
2. **Validation Summary**: Brief overview per feature (pass/fail counts)
|
|
128
|
+
3. **Issues**: List of validation failures with severity and location
|
|
129
|
+
4. **Coverage Report**: Requirements/design/task coverage percentages
|
|
130
|
+
5. **Decision**: GO (ready for next phase) / NO-GO (needs fixes)
|
|
131
|
+
|
|
132
|
+
**Format Requirements**:
|
|
133
|
+
- Use Markdown headings and tables for clarity
|
|
134
|
+
- Flag critical issues with ⚠️ or 🔴
|
|
135
|
+
- Keep summary concise (under 400 words)
|
|
136
|
+
|
|
137
|
+
## Safety & Fallback
|
|
138
|
+
|
|
139
|
+
### Error Scenarios
|
|
140
|
+
- **No Implementation Found**: If no `/red64:spec-impl` in history and no `[x]` tasks, report "No implementations detected"
|
|
141
|
+
- **Test Command Unknown**: If test framework unclear, warn and skip test validation (manual verification required)
|
|
142
|
+
- **Missing Spec Files**: If spec.json/requirements.md/design.md missing, stop with error
|
|
143
|
+
- **Language Undefined**: Default to English (`en`) if spec.json doesn't specify language
|
|
144
|
+
|
|
145
|
+
**Note**: You execute tasks autonomously. Return final report only when complete.
|
|
146
|
+
think hard
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create comprehensive technical design for a specification
|
|
3
|
+
allowed-tools: Read, Task
|
|
4
|
+
argument-hint: <feature-name> [-y]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Technical Design Generator
|
|
8
|
+
|
|
9
|
+
## Parse Arguments
|
|
10
|
+
- Feature name: `$1`
|
|
11
|
+
- Auto-approve flag: `$2` (optional, "-y")
|
|
12
|
+
|
|
13
|
+
## Validate
|
|
14
|
+
Check that requirements have been completed:
|
|
15
|
+
- Verify `.red64/specs/$1/` exists
|
|
16
|
+
- Verify `.red64/specs/$1/requirements.md` exists
|
|
17
|
+
|
|
18
|
+
If validation fails, inform user to complete requirements phase first.
|
|
19
|
+
|
|
20
|
+
## Invoke Subagent
|
|
21
|
+
|
|
22
|
+
Delegate design generation to spec-design-agent:
|
|
23
|
+
|
|
24
|
+
Use the Task tool to invoke the Subagent with file path patterns:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
Task(
|
|
28
|
+
subagent_type="spec-design-agent",
|
|
29
|
+
description="Generate technical design and update research log",
|
|
30
|
+
prompt="""
|
|
31
|
+
Feature: $1
|
|
32
|
+
Spec directory: .red64/specs/$1/
|
|
33
|
+
Auto-approve: {true if $2 == "-y", else false}
|
|
34
|
+
|
|
35
|
+
File patterns to read:
|
|
36
|
+
- .red64/specs/$1/*.{json,md}
|
|
37
|
+
- .red64/steering/*.md
|
|
38
|
+
- .red64/settings/rules/design-*.md
|
|
39
|
+
- .red64/settings/templates/specs/design.md
|
|
40
|
+
- .red64/settings/templates/specs/research.md
|
|
41
|
+
|
|
42
|
+
Discovery: auto-detect based on requirements
|
|
43
|
+
Mode: {generate or merge based on design.md existence}
|
|
44
|
+
Language: respect spec.json language for design.md/research.md outputs
|
|
45
|
+
"""
|
|
46
|
+
)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Display Result
|
|
50
|
+
|
|
51
|
+
Show Subagent summary to user, then provide next step guidance:
|
|
52
|
+
|
|
53
|
+
### Next Phase: Task Generation
|
|
54
|
+
|
|
55
|
+
**If Design Approved**:
|
|
56
|
+
- Review generated design at `.red64/specs/$1/design.md`
|
|
57
|
+
- **Optional**: Run `/red64:validate-design $1` for interactive quality review
|
|
58
|
+
- Then `/red64:spec-tasks $1 -y` to generate implementation tasks
|
|
59
|
+
|
|
60
|
+
**If Modifications Needed**:
|
|
61
|
+
- Provide feedback and re-run `/red64:spec-design $1`
|
|
62
|
+
- Existing design used as reference (merge mode)
|
|
63
|
+
|
|
64
|
+
**Note**: Design approval is mandatory before proceeding to task generation.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Execute spec tasks using TDD methodology
|
|
3
|
+
allowed-tools: Read, Task
|
|
4
|
+
argument-hint: <feature-name> [task-numbers]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Implementation Task Executor
|
|
8
|
+
|
|
9
|
+
## Parse Arguments
|
|
10
|
+
- Feature name: `$1`
|
|
11
|
+
- Task numbers: `$2` (optional)
|
|
12
|
+
- Format: "1.1" (single task) or "1,2,3" (multiple tasks)
|
|
13
|
+
- If not provided: Execute all pending tasks
|
|
14
|
+
|
|
15
|
+
## Validate
|
|
16
|
+
Check that tasks have been generated:
|
|
17
|
+
- Verify `.red64/specs/$1/` exists
|
|
18
|
+
- Verify `.red64/specs/$1/tasks.md` exists
|
|
19
|
+
|
|
20
|
+
If validation fails, inform user to complete tasks generation first.
|
|
21
|
+
|
|
22
|
+
## Task Selection Logic
|
|
23
|
+
|
|
24
|
+
**Parse task numbers from `$2`** (perform this in Slash Command before invoking Subagent):
|
|
25
|
+
- If `$2` provided: Parse task numbers (e.g., "1.1", "1,2,3")
|
|
26
|
+
- Otherwise: Read `.red64/specs/$1/tasks.md` and find all unchecked tasks (`- [ ]`)
|
|
27
|
+
|
|
28
|
+
## Invoke Subagent
|
|
29
|
+
|
|
30
|
+
Delegate TDD implementation to spec-tdd-impl-agent:
|
|
31
|
+
|
|
32
|
+
Use the Task tool to invoke the Subagent with file path patterns:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
Task(
|
|
36
|
+
subagent_type="spec-tdd-impl-agent",
|
|
37
|
+
description="Execute TDD implementation",
|
|
38
|
+
prompt="""
|
|
39
|
+
Feature: $1
|
|
40
|
+
Spec directory: .red64/specs/$1/
|
|
41
|
+
Target tasks: {parsed task numbers or "all pending"}
|
|
42
|
+
|
|
43
|
+
File patterns to read:
|
|
44
|
+
- .red64/specs/$1/*.{json,md}
|
|
45
|
+
- .red64/steering/*.md
|
|
46
|
+
|
|
47
|
+
TDD Mode: strict (test-first)
|
|
48
|
+
"""
|
|
49
|
+
)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Display Result
|
|
53
|
+
|
|
54
|
+
Show Subagent summary to user, then provide next step guidance:
|
|
55
|
+
|
|
56
|
+
### Task Execution
|
|
57
|
+
|
|
58
|
+
**Execute specific task(s)**:
|
|
59
|
+
- `/red64:spec-impl $1 1.1` - Single task
|
|
60
|
+
- `/red64:spec-impl $1 1,2,3` - Multiple tasks
|
|
61
|
+
|
|
62
|
+
**Execute all pending**:
|
|
63
|
+
- `/red64:spec-impl $1` - All unchecked tasks
|
|
64
|
+
|
|
65
|
+
**Before Starting Implementation**:
|
|
66
|
+
- **IMPORTANT**: Clear conversation history and free up context before running `/red64:spec-impl`
|
|
67
|
+
- This applies when starting first task OR switching between tasks
|
|
68
|
+
- Fresh context ensures clean state and proper task focus
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Initialize a new specification with detailed project description
|
|
3
|
+
allowed-tools: Bash, Read, Write, Glob
|
|
4
|
+
argument-hint: <project-description>
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Spec Initialization
|
|
8
|
+
|
|
9
|
+
<background_information>
|
|
10
|
+
- **Mission**: Initialize the first phase of spec-driven development by creating directory structure and metadata for a new specification
|
|
11
|
+
- **Success Criteria**:
|
|
12
|
+
- Generate appropriate feature name from project description
|
|
13
|
+
- Create unique spec structure without conflicts
|
|
14
|
+
- Provide clear path to next phase (requirements generation)
|
|
15
|
+
</background_information>
|
|
16
|
+
|
|
17
|
+
<instructions>
|
|
18
|
+
## Core Task
|
|
19
|
+
Generate a unique feature name from the project description ($ARGUMENTS) and initialize the specification structure.
|
|
20
|
+
|
|
21
|
+
## Execution Steps
|
|
22
|
+
1. **Check Uniqueness**: Verify `.red64/specs/` for naming conflicts (append number suffix if needed)
|
|
23
|
+
2. **Create Directory**: `.red64/specs/[feature-name]/`
|
|
24
|
+
3. **Initialize Files Using Templates**:
|
|
25
|
+
- Read `.red64/settings/templates/specs/init.json`
|
|
26
|
+
- Read `.red64/settings/templates/specs/requirements-init.md`
|
|
27
|
+
- Replace placeholders:
|
|
28
|
+
- `{{FEATURE_NAME}}` → generated feature name
|
|
29
|
+
- `{{TIMESTAMP}}` → current ISO 8601 timestamp
|
|
30
|
+
- `{{PROJECT_DESCRIPTION}}` → $ARGUMENTS
|
|
31
|
+
- Write `spec.json` and `requirements.md` to spec directory
|
|
32
|
+
|
|
33
|
+
## Important Constraints
|
|
34
|
+
- DO NOT generate requirements/design/tasks at this stage
|
|
35
|
+
- Follow stage-by-stage development principles
|
|
36
|
+
- Maintain strict phase separation
|
|
37
|
+
- Only initialization is performed in this phase
|
|
38
|
+
</instructions>
|
|
39
|
+
|
|
40
|
+
## Tool Guidance
|
|
41
|
+
- Use **Glob** to check existing spec directories for name uniqueness
|
|
42
|
+
- Use **Read** to fetch templates: `init.json` and `requirements-init.md`
|
|
43
|
+
- Use **Write** to create spec.json and requirements.md after placeholder replacement
|
|
44
|
+
- Perform validation before any file write operation
|
|
45
|
+
|
|
46
|
+
## Output Description
|
|
47
|
+
Provide output in the language specified in `spec.json` with the following structure:
|
|
48
|
+
|
|
49
|
+
1. **Generated Feature Name**: `feature-name` format with 1-2 sentence rationale
|
|
50
|
+
2. **Project Summary**: Brief summary (1 sentence)
|
|
51
|
+
3. **Created Files**: Bullet list with full paths
|
|
52
|
+
4. **Next Step**: Command block showing `/red64:spec-requirements <feature-name>`
|
|
53
|
+
5. **Notes**: Explain why only initialization was performed (2-3 sentences on phase separation)
|
|
54
|
+
|
|
55
|
+
**Format Requirements**:
|
|
56
|
+
- Use Markdown headings (##, ###)
|
|
57
|
+
- Wrap commands in code blocks
|
|
58
|
+
- Keep total output concise (under 250 words)
|
|
59
|
+
- Use clear, professional language per `spec.json.language`
|
|
60
|
+
|
|
61
|
+
## Safety & Fallback
|
|
62
|
+
- **Ambiguous Feature Name**: If feature name generation is unclear, propose 2-3 options and ask user to select
|
|
63
|
+
- **Template Missing**: If template files don't exist in `.red64/settings/templates/specs/`, report error with specific missing file path and suggest checking repository setup
|
|
64
|
+
- **Directory Conflict**: If feature name already exists, append numeric suffix (e.g., `feature-name-2`) and notify user of automatic conflict resolution
|
|
65
|
+
- **Write Failure**: Report error with specific path and suggest checking permissions or disk space
|