flow-define
Multi-AI requirements scoping using available external providers (Double Diamond Define phase). Priority triggers: octo define, octo scope, co-define,…
Reverse-engineer design systems, tokens, and components from live products or screenshots
$ npx -y skills add nyldn/claude-octopus --skill extract-skill --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/extract-skillContext preview
The summary Claude sees to decide when to auto-load this skill.
Reverse-engineer design systems, tokens, and components from live products or screenshots
name: skill-extract disable-model-invocation: true description: "Reverse-engineer design systems, tokens, and components from live products or screenshots"
The `extract` skill provides comprehensive reverse-engineering capabilities for design systems and product architectures. It transforms undocumented codebases into structured, implementation-ready documentation.
**Priority Order** (High to Low Confidence): 1. **Code-Defined** (95%): `theme.ts`, `tokens.json`, Tailwind config 2. **CSS Variables** (90%): `:root` declarations 3. **Computed Styles** (60%): DOM analysis 4. **Inferred** (40-60%): Color clustering, scale detection
**Color Clustering Algorithm**:
**Detection Strategies**:
**Supported Frameworks**:
**Service Boundary Heuristics**:
**API Endpoint Detection**:
When enabled, the extract feature uses multiple AI providers for higher accuracy:
**Provider Roles**:
**Consensus Mechanism**:
octopus-extract/
└── project-name/
└── timestamp/
├── README.md # Navigation and summary
├── metadata.json # Extraction parameters
│
├── 00_intent/
│ ├── answers.json # User intent responses
│ ├── intent-contract.md # Human-readable summary
│ └── detection-report.md # Stack auto-detection results
│
├── 10_design/
│ ├── tokens.json # W3C Design Tokens format
│ ├── tokens.css # CSS custom properties
│ ├── tokens.md # Human-readable token docs
│ ├── components.csv # Component inventory (tabular)
│ ├── components.json # Structured component data
│ ├── patterns.md # Layout and design patterns
│ └── storybook/ # Storybook scaffold (optional)
│ ├── .storybook/
│ └── stories/
│
├── 20_product/
│ ├── product-overview.md # What, who, key journeys
│ ├── feature-inventory.md # Features by domain
│ ├── architecture.md # C4 text description
│ ├── architecture.mmd # Mermaid C4 diagrams
│ ├── PRD.md # AI-agent executable PRD
│ ├── user-stories.md # Gherkin-style scenarios
│ ├── api-contracts.md # Endpoint specifications
│ ├── data-model.md # Entity relationships
│ └── implementation-plan.md # Phased milestones
│
└── 90_evidence/
├── quality-report.md # Coverage and confidence metrics
├── disagreements.md # Multi-AI conflicts
├── extraction-log.md # Timestamped progress log
└── references.json # File paths per claimAutomated validation ensures extraction quality:
1. **Token Coverage**: Fail if 0 tokens in design mode 2. **Component Coverage**: Warn if < 50% of component files detected 3. **Architecture Completeness**: Warn if no services detected in product mode 4. **Multi-AI Consensus**: Fail if agreement is below the configured consensus threshold (default 67%) on key outputs
/octo:extract ./my-app
/octo:extract ./my-app --mode design --storybook true
/octo:extract ./my-app --depth deep --multi-ai force
/octo:extract https://example.com --mode design --depth quick
Every AI model has blind spots. Claude Octopus supports twelve external provider integrations — Codex, Antigravity CLI, Copilot, Qwen, Ollama, Perplexity, OpenRouter, OrcaRouter, OpenCode, Cursor CLI, Grok, and Kimi Code — alongside the built-in Claude Code
Repo: nyldn/claude-octopus
Multi-AI requirements scoping using available external providers (Double Diamond Define phase). Priority triggers: octo define, octo scope, co-define,…
Multi-AI validation, scoring, and review using available external providers (Double Diamond Deliver phase)
Multi-AI implementation using available external providers (Double Diamond Develop phase). DO NOT use for simple code edits, reading/reviewing code, built-in…
Multi-AI research using available external providers (Double Diamond Discover phase)
Decompose and execute large changes, migrations, or multi-issue fixes in parallel with quality gates
NLSpec authoring — use when you need a structured specification from multi-AI research and consensus