2.4 KiB
2.4 KiB
auto_execution_mode, description
| auto_execution_mode | description |
|---|---|
| 0 | Execute the implementation planning workflow using the plan template to generate design artifacts. |
Workflow: speckit.plan
-
Context Analysis:
- The user has provided an input prompt. Treat this as the primary input for the skill.
-
Load Skill:
- Use the
view_filetool to read the skill file at:.agents/skills/speckit-plan/SKILL.md
- Use the
-
Execute:
- Follow the instructions in the
SKILL.mdexactly. - Apply the user's prompt as the input arguments/context for the skill's logic.
- Follow the instructions in the
-
On Error:
- If
spec.mdis missing: Run/speckit.specifyfirst to create the feature specification
- If
OCR-Specific Planning Considerations
When planning OCR & AI Extraction prompt management features (ADR-037), include:
Infrastructure Planning
- OCR Sidecar: Verify Desk-5439 sidecar availability (port 8765)
- Endpoints: Plan for
/ocr-upload,/embed, and/normalizeendpoints - Environment Variables: Document required env vars (OCR_SIDECAR_API_KEY, OCR_API_URL)
- Network: Verify VLAN 10 connectivity between backend and Desk-5439
Database Planning
- Schema Changes: Use SQL deltas per ADR-009 (no TypeORM migrations)
- Version Column: Verify
ai_promptstable hasversioncolumn - Entity Mapping: Ensure
@VersionColumn()inai-prompts.entity.ts - Seed Data: Plan for default OCR system prompt seed
Service Architecture
- Validation Service: Extend existing
ai-prompts.service.tsfor prompt validation - Optimistic Locking: Plan version conflict handling (409 Conflict responses)
- Prompt Resolution: Design
resolveActive()for template placeholder substitution - BullMQ Integration: Plan queue jobs for OCR, extraction, and RAG prep
3-Step Pipeline Design
- Sequential Execution: Design OCR → AI Extract → RAG Prep flow
- State Tracking: Plan Redis-based pipeline status tracking
- Input/Output Contract: Define data flow between pipeline steps
- Error Recovery: Design rollback and retry mechanisms
Frontend Planning
- Tab Structure: Plan separate tabs for OCR, AI Extraction, and Sandbox
- Version History: Design version list display and activation UI
- Validation UI: Plan inline validation error display
- Vector Preview: Design chunk list and vector dimension display (5 dims)
For specialized OCR workflows, use /speckit.ocr-prompt-management instead.