Agent skill

Skill Extract

by nyldn in nyldn/claude-octopus

Reverse-engineer design systems, tokens, and components from live products or screenshots

MITAuto-check passedFrontend & Design

Install Skill Extract

skills CLI
$ npx skills add nyldn/claude-octopus --skill skill-extract -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nyldn/claude-octopus skill-extract --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nyldn/claude-octopus.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/skill-extract .claude/skills/skill-extract && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
skill-extract
GitHub stars
4.2k
Used in
1 other repo
Token cost
~2.1k tokens
SKILL.md length
664 words
Files
2
Skills in repo
62
Repo updated
First seen
Licence
MIT

At a glance

Reverse-engineer design systems, tokens, and components from live products or screenshots

  • Works in 4 steps: Code-Defined (95%): theme.ts,… → CSS Variables (90%): :root declarations → Computed Styles (60%): DOM analysis → …
  • Tasks that involve Design systems
  • SKILL.md covers Overview, Capabilities, Technical Implementation and Multi-AI Orchestration, plus 9 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Skill Extract is an agent skill from nyldn/claude-octopus. Reverse-engineer design systems, tokens, and components from live products or screenshots

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Frontend & Design, covering Design systems. The repository describes itself as: Run multiple AI models against the same research, design, or coding task. Surface disagreements before you ship. The licence is MIT.

When your agent uses it

  • Tasks that involve Design systems

Example prompts

  • “/skill-extract”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit 4d152db. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • tokens.studio
    • superposition.design
    • designtokens.org
    • c4model.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Skill Extract loads about 2.1k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 664 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nyldn/claude-octopus at commit 4d152db, republished under its MIT licence (© nyldn). 664 words, ~2,085 tokens.

Download SKILL.mdSave it as .claude/skills/skill-extract/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
skill-extract
description
Reverse-engineer design systems, tokens, and components from live products or screenshots
disable-model-invocation
true

Host: Codex CLI — This skill was designed for Claude Code and adapted for Codex. Cross-reference commands use installed skill names in Codex rather than /octo:* slash commands. 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. For host tool equivalents, see skills/blocks/codex-host-adapter.md.

Extract Skill - Implementation Guide

Overview

The extract skill provides comprehensive reverse-engineering capabilities for design systems and product architectures. It transforms undocumented codebases into structured, implementation-ready documentation.

Capabilities

Design System Extraction
  • Token Extraction: Colors, typography, spacing, shadows from code or CSS
  • Component Analysis: Props, variants, usage patterns across React/Vue/Svelte
  • Pattern Detection: Layout patterns, design rules, accessibility guidelines
  • Storybook Generation: Auto-generated stories with variants and controls
Product Architecture Extraction
  • Service Detection: Microservice boundaries, modules, domain boundaries
  • API Mapping: REST, GraphQL, tRPC, gRPC endpoint cataloging
  • Data Modeling: ORM schema extraction (Prisma, TypeORM, Sequelize)
  • Feature Inventory: Route-based and domain-based feature detection
  • C4 Diagrams: Automated architecture visualization (Mermaid)

Technical Implementation

Token Extraction Pipeline

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:

  • Uses CIEDE2000 for perceptually-accurate color distance
  • K-means++ initialization for stable clustering
  • Default k=8 clusters for primary palettes
  • ΔE < 2 threshold for duplicate detection
Component Analysis

Detection Strategies:

  • AST parsing for TypeScript/JavaScript
  • Prop extraction from interfaces and PropTypes
  • Variant detection from union types
  • Usage tracking across codebase

Supported Frameworks:

  • React (functional, class, hooks)
  • Vue (SFC, Composition API, Options API)
  • Svelte (script/template separation)
Architecture Detection

Service Boundary Heuristics:

  • Package.json in subdirectories
  • Independent deployment configs
  • Team ownership boundaries
  • Communication pattern analysis

API Endpoint Detection:

  • Decorator-based routing (NestJS, routing-controllers)
  • Express/Fastify route definitions
  • GraphQL resolver classes
  • tRPC router procedures
  • Protocol Buffer (.proto) files

Multi-AI Orchestration

When enabled, the extract feature uses multiple AI providers for higher accuracy:

Provider Roles:

  • Claude: Synthesis, conflict resolution, documentation
  • Codex: Code-level analysis, type extraction, architecture
  • Antigravity: Pattern recognition, alternative interpretations, UX insights

Consensus Mechanism:

  • Threshold: extraction quality gates require the configured consensus threshold (default 67%); when no numeric vote data exists, the quorum resolver selects the strongest matching proposal from up to 3 provider perspectives and logs disagreements.
  • Disagreements logged in 90_evidence/disagreements.md
  • Confidence scores attached to all outputs

Output Structure

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 claim
Show full SKILL.md (283 more words)Show less

Quality Gates

Automated 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

Usage Patterns

Basic Extraction
bash
/octo:extract ./my-app
Design-Only Extraction
bash
/octo:extract ./my-app --mode design --storybook true
Deep Analysis with Multi-AI
bash
/octo:extract ./my-app --depth deep --multi-ai force
URL Extraction
bash
/octo:extract https://example.com --mode design --depth quick

Integration with Other Skills

  • /octo:review: Review extracted outputs for quality
  • /octo:deliver: Validate extraction completeness
  • /octo:docs: Generate additional documentation from extractions

Error Handling

Common error codes:

  • ERR-001: Invalid input (path/URL not found)
  • ERR-002: Network timeout (URL extraction)
  • ERR-003: Permission denied
  • ERR-004: Out of memory (use --depth quick)
  • VAL-001: Validation failed (no tokens detected)
  • VAL-004: Low multi-AI consensus

Performance Targets

DepthTime TargetCoverage Target
Quick< 2 min70% coverage, basic analysis
Standard2-5 min85% coverage, comprehensive
Deep5-15 min95% coverage, multi-AI validation

Research Sources

This skill is informed by research on:

Implementation Status

Current Version: 1.0.0 (Skeleton)

Implemented:

  • ✅ Command structure
  • ✅ CLI argument parsing
  • ✅ Output directory setup
  • ✅ Metadata generation
  • ✅ Multi-AI detection

In Progress:

  • 🚧 Token extraction pipeline
  • 🚧 Component analysis engine
  • 🚧 Architecture detection
  • 🚧 PRD generation
  • 🚧 Quality gates

Planned:

  • ⏳ Storybook scaffold generation
  • ⏳ C4 diagram generation
  • ⏳ URL extraction mode
  • ⏳ CSS inference algorithms

Contributing

See implementation plan in project documentation.

Implementation phases:

  1. Foundation & CLI (Week 1)
  2. Auto-Detection Engine (Week 2)
  3. Design Extraction (Week 3-4)
  4. Product Extraction (Week 5-6)
  5. Multi-AI Orchestration (Week 7)
  6. Quality Gates (Week 8)
  7. Testing & Documentation (Week 10)

This skill implements the design specified in PRD v2.0 (AI-Executable)

© nyldn, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/skill-extract of nyldn/claude-octopus.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 4d152db

Used in 1 other repository

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in nyldn/claude-octopus, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Skill Extract next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Skill Extract compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Skill Extract this skillnyldn/claude-octopus4.2k1 repos~2.1kAutomated safety check: PassMIT
Impeccablebestofjs/bestofjs3.1k27 repos~2.6kAutomated safety check: PassMIT
Figma Design System Builderwarpdotdev/warp65k2 repos~4.4kAutomated safety check: PassAGPL-3.0
Figma use_figma Plugin API Ruleswarpdotdev/warp65k4 repos~4.4kAutomated safety check: PassAGPL-3.0
UI StylingOhh-889/skyroc79513 repos~2.5kAutomated safety check: PassMIT
Shadcnsupabase/evals14342 repos~4.5kAutomated safety check: PassApache-2.0

Similar skills

  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 27 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • UI Styling

    Ohh-889/skyroc

    Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs.

    795 GitHub starsUsed in 13 repos~2.5k tokens
    Frontend & DesignAuto-check passed
  • Shadcn

    supabase/evals

    Official

    Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI.

    143 GitHub starsUsed in 42 repos~4.5k tokens
    Frontend & DesignAuto-check passed
  • Design System

    Ohh-889/skyroc

    Token architecture, component specifications, and slide generation.

    795 GitHub starsUsed in 11 repos~1.7k tokens
    Frontend & DesignAuto-check passed

More from nyldn/claude-octopus

All 62 skills in this repo
  • Octopus Quick

    nyldn/claude-octopus

    Quick execution for ad-hoc tasks without full workflow overhead — use for small, self-contained requests

    4.2k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Octopus Research

    nyldn/claude-octopus

    Thorough research across multiple sources — use for complex topics needing broad synthesis

    4.2k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Octopus Security Audit

    nyldn/claude-octopus

    OWASP compliance, vulnerability scanning, and adversarial red team testing — use for security reviews

    4.2k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Skill Audit

    nyldn/claude-octopus

    Audit codebases for quality, consistency, and broken patterns — use for pre-release or tech debt review

    4.2k GitHub starsUsed in 1 repo~3.2k tokens
    Auto-check passed
  • Skill Content Pipeline

    nyldn/claude-octopus

    Extract patterns and anatomy from URLs — use to reverse-engineer content strategies from live pages

    4.2k GitHub starsUsed in 1 repo~3.9k tokens
    Auto-check passed
  • Skill Context Detection

    nyldn/claude-octopus

    Auto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type

    4.2k GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed

Questions about Skill Extract

What does Skill Extract do?

Reverse-engineer design systems, tokens, and components from live products or screenshots. Skill Extract is an agent skill from nyldn/claude-octopus.

When should I use Skill Extract?

Skill Extract fits situations like: tasks that involve Design systems.

How do I install Skill Extract in Claude Code?

Run `npx skills add nyldn/claude-octopus --skill skill-extract -a claude-code`. Or copy the skill folder (skills/skill-extract in nyldn/claude-octopus) into .claude/skills/skill-extract in your project. Claude Code loads it when a task matches its description.

How do I install Skill Extract in Codex?

Run `npx skills add nyldn/claude-octopus --skill skill-extract -a codex`. Or copy the skill folder (skills/skill-extract in nyldn/claude-octopus) into .agents/skills/skill-extract in your project. Codex loads it when a task matches its description.

Can I use Skill Extract in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nyldn/claude-octopus --skill skill-extract -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skill-extract, .gemini/skills/skill-extract, .github/skills/skill-extract and .opencode/skills/skill-extract in your project.

What does Skill Extract need to run?

SKILL.md names no scripts, command-line tools or credentials: Skill Extract is instructions for the agent only.

Does Skill Extract access the network?

SKILL.md names 4 domains. As links in the text: tokens.studio, superposition.design, designtokens.org and c4model.com. This is read from the text; nothing was executed.

Is Skill Extract safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Skill Extract use?

Skill Extract is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Skill Extract use?

About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Skill Extract?

Skills that share tags, products or a category with Skill Extract: Impeccable (bestofjs/bestofjs, 3.1k stars), Figma Design System Builder (warpdotdev/warp, 65k stars), Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars) and UI Styling (Ohh-889/skyroc, 795 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Skill Extract?

nyldn (a GitHub user) maintains it in nyldn/claude-octopus, which has 4,182 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 7, 2026.

Source: nyldn/claude-octopus on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.