skill-extract
Reverse-engineer design systems, tokens, and components from live products or screenshots
Skill by mhdxbilal
Chalk Labs
Need help deploying skill-extract?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mhdxbilal-skill-extract
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/skill-extract
What's inside
- Skill name
skill-extract- Description
- Reverse-engineer design systems, tokens, and components from live products or screenshots
- License
- MIT
- Instructions
- 228 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "skill-extract" does not match folder "extract-skill"
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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
- **Gemini**: Pattern recognition, alternative interpretations, UX insights
**Consensus Mechanism**:
- Threshold: 67% (2/3 providers must agree)
- 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 logFrom mhdxbilal/Ai, MIT.
More from mhdxbilal/Ai
- 0.496score
flow-spec
mhdxbilal
NLSpec authoring — use when you need a structured specification from multi-AI research and consensus
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
skill-deck
mhdxbilal
Generate slide deck presentations from briefs — use when you need slides, pitch decks, or visual summaries
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
skill-decision-support
mhdxbilal
Present options with trade-offs for informed decision-making — use when choosing between approaches
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
skill-debug
mhdxbilal
Debug issues methodically — use when stuck on errors, test failures, or unexpected behavior
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-code-review
mhdxbilal
Expert multi-AI code review with inline PR comments — use for thorough quality and security analysis
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-claw
mhdxbilal
OpenClaw instance administration — manage hosts across macOS, Ubuntu/Debian, Docker, OCI, and Proxmox
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-context-detection
mhdxbilal
Auto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-copilot-provider
mhdxbilal
GitHub Copilot CLI as optional zero-cost provider via copilot -p programmatic mode
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-cost-projections
mhdxbilal
Project remaining workflow cost from per-phase averages — warns on budget ceiling overruns
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-coverage-audit
mhdxbilal
Trace codepaths in diffs, map against tests, auto-generate missing coverage — use before shipping PRs
SkillCFreshness: C★ 1Claude Code +9 - 0.487score
octopus-architecture
mhdxbilal
System architecture and API design with multi-AI consensus — use for design reviews and new subsystems
SkillCFreshness: C★ 1Claude Code +9 - 0.482score
skill-debate
mhdxbilal
Structured four-way AI debates between Claude, Sonnet, Gemini, and Codex — use for critical decisions
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- May 19, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/mhdxbilal/Ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from mhdxbilal
- 0.496score
skill-decision-support
mhdxbilal
Present options with trade-offs for informed decision-making — use when choosing between approaches
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
skill-deck
mhdxbilal
Generate slide deck presentations from briefs — use when you need slides, pitch decks, or visual summaries
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
flow-spec
mhdxbilal
NLSpec authoring — use when you need a structured specification from multi-AI research and consensus
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
skill-debug
mhdxbilal
Debug issues methodically — use when stuck on errors, test failures, or unexpected behavior
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-claw
mhdxbilal
OpenClaw instance administration — manage hosts across macOS, Ubuntu/Debian, Docker, OCI, and Proxmox
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-context-detection
mhdxbilal
Auto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type
SkillCFreshness: C★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get skill-extract running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
skill-extract. Agent Mart. https://agentmart.dev/skills/mhdxbilal-skill-extract (last updated 2026-10-24)