How fyloss/spec-kit-figma works
spec-kit-figma is a SpecKit extension that supplies Figma design context to specification, planning, task, analysis, and implementation workflows. Its main path is: SpecKit phase hooks trigger context refresh; the extension resolves whether Figma applies, gathers design context, and renders it for document-generating phases. Verification checks generated sections, while drift checks compare analyzed documents with current Figma designs. The README also documents manual introspection and image export. Relationships below are based on README statements; source excerpts were not available.
Main entry points: figma-ensure-context.sh Ensure context · bash REST context engine · speckit.figma.ensure.md Ensure command · figma-render-section.sh Section renderer
Components 18
SpecKit workflow
- SpecKit phases
- Ensure command
commands/speckit.figma.ensure.md - Ensure context
scripts/bash/figma-ensure-context.sh - Section renderer
scripts/bash/figma-render-section.sh - Spec / plan / task sections
templates
Design context
- Project config
config/figma.projects.config.schema.json - Introspect command
commands/speckit.figma.introspect.md - REST context engine
scripts/bash - MCP context engine
scripts/bash
Design guidance
- Design rules
.figma/figma-design-rules.md
Validation and assets
- Verify command
commands/speckit.figma.verify.md - Section verification
scripts/bash/figma-verify-section.sh - Drift command
commands/speckit.figma.drift.md - Design drift check
scripts/bash/figma-check-drift.sh - Export command
commands/speckit.figma.export.md - Image export
scripts/bash/figma-export-images.sh
Other components
- Developer / agent
- Figma
Connections 21
- SpecKit phases → Ensure command: invokes before phases
README.md - Ensure command → Ensure context: runs
README.md - Ensure context → Project config: uses project config
README.md - Ensure context → Design rules: provides rules
README.md - Ensure context → REST context engine: refreshes context
README.md - Ensure context → Section renderer: renders context
README.md - Introspect command → REST context engine: supports deep dives
README.md - REST context engine → Figma: fetches snapshots
README.md - Ensure context → MCP context engine: may select
README.md - MCP context engine → Figma: fetches richer context
README.md - REST context engine → MCP context engine: fallbacks to REST
README.md - Section renderer → Spec / plan / task sections: supplies sections
README.md - SpecKit phases → Verify command: invokes after generation
README.md - Verify command → Section verification: runs section check
README.md - SpecKit phases → Drift command: invokes after analyze
README.md - Drift command → Design drift check: runs drift check
README.md - Design drift check → Figma: compares with designs
README.md - Developer / agent → Introspect command: requests introspection
README.md - Developer / agent → Export command: requests export
README.md - Export command → Image export: runs image export
README.md - Image export → Figma: exports node images
README.md