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,360 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Quick spec generation with interactive or automatic mode
|
|
3
|
+
allowed-tools: Read, SlashCommand, TodoWrite, Bash, Write, Glob
|
|
4
|
+
argument-hint: <project-description> [--auto]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Quick Spec Generator
|
|
8
|
+
|
|
9
|
+
<background_information>
|
|
10
|
+
- **Mission**: Execute all spec phases (init → requirements → design → tasks) in a single command
|
|
11
|
+
- **Success Criteria**:
|
|
12
|
+
- Interactive mode: User controls progression with approval prompts at each phase
|
|
13
|
+
- Automatic mode: All phases execute without interruption when `--auto` flag provided
|
|
14
|
+
- All generated specs maintain quality comparable to manual workflow
|
|
15
|
+
</background_information>
|
|
16
|
+
|
|
17
|
+
<instructions>
|
|
18
|
+
## ⚠️ CRITICAL: Automatic Mode Execution Rules
|
|
19
|
+
|
|
20
|
+
**If `--auto` flag is present in `$ARGUMENTS`, you are in AUTOMATIC MODE.**
|
|
21
|
+
|
|
22
|
+
In Automatic Mode:
|
|
23
|
+
- Execute ALL 4 phases in a continuous loop without stopping
|
|
24
|
+
- Use TodoWrite to track progress (4 tasks: init, requirements, design, tasks)
|
|
25
|
+
- Each phase completion updates TodoWrite and continues immediately
|
|
26
|
+
- IGNORE any "Next Step" messages from Phase 2-4 (they are for standalone usage)
|
|
27
|
+
- Stop ONLY after Phase 4 completes or if error occurs
|
|
28
|
+
|
|
29
|
+
**Progress tracking with TodoWrite**:
|
|
30
|
+
- Phase 1 complete = 1/4 tasks done → Continue to Phase 2
|
|
31
|
+
- Phase 2 complete = 2/4 tasks done → Continue to Phase 3
|
|
32
|
+
- Phase 3 complete = 3/4 tasks done → Continue to Phase 4
|
|
33
|
+
- Phase 4 complete = 4/4 tasks done → Output summary and exit
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Core Task
|
|
38
|
+
Execute 4 spec phases sequentially. In automatic mode, execute all phases without stopping. In interactive mode, prompt user for approval between phases.
|
|
39
|
+
|
|
40
|
+
## Execution Steps
|
|
41
|
+
|
|
42
|
+
### Step 1: Parse Arguments and Initialize
|
|
43
|
+
|
|
44
|
+
Parse `$ARGUMENTS`:
|
|
45
|
+
- If contains `--auto`: **Automatic Mode** (execute all 4 phases)
|
|
46
|
+
- Otherwise: **Interactive Mode** (prompt at each phase)
|
|
47
|
+
- Extract description (remove `--auto` flag if present)
|
|
48
|
+
|
|
49
|
+
Example:
|
|
50
|
+
```
|
|
51
|
+
"User profile with avatar upload --auto" → mode=automatic, description="User profile with avatar upload"
|
|
52
|
+
"User profile feature" → mode=interactive, description="User profile feature"
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Create TodoWrite task list**:
|
|
56
|
+
```json
|
|
57
|
+
[
|
|
58
|
+
{"content": "Initialize spec", "activeForm": "Initializing spec", "status": "pending"},
|
|
59
|
+
{"content": "Generate requirements", "activeForm": "Generating requirements", "status": "pending"},
|
|
60
|
+
{"content": "Generate design", "activeForm": "Generating design", "status": "pending"},
|
|
61
|
+
{"content": "Generate tasks", "activeForm": "Generating tasks", "status": "pending"}
|
|
62
|
+
]
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Display mode banner and proceed to Step 2.
|
|
66
|
+
|
|
67
|
+
### Step 2: Execute Phase Loop
|
|
68
|
+
|
|
69
|
+
Execute these 4 phases in order:
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
#### Phase 1: Initialize Spec (Direct Implementation)
|
|
74
|
+
|
|
75
|
+
**Update TodoWrite**: Mark task 1 as `in_progress`.
|
|
76
|
+
|
|
77
|
+
**Core Logic**:
|
|
78
|
+
|
|
79
|
+
1. **Generate Feature Name**:
|
|
80
|
+
- Convert description to kebab-case
|
|
81
|
+
- Example: "User profile with avatar upload" → "user-profile-avatar-upload"
|
|
82
|
+
- Keep name concise (2-4 words ideally)
|
|
83
|
+
|
|
84
|
+
2. **Check Uniqueness**:
|
|
85
|
+
- Use Glob to check `.red64/specs/*/`
|
|
86
|
+
- If feature name exists, append `-2`, `-3`, etc.
|
|
87
|
+
|
|
88
|
+
3. **Create Directory**:
|
|
89
|
+
- Use Bash: `mkdir -p .red64/specs/{feature-name}`
|
|
90
|
+
|
|
91
|
+
4. **Initialize Files from Templates**:
|
|
92
|
+
|
|
93
|
+
a. Read templates:
|
|
94
|
+
```
|
|
95
|
+
- .red64/settings/templates/specs/init.json
|
|
96
|
+
- .red64/settings/templates/specs/requirements-init.md
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
b. Replace placeholders:
|
|
100
|
+
```
|
|
101
|
+
{{FEATURE_NAME}} → feature-name
|
|
102
|
+
{{TIMESTAMP}} → current ISO 8601 timestamp (use `date -u +"%Y-%m-%dT%H:%M:%SZ"`)
|
|
103
|
+
{{PROJECT_DESCRIPTION}} → description
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
c. Write files using Write tool:
|
|
107
|
+
```
|
|
108
|
+
- .red64/specs/{feature-name}/spec.json
|
|
109
|
+
- .red64/specs/{feature-name}/requirements.md
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
5. **Update TodoWrite**: Mark task 1 as `completed`, task 2 as `in_progress`.
|
|
113
|
+
|
|
114
|
+
6. **Output Progress**:
|
|
115
|
+
```
|
|
116
|
+
✅ Spec initialized at .red64/specs/{feature-name}/
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
**Automatic Mode**: IMMEDIATELY continue to Phase 2.
|
|
120
|
+
|
|
121
|
+
**Interactive Mode**: Prompt "Continue to requirements generation? (yes/no)"
|
|
122
|
+
- If "no": Stop, show current state
|
|
123
|
+
- If "yes": Continue to Phase 2
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
#### Phase 2: Generate Requirements
|
|
128
|
+
|
|
129
|
+
**Task 2 is already `in_progress` from Phase 1.**
|
|
130
|
+
|
|
131
|
+
**Execute SlashCommand**:
|
|
132
|
+
```
|
|
133
|
+
/red64:spec-requirements {feature-name}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Wait for completion. Subagent will return with "次のステップ" message.
|
|
137
|
+
|
|
138
|
+
**IMPORTANT**: In Automatic Mode, IGNORE the "次のステップ" message. It is for standalone usage.
|
|
139
|
+
|
|
140
|
+
**Update TodoWrite**: Mark task 2 as `completed`, task 3 as `in_progress`.
|
|
141
|
+
|
|
142
|
+
**Output Progress**:
|
|
143
|
+
```
|
|
144
|
+
✅ Requirements generated → Continuing to design...
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Automatic Mode**: Task list shows 2/4 complete. IMMEDIATELY continue to Phase 3.
|
|
148
|
+
|
|
149
|
+
**Interactive Mode**: Prompt "Continue to design generation? (yes/no)"
|
|
150
|
+
- If "no": Stop, show current state
|
|
151
|
+
- If "yes": Continue to Phase 3
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
#### Phase 3: Generate Design
|
|
156
|
+
|
|
157
|
+
**Task 3 is already `in_progress` from Phase 2.**
|
|
158
|
+
|
|
159
|
+
**Execute SlashCommand**:
|
|
160
|
+
```
|
|
161
|
+
/red64:spec-design {feature-name} -y
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Note: `-y` flag auto-approves requirements.
|
|
165
|
+
|
|
166
|
+
Wait for completion. Subagent will return with "次のステップ" message.
|
|
167
|
+
|
|
168
|
+
**IMPORTANT**: In Automatic Mode, IGNORE the "次のステップ" message.
|
|
169
|
+
|
|
170
|
+
**Update TodoWrite**: Mark task 3 as `completed`, task 4 as `in_progress`.
|
|
171
|
+
|
|
172
|
+
**Output Progress**:
|
|
173
|
+
```
|
|
174
|
+
✅ Design generated → Continuing to tasks...
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Automatic Mode**: Task list shows 3/4 complete. IMMEDIATELY continue to Phase 4.
|
|
178
|
+
|
|
179
|
+
**Interactive Mode**: Prompt "Continue to tasks generation? (yes/no)"
|
|
180
|
+
- If "no": Stop, show current state
|
|
181
|
+
- If "yes": Continue to Phase 4
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
#### Phase 4: Generate Tasks
|
|
186
|
+
|
|
187
|
+
**Task 4 is already `in_progress` from Phase 3.**
|
|
188
|
+
|
|
189
|
+
**Execute SlashCommand**:
|
|
190
|
+
```
|
|
191
|
+
/red64:spec-tasks {feature-name} -y
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Note: `-y` flag auto-approves design.
|
|
195
|
+
|
|
196
|
+
Wait for completion.
|
|
197
|
+
|
|
198
|
+
**Update TodoWrite**: Mark task 4 as `completed`.
|
|
199
|
+
|
|
200
|
+
**All 4 tasks complete. Loop is DONE.**
|
|
201
|
+
|
|
202
|
+
Output final completion summary (see Output Description section) and exit.
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## Important Constraints
|
|
207
|
+
|
|
208
|
+
### Phase 1 Implementation Notes
|
|
209
|
+
- Feature name generation should be deterministic and readable
|
|
210
|
+
- Always check for conflicts before creating directory
|
|
211
|
+
- Validate templates exist before reading
|
|
212
|
+
- Use ISO 8601 format for timestamp: `YYYY-MM-DDTHH:MM:SSZ`
|
|
213
|
+
|
|
214
|
+
### Automatic Mode Behavior
|
|
215
|
+
- Do NOT stop between phases
|
|
216
|
+
- Do NOT wait for user input
|
|
217
|
+
- Do NOT be influenced by "次のステップ" messages from Phases 2-4
|
|
218
|
+
- Update TodoWrite after each phase to maintain progress visibility
|
|
219
|
+
- Continue loop until all 4 phases complete
|
|
220
|
+
|
|
221
|
+
### Interactive Mode Behavior
|
|
222
|
+
- Prompt user after each phase
|
|
223
|
+
- Wait for "yes/y" or "no/n" response
|
|
224
|
+
- If "no": Stop gracefully, show completed phases
|
|
225
|
+
- If "yes": Continue to next phase
|
|
226
|
+
|
|
227
|
+
### Error Handling
|
|
228
|
+
- Any phase failure stops the workflow
|
|
229
|
+
- Display error and current state
|
|
230
|
+
- Suggest manual recovery command
|
|
231
|
+
|
|
232
|
+
</instructions>
|
|
233
|
+
|
|
234
|
+
## Tool Guidance
|
|
235
|
+
|
|
236
|
+
### Phase 1 Tools
|
|
237
|
+
- **Glob**: Check `.red64/specs/*/` for existing feature names
|
|
238
|
+
- **Bash**: Create directory with `mkdir -p`, generate timestamp with `date -u`
|
|
239
|
+
- **Read**: Fetch templates from `.red64/settings/templates/specs/`
|
|
240
|
+
- **Write**: Create `spec.json` and `requirements.md` in spec directory
|
|
241
|
+
|
|
242
|
+
### Phase 2-4 Tools
|
|
243
|
+
- **SlashCommand**: Execute `/red64:spec-requirements`, `/red64:spec-design`, `/red64:spec-tasks`
|
|
244
|
+
|
|
245
|
+
### TodoWrite Usage
|
|
246
|
+
- Initialize with 4 pending tasks
|
|
247
|
+
- Update after each phase: current task `completed`, next task `in_progress`
|
|
248
|
+
- Provides visual progress tracking in UI
|
|
249
|
+
|
|
250
|
+
## Output Description
|
|
251
|
+
|
|
252
|
+
### Mode Banners
|
|
253
|
+
|
|
254
|
+
**Interactive Mode**:
|
|
255
|
+
```
|
|
256
|
+
🚀 Quick Spec Generation (Interactive Mode)
|
|
257
|
+
|
|
258
|
+
You will be prompted at each phase.
|
|
259
|
+
⚠️ Skips gap analysis and design validation.
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
**Automatic Mode**:
|
|
263
|
+
```
|
|
264
|
+
🚀 Quick Spec Generation (Automatic Mode)
|
|
265
|
+
|
|
266
|
+
All phases execute automatically without prompts.
|
|
267
|
+
⚠️ Skips all validations and reviews.
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Intermediate Output
|
|
271
|
+
|
|
272
|
+
After each phase, show brief progress:
|
|
273
|
+
```
|
|
274
|
+
✅ Spec initialized at .red64/specs/{feature}/
|
|
275
|
+
✅ Requirements generated → Continuing to design...
|
|
276
|
+
✅ Design generated → Continuing to tasks...
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
### Final Completion Summary
|
|
280
|
+
|
|
281
|
+
Provide output in the language specified in `spec.json`:
|
|
282
|
+
|
|
283
|
+
```
|
|
284
|
+
✅ Quick Spec Generation Complete!
|
|
285
|
+
|
|
286
|
+
## Generated Files:
|
|
287
|
+
- .red64/specs/{feature}/spec.json
|
|
288
|
+
- .red64/specs/{feature}/requirements.md ({X} requirements)
|
|
289
|
+
- .red64/specs/{feature}/design.md ({Y} components, {Z} endpoints)
|
|
290
|
+
- .red64/specs/{feature}/tasks.md ({N} tasks)
|
|
291
|
+
|
|
292
|
+
⚠️ Quick generation skipped:
|
|
293
|
+
- `/red64:validate-gap` - Gap analysis (integration check)
|
|
294
|
+
- `/red64:validate-design` - Design review (architecture validation)
|
|
295
|
+
|
|
296
|
+
## Next Steps:
|
|
297
|
+
1. Review generated specs (especially design.md)
|
|
298
|
+
2. Optional validation:
|
|
299
|
+
- `/red64:validate-gap {feature}` - Check integration with existing codebase
|
|
300
|
+
- `/red64:validate-design {feature}` - Verify architecture quality
|
|
301
|
+
3. Start implementation: `/red64:spec-impl {feature}`
|
|
302
|
+
|
|
303
|
+
## Note:
|
|
304
|
+
For complex features (integrations, security, APIs), use standard workflow:
|
|
305
|
+
/red64:spec-init → /red64:spec-requirements → /red64:validate-gap
|
|
306
|
+
→ /red64:spec-design → /red64:validate-design → /red64:spec-tasks
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
## Safety & Fallback
|
|
310
|
+
|
|
311
|
+
### Argument Parsing
|
|
312
|
+
- Use `$ARGUMENTS` to parse (NOT `$1`, `$2`)
|
|
313
|
+
- Handle spaces in descriptions correctly
|
|
314
|
+
- Example: `"Multi word description --auto"` → extract both parts correctly
|
|
315
|
+
|
|
316
|
+
### Feature Name Generation
|
|
317
|
+
- Convert to lowercase kebab-case
|
|
318
|
+
- Remove special characters
|
|
319
|
+
- If ambiguous, prefer descriptive over short
|
|
320
|
+
- If conflict exists, append `-2`, `-3`, etc.
|
|
321
|
+
|
|
322
|
+
### Error Scenarios
|
|
323
|
+
|
|
324
|
+
**Template Missing**:
|
|
325
|
+
- Check `.red64/settings/templates/specs/` exists
|
|
326
|
+
- Report specific missing file
|
|
327
|
+
- Exit with error
|
|
328
|
+
|
|
329
|
+
**Directory Creation Failed**:
|
|
330
|
+
- Check permissions
|
|
331
|
+
- Report error with path
|
|
332
|
+
- Exit with error
|
|
333
|
+
|
|
334
|
+
**Phase Execution Failed** (Phase 2-4):
|
|
335
|
+
- Stop workflow
|
|
336
|
+
- Show current state and completed phases
|
|
337
|
+
- Suggest: "Continue manually from `/red64:spec-{next-phase} {feature}`"
|
|
338
|
+
|
|
339
|
+
**User Cancellation** (Interactive Mode):
|
|
340
|
+
- Stop gracefully
|
|
341
|
+
- Show completed phases
|
|
342
|
+
- Suggest manual continuation
|
|
343
|
+
|
|
344
|
+
### Usage Guidance
|
|
345
|
+
|
|
346
|
+
**Use Automatic Mode** (`--auto`) when:
|
|
347
|
+
- Simple feature (CRUD, basic UI)
|
|
348
|
+
- Prototyping / proof-of-concept
|
|
349
|
+
- Well-known feature pattern
|
|
350
|
+
|
|
351
|
+
**Use Interactive Mode** (default) when:
|
|
352
|
+
- First time using spec-quick
|
|
353
|
+
- Want to review each phase
|
|
354
|
+
- Moderately complex feature
|
|
355
|
+
|
|
356
|
+
**Use Standard Workflow** (NOT spec-quick) when:
|
|
357
|
+
- Complex integration with existing systems
|
|
358
|
+
- Security-critical features
|
|
359
|
+
- Production-ready quality required
|
|
360
|
+
- Need gap analysis or design validation
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate comprehensive requirements for a specification
|
|
3
|
+
allowed-tools: Read, Task
|
|
4
|
+
argument-hint: <feature-name>
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Requirements Generation
|
|
8
|
+
|
|
9
|
+
## Parse Arguments
|
|
10
|
+
- Feature name: `$1`
|
|
11
|
+
|
|
12
|
+
## Validate
|
|
13
|
+
Check that spec has been initialized:
|
|
14
|
+
- Verify `.red64/specs/$1/` exists
|
|
15
|
+
- Verify `.red64/specs/$1/spec.json` exists
|
|
16
|
+
|
|
17
|
+
If validation fails, inform user to run `/red64:spec-init` first.
|
|
18
|
+
|
|
19
|
+
## Invoke Subagent
|
|
20
|
+
|
|
21
|
+
Delegate requirements generation to spec-requirements-agent:
|
|
22
|
+
|
|
23
|
+
Use the Task tool to invoke the Subagent with file path patterns:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
Task(
|
|
27
|
+
subagent_type="spec-requirements-agent",
|
|
28
|
+
description="Generate EARS requirements",
|
|
29
|
+
prompt="""
|
|
30
|
+
Feature: $1
|
|
31
|
+
Spec directory: .red64/specs/$1/
|
|
32
|
+
|
|
33
|
+
File patterns to read:
|
|
34
|
+
- .red64/specs/$1/spec.json
|
|
35
|
+
- .red64/specs/$1/requirements.md
|
|
36
|
+
- .red64/steering/*.md
|
|
37
|
+
- .red64/settings/rules/ears-format.md
|
|
38
|
+
- .red64/settings/templates/specs/requirements.md
|
|
39
|
+
|
|
40
|
+
Mode: generate
|
|
41
|
+
"""
|
|
42
|
+
)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Display Result
|
|
46
|
+
|
|
47
|
+
Show Subagent summary to user, then provide next step guidance:
|
|
48
|
+
|
|
49
|
+
### Next Phase: Design Generation
|
|
50
|
+
|
|
51
|
+
**If Requirements Approved**:
|
|
52
|
+
- Review generated requirements at `.red64/specs/$1/requirements.md`
|
|
53
|
+
- **Optional Gap Analysis** (for existing codebases):
|
|
54
|
+
- Run `/red64:validate-gap $1` to analyze implementation gap with current code
|
|
55
|
+
- Identifies existing components, integration points, and implementation strategy
|
|
56
|
+
- Recommended for brownfield projects; skip for greenfield
|
|
57
|
+
- Then `/red64:spec-design $1 [-y]` to proceed to design phase
|
|
58
|
+
|
|
59
|
+
**If Modifications Needed**:
|
|
60
|
+
- Provide feedback and re-run `/red64:spec-requirements $1`
|
|
61
|
+
|
|
62
|
+
**Note**: Approval is mandatory before proceeding to design phase.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Show specification status and progress
|
|
3
|
+
allowed-tools: Bash, Read, Glob, Write, Edit, MultiEdit, Update
|
|
4
|
+
argument-hint: <feature-name>
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Specification Status
|
|
8
|
+
|
|
9
|
+
<background_information>
|
|
10
|
+
- **Mission**: Display comprehensive status and progress for a specification
|
|
11
|
+
- **Success Criteria**:
|
|
12
|
+
- Show current phase and completion status
|
|
13
|
+
- Identify next actions and blockers
|
|
14
|
+
- Provide clear visibility into progress
|
|
15
|
+
</background_information>
|
|
16
|
+
|
|
17
|
+
<instructions>
|
|
18
|
+
## Core Task
|
|
19
|
+
Generate status report for feature **$1** showing progress across all phases.
|
|
20
|
+
|
|
21
|
+
## Execution Steps
|
|
22
|
+
|
|
23
|
+
### Step 1: Load Spec Context
|
|
24
|
+
- Read `.red64/specs/$1/spec.json` for metadata and phase status
|
|
25
|
+
- Read existing files: `requirements.md`, `design.md`, `tasks.md` (if they exist)
|
|
26
|
+
- Check `.red64/specs/$1/` directory for available files
|
|
27
|
+
|
|
28
|
+
### Step 2: Analyze Status
|
|
29
|
+
|
|
30
|
+
**Parse each phase**:
|
|
31
|
+
- **Requirements**: Count requirements and acceptance criteria
|
|
32
|
+
- **Design**: Check for architecture, components, diagrams
|
|
33
|
+
- **Tasks**: Count completed vs total tasks (parse `- [x]` vs `- [ ]`)
|
|
34
|
+
- **Approvals**: Check approval status in spec.json
|
|
35
|
+
|
|
36
|
+
### Step 3: Generate Report
|
|
37
|
+
|
|
38
|
+
Create report in the language specified in spec.json covering:
|
|
39
|
+
1. **Current Phase & Progress**: Where the spec is in the workflow
|
|
40
|
+
2. **Completion Status**: Percentage complete for each phase
|
|
41
|
+
3. **Task Breakdown**: If tasks exist, show completed/remaining counts
|
|
42
|
+
4. **Next Actions**: What needs to be done next
|
|
43
|
+
5. **Blockers**: Any issues preventing progress
|
|
44
|
+
|
|
45
|
+
## Critical Constraints
|
|
46
|
+
- Use language from spec.json
|
|
47
|
+
- Calculate accurate completion percentages
|
|
48
|
+
- Identify specific next action commands
|
|
49
|
+
</instructions>
|
|
50
|
+
|
|
51
|
+
## Tool Guidance
|
|
52
|
+
- **Read**: Load spec.json first, then other spec files as needed
|
|
53
|
+
- **Parse carefully**: Extract completion data from tasks.md checkboxes
|
|
54
|
+
- Use **Glob** to check which spec files exist
|
|
55
|
+
|
|
56
|
+
## Output Description
|
|
57
|
+
|
|
58
|
+
Provide status report in the language specified in spec.json:
|
|
59
|
+
|
|
60
|
+
**Report Structure**:
|
|
61
|
+
1. **Feature Overview**: Name, phase, last updated
|
|
62
|
+
2. **Phase Status**: Requirements, Design, Tasks with completion %
|
|
63
|
+
3. **Task Progress**: If tasks exist, show X/Y completed
|
|
64
|
+
4. **Next Action**: Specific command to run next
|
|
65
|
+
5. **Issues**: Any blockers or missing elements
|
|
66
|
+
|
|
67
|
+
**Format**: Clear, scannable format with emojis (✅/⏳/❌) for status
|
|
68
|
+
|
|
69
|
+
## Safety & Fallback
|
|
70
|
+
|
|
71
|
+
### Error Scenarios
|
|
72
|
+
|
|
73
|
+
**Spec Not Found**:
|
|
74
|
+
- **Message**: "No spec found for `$1`. Check available specs in `.red64/specs/`"
|
|
75
|
+
- **Action**: List available spec directories
|
|
76
|
+
|
|
77
|
+
**Incomplete Spec**:
|
|
78
|
+
- **Warning**: Identify which files are missing
|
|
79
|
+
- **Suggested Action**: Point to next phase command
|
|
80
|
+
|
|
81
|
+
### List All Specs
|
|
82
|
+
|
|
83
|
+
To see all available specs:
|
|
84
|
+
- Run with no argument or use wildcard
|
|
85
|
+
- Shows all specs in `.red64/specs/` with their status
|
|
86
|
+
|
|
87
|
+
think
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate implementation tasks for a specification
|
|
3
|
+
allowed-tools: Read, Task
|
|
4
|
+
argument-hint: <feature-name> [-y] [--sequential]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Implementation Tasks Generator
|
|
8
|
+
|
|
9
|
+
## Parse Arguments
|
|
10
|
+
- Feature name: `$1`
|
|
11
|
+
- Auto-approve flag: `$2` (optional, "-y")
|
|
12
|
+
- Sequential mode flag: `$3` (optional, "--sequential")
|
|
13
|
+
|
|
14
|
+
## Validate
|
|
15
|
+
Check that design has been completed:
|
|
16
|
+
- Verify `.red64/specs/$1/` exists
|
|
17
|
+
- Verify `.red64/specs/$1/design.md` exists
|
|
18
|
+
- Determine `sequential = ($3 == "--sequential")`
|
|
19
|
+
|
|
20
|
+
If validation fails, inform user to complete design phase first.
|
|
21
|
+
|
|
22
|
+
## Invoke Subagent
|
|
23
|
+
|
|
24
|
+
Delegate task generation to spec-tasks-agent:
|
|
25
|
+
|
|
26
|
+
Use the Task tool to invoke the Subagent with file path patterns:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
Task(
|
|
30
|
+
subagent_type="spec-tasks-agent",
|
|
31
|
+
description="Generate implementation tasks",
|
|
32
|
+
prompt="""
|
|
33
|
+
Feature: $1
|
|
34
|
+
Spec directory: .red64/specs/$1/
|
|
35
|
+
Auto-approve: {true if $2 == "-y", else false}
|
|
36
|
+
Sequential mode: {true if sequential else false}
|
|
37
|
+
|
|
38
|
+
File patterns to read:
|
|
39
|
+
- .red64/specs/$1/*.{json,md}
|
|
40
|
+
- .red64/steering/*.md
|
|
41
|
+
- .red64/settings/rules/tasks-generation.md
|
|
42
|
+
- .red64/settings/rules/tasks-parallel-analysis.md (include only when sequential mode is false)
|
|
43
|
+
- .red64/settings/templates/specs/tasks.md
|
|
44
|
+
|
|
45
|
+
Mode: {generate or merge based on tasks.md existence}
|
|
46
|
+
Instruction highlights:
|
|
47
|
+
- Map all requirements to tasks and list requirement IDs only (comma-separated) without extra narration
|
|
48
|
+
- Promote single actionable sub-tasks to major tasks and keep container summaries concise
|
|
49
|
+
- Apply `(P)` markers only when parallel criteria met (omit in sequential mode)
|
|
50
|
+
- Mark optional acceptance-criteria-focused test coverage subtasks with `- [ ]*` only when deferrable post-MVP
|
|
51
|
+
"""
|
|
52
|
+
)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Display Result
|
|
56
|
+
|
|
57
|
+
Show Subagent summary to user, then provide next step guidance:
|
|
58
|
+
|
|
59
|
+
### Next Phase: Implementation
|
|
60
|
+
|
|
61
|
+
**Before Starting Implementation**:
|
|
62
|
+
- **IMPORTANT**: Clear conversation history and free up context before running `/red64:spec-impl`
|
|
63
|
+
- This applies when starting first task OR switching between tasks
|
|
64
|
+
- Fresh context ensures clean state and proper task focus
|
|
65
|
+
|
|
66
|
+
**If Tasks Approved**:
|
|
67
|
+
- Execute specific task: `/red64:spec-impl $1 1.1` (recommended: clear context between each task)
|
|
68
|
+
- Execute multiple tasks: `/red64:spec-impl $1 1.1,1.2` (use cautiously, clear context between tasks)
|
|
69
|
+
- Without arguments: `/red64:spec-impl $1` (executes all pending tasks - NOT recommended due to context bloat)
|
|
70
|
+
|
|
71
|
+
**If Modifications Needed**:
|
|
72
|
+
- Provide feedback and re-run `/red64:spec-tasks $1`
|
|
73
|
+
- Existing tasks used as reference (merge mode)
|
|
74
|
+
|
|
75
|
+
**Note**: The implementation phase will guide you through executing tasks with appropriate context and validation.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create custom steering documents for specialized project contexts
|
|
3
|
+
allowed-tools: Task
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Red64 Custom Steering Creation
|
|
7
|
+
|
|
8
|
+
## Interactive Workflow
|
|
9
|
+
|
|
10
|
+
This command starts an interactive process with the Subagent:
|
|
11
|
+
1. Subagent asks user for domain/topic
|
|
12
|
+
2. Subagent checks for available templates
|
|
13
|
+
3. Subagent analyzes codebase for relevant patterns
|
|
14
|
+
4. Subagent generates custom steering file
|
|
15
|
+
|
|
16
|
+
## Invoke Subagent
|
|
17
|
+
|
|
18
|
+
Delegate custom steering creation to steering-custom-agent:
|
|
19
|
+
|
|
20
|
+
Use the Task tool to invoke the Subagent with file path patterns:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
Task(
|
|
24
|
+
subagent_type="steering-custom-agent",
|
|
25
|
+
description="Create custom steering",
|
|
26
|
+
prompt="""
|
|
27
|
+
Interactive Mode: Ask user for domain/topic
|
|
28
|
+
|
|
29
|
+
File patterns to read:
|
|
30
|
+
- .red64/settings/templates/steering-custom/*.md
|
|
31
|
+
- .red64/settings/rules/steering-principles.md
|
|
32
|
+
|
|
33
|
+
JIT Strategy: Analyze codebase for relevant patterns as needed
|
|
34
|
+
"""
|
|
35
|
+
)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Display Result
|
|
39
|
+
|
|
40
|
+
Show Subagent summary to user:
|
|
41
|
+
- Custom steering file created
|
|
42
|
+
- Template used (if any)
|
|
43
|
+
- Codebase patterns analyzed
|
|
44
|
+
- Content overview
|
|
45
|
+
|
|
46
|
+
## Available Templates
|
|
47
|
+
|
|
48
|
+
Available templates in `.red64/settings/templates/steering-custom/`:
|
|
49
|
+
- api-standards.md, testing.md, security.md, database.md
|
|
50
|
+
- error-handling.md, authentication.md, deployment.md
|
|
51
|
+
|
|
52
|
+
## Notes
|
|
53
|
+
|
|
54
|
+
- Subagent will interact with user to understand needs
|
|
55
|
+
- Templates are starting points, customized for project
|
|
56
|
+
- All steering files loaded as project memory
|
|
57
|
+
- Avoid documenting agent-specific tooling directories (e.g. `.cursor/`, `.gemini/`, `.claude/`)
|
|
58
|
+
- `.red64/settings/` content should NOT be documented (it's metadata, not project knowledge)
|
|
59
|
+
- Light references to `.red64/specs/` and `.red64/steering/` are acceptable; avoid other `.red64/` directories
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Manage .red64/steering/ as persistent project knowledge
|
|
3
|
+
allowed-tools: Read, Task, Glob
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Red64 Steering Management
|
|
7
|
+
|
|
8
|
+
## Mode Detection
|
|
9
|
+
|
|
10
|
+
**Perform detection before invoking Subagent**:
|
|
11
|
+
|
|
12
|
+
Check `.red64/steering/` status:
|
|
13
|
+
- **Bootstrap Mode**: Empty OR missing core files (product.md, tech.md, structure.md)
|
|
14
|
+
- **Sync Mode**: All core files exist
|
|
15
|
+
|
|
16
|
+
Use Glob to check for existing steering files.
|
|
17
|
+
|
|
18
|
+
## Invoke Subagent
|
|
19
|
+
|
|
20
|
+
Delegate steering management to steering-agent:
|
|
21
|
+
|
|
22
|
+
Use the Task tool to invoke the Subagent with file path patterns:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
Task(
|
|
26
|
+
subagent_type="steering-agent",
|
|
27
|
+
description="Manage steering files",
|
|
28
|
+
prompt="""
|
|
29
|
+
Mode: {bootstrap or sync based on detection}
|
|
30
|
+
|
|
31
|
+
File patterns to read:
|
|
32
|
+
- .red64/steering/*.md (if sync mode)
|
|
33
|
+
- .red64/settings/templates/steering/*.md
|
|
34
|
+
- .red64/settings/rules/steering-principles.md
|
|
35
|
+
|
|
36
|
+
JIT Strategy: Fetch codebase files when needed, not upfront
|
|
37
|
+
"""
|
|
38
|
+
)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Display Result
|
|
42
|
+
|
|
43
|
+
Show Subagent summary to user:
|
|
44
|
+
|
|
45
|
+
### Bootstrap:
|
|
46
|
+
- Generated steering files: product.md, tech.md, structure.md
|
|
47
|
+
- Review and approve as Source of Truth
|
|
48
|
+
|
|
49
|
+
### Sync:
|
|
50
|
+
- Updated steering files
|
|
51
|
+
- Code drift warnings
|
|
52
|
+
- Recommendations for custom steering
|
|
53
|
+
|
|
54
|
+
## Notes
|
|
55
|
+
|
|
56
|
+
- All `.red64/steering/*.md` loaded as project memory
|
|
57
|
+
- Templates and principles are external for customization
|
|
58
|
+
- Focus on patterns, not catalogs
|
|
59
|
+
- "Golden Rule": New code following patterns shouldn't require steering updates
|
|
60
|
+
- Avoid documenting agent-specific tooling directories (e.g. `.cursor/`, `.gemini/`, `.claude/`)
|
|
61
|
+
- `.red64/settings/` content should NOT be documented in steering files (settings are metadata, not project knowledge)
|
|
62
|
+
- Light references to `.red64/specs/` and `.red64/steering/` are acceptable; avoid other `.red64/` directories
|