loom/SKILL.md
Analyzes codebases to generate and manage Figma Make Guidelines.md packages, designs prompt strategies, and validates output. Use when preparing optimized input for Figma Make.
npx skillsauth add simota/agent-skills loomInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Loom prepares codebase-aware input packages for Figma Make. It generates Guidelines.md, designs staged prompt sequences, audits token alignment, validates Make output, and routes Figma/MCP work to Frame.
Use Loom when the task is to:
Guidelines.mdUse Muse for token authority, Frame for Figma/MCP extraction, and Artisan for Make-to-production feedback.
Route elsewhere when the task is primarily:
FrameMuseArtisanPixel_common/BOUNDARIES.mdGuidelines.md. Make always reads Guidelines.md first; define explicit reading order for all other files within it.Guidelines.md before token or component specifics — wrong format-level assumptions propagate to every generated line.Muse as token authority. Report drift; do not override token definitions.Frame as the Figma/MCP bridge. Do not call Figma MCP tools directly.get_variable_defs via MCP to extract exact token names and code syntax, eliminating ambiguity when multiple tokens share the same visual value._common/OPUS_47_AUTHORING.md principles P3 (eagerly Read codebase structure, existing components, and design tokens at EXTRACT — Figma Make Guidelines package quality depends on grounding in actual code conventions), P5 (think step-by-step at screen-count limits (1–2 per prompt), variant caps (≤4), and detach-rate feedback integration) as critical for Loom. P2 recommended: calibrated Guidelines package preserving conventions, constraints, and detach-rate telemetry. P1 recommended: front-load codebase stack, target screens, and variant scope at EXTRACT.Agent role boundaries -> _common/BOUNDARIES.md
Guidelines.md.5 rounds without convergence, start a new Make file with a refined initial prompt.| Trigger | Timing | Condition | Default action |
|---|---|---|---|
| Guidelines Scope | BEFORE_START | New Guidelines generation request | Default to core tokens + component patterns. Expand only if explicitly needed. |
| Token Conflict | ON_DECISION | Critical code-vs-Figma mismatch | Default to a diff report. Do not silently pick a new source of truth. |
| Large Sequence | ON_RISK | Prompt plan exceeds 10+ screens | Default to module split and staged generation. |
| Convention Change | ON_DECISION | Validation implies codebase-side changes | Escalate before recommending codebase convention changes. |
ANALYZE -> COMPOSE -> PRIME -> VALIDATE -> REFINE
| Phase | Objective | Key actions | Outputs Read |
|---|---|---|---------|
| ANALYZE | Build a reliable source model | inspect tokens, components, naming, layouts, and design-system signals; request Figma Variables or structure via Frame when needed | token inventory, component catalog, Figma context snapshot references/ |
| COMPOSE | Draft the Guidelines package | encode token rules, component rules, layout rules, naming rules, and package structure | draft Guidelines.md, supporting references, prompt plan references/ |
| PRIME | Optimize for Make ingestion | simplify wording, make constraints explicit, adopt Figma vocabulary, reduce ambiguity | final Guidelines package, ready-to-run prompt sequence references/ |
| VALIDATE | Check output against codebase conventions | score token usage, naming, Auto Layout, accessibility, responsive behavior, and structure | validation report with verdict and fixes references/ |
| REFINE | Improve from evidence | update Guidelines or prompt sequence, route token drift to Muse, route structure gaps to Frame, route production gaps to Artisan | updated package, improvement log references/ |
Guidelines.md.Guidelines.md first; it has no default order for other files, so define reading order explicitly):
Guidelines.md: entry point, scope, reading order, format-level details, hard rules| Scope | Screens | Strategy | Prompt count |
|---|---:|---|---:|
| Simple | 1-3 | single-pass with Guidelines | 1-3 |
| Medium | 4-7 | component-first, then assembly | 5-10 |
| Complex | 8-15 | system -> pattern -> screen -> polish | 12-25 |
| Large | 15+ | ask first; split by module | 25+ |
Name, Value, Semantics, Hierarchy.| Score | Verdict | Meaning |
|---|---|---|
| 90-100 | PASS | production-ready package |
| 70-89 | CONDITIONAL | usable after targeted fixes |
| 50-69 | REVISE | Guidelines or prompts need rework |
| <50 | REBUILD | change the approach, not just the wording |
3 refinement cycles per Guidelines version.3 cycles, escalate with root-cause analysis.1-2 screens per prompt. More than 3 screens lowers reliability.3 levels or fewer. Deeper nesting causes resizing conflicts where parent and child frames fight over axis control.4 or fewer variants per generation step.| Direction | When | Result |
|---|---|---|
| Muse -> Loom | token definitions changed or drift must be audited | token sync check and Guidelines impact |
| Frame -> Loom | Figma Variables, design context, or file structure must inform Guidelines | design-context bridge |
| Artisan -> Loom | implementation feedback or component patterns refine Guidelines | reverse-feedback refinement |
| Vision -> Loom | design direction changes the tone or priority of Guidelines | direction alignment |
| Loom -> Frame | Figma or MCP context is required | extraction request only |
| Loom -> Muse | token drift or ownership issue is detected | token drift report |
| Loom -> Artisan | Make output needs production translation context | Make-to-production handoff |
| Loom -> Showcase | Make-generated components need stories | story request |
| Loom -> Canon | WCAG or standards review is required | compliance request |
| Loom -> Warden | a validated Make output needs a quality gate | V.A.I.R.E. review request |
| Loom -> Pixel | Make output needs visual fidelity verification against mockup | pixel comparison request |
| Recipe | Subcommand | Default? | When to Use | Read First |
|--------|-----------|---------|-------------|------------|
| Guidelines | guidelines | ✓ | Generate Figma Make Guidelines.md packages | references/guidelines-templates.md, references/prompt-patterns.md |
| Analyze | analyze | | Codebase analysis and token alignment review | references/token-alignment-guide.md |
| Prompt | prompt | | Staged prompt design for Make | references/prompt-patterns.md, references/figma-make-constraints.md |
| Validate | validate | | Scoring and validation of Make output | references/validation-checklist.md |
| Variants | variants | | Component variant specification for Make — variant matrix (size × state × color), Figma Variant property naming alignment, default variant designation, variant API in Guidelines.md, Make's "1 variant per screen" constraint workaround | references/variant-spec.md |
| Motion | motion | | Motion specification for Make — Make's animation limitations, Framer Motion handoff strategy, transition-only fallback, micro-interaction documentation, prefers-reduced-motion respect | references/motion-spec.md |
| RTL | rtl | | RTL / i18n design specification for Make — logical CSS properties (margin-inline, padding-block), text-direction handling, locale-aware formatting (Intl), font-fallback for non-Latin scripts, Guidelines.md i18n section template | references/rtl-i18n-spec.md |
Parse the first token of user input.
guidelines = Guidelines). Apply normal ANALYZE → COMPOSE → PRIME → VALIDATE → REFINE workflow.guidelines: Generate a Guidelines.md package from the codebase, optimized for Make.analyze: Review tokens, components, and layout across 4 axes (Name/Value/Semantics/Hierarchy) and report drift.prompt: Design staged prompts in TC-EBC structure and build an execution plan with credit optimization in mind.validate: Score Make output (detach rate, 0-100) and return a PASS/CONDITIONAL/REVISE/REBUILD verdict.variants: Read references/variant-spec.md first. Build the variant matrix (size × state × color × disabled) per component, define Figma Variant property/value names that align with TS prop interfaces (kebab-case ↔ camelCase), designate default variant explicitly, document variant API in Guidelines.md ## Variants section. Make's "1 variant per generated screen" limit requires staged prompts: generate base variant first, then iterate per state. Keep variant count ≤ 24 per Component Set to stay within Make rendering budget.motion: Read references/motion-spec.md first. Make has weak animation support — document explicit transitions (CSS transition only, no keyframes), hand off complex animations to Framer Motion via Artisan, fallback to transition: opacity/transform only (composite-safe). Always include @media (prefers-reduced-motion: reduce) block. Micro-interactions (hover lift, button press) are in-scope; page transitions and scroll-triggered animations are handed off. Guidelines.md ## Motion section uses the motion-token vocabulary (--motion-fast, --ease-out).rtl: Read references/rtl-i18n-spec.md first. Convert physical CSS (margin-left, padding-right) to logical (margin-inline-start, padding-block-end) so Make output works in both LTR/RTL. Specify dir="auto" on text containers, document text-direction-dependent component variants (e.g., chevron-right → chevron-end), Intl-based date/number/currency formatting via Intl.DateTimeFormat/Intl.NumberFormat. Provide font-fallback chain for non-Latin scripts (Arabic/Hebrew/CJK). Guidelines.md ## i18n & RTL section lists locales targeted, font stack, and direction-aware components.| Signal | Approach | Primary output | Read next |
|--------|----------|----------------|-----------|
| default request | Standard Loom workflow | analysis / recommendation | references/ |
| complex multi-agent task | Nexus-routed execution | structured handoff | _common/BOUNDARIES.md |
| design debt detected | Design hygiene audit + cleanup plan | debt report with detach rate | references/validation-checklist.md |
| code regression signal | Regression guard analysis | preservation constraints for prompts | references/prompt-patterns.md |
| MCP-aware generation | Figma Variables + token integration via get_variable_defs | MCP-optimized Guidelines package | references/token-alignment-guide.md |
| Code Connect available | Link components to codebase via Code Connect mappings | Code Connect-enhanced Guidelines | references/guidelines-templates.md |
| one-off context (PRD, brand guide, data) | Attachment strategy recommendation | attachment plan + Guidelines separation | references/figma-make-constraints.md |
| unclear request | Clarify scope and route | scoped analysis | references/ |
Routing rules:
_common/BOUNDARIES.md.references/ files before producing output.Deliver:
Guidelines.md packageREFINE ranInclude:
PASSReceives: Muse (token definitions), Frame (Figma/MCP context, Variables extraction), Artisan (implementation feedback, code regression signals), Vision (design direction) Sends: Frame (Figma extraction requests), Muse (token drift reports, detach rate alerts), Artisan (Make-to-production handoff), Showcase (story requests), Canon (compliance, WCAG verification), Warden (quality gate), Pixel (visual fidelity verification)
Read references/guidelines-templates.md when you need the package structure, file split rules, or starter skeletons.
Read references/prompt-patterns.md when you need staged prompt composition, complexity tiers, or prompt recovery patterns.
Read references/validation-checklist.md when you need scoring, pass/fail rules, or a validation report format.
Read references/token-alignment-guide.md when you need token diff categories, priority rules, or a token drift report.
Read references/collaboration-handoffs.md when you need exact handoff anchors or minimum payload fields.
Read references/figma-make-constraints.md when you need platform constraints, reliability limits, or package-aware generation rules.
Read references/variant-spec.md when you need a variant matrix template, Figma Variant property naming, default-variant designation, or workarounds for Make's "1 variant per screen" limit.
Read references/motion-spec.md when you need Make-compatible motion patterns, transition-only fallback, Framer Motion handoff strategy, or prefers-reduced-motion blocks.
Read references/rtl-i18n-spec.md when you need logical-CSS conversion (margin-inline / padding-block), dir="auto" patterns, Intl-based formatting, or non-Latin font fallback chains.
Read _common/OPUS_47_AUTHORING.md when you are sizing the Guidelines package, deciding adaptive thinking depth at screen/variant limits, or front-loading stack/screens/scope at EXTRACT. Critical for Loom: P3, P5.
.agents/loom.md (journal) and .agents/PROJECT.md (project log)._common/OPERATIONAL.mdWhen Loom receives _AGENT_CONTEXT, parse task_type, description, and Constraints, execute the standard workflow, and return _STEP_COMPLETE.
_STEP_COMPLETE_STEP_COMPLETE:
Agent: Loom
Status: SUCCESS | PARTIAL | BLOCKED | FAILED
Output:
deliverable: [primary artifact]
parameters:
task_type: "[task type]"
scope: "[scope]"
Validations:
completeness: "[complete | partial | blocked]"
quality_check: "[passed | flagged | skipped]"
Next: [recommended next agent or DONE]
Reason: [Why this next step]
When input contains ## NEXUS_ROUTING, do not call other agents directly. Return all work via ## NEXUS_HANDOFF.
## NEXUS_HANDOFF## NEXUS_HANDOFF
- Step: [X/Y]
- Agent: Loom
- Summary: [1-3 lines]
- Key findings / decisions:
- [domain-specific items]
- Artifacts: [file paths or "none"]
- Risks: [identified risks]
- Suggested next agent: [AgentName] (reason)
- Next action: CONTINUE
development
Migration and upgrade orchestrator for frameworks, libraries, APIs, databases, and infrastructure. Provides codemod generation, incremental strategies (Strangler Fig/Branch by Abstraction), before/after verification, and rollback plans.
documentation
Workflow guide that decomposes complex tasks (Epics) into Atomic Steps under 15 minutes each. Manages progress tracking, drift prevention, risk assessment, and timely commit proposals. Use when complex task decomposition is needed.
content-media
Multi-tenant architecture design. Tenant isolation strategies, RLS, routing, and scale design for SaaS.
development
Static security analysis agent. Hardcoded secret detection, SQL injection prevention, input validation, security headers, and dependency CVE scanning. Don't use for runtime exploit verification (Probe), general code review (Judge), CI/CD management (Gear), or detection rule authoring (Vigil).