[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EZXFDGMCA7A1C73DPG700A":3,"skill-same:01M7EZXFDGMCA7A1C73DPG700A":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":45},"01M7EZXFDGMCA7A1C73DPG700A","flow-deliver",null,"Multi-AI validation, scoring, and review using available external providers (Double Diamond Deliver phase)","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fflow-deliver\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: flow-deliver\ndescription: \"Multi-AI validation, scoring, and review using available external providers (Double Diamond Deliver phase)\"\ndisable-model-invocation: true\n---\n\n> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex.\n> Cross-reference commands use installed skill names in Codex rather than `\u002Focto:*` slash commands.\n> Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it.\n> For host tool equivalents, see `skills\u002Fblocks\u002Fcodex-host-adapter.md`.\n\n\n{{PREAMBLE}}\n\n## Pre-Delivery: State Check\n\nBefore starting delivery:\n1. Read `.octo\u002FSTATE.md` to verify Develop phase complete\n2. Update STATE.md:\n   - current_phase: 4\n   - phase_position: \"Delivery\"\n   - status: \"in_progress\"\n\n```bash\n# Verify Develop phase is complete\nif [[ -f \".octo\u002FSTATE.md\" ]]; then\n  develop_status=$(\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Focto-state.sh\" get_phase_status 3)\n  if [[ \"$develop_status\" != \"complete\" ]]; then\n    echo \"⚠️ Warning: Develop phase not marked complete. Consider completing development first.\"\n  fi\nfi\n\n# Update state for Delivery phase\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Focto-state.sh\" update_state \\\n  --phase 4 \\\n  --position \"Delivery\" \\\n  --status \"in_progress\"\n```\n\n\n## ⚠️ EXECUTION CONTRACT (MANDATORY - CANNOT SKIP)\n\nThis skill uses **ENFORCED execution mode**. You MUST follow this exact sequence.\n\n### STEP 1: Detect Work Context (MANDATORY)\n\nAnalyze the user's prompt and project to determine context:\n\n**Knowledge Context Indicators**:\n- Document terms: \"report\", \"presentation\", \"PRD\", \"proposal\", \"document\", \"brief\"\n- Quality terms: \"argument\", \"evidence\", \"clarity\", \"completeness\", \"narrative\"\n\n**Dev Context Indicators**:\n- Code terms: \"code\", \"implementation\", \"API\", \"endpoint\", \"function\", \"module\"\n- Quality terms: \"security\", \"performance\", \"tests\", \"coverage\", \"bugs\"\n\n**Also check**: What is being reviewed? Code files -> Dev, Documents -> Knowledge\n\n**Capture context_type = \"Dev\" or \"Knowledge\"**\n\n#### Step 1b: Detect Dev Subtype (if Dev context)\n\nWhen context_type is Dev, determine the **subtype** to inject domain-appropriate validation criteria into the review prompt. Append the matching validation supplement after the user's prompt when calling orchestrate.sh in Step 4.\n\n| Subtype | Trigger keywords | Validation supplement |\n|---------|-----------------|---------------------|\n| `frontend-ui` | \"page\", \"widget\", \"component\", \"UI\", \"HTML\", \"CSS\", \"form\", \"dashboard\", \"layout\" | Verify: all referenced files exist (scripts, stylesheets, images). Check ARIA labels and roles, keyboard navigability, touch target sizes (44px min). Flag innerHTML usage. Confirm progressive enhancement (fallbacks for navigator.share, localStorage, etc). Test self-containment: does this work if opened\u002Frun with zero setup? |\n| `cli-tool` | \"CLI\", \"command-line\", \"terminal\", \"script\", \"flag\", \"argument\" | Verify: --help flag works, exit codes are meaningful (0\u002F1\u002F2), stderr vs stdout used correctly, argument edge cases handled (missing args, invalid input, --unknown-flag). |\n| `api-service` | \"API\", \"endpoint\", \"REST\", \"GraphQL\", \"gRPC\", \"server\", \"route\" | Verify: input validation at every endpoint, consistent error response format, auth on protected routes, rate limiting considered, schema\u002Fcontract documented. |\n| `infra` | \"deploy\", \"terraform\", \"docker\", \"CI\", \"pipeline\", \"Kubernetes\", \"helm\" | Verify: operations are idempotent, no hardcoded secrets, rollback path exists, health checks included, destroy operations require confirmation. |\n| `data` | \"ETL\", \"pipeline\", \"migration\", \"schema\", \"database\", \"SQL\" | Verify: migrations are reversible, data validation at ingestion, backup strategy documented, no data loss on failure. |\n| `general` | Default if no subtype matches | No supplement — use standard review criteria. |\n\n**How to apply:** When calling orchestrate.sh in Step 4, append the validation supplement:\n```\norchestrate.sh deliver \"\u003Cuser prompt>\\n\\nDomain-specific validation criteria:\\n\u003Csupplement text>\"\n```\n\n**DO NOT PROCEED TO STEP 2 until context determined.** Context type (Dev vs Knowledge) and dev subtype determine which validation supplements to inject — wrong context produces a review that checks irrelevant criteria.\n\n\n### STEP 2: Display Visual Indicators (MANDATORY - BLOCKING)\n\n**MANDATORY: You MUST use the native shell command tool to run this provider check BEFORE displaying the banner. Do NOT skip it. Do NOT assume availability.**\n\n```bash\nbash \"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fhelpers\u002Fcheck-providers.sh\"\n```\n\n**Use the ACTUAL results below. PROHIBITED: Showing only \"🔵 Claude: Available ✓\" without listing all providers.**\n\nIf `OCTO_ALLOWED_PROVIDERS` is set, treat it as the source of truth for which providers may participate. Providers filtered out by that allowlist are intentionally reported as unavailable; do not invoke or recommend them in the workflow.\n\n\n**Display this banner BEFORE orchestrate.sh execution:**\n\n**For Dev Context:**\n```\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation mode\n✅ [Dev] Deliver Phase: [Brief description of code review]\n\nProvider Availability:\n🔴 Codex CLI: [Available ✓ \u002F Not installed ✗] - Code quality analysis\n🟡 Antigravity CLI: [Available ✓ \u002F Not installed ✗] - Security and edge cases\n🧭 Antigravity CLI: [Available ✓ \u002F Not installed ✗] - Additional external-model challenge\n🔵 Claude: Available ✓ - Synthesis and recommendations\n\n💰 Estimated Cost: $0.02-0.08\n⏱️  Estimated Time: 3-7 minutes\n```\n\n**For Knowledge Context:**\n```\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation mode\n✅ [Knowledge] Deliver Phase: [Brief description of document review]\n\nProvider Availability:\n🔴 Codex CLI: [Available ✓ \u002F Not installed ✗] - Structure and logic analysis\n🟡 Antigravity CLI: [Available ✓ \u002F Not installed ✗] - Content quality and completeness\n🧭 Antigravity CLI: [Available ✓ \u002F Not installed ✗] - Additional external-model challenge\n🔵 Claude: Available ✓ - Synthesis and recommendations\n\n💰 Estimated Cost: $0.02-0.08\n⏱️  Estimated Time: 3-7 minutes\n```\n\n**DO NOT PROCEED TO STEP 3 until banner displayed.** The banner shows users which providers will run and what costs they'll incur — starting API calls without this visibility violates cost transparency.\n\n\n### STEP 3: Read Prior State (MANDATORY - State Management)\n\n**Before executing the workflow, read full project context:**\n\n```bash\n# Initialize state if needed\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" init_state\n\n# Set current workflow\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" set_current_workflow \"flow-deliver\" \"deliver\"\n\n# Get all prior decisions (critical for validation)\nprior_decisions=$(\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" get_decisions \"all\")\n\n# Get context from all prior phases\ndiscover_context=$(\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" get_context \"discover\")\ndefine_context=$(\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" get_context \"define\")\ndevelop_context=$(\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" get_context \"develop\")\n\n# Display what you found (validation needs full context)\necho \"📋 Validation Context Summary:\"\n\nif [[ \"$discover_context\" != \"null\" ]]; then\n  echo \"  Discovery: $discover_context\"\nfi\n\nif [[ \"$define_context\" != \"null\" ]]; then\n  echo \"  Definition: $define_context\"\nfi\n\nif [[ \"$develop_context\" != \"null\" ]]; then\n  echo \"  Development: $develop_context\"\nfi\n\nif [[ \"$prior_decisions\" != \"[]\" && \"$prior_decisions\" != \"null\" ]]; then\n  echo \"  Decisions to validate against:\"\n  echo \"$prior_decisions\" | jq -r '.[] | \"    - \\(.decision) (\\(.phase))\"'\nfi\n```\n\n**This provides full context for validation:**\n- Requirements and scope (from define phase)\n- Implementation decisions (from develop phase)\n- Research findings (from discover phase)\n- All architectural decisions to validate against\n- If **claude-mem** is installed, its MCP tools (`search`, `timeline`, `get_observations`) are available — use them to check for past delivery issues or quality patterns\n\n**DO NOT PROCEED TO STEP 4 until state read.**\n\n\n### STEP 4: Execute orchestrate.sh deliver (MANDATORY - Use Bash Tool)\n\n**You MUST execute this command via the native shell command tool:**\n\n```bash\n${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Forchestrate.sh deliver \"\u003Cuser's validation request>\"\n```\n\n**CRITICAL: You are PROHIBITED from:**\n- ❌ Reviewing directly without calling orchestrate.sh — adversarial multi-AI review catches blind spots that a single reviewer misses; Codex finds code quality issues while Antigravity catches security and edge cases\n- ❌ Doing single-perspective analysis instead of multi-provider\n- ❌ Claiming you're \"simulating\" the workflow\n- ❌ Proceeding to Step 4 without running this command\n\n**You MUST use the native shell command tool to invoke orchestrate.sh.**\n\n#### What Users See During Execution (v7.16.0+)\n\nIf running in Claude Code v2.1.16+, users will see **real-time progress indicators** in the task spinner:\n\n**Phase 1 - External Provider Execution (Parallel):**\n- 🔴 Analyzing code quality and patterns (Codex)...\n- 🟡 Validating security and edge cases (Antigravity)...\n\n**Phase 2 - Synthesis (Sequential):**\n- 🔵 Synthesizing validation results...\n\nThese spinner verb updates happen automatically - orchestrate.sh calls `update_task_progress()` before each agent execution. Users see exactly which provider is working and what it's doing.\n\n**If NOT running in Claude Code v2.1.16+:** Progress indicators are silently skipped, no errors shown.\n\n\n### STEP 5: Verify Execution (MANDATORY - Validation Gate)\n\n**After orchestrate.sh completes, verify it succeeded:**\n\n```bash\n# Find the latest validation file (created within last 10 minutes)\nVALIDATION_FILE=$(find ~\u002F.claude-octopus\u002Fresults -name \"ink-validation-*.md\" -mmin -10 2>\u002Fdev\u002Fnull | head -n1)\n\nif [[ -z \"$VALIDATION_FILE\" ]]; then\n  echo \"❌ VALIDATION FAILED: No validation file found\"\n  echo \"orchestrate.sh did not execute properly\"\n  exit 1\nfi\n\necho \"✅ VALIDATION PASSED: $VALIDATION_FILE\"\ncat \"$VALIDATION_FILE\"\n```\n\n**If validation fails:**\n1. Report error to user\n2. Show logs from `~\u002F.claude-octopus\u002Flogs\u002F`\n3. DO NOT proceed with presenting results\n4. DO NOT substitute with direct review — fallback to single-model review defeats the adversarial multi-provider validation that catches blind spots\n\n\n### STEP 6: Update State (MANDATORY - Post-Execution)\n\n**After validation is complete, record final metrics:**\n\n```bash\n# Update deliver phase context with validation summary\nvalidation_summary=$(head -30 \"$VALIDATION_FILE\" | grep -A 2 \"## Summary\\|Pass\\|Fail\" | tail -2 | tr '\\n' ' ')\n\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" update_context \\\n  \"deliver\" \\\n  \"$validation_summary\"\n\n# Update final metrics (completion of full workflow)\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" update_metrics \"phases_completed\" \"1\"\n\n# Display final state summary\necho \"\"\necho \"📊 Session Complete - Final Metrics:\"\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" show_summary\n```\n\n**DO NOT PROCEED TO STEP 7 until state updated.**\n\n\n### STEP 7: Present Validation Report & Post to PR (Only After Steps 1-6 Complete)\n\nRead the validation file and present:\n- Overall status (✅ PASSED \u002F ⚠️ PASSED WITH WARNINGS \u002F ❌ FAILED)\n- Quality score (XX\u002F100)\n- Summary\n- Critical issues (must fix)\n- Warnings (should fix)\n- Recommendations (nice to have)\n- Validation details from all providers\n- Quality gates results\n- Next steps\n\n**Include attribution:**\n```\n*Multi-AI Validation powered by Claude Octopus*\n*Providers: available external providers + 🔵 Claude*\n*Full validation report: $VALIDATION_FILE*\n```\n\n#### Post to PR (v8.44.0)\n\nAfter presenting the report, check if the current branch has an open PR and post the validation summary as a PR comment:\n\n```bash\nCURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>\u002Fdev\u002Fnull || echo \"\")\nPR_NUM=\"\"\n\nif [[ -n \"$CURRENT_BRANCH\" && \"$CURRENT_BRANCH\" != \"main\" && \"$CURRENT_BRANCH\" != \"master\" ]]; then\n    if command -v gh &>\u002Fdev\u002Fnull; then\n        PR_NUM=$(gh pr list --head \"$CURRENT_BRANCH\" --json number --jq '.[0].number' 2>\u002Fdev\u002Fnull || echo \"\")\n    fi\nfi\n\nif [[ -n \"$PR_NUM\" ]]; then\n    # Extract summary section from validation file for PR comment\n    REVIEW_SUMMARY=$(head -60 \"$VALIDATION_FILE\")\n\n    REPO_SLUG=$(gh repo view --json nameWithOwner --jq .nameWithOwner)\n    COMMENT_BODY=\"## Deliver Phase — Validation Report\n\n${REVIEW_SUMMARY}\n\n___\n*Multi-AI validation by Claude Octopus (\u002Focto:deliver)*\n*Providers: available external providers + 🔵 Claude*\"\n    if ! \"${CLAUDE_PLUGIN_ROOT:-${HOME}\u002F.claude-octopus\u002Fplugin}\u002Fscripts\u002Fsafe-gh-comment.sh\" \\\n            --repo \"$REPO_SLUG\" pr-comment \"$PR_NUM\" - \u003C\u003C\u003C \"$COMMENT_BODY\"; then\n        echo \"GitHub write state is unknown; check for the validation report before retrying:\" >&2\n        gh pr view \"$PR_NUM\" --repo \"$REPO_SLUG\" --comments || true\n        return 1 2>\u002Fdev\u002Fnull || exit 1\n    fi\n\n    echo \"Validation report posted to PR #${PR_NUM}\"\n\n    # Update agent registry\n    REGISTRY=\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fagent-registry.sh\"\n    if [[ -x \"$REGISTRY\" ]]; then\n        AGENT_ID=\"$(git rev-parse --abbrev-ref HEAD 2>\u002Fdev\u002Fnull || echo \"\")\"\n        \"$REGISTRY\" update \"$AGENT_ID\" --pr \"$PR_NUM\" 2>\u002Fdev\u002Fnull || true\n    fi\nfi\n```\n\n**Behavior:**\n- Auto-posts when running inside `\u002Focto:embrace` or `\u002Focto:factory`\n- When running standalone via `\u002Focto:deliver`, asks user first:\n  ```\n  \"PR #N found. Post validation report as a PR comment?\"\n  Options: \"Yes, post to PR\", \"No, terminal only\"\n  ```\n- If no PR or `gh` CLI unavailable, skips silently\n\n\n# Deliver Workflow - Deliver Phase ✅\n\n## ⚠️ MANDATORY: Context Detection & Visual Indicators\n\n**BEFORE executing ANY workflow actions, you MUST:**\n\n### Step 1: Detect Work Context\n\nAnalyze the user's prompt and project to determine context:\n\n**Knowledge Context Indicators** (in prompt):\n- Document terms: \"report\", \"presentation\", \"PRD\", \"proposal\", \"document\", \"brief\"\n- Quality terms: \"argument\", \"evidence\", \"clarity\", \"completeness\", \"narrative\"\n\n**Dev Context Indicators** (in prompt):\n- Code terms: \"code\", \"implementation\", \"API\", \"endpoint\", \"function\", \"module\"\n- Quality terms: \"security\", \"performance\", \"tests\", \"coverage\", \"bugs\"\n\n**Also check**: What is being reviewed? Code files -> Dev, Documents -> Knowledge\n\n**Step 1b: Detect Dev Subtype** — see EXECUTION CONTRACT Step 1b above for subtype table and validation supplements. Append the matching supplement to the prompt before calling orchestrate.sh.\n\n### Step 2: Output Context-Aware Banner\n\n**For Dev Context:**\n```\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation mode\n✅ [Dev] Deliver Phase: [Brief description of code review]\n📋 Session: ${CLAUDE_SESSION_ID}\n\nProviders:\n🔴 Codex CLI - Code quality analysis\n🟡 Antigravity CLI - Security and edge cases\n🔵 Claude - Synthesis and recommendations\n```\n\n**For Knowledge Context:**\n```\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation mode\n✅ [Knowledge] Deliver Phase: [Brief description of document review]\n📋 Session: ${CLAUDE_SESSION_ID}\n\nProviders:\n🔴 Codex CLI - Structure and logic analysis\n🟡 Antigravity CLI - Content quality and completeness\n🔵 Claude - Synthesis and recommendations\n```\n\n{{VISUAL_INDICATORS}}\n\n\n**Part of Double Diamond: DELIVER** (convergent thinking)\n\n```\n        DELIVER (ink)\n\n         \\         \u002F\n          \\       \u002F\n           \\     \u002F\n            \\   \u002F\n             \\ \u002F\n\n          Converge to\n           delivery\n```\n\n## What This Workflow Does\n\nThe **deliver** phase validates and reviews implementations using external CLI providers:\n\n1. **🔴 Codex CLI** - Code quality, best practices, technical correctness\n2. **🟡 Antigravity CLI** - Security audit, edge cases, user experience\n3. **🔵 Claude (You)** - Synthesis and final validation report\n\nThis is the **convergent** phase for delivery - we ensure quality before shipping.\n\n\n## When to Use Deliver\n\nUse deliver when you need:\n\n### Dev Context Examples\n- **Code Review**: \"Review the authentication implementation\"\n- **Security Audit**: \"Check for security vulnerabilities in auth.ts\"\n- **Quality Validation**: \"Validate the API endpoints are production-ready\"\n- **Implementation Verification**: \"Verify the caching layer works correctly\"\n- **Pre-Deployment Check**: \"Ensure the feature is ready to ship\"\n\n### Knowledge Context Examples\n- **Document Review**: \"Review the PRD for completeness\"\n- **Presentation Validation**: \"Check the executive presentation for clarity\"\n- **Report Quality Check**: \"Validate the market analysis report\"\n- **Proposal Review**: \"Review the business case for stakeholder readiness\"\n- **Content Audit**: \"Ensure the strategy document is actionable\"\n\n**Don't use deliver for:**\n- Building implementations (use develop-workflow)\n- Research and exploration (use discover-workflow)\n- Requirement definition (use define-workflow)\n- Simple code\u002Fdocument reading (use Read tool)\n\n\n## Visual Indicators\n\nBefore execution, you'll see:\n\n```\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation\n✅ Deliver Phase: Reviewing and validating implementation\n\nProviders:\n🔴 Codex CLI - Code quality and best practices\n🟡 Antigravity CLI - Security and edge cases\n🔵 Claude - Synthesis and validation report\n```\n\n\n## How It Works\n\n### Step 1: Invoke Ink Phase\n\n```bash\n${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Forchestrate.sh deliver \"\u003Cuser's validation request>\"\n```\n\n### Step 2: Multi-Provider Validation\n\nThe orchestrate.sh script will:\n1. Call **Codex CLI** for code quality analysis\n2. Call **Antigravity CLI** for security and edge case review\n3. You (Claude) synthesize findings into validation report\n4. Generate quality scores and recommendations\n\n### Step 3: Quality Gates (Automatic)\n\nThe ink phase includes automatic quality validation via PostToolUse hook:\n- **Code Quality**: Complexity, maintainability, documentation\n- **Security**: OWASP top 10, authentication, input validation\n- **Best Practices**: Error handling, logging, testing\n- **Completeness**: Missing functionality, edge cases\n\n### Step 4: Read Results\n\nResults are saved to:\n```\n~\u002F.claude-octopus\u002Fresults\u002F${SESSION_ID}\u002Fink-validation-\u003Ctimestamp>.md\n```\n\n### Step 5: Present Validation Report\n\nRead the synthesis and present findings with quality scores to the user.\n\n\n## Implementation Instructions\n\nWhen this skill is invoked, follow the EXECUTION CONTRACT above exactly. The contract includes:\n\n1. **Blocking Step 1**: Detect work context (Dev vs Knowledge)\n2. **Blocking Step 2**: Check providers, display visual indicators\n3. **Blocking Step 3**: Execute orchestrate.sh deliver via native shell command tool\n4. **Blocking Step 4**: Verify validation file exists\n5. **Step 5**: Present formatted validation report\n\nEach step is **mandatory and blocking** - you cannot proceed to the next step until the current one completes successfully.\n\n### Task Management Integration\n\nCreate tasks to track execution progress:\n\n```javascript\n\u002F\u002F At start of skill execution\nTaskCreate({\n  subject: \"Execute deliver workflow with multi-AI providers\",\n  description: \"Run orchestrate.sh deliver for validation\",\n  activeForm: \"Running multi-AI deliver workflow\"\n})\n\n\u002F\u002F Mark in_progress when calling orchestrate.sh\nTaskUpdate({taskId: \"...\", status: \"in_progress\"})\n\n\u002F\u002F Mark completed ONLY after validation report presented\nTaskUpdate({taskId: \"...\", status: \"completed\"})\n```\n\n### Error Handling\n\nIf any step fails:\n- **Step 1 (Context)**: Default to Dev Context if ambiguous\n- **Step 2 (Providers)**: If all external providers are unavailable, suggest `\u002Focto:setup` and STOP\n- **Step 3 (orchestrate.sh)**: Show bash error, check logs, report to user\n- **Step 4 (Validation)**: If validation file missing, show orchestrate.sh logs, DO NOT substitute with direct review\n\nNever fall back to direct review if orchestrate.sh execution fails. Report the failure and let the user decide how to proceed.\n\n### Validation Report Format\n\nAfter successful execution, present validation report with:\n   ```\n   # Validation Report: \u003Ctask>\n\n   ## Overall Status: ✅ PASSED \u002F ⚠️ PASSED WITH WARNINGS \u002F ❌ FAILED\n\n   **Quality Score**: XX\u002F100\n\n   ## Summary\n   [Brief summary of validation findings]\n\n   ## Critical Issues (Must Fix)\n   - [ ] Issue 1: [Description]\n   - [ ] Issue 2: [Description]\n\n   ## Warnings (Should Fix)\n   - [ ] Warning 1: [Description]\n   - [ ] Warning 2: [Description]\n\n   ## Recommendations (Nice to Have)\n   - [ ] Recommendation 1: [Description]\n   - [ ] Recommendation 2: [Description]\n\n   ## Validation Details\n\n   ### Code Quality (Codex Analysis)\n   **Score**: XX\u002F100\n   - [Specific findings about code quality]\n   - [Best practice violations]\n   - [Improvement suggestions]\n\n   ### Security Audit (Antigravity Analysis)\n   **Score**: XX\u002F100\n   - [Security vulnerabilities found]\n   - [Authentication\u002Fauthorization issues]\n   - [Input validation concerns]\n\n   ### Final Validation (Claude Synthesis)\n   **Score**: XX\u002F100\n   - [Integrated assessment]\n   - [Risk analysis]\n   - [Go\u002Fno-go recommendation]\n\n   ## Quality Gates\n   - [X] Code Quality: XX\u002F100 (PASSED\u002FFAILED)\n   - [X] Security: XX\u002F100 (PASSED\u002FFAILED)\n   - [X] Best Practices: XX\u002F100 (PASSED\u002FFAILED)\n   - [X] Completeness: XX\u002F100 (PASSED\u002FFAILED)\n\n   ## Next Steps\n   [Recommended actions based on findings]\n\n   Full validation report saved to: \u003Cvalidation file path>\n   ```\n\n\n## Example Usage\n\n### Example 1: Review Authentication Implementation\n\n```\nUser: Review the authentication implementation in src\u002Fauth\u002F\n\nClaude:\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation\n✅ Deliver Phase: Reviewing authentication implementation\n\n[Executes: ${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Forchestrate.sh deliver \"Review authentication implementation in src\u002Fauth\u002F\"]\n\n[After completion, reads validation and presents:]\n\n# Validation Report: Authentication Implementation\n\n## Overall Status: ⚠️ PASSED WITH WARNINGS\n\n**Quality Score**: 78\u002F100\n\n## Summary\n\nThe authentication implementation is functional and follows most best practices, but has security concerns with token storage and missing rate limiting. Code quality is good with TypeScript types and error handling. Recommend addressing security warnings before production deployment.\n\n## Critical Issues (Must Fix)\n- [ ] **Security**: JWT secret is hardcoded in auth\u002Fconfig.ts (should use env variable)\n- [ ] **Security**: No rate limiting on \u002Flogin endpoint (vulnerability to brute force)\n\n## Warnings (Should Fix)\n- [ ] **Best Practice**: Password validation regex could be stronger (min 12 chars, special chars)\n- [ ] **Testing**: Missing unit tests for token refresh logic\n- [ ] **Error Handling**: Generic error messages leak whether email exists (account enumeration)\n\n## Recommendations (Nice to Have)\n- [ ] **UX**: Add \"remember me\" functionality for longer sessions\n- [ ] **Monitoring**: Add logging for failed login attempts\n- [ ] **Documentation**: Add JSDoc comments for public API methods\n\n## Validation Details\n\n### Code Quality (Codex Analysis)\n**Score**: 85\u002F100\n\n**Strengths**:\n- Clean TypeScript with proper types\n- Good separation of concerns (controller\u002Fservice\u002Fmiddleware)\n- Proper async\u002Fawait error handling\n- Express middleware pattern used correctly\n\n**Issues**:\n- Missing JSDoc documentation\n- Some functions exceed 50 lines (refactor recommended)\n- No unit tests for edge cases\n\n**Code Examples**:\n\\`\\`\\`typescript\n\u002F\u002F Good: Proper error handling\ntry {\n  const token = jwt.sign(payload, JWT_SECRET, { expiresIn: '15m' });\n  return token;\n} catch (error) {\n  logger.error('Token generation failed', error);\n  throw new AuthError('Failed to generate token');\n}\n\n\u002F\u002F Issue: Hardcoded secret (security risk)\nconst JWT_SECRET = 'my-secret-key-123'; \u002F\u002F Should be process.env.JWT_SECRET\n\\`\\`\\`\n\n### Security Audit (Antigravity Analysis)\n**Score**: 68\u002F100\n\n**Critical Vulnerabilities**:\n- ❌ Hardcoded JWT secret (HIGH severity)\n- ❌ No rate limiting on auth endpoints (MEDIUM severity)\n- ❌ Account enumeration via error messages (MEDIUM severity)\n\n**Good Security Practices**:\n- ✅ bcrypt password hashing with 12 rounds\n- ✅ JWT tokens with short expiration (15min)\n- ✅ Refresh token rotation implemented\n- ✅ HTTPS-only cookies for token storage\n\n**Recommendations**:\n- Use environment variables for secrets\n- Add express-rate-limit middleware\n- Standardize error messages (\"Invalid credentials\" for all auth failures)\n- Consider adding 2FA hooks for future enhancement\n\n### Final Validation (Claude Synthesis)\n**Score**: 78\u002F100\n\n**Risk Assessment**:\n- **High**: Hardcoded secrets must be fixed before production\n- **Medium**: Rate limiting should be added (prevents abuse)\n- **Low**: Missing tests and docs can be addressed post-launch\n\n**Go\u002FNo-Go Recommendation**:\n- ⚠️ **CONDITIONAL GO**: Fix critical security issues, then ready for production\n- Timeline: 2-4 hours to address critical issues\n- Post-launch: Address warnings and recommendations in next sprint\n\n**Architecture Assessment**:\n- Good: Follows Express.js patterns, scalable design\n- Good: Proper separation of concerns\n- Improve: Add integration tests for full auth flow\n\n## Quality Gates\n- [X] Code Quality: 85\u002F100 ✅ PASSED\n- [X] Security: 68\u002F100 ⚠️ WARNING (below 75 threshold)\n- [X] Best Practices: 80\u002F100 ✅ PASSED\n- [X] Completeness: 75\u002F100 ✅ PASSED (minimum viable)\n\n## Next Steps\n\n1. **Immediate (Before Deploy)**:\n   - Fix hardcoded JWT secret -> use process.env.JWT_SECRET\n   - Add rate limiting -> npm install express-rate-limit\n   - Standardize error messages -> update auth\u002Fcontroller.ts\n\n2. **Short Term (Next Sprint)**:\n   - Add unit tests for auth service\n   - Improve password validation\n   - Add JSDoc documentation\n\n3. **Long Term (Future)**:\n   - Add 2FA support\n   - Implement \"remember me\" functionality\n   - Add comprehensive logging and monitoring\n\nFull validation report saved to: ~\u002F.claude-octopus\u002Fresults\u002Fabc-123\u002Fink-validation-20250118-145600.md\n```\n\n### Example 2: Validate API Endpoints\n\n```\nUser: Validate the new API endpoints are ready to ship\n\nClaude:\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation\n✅ Deliver Phase: Validating API endpoints\n\n[Executes ink workflow]\n\n[Presents detailed validation with:]\n- API contract compliance (OpenAPI\u002FSwagger)\n- Error handling coverage\n- Security (auth, input validation)\n- Performance (query optimization)\n- Documentation completeness\n\n[Provides go\u002Fno-go decision with quality scores]\n```\n\n\n## Quality Gate Integration\n\nThe ink phase automatically runs comprehensive quality checks via `.claude\u002Fhooks\u002Fquality-gate.sh`:\n\n```bash\n# Triggered after ink execution (PostToolUse hook)\n.\u002Fhooks\u002Fquality-gate.sh\n```\n\n**v8.49.0: Project-specific lint\u002Ftypecheck** (before quality scoring):\n\nBefore running conceptual quality gates, detect and run the project's actual lint\u002Ftypecheck commands:\n- Check `package.json` for `lint`, `typecheck`, `tsc`, `check` scripts\n- Check for `ruff`, `mypy`, `cargo clippy`, `go vet`, `make lint`\n- Report pass\u002Ffail results alongside quality gate scores\n- If quality commands are discovered but not in CLAUDE.md, suggest adding them\n\n{{QUALITY_GATES}}\n\n\n## Integration with Other Workflows\n\nInk is the **final phase** of the Double Diamond:\n\n```\nPROBE (Discover) → GRASP (Define) → TANGLE (Develop) → INK (Deliver)\n```\n\n**Complete workflow example:**\n1. **Probe**: \"Research authentication best practices\" -> Discover options\n2. **Grasp**: \"Define auth requirements\" -> Narrow to specific needs\n3. **Tangle**: \"Implement JWT auth\" -> Build the solution\n4. **Ink**: \"Validate auth implementation\" -> Ensure quality before ship\n\nOr use ink standalone for validation of existing code.\n\n\n## Validation Checklist\n\nBefore marking validation complete, ensure:\n\n- [ ] All providers completed their analysis\n- [ ] Quality scores calculated for all dimensions\n- [ ] Critical issues identified and documented\n- [ ] Warnings and recommendations provided\n- [ ] Go\u002Fno-go decision clearly stated\n- [ ] Next steps documented for user\n- [ ] Full validation report shared\n\n\n## Cost Awareness\n\n**External API Usage:**\n- 🔴 Codex CLI uses your OPENAI_API_KEY (costs apply)\n- 🟡 Antigravity CLI uses your AGY_AUTH_TOKEN (costs apply)\n- 🔵 Claude analysis included with Claude Code\n\nInk workflows typically cost $0.02-0.08 per validation depending on codebase size and complexity.\n\n\n## Post-Validation: Documentation Sync\n\nAfter validation passes (go decision), run documentation synchronization to keep project docs current with shipped code. This step is **automatic** when running as part of `\u002Focto:embrace` and **offered** when running standalone.\n\n**Load the doc-sync source after delivery has been explicitly requested:**\n```\nRead ${HOME}\u002F.claude-octopus\u002Fplugin\u002F.claude\u002Fskills\u002Fskill-doc-sync\u002FSKILL.md and execute it for \"sync docs for the changes on this branch\"\n```\n\nThe doc-sync skill will:\n1. Read all `.md` files (max depth 2, cap 30 files)\n2. Cross-reference each against `git diff` to find stale content\n3. Auto-update factual corrections (paths, counts, version numbers)\n4. Ask about risky\u002Fnarrative changes before editing\n5. Check cross-doc consistency and discoverability\n6. Commit doc changes to the branch\n\n**Skip conditions:** Skip doc-sync if:\n- No `.md` files exist in the project\n- The validation result was \"no-go\" (fix code first)\n- User explicitly requests to skip (`--no-docs` or declines when asked)\n\n\n## Post-Delivery: Route to Ship\n\nAfter delivery validation and doc-sync complete, route according to the user's explicit\nrequest:\n\n- **Ship requested:** update `.octo\u002FSTATE.md`, then read and follow\n  `.claude\u002Fskills\u002Fskill-ship\u002FSKILL.md` from the stable plugin root.\n- **Branch wrap-up requested:** read and follow\n  `.claude\u002Fskills\u002Fskill-finish-branch\u002FSKILL.md` from the stable plugin root.\n- **Review only:** deliver the synthesized findings and stop. Do not update the project\n  to a ready-to-ship state or display a shipping instruction.\n\n```bash\n# Run this block only when the user explicitly requested shipping.\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Focto-state.sh\" update_state \\\n  --status \"complete\" \\\n  --history \"All phases complete, ready to ship\"\n\n# Display completion message with next steps\necho \"\"\necho \"🎉 **EMBRACE WORKFLOW COMPLETE**\"\necho \"\"\necho \"All four phases have been completed:\"\necho \"  ✅ Discover - Research and exploration\"\necho \"  ✅ Define - Requirements and scope\"\necho \"  ✅ Develop - Implementation\"\necho \"  ✅ Deliver - Validation and quality\"\necho \"\"\necho \"📦 **Project ready! Run \\`\u002Focto:ship\\` to finalize and archive.**\"\n```\n\nAfter that block succeeds, perform the requested finalization immediately:\n\n```text\nRead ${HOME}\u002F.claude-octopus\u002Fplugin\u002F.claude\u002Fskills\u002Fskill-ship\u002FSKILL.md and execute it for \"finalize and archive the validated project\"\n```\n\nDo not stop after displaying the command. The ship-requested branch is incomplete until\nthe explicit ship workflow has actually been executed.\n\n\n## Terminal State\n\nThe Deliver phase is complete ONLY when validation findings are synthesized and\nmust-fix items are resolved or explicitly accepted by the user. If the user asked to\nship or wrap the branch, then read and execute `skill-ship` (or `skill-finish-branch` for tests,\nPR, and merge). For review-only requests, deliver the findings and stop; do NOT expand\nthe request into shipping work without user authorization.\n\n**Ready to validate!** This skill runs only after explicit invocation.\n","> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex.\n> Cross-reference commands use installed skill names in Codex rather than `\u002Focto:*` slash commands.\n> Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it.\n> For host tool equivalents, see `skills\u002Fblocks\u002Fcodex-host-adapter.md`.\n\n\n{{PREAMBLE}}\n\n## Pre-Delivery: State Check\n\nBefore starting delivery:\n1. Read `.octo\u002FSTATE.md` to verify Develop phase complete\n2. Update STATE.md:\n   - current_phase: 4\n   - phase_position: \"Delivery\"\n   - status: \"in_progress\"\n\n```bash\n# Verify Develop phase is complete\nif [[ -f \".octo\u002FSTATE.md\" ]]; then\n  develop_status=$(\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Focto-state.sh\" get_phase_status 3)\n  if [[ \"$develop_status\" != \"complete\" ]]; then\n    echo \"⚠️ Warning: Develop phase not marked complete. Consider completing development first.\"\n  fi\nfi\n\n# Update state for Delivery phase\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Focto-state.sh\" update_state \\\n  --phase 4 \\\n  --position \"Delivery\" \\\n  --status \"in_progress\"\n```\n\n\n## ⚠️ EXECUTION CONTRACT (MANDATORY - CANNOT SKIP)\n\nThis skill uses **ENFORCED execution mode**. You MUST follow this exact sequence.\n\n### STEP 1: Detect Work Context (MANDATORY)\n\nAnalyze the user's prompt and project to determine context:\n\n**Knowledge Context Indicators**:\n- Document terms: \"report\", \"presentation\", \"PRD\", \"proposal\", \"document\", \"brief\"\n- Quality terms: \"argument\", \"evidence\", \"clarity\", \"completeness\", \"narrative\"\n\n**Dev Context Indicators**:\n- Code terms: \"code\", \"implementation\", \"API\", \"endpoint\", \"function\", \"module\"\n- Quality terms: \"security\", \"performance\", \"tests\", \"coverage\", \"bugs\"\n\n**Also check**: What is being reviewed? Code files -> Dev, Documents -> Knowledge\n\n**Capture context_type = \"Dev\" or \"Knowledge\"**\n\n#### Step 1b: Detect Dev Subtype (if Dev context)\n\nWhen context_type is Dev, determine the **subtype** to inject domain-appropriate validation criteria into the review prompt. Append the matching validation supplement after the user's prompt when calling orchestrate.sh in Step 4.\n\n| Subtype | Trigger keywords | Validation supplement |\n|---------|-----------------|---------------------|\n| `frontend-ui` | \"page\", \"widget\", \"component\", \"UI\", \"HTML\", \"CSS\", \"form\", \"dashboard\", \"layout\" | Verify: all referenced files exist (scripts, stylesheets, images). Check ARIA labels and roles, keyboard navigability, touch target sizes (44px min). Flag innerHTML usage. Confirm progressive enhancement (fallbacks for navigator.share, localStorage, etc). Test self-containment: does this work if opened\u002Frun with zero setup? |\n| `cli-tool` | \"CLI\", \"command-line\", \"terminal\", \"script\", \"flag\", \"argument\" | Verify: --help flag works, exit codes are meaningful (0\u002F1\u002F2), stderr vs stdout used correctly, argument edge cases handled (missing args, invalid input, --unknown-flag). |\n| `api-service` | \"API\", \"endpoint\", \"REST\", \"GraphQL\", \"gRPC\", \"server\", \"route\" | Verify: input validation at every endpoint, consistent error response format, auth on protected routes, rate limiting considered, schema\u002Fcontract documented. |\n| `infra` | \"deploy\", \"terraform\", \"docker\", \"CI\", \"pipeline\", \"Kubernetes\", \"helm\" | Verify: operations are idempotent, no hardcoded secrets, rollback path exists, health checks included, destroy operations require confirmation. |\n| `data` | \"ETL\", \"pipeline\", \"migration\", \"schema\", \"database\", \"SQL\" | Verify: migrations are reversible, data validation at ingestion, backup strategy documented, no data loss on failure. |\n| `general` | Default if no subtype matches | No supplement — use standard review criteria. |\n\n**How to apply:** When calling orchestrate.sh in Step 4, append the validation supplement:\n```\norchestrate.sh deliver \"\u003Cuser prompt>\\n\\nDomain-specific validation criteria:\\n\u003Csupplement text>\"\n```\n\n**DO NOT PROCEED TO STEP 2 until context determined.** Context type (Dev vs Knowledge) and dev subtype determine which validation supplements to inject — wrong context produces a review that checks irrelevant criteria.\n\n\n### STEP 2: Display Visual Indicators (MANDATORY - BLOCKING)\n\n**MANDATORY: You MUST use the native shell command tool to run this provider check BEFORE displaying the banner. Do NOT skip it. Do NOT assume availability.**\n\n```bash\nbash \"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fhelpers\u002Fcheck-providers.sh\"\n```\n\n**Use the ACTUAL results below. PROHIBITED: Showing only \"🔵 Claude: Available ✓\" without listing all providers.**\n\nIf `OCTO_ALLOWED_PROVIDERS` is set, treat it as the source of truth for which providers may participate. Providers filtered out by that allowlist are intentionally reported as unavailable; do not invoke or recommend them in the workflow.\n\n\n**Display this banner BEFORE orchestrate.sh execution:**\n\n**For Dev Context:**\n```\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation mode\n✅ [Dev] Deliver Phase: [Brief description of code review]\n\nProvider Availability:\n🔴 Codex CLI: [Available ✓ \u002F Not installed ✗] - Code quality analysis\n🟡 Antigravity CLI: [Available ✓ \u002F Not installed ✗] - Security and edge cases\n🧭 Antigravity CLI: [Available ✓ \u002F Not installed ✗] - Additional external-model challenge\n🔵 Claude: Available ✓ - Synthesis and recommendations\n\n💰 Estimated Cost: $0.02-0.08\n⏱️  Estimated Time: 3-7 minutes\n```\n\n**For Knowledge Context:**\n```\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation mode\n✅ [Knowledge] Deliver Phase: [Brief description of document review]\n\nProvider Availability:\n🔴 Codex CLI: [Available ✓ \u002F Not installed ✗] - Structure and logic analysis\n🟡 Antigravity CLI: [Available ✓ \u002F Not installed ✗] - Content quality and completeness\n🧭 Antigravity CLI: [Available ✓ \u002F Not installed ✗] - Additional external-model challenge\n🔵 Claude: Available ✓ - Synthesis and recommendations\n\n💰 Estimated Cost: $0.02-0.08\n⏱️  Estimated Time: 3-7 minutes\n```\n\n**DO NOT PROCEED TO STEP 3 until banner displayed.** The banner shows users which providers will run and what costs they'll incur — starting API calls without this visibility violates cost transparency.\n\n\n### STEP 3: Read Prior State (MANDATORY - State Management)\n\n**Before executing the workflow, read full project context:**\n\n```bash\n# Initialize state if needed\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" init_state\n\n# Set current workflow\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" set_current_workflow \"flow-deliver\" \"deliver\"\n\n# Get all prior decisions (critical for validation)\nprior_decisions=$(\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" get_decisions \"all\")\n\n# Get context from all prior phases\ndiscover_context=$(\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" get_context \"discover\")\ndefine_context=$(\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" get_context \"define\")\ndevelop_context=$(\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" get_context \"develop\")\n\n# Display what you found (validation needs full context)\necho \"📋 Validation Context Summary:\"\n\nif [[ \"$discover_context\" != \"null\" ]]; then\n  echo \"  Discovery: $discover_context\"\nfi\n\nif [[ \"$define_context\" != \"null\" ]]; then\n  echo \"  Definition: $define_context\"\nfi\n\nif [[ \"$develop_context\" != \"null\" ]]; then\n  echo \"  Development: $develop_context\"\nfi\n\nif [[ \"$prior_decisions\" != \"[]\" && \"$prior_decisions\" != \"null\" ]]; then\n  echo \"  Decisions to validate against:\"\n  echo \"$prior_decisions\" | jq -r '.[] | \"    - \\(.decision) (\\(.phase))\"'\nfi\n```\n\n**This provides full context for validation:**\n- Requirements and scope (from define phase)\n- Implementation decisions (from develop phase)\n- Research findings (from discover phase)\n- All architectural decisions to validate against\n- If **claude-mem** is installed, its MCP tools (`search`, `timeline`, `get_observations`) are available — use them to check for past delivery issues or quality patterns\n\n**DO NOT PROCEED TO STEP 4 until state read.**\n\n\n### STEP 4: Execute orchestrate.sh deliver (MANDATORY - Use Bash Tool)\n\n**You MUST execute this command via the native shell command tool:**\n\n```bash\n${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Forchestrate.sh deliver \"\u003Cuser's validation request>\"\n```\n\n**CRITICAL: You are PROHIBITED from:**\n- ❌ Reviewing directly without calling orchestrate.sh — adversarial multi-AI review catches blind spots that a single reviewer misses; Codex finds code quality issues while Antigravity catches security and edge cases\n- ❌ Doing single-perspective analysis instead of multi-provider\n- ❌ Claiming you're \"simulating\" the workflow\n- ❌ Proceeding to Step 4 without running this command\n\n**You MUST use the native shell command tool to invoke orchestrate.sh.**\n\n#### What Users See During Execution (v7.16.0+)\n\nIf running in Claude Code v2.1.16+, users will see **real-time progress indicators** in the task spinner:\n\n**Phase 1 - External Provider Execution (Parallel):**\n- 🔴 Analyzing code quality and patterns (Codex)...\n- 🟡 Validating security and edge cases (Antigravity)...\n\n**Phase 2 - Synthesis (Sequential):**\n- 🔵 Synthesizing validation results...\n\nThese spinner verb updates happen automatically - orchestrate.sh calls `update_task_progress()` before each agent execution. Users see exactly which provider is working and what it's doing.\n\n**If NOT running in Claude Code v2.1.16+:** Progress indicators are silently skipped, no errors shown.\n\n\n### STEP 5: Verify Execution (MANDATORY - Validation Gate)\n\n**After orchestrate.sh completes, verify it succeeded:**\n\n```bash\n# Find the latest validation file (created within last 10 minutes)\nVALIDATION_FILE=$(find ~\u002F.claude-octopus\u002Fresults -name \"ink-validation-*.md\" -mmin -10 2>\u002Fdev\u002Fnull | head -n1)\n\nif [[ -z \"$VALIDATION_FILE\" ]]; then\n  echo \"❌ VALIDATION FAILED: No validation file found\"\n  echo \"orchestrate.sh did not execute properly\"\n  exit 1\nfi\n\necho \"✅ VALIDATION PASSED: $VALIDATION_FILE\"\ncat \"$VALIDATION_FILE\"\n```\n\n**If validation fails:**\n1. Report error to user\n2. Show logs from `~\u002F.claude-octopus\u002Flogs\u002F`\n3. DO NOT proceed with presenting results\n4. DO NOT substitute with direct review — fallback to single-model review defeats the adversarial multi-provider validation that catches blind spots\n\n\n### STEP 6: Update State (MANDATORY - Post-Execution)\n\n**After validation is complete, record final metrics:**\n\n```bash\n# Update deliver phase context with validation summary\nvalidation_summary=$(head -30 \"$VALIDATION_FILE\" | grep -A 2 \"## Summary\\|Pass\\|Fail\" | tail -2 | tr '\\n' ' ')\n\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" update_context \\\n  \"deliver\" \\\n  \"$validation_summary\"\n\n# Update final metrics (completion of full workflow)\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" update_metrics \"phases_completed\" \"1\"\n\n# Display final state summary\necho \"\"\necho \"📊 Session Complete - Final Metrics:\"\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fstate-manager.sh\" show_summary\n```\n\n**DO NOT PROCEED TO STEP 7 until state updated.**\n\n\n### STEP 7: Present Validation Report & Post to PR (Only After Steps 1-6 Complete)\n\nRead the validation file and present:\n- Overall status (✅ PASSED \u002F ⚠️ PASSED WITH WARNINGS \u002F ❌ FAILED)\n- Quality score (XX\u002F100)\n- Summary\n- Critical issues (must fix)\n- Warnings (should fix)\n- Recommendations (nice to have)\n- Validation details from all providers\n- Quality gates results\n- Next steps\n\n**Include attribution:**\n```\n*Multi-AI Validation powered by Claude Octopus*\n*Providers: available external providers + 🔵 Claude*\n*Full validation report: $VALIDATION_FILE*\n```\n\n#### Post to PR (v8.44.0)\n\nAfter presenting the report, check if the current branch has an open PR and post the validation summary as a PR comment:\n\n```bash\nCURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>\u002Fdev\u002Fnull || echo \"\")\nPR_NUM=\"\"\n\nif [[ -n \"$CURRENT_BRANCH\" && \"$CURRENT_BRANCH\" != \"main\" && \"$CURRENT_BRANCH\" != \"master\" ]]; then\n    if command -v gh &>\u002Fdev\u002Fnull; then\n        PR_NUM=$(gh pr list --head \"$CURRENT_BRANCH\" --json number --jq '.[0].number' 2>\u002Fdev\u002Fnull || echo \"\")\n    fi\nfi\n\nif [[ -n \"$PR_NUM\" ]]; then\n    # Extract summary section from validation file for PR comment\n    REVIEW_SUMMARY=$(head -60 \"$VALIDATION_FILE\")\n\n    REPO_SLUG=$(gh repo view --json nameWithOwner --jq .nameWithOwner)\n    COMMENT_BODY=\"## Deliver Phase — Validation Report\n\n${REVIEW_SUMMARY}\n\n___\n*Multi-AI validation by Claude Octopus (\u002Focto:deliver)*\n*Providers: available external providers + 🔵 Claude*\"\n    if ! \"${CLAUDE_PLUGIN_ROOT:-${HOME}\u002F.claude-octopus\u002Fplugin}\u002Fscripts\u002Fsafe-gh-comment.sh\" \\\n            --repo \"$REPO_SLUG\" pr-comment \"$PR_NUM\" - \u003C\u003C\u003C \"$COMMENT_BODY\"; then\n        echo \"GitHub write state is unknown; check for the validation report before retrying:\" >&2\n        gh pr view \"$PR_NUM\" --repo \"$REPO_SLUG\" --comments || true\n        return 1 2>\u002Fdev\u002Fnull || exit 1\n    fi\n\n    echo \"Validation report posted to PR #${PR_NUM}\"\n\n    # Update agent registry\n    REGISTRY=\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Fagent-registry.sh\"\n    if [[ -x \"$REGISTRY\" ]]; then\n        AGENT_ID=\"$(git rev-parse --abbrev-ref HEAD 2>\u002Fdev\u002Fnull || echo \"\")\"\n        \"$REGISTRY\" update \"$AGENT_ID\" --pr \"$PR_NUM\" 2>\u002Fdev\u002Fnull || true\n    fi\nfi\n```\n\n**Behavior:**\n- Auto-posts when running inside `\u002Focto:embrace` or `\u002Focto:factory`\n- When running standalone via `\u002Focto:deliver`, asks user first:\n  ```\n  \"PR #N found. Post validation report as a PR comment?\"\n  Options: \"Yes, post to PR\", \"No, terminal only\"\n  ```\n- If no PR or `gh` CLI unavailable, skips silently\n\n\n# Deliver Workflow - Deliver Phase ✅\n\n## ⚠️ MANDATORY: Context Detection & Visual Indicators\n\n**BEFORE executing ANY workflow actions, you MUST:**\n\n### Step 1: Detect Work Context\n\nAnalyze the user's prompt and project to determine context:\n\n**Knowledge Context Indicators** (in prompt):\n- Document terms: \"report\", \"presentation\", \"PRD\", \"proposal\", \"document\", \"brief\"\n- Quality terms: \"argument\", \"evidence\", \"clarity\", \"completeness\", \"narrative\"\n\n**Dev Context Indicators** (in prompt):\n- Code terms: \"code\", \"implementation\", \"API\", \"endpoint\", \"function\", \"module\"\n- Quality terms: \"security\", \"performance\", \"tests\", \"coverage\", \"bugs\"\n\n**Also check**: What is being reviewed? Code files -> Dev, Documents -> Knowledge\n\n**Step 1b: Detect Dev Subtype** — see EXECUTION CONTRACT Step 1b above for subtype table and validation supplements. Append the matching supplement to the prompt before calling orchestrate.sh.\n\n### Step 2: Output Context-Aware Banner\n\n**For Dev Context:**\n```\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation mode\n✅ [Dev] Deliver Phase: [Brief description of code review]\n📋 Session: ${CLAUDE_SESSION_ID}\n\nProviders:\n🔴 Codex CLI - Code quality analysis\n🟡 Antigravity CLI - Security and edge cases\n🔵 Claude - Synthesis and recommendations\n```\n\n**For Knowledge Context:**\n```\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation mode\n✅ [Knowledge] Deliver Phase: [Brief description of document review]\n📋 Session: ${CLAUDE_SESSION_ID}\n\nProviders:\n🔴 Codex CLI - Structure and logic analysis\n🟡 Antigravity CLI - Content quality and completeness\n🔵 Claude - Synthesis and recommendations\n```\n\n{{VISUAL_INDICATORS}}\n\n\n**Part of Double Diamond: DELIVER** (convergent thinking)\n\n```\n        DELIVER (ink)\n\n         \\         \u002F\n          \\       \u002F\n           \\     \u002F\n            \\   \u002F\n             \\ \u002F\n\n          Converge to\n           delivery\n```\n\n## What This Workflow Does\n\nThe **deliver** phase validates and reviews implementations using external CLI providers:\n\n1. **🔴 Codex CLI** - Code quality, best practices, technical correctness\n2. **🟡 Antigravity CLI** - Security audit, edge cases, user experience\n3. **🔵 Claude (You)** - Synthesis and final validation report\n\nThis is the **convergent** phase for delivery - we ensure quality before shipping.\n\n\n## When to Use Deliver\n\nUse deliver when you need:\n\n### Dev Context Examples\n- **Code Review**: \"Review the authentication implementation\"\n- **Security Audit**: \"Check for security vulnerabilities in auth.ts\"\n- **Quality Validation**: \"Validate the API endpoints are production-ready\"\n- **Implementation Verification**: \"Verify the caching layer works correctly\"\n- **Pre-Deployment Check**: \"Ensure the feature is ready to ship\"\n\n### Knowledge Context Examples\n- **Document Review**: \"Review the PRD for completeness\"\n- **Presentation Validation**: \"Check the executive presentation for clarity\"\n- **Report Quality Check**: \"Validate the market analysis report\"\n- **Proposal Review**: \"Review the business case for stakeholder readiness\"\n- **Content Audit**: \"Ensure the strategy document is actionable\"\n\n**Don't use deliver for:**\n- Building implementations (use develop-workflow)\n- Research and exploration (use discover-workflow)\n- Requirement definition (use define-workflow)\n- Simple code\u002Fdocument reading (use Read tool)\n\n\n## Visual Indicators\n\nBefore execution, you'll see:\n\n```\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation\n✅ Deliver Phase: Reviewing and validating implementation\n\nProviders:\n🔴 Codex CLI - Code quality and best practices\n🟡 Antigravity CLI - Security and edge cases\n🔵 Claude - Synthesis and validation report\n```\n\n\n## How It Works\n\n### Step 1: Invoke Ink Phase\n\n```bash\n${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Forchestrate.sh deliver \"\u003Cuser's validation request>\"\n```\n\n### Step 2: Multi-Provider Validation\n\nThe orchestrate.sh script will:\n1. Call **Codex CLI** for code quality analysis\n2. Call **Antigravity CLI** for security and edge case review\n3. You (Claude) synthesize findings into validation report\n4. Generate quality scores and recommendations\n\n### Step 3: Quality Gates (Automatic)\n\nThe ink phase includes automatic quality validation via PostToolUse hook:\n- **Code Quality**: Complexity, maintainability, documentation\n- **Security**: OWASP top 10, authentication, input validation\n- **Best Practices**: Error handling, logging, testing\n- **Completeness**: Missing functionality, edge cases\n\n### Step 4: Read Results\n\nResults are saved to:\n```\n~\u002F.claude-octopus\u002Fresults\u002F${SESSION_ID}\u002Fink-validation-\u003Ctimestamp>.md\n```\n\n### Step 5: Present Validation Report\n\nRead the synthesis and present findings with quality scores to the user.\n\n\n## Implementation Instructions\n\nWhen this skill is invoked, follow the EXECUTION CONTRACT above exactly. The contract includes:\n\n1. **Blocking Step 1**: Detect work context (Dev vs Knowledge)\n2. **Blocking Step 2**: Check providers, display visual indicators\n3. **Blocking Step 3**: Execute orchestrate.sh deliver via native shell command tool\n4. **Blocking Step 4**: Verify validation file exists\n5. **Step 5**: Present formatted validation report\n\nEach step is **mandatory and blocking** - you cannot proceed to the next step until the current one completes successfully.\n\n### Task Management Integration\n\nCreate tasks to track execution progress:\n\n```javascript\n\u002F\u002F At start of skill execution\nTaskCreate({\n  subject: \"Execute deliver workflow with multi-AI providers\",\n  description: \"Run orchestrate.sh deliver for validation\",\n  activeForm: \"Running multi-AI deliver workflow\"\n})\n\n\u002F\u002F Mark in_progress when calling orchestrate.sh\nTaskUpdate({taskId: \"...\", status: \"in_progress\"})\n\n\u002F\u002F Mark completed ONLY after validation report presented\nTaskUpdate({taskId: \"...\", status: \"completed\"})\n```\n\n### Error Handling\n\nIf any step fails:\n- **Step 1 (Context)**: Default to Dev Context if ambiguous\n- **Step 2 (Providers)**: If all external providers are unavailable, suggest `\u002Focto:setup` and STOP\n- **Step 3 (orchestrate.sh)**: Show bash error, check logs, report to user\n- **Step 4 (Validation)**: If validation file missing, show orchestrate.sh logs, DO NOT substitute with direct review\n\nNever fall back to direct review if orchestrate.sh execution fails. Report the failure and let the user decide how to proceed.\n\n### Validation Report Format\n\nAfter successful execution, present validation report with:\n   ```\n   # Validation Report: \u003Ctask>\n\n   ## Overall Status: ✅ PASSED \u002F ⚠️ PASSED WITH WARNINGS \u002F ❌ FAILED\n\n   **Quality Score**: XX\u002F100\n\n   ## Summary\n   [Brief summary of validation findings]\n\n   ## Critical Issues (Must Fix)\n   - [ ] Issue 1: [Description]\n   - [ ] Issue 2: [Description]\n\n   ## Warnings (Should Fix)\n   - [ ] Warning 1: [Description]\n   - [ ] Warning 2: [Description]\n\n   ## Recommendations (Nice to Have)\n   - [ ] Recommendation 1: [Description]\n   - [ ] Recommendation 2: [Description]\n\n   ## Validation Details\n\n   ### Code Quality (Codex Analysis)\n   **Score**: XX\u002F100\n   - [Specific findings about code quality]\n   - [Best practice violations]\n   - [Improvement suggestions]\n\n   ### Security Audit (Antigravity Analysis)\n   **Score**: XX\u002F100\n   - [Security vulnerabilities found]\n   - [Authentication\u002Fauthorization issues]\n   - [Input validation concerns]\n\n   ### Final Validation (Claude Synthesis)\n   **Score**: XX\u002F100\n   - [Integrated assessment]\n   - [Risk analysis]\n   - [Go\u002Fno-go recommendation]\n\n   ## Quality Gates\n   - [X] Code Quality: XX\u002F100 (PASSED\u002FFAILED)\n   - [X] Security: XX\u002F100 (PASSED\u002FFAILED)\n   - [X] Best Practices: XX\u002F100 (PASSED\u002FFAILED)\n   - [X] Completeness: XX\u002F100 (PASSED\u002FFAILED)\n\n   ## Next Steps\n   [Recommended actions based on findings]\n\n   Full validation report saved to: \u003Cvalidation file path>\n   ```\n\n\n## Example Usage\n\n### Example 1: Review Authentication Implementation\n\n```\nUser: Review the authentication implementation in src\u002Fauth\u002F\n\nClaude:\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation\n✅ Deliver Phase: Reviewing authentication implementation\n\n[Executes: ${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Forchestrate.sh deliver \"Review authentication implementation in src\u002Fauth\u002F\"]\n\n[After completion, reads validation and presents:]\n\n# Validation Report: Authentication Implementation\n\n## Overall Status: ⚠️ PASSED WITH WARNINGS\n\n**Quality Score**: 78\u002F100\n\n## Summary\n\nThe authentication implementation is functional and follows most best practices, but has security concerns with token storage and missing rate limiting. Code quality is good with TypeScript types and error handling. Recommend addressing security warnings before production deployment.\n\n## Critical Issues (Must Fix)\n- [ ] **Security**: JWT secret is hardcoded in auth\u002Fconfig.ts (should use env variable)\n- [ ] **Security**: No rate limiting on \u002Flogin endpoint (vulnerability to brute force)\n\n## Warnings (Should Fix)\n- [ ] **Best Practice**: Password validation regex could be stronger (min 12 chars, special chars)\n- [ ] **Testing**: Missing unit tests for token refresh logic\n- [ ] **Error Handling**: Generic error messages leak whether email exists (account enumeration)\n\n## Recommendations (Nice to Have)\n- [ ] **UX**: Add \"remember me\" functionality for longer sessions\n- [ ] **Monitoring**: Add logging for failed login attempts\n- [ ] **Documentation**: Add JSDoc comments for public API methods\n\n## Validation Details\n\n### Code Quality (Codex Analysis)\n**Score**: 85\u002F100\n\n**Strengths**:\n- Clean TypeScript with proper types\n- Good separation of concerns (controller\u002Fservice\u002Fmiddleware)\n- Proper async\u002Fawait error handling\n- Express middleware pattern used correctly\n\n**Issues**:\n- Missing JSDoc documentation\n- Some functions exceed 50 lines (refactor recommended)\n- No unit tests for edge cases\n\n**Code Examples**:\n\\`\\`\\`typescript\n\u002F\u002F Good: Proper error handling\ntry {\n  const token = jwt.sign(payload, JWT_SECRET, { expiresIn: '15m' });\n  return token;\n} catch (error) {\n  logger.error('Token generation failed', error);\n  throw new AuthError('Failed to generate token');\n}\n\n\u002F\u002F Issue: Hardcoded secret (security risk)\nconst JWT_SECRET = 'my-secret-key-123'; \u002F\u002F Should be process.env.JWT_SECRET\n\\`\\`\\`\n\n### Security Audit (Antigravity Analysis)\n**Score**: 68\u002F100\n\n**Critical Vulnerabilities**:\n- ❌ Hardcoded JWT secret (HIGH severity)\n- ❌ No rate limiting on auth endpoints (MEDIUM severity)\n- ❌ Account enumeration via error messages (MEDIUM severity)\n\n**Good Security Practices**:\n- ✅ bcrypt password hashing with 12 rounds\n- ✅ JWT tokens with short expiration (15min)\n- ✅ Refresh token rotation implemented\n- ✅ HTTPS-only cookies for token storage\n\n**Recommendations**:\n- Use environment variables for secrets\n- Add express-rate-limit middleware\n- Standardize error messages (\"Invalid credentials\" for all auth failures)\n- Consider adding 2FA hooks for future enhancement\n\n### Final Validation (Claude Synthesis)\n**Score**: 78\u002F100\n\n**Risk Assessment**:\n- **High**: Hardcoded secrets must be fixed before production\n- **Medium**: Rate limiting should be added (prevents abuse)\n- **Low**: Missing tests and docs can be addressed post-launch\n\n**Go\u002FNo-Go Recommendation**:\n- ⚠️ **CONDITIONAL GO**: Fix critical security issues, then ready for production\n- Timeline: 2-4 hours to address critical issues\n- Post-launch: Address warnings and recommendations in next sprint\n\n**Architecture Assessment**:\n- Good: Follows Express.js patterns, scalable design\n- Good: Proper separation of concerns\n- Improve: Add integration tests for full auth flow\n\n## Quality Gates\n- [X] Code Quality: 85\u002F100 ✅ PASSED\n- [X] Security: 68\u002F100 ⚠️ WARNING (below 75 threshold)\n- [X] Best Practices: 80\u002F100 ✅ PASSED\n- [X] Completeness: 75\u002F100 ✅ PASSED (minimum viable)\n\n## Next Steps\n\n1. **Immediate (Before Deploy)**:\n   - Fix hardcoded JWT secret -> use process.env.JWT_SECRET\n   - Add rate limiting -> npm install express-rate-limit\n   - Standardize error messages -> update auth\u002Fcontroller.ts\n\n2. **Short Term (Next Sprint)**:\n   - Add unit tests for auth service\n   - Improve password validation\n   - Add JSDoc documentation\n\n3. **Long Term (Future)**:\n   - Add 2FA support\n   - Implement \"remember me\" functionality\n   - Add comprehensive logging and monitoring\n\nFull validation report saved to: ~\u002F.claude-octopus\u002Fresults\u002Fabc-123\u002Fink-validation-20250118-145600.md\n```\n\n### Example 2: Validate API Endpoints\n\n```\nUser: Validate the new API endpoints are ready to ship\n\nClaude:\n🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider validation\n✅ Deliver Phase: Validating API endpoints\n\n[Executes ink workflow]\n\n[Presents detailed validation with:]\n- API contract compliance (OpenAPI\u002FSwagger)\n- Error handling coverage\n- Security (auth, input validation)\n- Performance (query optimization)\n- Documentation completeness\n\n[Provides go\u002Fno-go decision with quality scores]\n```\n\n\n## Quality Gate Integration\n\nThe ink phase automatically runs comprehensive quality checks via `.claude\u002Fhooks\u002Fquality-gate.sh`:\n\n```bash\n# Triggered after ink execution (PostToolUse hook)\n.\u002Fhooks\u002Fquality-gate.sh\n```\n\n**v8.49.0: Project-specific lint\u002Ftypecheck** (before quality scoring):\n\nBefore running conceptual quality gates, detect and run the project's actual lint\u002Ftypecheck commands:\n- Check `package.json` for `lint`, `typecheck`, `tsc`, `check` scripts\n- Check for `ruff`, `mypy`, `cargo clippy`, `go vet`, `make lint`\n- Report pass\u002Ffail results alongside quality gate scores\n- If quality commands are discovered but not in CLAUDE.md, suggest adding them\n\n{{QUALITY_GATES}}\n\n\n## Integration with Other Workflows\n\nInk is the **final phase** of the Double Diamond:\n\n```\nPROBE (Discover) → GRASP (Define) → TANGLE (Develop) → INK (Deliver)\n```\n\n**Complete workflow example:**\n1. **Probe**: \"Research authentication best practices\" -> Discover options\n2. **Grasp**: \"Define auth requirements\" -> Narrow to specific needs\n3. **Tangle**: \"Implement JWT auth\" -> Build the solution\n4. **Ink**: \"Validate auth implementation\" -> Ensure quality before ship\n\nOr use ink standalone for validation of existing code.\n\n\n## Validation Checklist\n\nBefore marking validation complete, ensure:\n\n- [ ] All providers completed their analysis\n- [ ] Quality scores calculated for all dimensions\n- [ ] Critical issues identified and documented\n- [ ] Warnings and recommendations provided\n- [ ] Go\u002Fno-go decision clearly stated\n- [ ] Next steps documented for user\n- [ ] Full validation report shared\n\n\n## Cost Awareness\n\n**External API Usage:**\n- 🔴 Codex CLI uses your OPENAI_API_KEY (costs apply)\n- 🟡 Antigravity CLI uses your AGY_AUTH_TOKEN (costs apply)\n- 🔵 Claude analysis included with Claude Code\n\nInk workflows typically cost $0.02-0.08 per validation depending on codebase size and complexity.\n\n\n## Post-Validation: Documentation Sync\n\nAfter validation passes (go decision), run documentation synchronization to keep project docs current with shipped code. This step is **automatic** when running as part of `\u002Focto:embrace` and **offered** when running standalone.\n\n**Load the doc-sync source after delivery has been explicitly requested:**\n```\nRead ${HOME}\u002F.claude-octopus\u002Fplugin\u002F.claude\u002Fskills\u002Fskill-doc-sync\u002FSKILL.md and execute it for \"sync docs for the changes on this branch\"\n```\n\nThe doc-sync skill will:\n1. Read all `.md` files (max depth 2, cap 30 files)\n2. Cross-reference each against `git diff` to find stale content\n3. Auto-update factual corrections (paths, counts, version numbers)\n4. Ask about risky\u002Fnarrative changes before editing\n5. Check cross-doc consistency and discoverability\n6. Commit doc changes to the branch\n\n**Skip conditions:** Skip doc-sync if:\n- No `.md` files exist in the project\n- The validation result was \"no-go\" (fix code first)\n- User explicitly requests to skip (`--no-docs` or declines when asked)\n\n\n## Post-Delivery: Route to Ship\n\nAfter delivery validation and doc-sync complete, route according to the user's explicit\nrequest:\n\n- **Ship requested:** update `.octo\u002FSTATE.md`, then read and follow\n  `.claude\u002Fskills\u002Fskill-ship\u002FSKILL.md` from the stable plugin root.\n- **Branch wrap-up requested:** read and follow\n  `.claude\u002Fskills\u002Fskill-finish-branch\u002FSKILL.md` from the stable plugin root.\n- **Review only:** deliver the synthesized findings and stop. Do not update the project\n  to a ready-to-ship state or display a shipping instruction.\n\n```bash\n# Run this block only when the user explicitly requested shipping.\n\"${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Focto-state.sh\" update_state \\\n  --status \"complete\" \\\n  --history \"All phases complete, ready to ship\"\n\n# Display completion message with next steps\necho \"\"\necho \"🎉 **EMBRACE WORKFLOW COMPLETE**\"\necho \"\"\necho \"All four phases have been completed:\"\necho \"  ✅ Discover - Research and exploration\"\necho \"  ✅ Define - Requirements and scope\"\necho \"  ✅ Develop - Implementation\"\necho \"  ✅ Deliver - Validation and quality\"\necho \"\"\necho \"📦 **Project ready! Run \\`\u002Focto:ship\\` to finalize and archive.**\"\n```\n\nAfter that block succeeds, perform the requested finalization immediately:\n\n```text\nRead ${HOME}\u002F.claude-octopus\u002Fplugin\u002F.claude\u002Fskills\u002Fskill-ship\u002FSKILL.md and execute it for \"finalize and archive the validated project\"\n```\n\nDo not stop after displaying the command. The ship-requested branch is incomplete until\nthe explicit ship workflow has actually been executed.\n\n\n## Terminal State\n\nThe Deliver phase is complete ONLY when validation findings are synthesized and\nmust-fix items are resolved or explicitly accepted by the user. If the user asked to\nship or wrap the branch, then read and execute `skill-ship` (or `skill-finish-branch` for tests,\nPR, and merge). For review-only requests, deliver the findings and stop; do NOT expand\nthe request into shipping work without user authorization.\n\n**Ready to validate!** This skill runs only after explicit invocation.\n",{"name":5,"description":7,"disable-model-invocation":24},true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fflow-deliver",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":24},[35,38,41],{"tool":36,"command":37},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill flow-deliver",{"tool":39,"command":40},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill flow-deliver",{"tool":42,"command":43},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill flow-deliver","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fflow-deliver\u002FSKILL.md",[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",163,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fflow-deliver\u002Fagents\u002Fopenai.yaml",[53,60,65,72,79,86],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":61,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]