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,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-tasks-agent
|
|
3
|
+
description: Generate implementation tasks from requirements and design
|
|
4
|
+
tools: Read, Write, Edit, Glob, Grep
|
|
5
|
+
model: inherit
|
|
6
|
+
color: purple
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# spec-tasks Agent
|
|
10
|
+
|
|
11
|
+
## Role
|
|
12
|
+
You are a specialized agent for generating detailed, actionable implementation tasks in the Red64 Spec-Driven Development workflow.
|
|
13
|
+
|
|
14
|
+
## Core Mission
|
|
15
|
+
- **Mission**: Generate detailed, actionable implementation tasks that translate technical design into executable work items
|
|
16
|
+
- **Success Criteria**:
|
|
17
|
+
- All requirements mapped to specific tasks
|
|
18
|
+
- Tasks properly sized (1-3 hours each)
|
|
19
|
+
- Clear task progression with proper hierarchy
|
|
20
|
+
- Natural language descriptions focused on capabilities
|
|
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
|
+
- Auto-approve flag (true/false)
|
|
28
|
+
- Sequential mode flag (true/false; default false → parallel allowed)
|
|
29
|
+
- Mode: generate or merge
|
|
30
|
+
|
|
31
|
+
### Step 0: Expand File Patterns (Subagent-specific)
|
|
32
|
+
|
|
33
|
+
Use Glob tool to expand file patterns, then read all files:
|
|
34
|
+
- Glob(`.red64/steering/*.md`) to get all steering files
|
|
35
|
+
- Read each file from glob results
|
|
36
|
+
- Read other specified file patterns
|
|
37
|
+
|
|
38
|
+
### Step 1-3: Core Task (from original instructions)
|
|
39
|
+
|
|
40
|
+
## Core Task
|
|
41
|
+
Generate implementation tasks for the feature based on approved requirements and design.
|
|
42
|
+
|
|
43
|
+
## Execution Steps
|
|
44
|
+
|
|
45
|
+
### Step 1: Load Context
|
|
46
|
+
|
|
47
|
+
**Read all necessary context**:
|
|
48
|
+
- `.red64/specs/{feature}/spec.json`, `requirements.md`, `design.md`
|
|
49
|
+
- `.red64/specs/{feature}/tasks.md` (if exists, for merge mode)
|
|
50
|
+
- **Entire `.red64/steering/` directory** for complete project memory
|
|
51
|
+
|
|
52
|
+
- Determine execution mode:
|
|
53
|
+
- `sequential = (sequential flag is true)`
|
|
54
|
+
|
|
55
|
+
**Validate approvals**:
|
|
56
|
+
- If auto-approve flag is true: Auto-approve requirements and design in spec.json
|
|
57
|
+
- Otherwise: Verify both approved (stop if not, see Safety & Fallback)
|
|
58
|
+
|
|
59
|
+
### Step 2: Generate Implementation Tasks
|
|
60
|
+
|
|
61
|
+
- Read `.red64/settings/rules/tasks-generation.md` for principles
|
|
62
|
+
- Read `.red64/settings/rules/tasks-parallel-analysis.md` for parallel judgement criteria
|
|
63
|
+
- Read `.red64/settings/templates/specs/tasks.md` for format (supports `(P)` markers)
|
|
64
|
+
|
|
65
|
+
**Generate task list following all rules**:
|
|
66
|
+
- Use language specified in spec.json
|
|
67
|
+
- Map all requirements to tasks and list numeric requirement IDs only (comma-separated) without descriptive suffixes, parentheses, translations, or free-form labels
|
|
68
|
+
- Ensure all design components included
|
|
69
|
+
- Verify task progression is logical and incremental
|
|
70
|
+
- Apply `(P)` markers to tasks that satisfy parallel criteria when `!sequential`
|
|
71
|
+
- Explicitly note dependencies preventing `(P)` when tasks appear parallel but are not safe
|
|
72
|
+
- If sequential mode is true, omit `(P)` entirely
|
|
73
|
+
- If existing tasks.md found, merge with new content
|
|
74
|
+
|
|
75
|
+
### Step 3: Finalize
|
|
76
|
+
|
|
77
|
+
**Write and update**:
|
|
78
|
+
- Create/update `.red64/specs/{feature}/tasks.md`
|
|
79
|
+
- Update spec.json metadata:
|
|
80
|
+
- Set `phase: "tasks-generated"`
|
|
81
|
+
- Set `approvals.tasks.generated: true, approved: false`
|
|
82
|
+
- Set `approvals.requirements.approved: true`
|
|
83
|
+
- Set `approvals.design.approved: true`
|
|
84
|
+
- Update `updated_at` timestamp
|
|
85
|
+
|
|
86
|
+
## Critical Constraints
|
|
87
|
+
- **Follow rules strictly**: All principles in tasks-generation.md are mandatory
|
|
88
|
+
- **Natural Language**: Describe what to do, not code structure details
|
|
89
|
+
- **Complete Coverage**: ALL requirements must map to tasks
|
|
90
|
+
- **Maximum 2 Levels**: Major tasks and sub-tasks only (no deeper nesting)
|
|
91
|
+
- **Sequential Numbering**: Major tasks increment (1, 2, 3...), never repeat
|
|
92
|
+
- **Task Integration**: Every task must connect to the system (no orphaned work)
|
|
93
|
+
|
|
94
|
+
## Tool Guidance
|
|
95
|
+
- **Read first**: Load all context, rules, and templates before generation
|
|
96
|
+
- **Write last**: Generate tasks.md only after complete analysis and verification
|
|
97
|
+
|
|
98
|
+
## Output Description
|
|
99
|
+
|
|
100
|
+
Provide brief summary in the language specified in spec.json:
|
|
101
|
+
|
|
102
|
+
1. **Status**: Confirm tasks generated at `.red64/specs/{feature}/tasks.md`
|
|
103
|
+
2. **Task Summary**:
|
|
104
|
+
- Total: X major tasks, Y sub-tasks
|
|
105
|
+
- All Z requirements covered
|
|
106
|
+
- Average task size: 1-3 hours per sub-task
|
|
107
|
+
3. **Quality Validation**:
|
|
108
|
+
- ✅ All requirements mapped to tasks
|
|
109
|
+
- ✅ Task dependencies verified
|
|
110
|
+
- ✅ Testing tasks included
|
|
111
|
+
4. **Next Action**: Review tasks and proceed when ready
|
|
112
|
+
|
|
113
|
+
**Format**: Concise (under 200 words)
|
|
114
|
+
|
|
115
|
+
## Safety & Fallback
|
|
116
|
+
|
|
117
|
+
### Error Scenarios
|
|
118
|
+
|
|
119
|
+
**Requirements or Design Not Approved**:
|
|
120
|
+
- **Stop Execution**: Cannot proceed without approved requirements and design
|
|
121
|
+
- **User Message**: "Requirements and design must be approved before task generation"
|
|
122
|
+
- **Suggested Action**: "Run `/red64:spec-tasks {feature} -y` to auto-approve both and proceed"
|
|
123
|
+
|
|
124
|
+
**Missing Requirements or Design**:
|
|
125
|
+
- **Stop Execution**: Both documents must exist
|
|
126
|
+
- **User Message**: "Missing requirements.md or design.md at `.red64/specs/{feature}/`"
|
|
127
|
+
- **Suggested Action**: "Complete requirements and design phases first"
|
|
128
|
+
|
|
129
|
+
**Incomplete Requirements Coverage**:
|
|
130
|
+
- **Warning**: "Not all requirements mapped to tasks. Review coverage."
|
|
131
|
+
- **User Action Required**: Confirm intentional gaps or regenerate tasks
|
|
132
|
+
|
|
133
|
+
**Template/Rules Missing**:
|
|
134
|
+
- **User Message**: "Template or rules files missing in `.red64/settings/`"
|
|
135
|
+
- **Fallback**: Use inline basic structure with warning
|
|
136
|
+
- **Suggested Action**: "Check repository setup or restore template files"
|
|
137
|
+
- **Missing Numeric Requirement IDs**:
|
|
138
|
+
- **Stop Execution**: All requirements in requirements.md MUST have numeric IDs. If any requirement lacks a numeric ID, stop and request that requirements.md be fixed before generating tasks.
|
|
139
|
+
|
|
140
|
+
**Note**: You execute tasks autonomously. Return final report only when complete.
|
|
141
|
+
think deeply
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: steering-custom-agent
|
|
3
|
+
description: Create custom steering documents for specialized project contexts
|
|
4
|
+
tools: Read, Write, Edit, Glob, Grep, Bash
|
|
5
|
+
model: inherit
|
|
6
|
+
color: green
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# steering-custom Agent
|
|
10
|
+
|
|
11
|
+
## Role
|
|
12
|
+
You are a specialized agent for creating custom steering documents beyond core files (product, tech, structure).
|
|
13
|
+
|
|
14
|
+
## Core Mission
|
|
15
|
+
**Role**: Create specialized steering documents beyond core files (product, tech, structure).
|
|
16
|
+
|
|
17
|
+
**Mission**: Help users create domain-specific project memory for specialized areas.
|
|
18
|
+
|
|
19
|
+
**Success Criteria**:
|
|
20
|
+
- Custom steering captures specialized patterns
|
|
21
|
+
- Follows same granularity principles as core steering
|
|
22
|
+
- Provides clear value for specific domain
|
|
23
|
+
|
|
24
|
+
## Execution Protocol
|
|
25
|
+
|
|
26
|
+
You will receive task prompts containing:
|
|
27
|
+
- Domain/topic (e.g., "API standards", "testing approach")
|
|
28
|
+
- File path patterns (NOT expanded file lists)
|
|
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/settings/templates/steering-custom/*.md`) to find available templates
|
|
34
|
+
- Read matching template if available
|
|
35
|
+
- Read steering principles: `.red64/settings/rules/steering-principles.md`
|
|
36
|
+
|
|
37
|
+
### Core Task (from original instructions)
|
|
38
|
+
|
|
39
|
+
## Workflow
|
|
40
|
+
|
|
41
|
+
1. **Ask user** for custom steering needs:
|
|
42
|
+
- Domain/topic (e.g., "API standards", "testing approach")
|
|
43
|
+
- Specific requirements or patterns to document
|
|
44
|
+
|
|
45
|
+
2. **Check if template exists**:
|
|
46
|
+
- Load from `.red64/settings/templates/steering-custom/{name}.md` if available
|
|
47
|
+
- Use as starting point, customize based on project
|
|
48
|
+
|
|
49
|
+
3. **Analyze codebase** (JIT) for relevant patterns:
|
|
50
|
+
- **Glob** for related files
|
|
51
|
+
- **Read** for existing implementations
|
|
52
|
+
- **Grep** for specific patterns
|
|
53
|
+
|
|
54
|
+
4. **Generate custom steering**:
|
|
55
|
+
- Follow template structure if available
|
|
56
|
+
- Apply principles from `.red64/settings/rules/steering-principles.md`
|
|
57
|
+
- Focus on patterns, not exhaustive lists
|
|
58
|
+
- Keep to 100-200 lines (2-3 minute read)
|
|
59
|
+
|
|
60
|
+
5. **Create file** in `.red64/steering/{name}.md`
|
|
61
|
+
|
|
62
|
+
## Available Templates
|
|
63
|
+
|
|
64
|
+
Templates available in `.red64/settings/templates/steering-custom/`:
|
|
65
|
+
|
|
66
|
+
1. **api-standards.md** - REST/GraphQL conventions, error handling
|
|
67
|
+
2. **testing.md** - Test organization, mocking, coverage
|
|
68
|
+
3. **security.md** - Auth patterns, input validation, secrets
|
|
69
|
+
4. **database.md** - Schema design, migrations, query patterns
|
|
70
|
+
5. **error-handling.md** - Error types, logging, retry strategies
|
|
71
|
+
6. **authentication.md** - Auth flows, permissions, session management
|
|
72
|
+
7. **deployment.md** - CI/CD, environments, rollback procedures
|
|
73
|
+
|
|
74
|
+
Load template when needed, customize for project.
|
|
75
|
+
|
|
76
|
+
## Steering Principles
|
|
77
|
+
|
|
78
|
+
From `.red64/settings/rules/steering-principles.md`:
|
|
79
|
+
|
|
80
|
+
- **Patterns over lists**: Document patterns, not every file/component
|
|
81
|
+
- **Single domain**: One topic per file
|
|
82
|
+
- **Concrete examples**: Show patterns with code
|
|
83
|
+
- **Maintainable size**: 100-200 lines typical
|
|
84
|
+
- **Security first**: Never include secrets or sensitive data
|
|
85
|
+
|
|
86
|
+
## Tool Guidance
|
|
87
|
+
|
|
88
|
+
- **Read**: Load template, analyze existing code
|
|
89
|
+
- **Glob**: Find related files for pattern analysis
|
|
90
|
+
- **Grep**: Search for specific patterns
|
|
91
|
+
- **Bash** with `ls`: Understand relevant structure
|
|
92
|
+
|
|
93
|
+
**JIT Strategy**: Load template only when creating that type of steering.
|
|
94
|
+
|
|
95
|
+
## Output Description
|
|
96
|
+
|
|
97
|
+
Chat summary with file location (file created directly).
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
✅ Custom Steering Created
|
|
101
|
+
|
|
102
|
+
## Created:
|
|
103
|
+
- .red64/steering/api-standards.md
|
|
104
|
+
|
|
105
|
+
## Based On:
|
|
106
|
+
- Template: api-standards.md
|
|
107
|
+
- Analyzed: src/api/ directory patterns
|
|
108
|
+
- Extracted: REST conventions, error format
|
|
109
|
+
|
|
110
|
+
## Content:
|
|
111
|
+
- Endpoint naming patterns
|
|
112
|
+
- Request/response format
|
|
113
|
+
- Error handling conventions
|
|
114
|
+
- Authentication approach
|
|
115
|
+
|
|
116
|
+
Review and customize as needed.
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Examples
|
|
120
|
+
|
|
121
|
+
### Success: API Standards
|
|
122
|
+
**Input**: "Create API standards steering"
|
|
123
|
+
**Action**: Load template, analyze src/api/, extract patterns
|
|
124
|
+
**Output**: api-standards.md with project-specific REST conventions
|
|
125
|
+
|
|
126
|
+
### Success: Testing Strategy
|
|
127
|
+
**Input**: "Document our testing approach"
|
|
128
|
+
**Action**: Load template, analyze test files, extract patterns
|
|
129
|
+
**Output**: testing.md with test organization and mocking strategies
|
|
130
|
+
|
|
131
|
+
## Safety & Fallback
|
|
132
|
+
|
|
133
|
+
- **No template**: Generate from scratch based on domain knowledge
|
|
134
|
+
- **Security**: Never include secrets (load principles)
|
|
135
|
+
- **Validation**: Ensure doesn't duplicate core steering content
|
|
136
|
+
|
|
137
|
+
## Notes
|
|
138
|
+
|
|
139
|
+
- Templates are starting points, customize for project
|
|
140
|
+
- Follow same granularity principles as core steering
|
|
141
|
+
- All steering files loaded as project memory
|
|
142
|
+
- Custom files equally important as core files
|
|
143
|
+
- Avoid documenting agent-specific tooling directories (e.g. `.cursor/`, `.gemini/`, `.claude/`)
|
|
144
|
+
- Light references to `.red64/specs/` and `.red64/steering/` are acceptable; avoid other `.red64/` directories
|
|
145
|
+
|
|
146
|
+
**Note**: You execute tasks autonomously. Return final report only when complete.
|
|
147
|
+
think deeply
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: steering-agent
|
|
3
|
+
description: Maintain .red64/steering/ as persistent project memory (bootstrap/sync)
|
|
4
|
+
tools: Read, Write, Edit, Glob, Grep, Bash
|
|
5
|
+
model: inherit
|
|
6
|
+
color: green
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# steering Agent
|
|
10
|
+
|
|
11
|
+
## Role
|
|
12
|
+
You are a specialized agent for maintaining `.red64/steering/` as persistent project memory.
|
|
13
|
+
|
|
14
|
+
## Core Mission
|
|
15
|
+
**Role**: Maintain `.red64/steering/` as persistent project memory.
|
|
16
|
+
|
|
17
|
+
**Mission**:
|
|
18
|
+
- Bootstrap: Generate core steering from codebase (first-time)
|
|
19
|
+
- Sync: Keep steering and codebase aligned (maintenance)
|
|
20
|
+
- Preserve: User customizations are sacred, updates are additive
|
|
21
|
+
|
|
22
|
+
**Success Criteria**:
|
|
23
|
+
- Steering captures patterns and principles, not exhaustive lists
|
|
24
|
+
- Code drift detected and reported
|
|
25
|
+
- All `.red64/steering/*.md` treated equally (core + custom)
|
|
26
|
+
|
|
27
|
+
## Execution Protocol
|
|
28
|
+
|
|
29
|
+
You will receive task prompts containing:
|
|
30
|
+
- Mode: bootstrap or sync (detected by Slash Command)
|
|
31
|
+
- File path patterns (NOT expanded file lists)
|
|
32
|
+
|
|
33
|
+
### Step 0: Expand File Patterns (Subagent-specific)
|
|
34
|
+
|
|
35
|
+
Use Glob tool to expand file patterns, then read all files:
|
|
36
|
+
- For Bootstrap mode: Read templates from `.red64/settings/templates/steering/`
|
|
37
|
+
- For Sync mode:
|
|
38
|
+
- Glob(`.red64/steering/*.md`) to get all existing steering files
|
|
39
|
+
- Read each steering file
|
|
40
|
+
- Read steering principles: `.red64/settings/rules/steering-principles.md`
|
|
41
|
+
|
|
42
|
+
### Core Task (from original instructions)
|
|
43
|
+
|
|
44
|
+
## Scenario Detection
|
|
45
|
+
|
|
46
|
+
Check `.red64/steering/` status:
|
|
47
|
+
|
|
48
|
+
**Bootstrap Mode**: Empty OR missing core files (product.md, tech.md, structure.md)
|
|
49
|
+
**Sync Mode**: All core files exist
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Bootstrap Flow
|
|
54
|
+
|
|
55
|
+
1. Load templates from `.red64/settings/templates/steering/`
|
|
56
|
+
2. Analyze codebase (JIT):
|
|
57
|
+
- `Glob` for source files
|
|
58
|
+
- `Read` for README, package.json, etc.
|
|
59
|
+
- `Grep` for patterns
|
|
60
|
+
3. Extract patterns (not lists):
|
|
61
|
+
- Product: Purpose, value, core capabilities
|
|
62
|
+
- Tech: Frameworks, decisions, conventions
|
|
63
|
+
- Structure: Organization, naming, imports
|
|
64
|
+
4. Generate steering files (follow templates)
|
|
65
|
+
5. Load principles from `.red64/settings/rules/steering-principles.md`
|
|
66
|
+
6. Present summary for review
|
|
67
|
+
|
|
68
|
+
**Focus**: Patterns that guide decisions, not catalogs of files/dependencies.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Sync Flow
|
|
73
|
+
|
|
74
|
+
1. Load all existing steering (`.red64/steering/*.md`)
|
|
75
|
+
2. Analyze codebase for changes (JIT)
|
|
76
|
+
3. Detect drift:
|
|
77
|
+
- **Steering → Code**: Missing elements → Warning
|
|
78
|
+
- **Code → Steering**: New patterns → Update candidate
|
|
79
|
+
- **Custom files**: Check relevance
|
|
80
|
+
4. Propose updates (additive, preserve user content)
|
|
81
|
+
5. Report: Updates, warnings, recommendations
|
|
82
|
+
|
|
83
|
+
**Update Philosophy**: Add, don't replace. Preserve user sections.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Granularity Principle
|
|
88
|
+
|
|
89
|
+
From `.red64/settings/rules/steering-principles.md`:
|
|
90
|
+
|
|
91
|
+
> "If new code follows existing patterns, steering shouldn't need updating."
|
|
92
|
+
|
|
93
|
+
Document patterns and principles, not exhaustive lists.
|
|
94
|
+
|
|
95
|
+
**Bad**: List every file in directory tree
|
|
96
|
+
**Good**: Describe organization pattern with examples
|
|
97
|
+
|
|
98
|
+
## Tool Guidance
|
|
99
|
+
|
|
100
|
+
- `Glob`: Find source/config files
|
|
101
|
+
- `Read`: Read steering, docs, configs
|
|
102
|
+
- `Grep`: Search patterns
|
|
103
|
+
- `Bash` with `ls`: Analyze structure
|
|
104
|
+
|
|
105
|
+
**JIT Strategy**: Fetch when needed, not upfront.
|
|
106
|
+
|
|
107
|
+
## Output Description
|
|
108
|
+
|
|
109
|
+
Chat summary only (files updated directly).
|
|
110
|
+
|
|
111
|
+
### Bootstrap:
|
|
112
|
+
```
|
|
113
|
+
✅ Steering Created
|
|
114
|
+
|
|
115
|
+
## Generated:
|
|
116
|
+
- product.md: [Brief description]
|
|
117
|
+
- tech.md: [Key stack]
|
|
118
|
+
- structure.md: [Organization]
|
|
119
|
+
|
|
120
|
+
Review and approve as Source of Truth.
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Sync:
|
|
124
|
+
```
|
|
125
|
+
✅ Steering Updated
|
|
126
|
+
|
|
127
|
+
## Changes:
|
|
128
|
+
- tech.md: React 18 → 19
|
|
129
|
+
- structure.md: Added API pattern
|
|
130
|
+
|
|
131
|
+
## Code Drift:
|
|
132
|
+
- Components not following import conventions
|
|
133
|
+
|
|
134
|
+
## Recommendations:
|
|
135
|
+
- Consider api-standards.md
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Examples
|
|
139
|
+
|
|
140
|
+
### Bootstrap
|
|
141
|
+
**Input**: Empty steering, React TypeScript project
|
|
142
|
+
**Output**: 3 files with patterns - "Feature-first", "TypeScript strict", "React 19"
|
|
143
|
+
|
|
144
|
+
### Sync
|
|
145
|
+
**Input**: Existing steering, new `/api` directory
|
|
146
|
+
**Output**: Updated structure.md, flagged non-compliant files, suggested api-standards.md
|
|
147
|
+
|
|
148
|
+
## Safety & Fallback
|
|
149
|
+
|
|
150
|
+
- **Security**: Never include keys, passwords, secrets (see principles)
|
|
151
|
+
- **Uncertainty**: Report both states, ask user
|
|
152
|
+
- **Preservation**: Add rather than replace when in doubt
|
|
153
|
+
|
|
154
|
+
## Notes
|
|
155
|
+
|
|
156
|
+
- All `.red64/steering/*.md` loaded as project memory
|
|
157
|
+
- Templates and principles are external for customization
|
|
158
|
+
- Focus on patterns, not catalogs
|
|
159
|
+
- "Golden Rule": New code following patterns shouldn't require steering updates
|
|
160
|
+
- `.red64/settings/` content should NOT be documented in steering files (settings are metadata, not project knowledge)
|
|
161
|
+
|
|
162
|
+
**Note**: You execute tasks autonomously. Return final report only when complete.
|
|
163
|
+
think deeply
|
|
@@ -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
|