hugin-v0

Hugin-v0 streamlines the design-to-production process for React apps by translating Figma mockups into production-ready components.

hugin-v0

A Claude Code plugin that helps product designers and engineers ship design-to-production react apps — translating Figma mockups into accessible, production-ready components with automated code reviews, architecture guardrails, and quality gates baked into every workflow.

Packed with 27 skills, 13 agents, 8 event hooks, 7 MCP servers, 4 output styles, and 1 LSP server covering the full stack: React 19, TypeScript, Express, Prisma, DSAI Design System, and Bootstrap 5.

Built for and tested with draft_v0 — a full-stack starter with opinionated architecture, ADR workflows, task management, Figma integration, and automated code quality gates.

Requirements

Installation

From a marketplace (recommended)

/plugin marketplace add michelve/hugin-marketplace
/plugin install hugin-v0@hugin-marketplace

Local testing

claude --plugin-dir ./path/to/hugin-v0

Or from within Claude Code:

/plugin marketplace add ./path/to/hugin-v0
/plugin install hugin-v0

What's included

Skills (28)

SkillDescriptionInvocable
accessibilityWCAG 2.1 AA — keyboard nav, ARIA, focus management, color contrast/accessibility
adr-writerWrite Architecture Decision Records in MADR 4.0.0 format/adr-writer
automatic-code-reviewSemantic code review on modified files (hook-driven)auto
figma-code-connect-componentsConnect Figma components to code via Code Connect/figma-code-connect-components
component-visualizerGenerate interactive HTML dependency graphs for React components/component-visualizer
figma-create-design-system-rulesGenerate project-specific design system Figma-to-code rules/figma-create-design-system-rules
figma-create-new-fileCreate a new blank Figma design or FigJam file/figma-create-new-file
create-tasksBreak PRDs into well-formed, INVEST-compliant tasks/create-tasks
figma-generate-designBuild or update full-page screens in Figma from design system/figma-generate-design
figma-generate-libraryBuild professional design systems in Figma from codebase/figma-generate-library
figma-implement-designTranslate Figma nodes into production-ready code/figma-implement-design
figma-useMandatory prerequisite for every use_figma Plugin API call/figma-use
miro-mcpCreate diagrams, tables, docs on Miro boards via MCP/miro-mcp
nodejsNode.js backend patterns — async/await, middleware, layered architecture/nodejs
playwright-skillBrowser automation, e2e testing, UI validation/playwright-skill
prismaPrisma Client queries, schema, migrations, transactions/prisma
reactReact 19 hooks, Suspense, lazy loading, TypeScript patterns/react
react-best-practicesVercel Engineering performance optimization guidelines/react-best-practices
route-testerHTTP API route testing, auth strategies, integration tests/route-tester
dsai-componentsDSAI component catalog, types, patterns, compound components, FSM/dsai-components
skill-creatorCreate new Claude Code skills and instruction files/skill-creator
skill-developerDevelop and iterate on existing skills/skill-developer
dsai-stylingBootstrap 5 + DSAI CSS custom properties, cn(), token pipeline/dsai-styling
dsai-toolsDSAI CLI tools — dsai add, tokens build, icons, framework mappers/dsai-tools
dsai-figmaDSAI Figma integration — token sync, FigmaClient, Code Connect/dsai-figma
task-checkVerify task completion against acceptance criteria/task-check
web-design-guidelinesUI accessibility and design review/web-design-guidelines
writing-testsTest naming, assertions, edge case coverage (BugMagnet-based)/writing-tests

Agents (13)

AgentModelPurpose
principal-engineeropusFirst-principles engineering analysis (default main agent)
code-architecture-revieweropusReview code for best practices and architectural consistency
plan-revieweropusReview development plans before implementation
auto-error-resolversonnetFix TypeScript compilation and build errors systematically
code-refactor-mastersonnetRefactor code for better organization and maintainability
documentation-architectsonnetCreate, update, and enhance documentation
refactor-plannersonnetAnalyze code structure and create refactoring plans with risk assessment
analyzersonnetPost-hoc analysis of blind comparison results
comparatorsonnetBlind comparison of two outputs for skill evaluation
gradersonnetEvaluate expectations against execution transcripts
automatic-code-reviewerhaikuSemantic code review using project-specific rules
task-checkhaikuVerify task completion against acceptance criteria
web-research-specialisthaikuResearch debugging solutions, best practices, documentation

Hooks (8 event hooks across 4 event types)

HookEventTriggerPurpose
commitlint-enforcerPreToolUseBefore bash commandsEnforce conventional commit messages
anti-pattern-guardPreToolUseBefore file writesWarn on React 19 anti-patterns
adr-gateUserPromptSubmitBefore prompt processingCheck for ADR-qualifying decisions
task-context-injectorUserPromptSubmitBefore prompt processingInject task context from .tasks/
inject-adr-contextUserPromptSubmitBefore prompt processingInject ADR context into prompts
quality-gate-reminderPostToolUseAfter file editsRemind to run typecheck and biome:check
automatic-code-review (log)PostToolUseAfter file editsLog modified files for review
automatic-code-review (run)StopBefore session endsRun semantic code review on all changes

MCP Servers (7)

ServerPackageNotes
context7@upstash/context7-mcpUp-to-date library documentation
playwright@playwright/mcpBrowser automation
figmafigma-developer-mcpRequires $FIGMA_API_KEY
figma-consolefigma-console-mcpRequires $FIGMA_API_KEY
sequential-thinking@anthropic/sequential-thinking-mcpComplex reasoning chains
miro-mcpURL-based (mcp.miro.com)Board creation and data extraction
dsaidsai@latest mcpDSAI component registry access

Output Styles (4)

StyleDescription
architecture-reviewStructured architectural analysis with dependency mapping and component diagrams
code-reviewInline findings with severity levels and diff-block fix suggestions
refactoringBefore/after comparisons with risk-tagged migration steps
documentationTechnical documentation with API tables and progressive code examples

Switch styles with /output-style architecture-review, /output-style code-review, etc.

LSP Servers (1)

ServerBinaryInstallLanguages
typescripttypescript-language-servernpm install -g typescript-language-server typescript.ts, .tsx, .js, .jsx

The TypeScript LSP gives Claude real-time diagnostics, go-to-definition, find-references, and type information while editing. You must install the language server binary separately — the plugin configures the connection, not the server itself.

Environment Variables

Some MCP servers and skills require API keys to function. Set them in your shell before launching Claude Code — the plugin reads from your environment at startup.

Required keys

VariableUsed byGet it from
FIGMA_API_KEYfigma, figma-console MCP serversFigma → Settings → Personal access tokens

Optional keys

VariableUsed byNotes
MIRO_API_KEYmiro-mcp serverOnly needed if your Miro board requires auth beyond the web URL

Setup

Add to your ~/.zshrc, ~/.bashrc, or ~/.profile:

export FIGMA_API_KEY=fig_xxxxxxxxxxxxxxxxxxxxx

Then reload: source ~/.zshrc

Verify your setup

After setting your keys, run the /setup command inside Claude Code to verify everything is configured:

/setup

This checks that required environment variables are set, MCP servers can initialize, and the TypeScript LSP binary is installed.

Development

Test locally

claude --plugin-dir ./hugin-v0

Validate

claude plugin validate ./hugin-v0

Local validation

The plugin ships a standalone validator that checks frontmatter, hooks, evals, and project structure — the same checks that run in CI.

# Full project scan
./scripts/validate-plugin.sh

# Validate a specific skill or agent
./scripts/validate-plugin.sh skills/react/SKILL.md

# Validate only git-staged files
./scripts/validate-plugin.sh --staged

# Auto-fix: generate missing evals/, trigger-evals.json, skills-rules.json
./scripts/validate-plugin.sh --fix

# Fix a specific skill
./scripts/validate-plugin.sh --fix skills/react/SKILL.md

Errors block with exit code 1. Warnings are shown but do not block.

Pre-commit hook

Install the pre-commit hook to automatically validate plugin files before every commit:

ln -sf ../../scripts/pre-commit-validate.sh .git/hooks/pre-commit

The hook detects which staged files are plugin-relevant and runs targeted or full validation accordingly. Bypass once with git commit --no-verify.

Hot reload (inside Claude Code)

/reload-plugins

Author

michelve

License

MIT — see LICENSE