design-dna-extraction
Skill1 starsChanged 33 days agoMITView on GitHub
Extracts design tokens, color harmony, typography hierarchy, vertical rhythm, and page decomposition hypotheses from multi-viewport reference evidence in Mimera. Formulates tokens into CSS custom properties and component boundary definitions without guessing.
In this repository157 other files it gives its agents.
- agency-accounts-payable-agentSkill
- agency-agentic-identity-trust-architectSkill
- agency-agents-orchestratorSkill
- agency-automation-governance-architectSkill
- brand-adaptationSkill
- agency-business-strategistSkill
- agency-change-management-consultantSkill
- agency-chief-financial-officerSkill
- clone-websiteSkill
- agency-corporate-training-designerSkill
- agency-customer-serviceSkill
- agency-customer-success-managerSkill
- agency-data-consolidation-agentSkill
- agency-data-privacy-officerSkill
- agency-brand-guardianSkill
- agency-image-prompt-engineerSkill
- agency-inclusive-visuals-specialistSkill
- agency-persona-walkthrough-specialistSkill
- agency-ui-designerSkill
- agency-ui-finish-gate-reviewerSkill
- agency-ux-architectSkill
- agency-ux-researcherSkill
- agency-visual-storytellerSkill
- agency-whimsy-injectorSkill
- agency-ai-data-remediation-engineerSkill
- agency-ai-engineerSkill
- agency-api-platform-engineerSkill
- agency-autonomous-optimization-architectSkill
- agency-backend-architectSkill
- agency-cms-developerSkill
- agency-codebase-onboarding-engineerSkill
- agency-code-reviewerSkill
- agency-database-optimizerSkill
- agency-database-reliability-engineerSkill
- agency-data-engineerSkill
- agency-data-visualization-engineerSkill
- agency-desktop-app-engineerSkill
- agency-devops-automatorSkill
- agency-drupal-performance-engineerSkill
- agency-drupal-shopping-cart-engineerSkill
- agency-email-intelligence-engineerSkill
- agency-embedded-firmware-engineerSkill
- agency-feishu-integration-developerSkill
- agency-filament-optimization-specialistSkill
- agency-finops-engineerSkill
- agency-frontend-developerSkill
- agency-gaussdb-expert-engineerSkill
- agency-git-workflow-masterSkill
- agency-internationalization-engineerSkill
- agency-identity-access-engineerSkill
- agency-incident-response-commanderSkill
- agency-iot-fleet-engineerSkill
- agency-it-service-managerSkill
- agency-llm-post-training-engineerSkill
- agency-minimal-change-engineerSkill
- agency-mobile-app-builderSkill
- agency-mobile-release-engineerSkill
- agency-multi-agent-systems-architectSkill
- agency-network-engineerSkill
- agency-orgscript-engineerSkill
- The first 60 shown.
The file
Files
Design DNA Extraction Skill
This skill governs the extraction, synthesis, and codification of visual design tokens and structural component boundaries from captured multi-viewport DOM evidence.
Core Objectives
- Deterministic Token Synthesis:
- Aggregate computed style evidence across captured viewports (Desktop
1440px, Tablet768px, Mobile390px). - Extract raw CSS color values and map them by frequency and semantic role (
background,foreground,accent,border). - Determine baseline vertical rhythm and spacing scales using greatest common divisor (GCD) analysis of padding and margin values.
- Aggregate computed style evidence across captured viewports (Desktop
- Typography Hierarchy Modeling:
- Detect primary and secondary font families (including self-hosted
@font-facefonts). - Infer font size scales and line height ratios for structural roles:
heroTitle: 48px - 72px+sectionTitle: 28px - 40pxcardTitle: 20px - 24pxbody: 14px - 16pxcaption/metadata: 11px - 13px
- Detect primary and secondary font families (including self-hosted
- Page Decomposition & Component Hypotheses:
- Partition the page into distinct component boundaries:
- Navigation / Header (
navbar,header) - Hero Section (
hero-banner,hero-visual) - Feature Matrix / Bento Grids
- Interactive Showcases (Carousels, Video players, Tabs)
- Testimonial / Proof sections
- Footer / Legal navigation
- Navigation / Header (
- Assign responsive behavior rules (e.g.
stack-vertically,hide-on-mobile,wrap-grid).
- Partition the page into distinct component boundaries:
CLI Execution
# Analyze captured evidence to generate Design DNA and page decomposition
bun mimera analyzeGenerated Artifacts
Executing bun mimera analyze produces two cryptographic evidence payloads in SQLite:
design-dna: Containspalette,typography,spacingScale,rhythmUnit, andresponsiveRules.page-decomposition: Containscomponentsarray with bounding boxes, tag hierarchies, and assigned selectors.
Codification Pattern
Translate extracted Design DNA into clean CSS variables in your target stylesheet (e.g. src/styles/tokens.css):
:root {
/* Extracted Palette */
--bg-primary: #0a0a0c;
--bg-surface: #141419;
--text-primary: #ffffff;
--text-muted: #8e8ea0;
--accent-glow: #6366f1;
/* Extracted Spacing Rhythm */
--rhythm-unit: 8px;
--space-xs: 4px;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 24px;
--space-xl: 32px;
--space-2xl: 64px;
/* Typography */
--font-display: 'Inter', system-ui, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
}Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

