Repository navigation
uSpec V2.2
Highlights
- Render-meta appendix in Component Markdown — every
components/<name>.mdnow ships a fenced JSON block delimited by<!-- render-meta:start v=1 -->/<!-- render-meta:end -->carryingsectionTargets,groupTargets,booleanDefs[].associatedLayerId,subComponents[],slotContents[], and a SHA-256sourceHashof the underlying_base.json. Downstreamcreate-*skills consume this directly — no more fuzzy name lookups againstlayoutTree. - Layer identity stamped on structure output —
extract-structure's new R6 rule populatessection._anchoron every section and_layerName/_layerIdon every group-header row, sourced from_base.json.variants[<default>].layoutTree. Sub-component sections anchor to the in-context INSTANCE node, slot sections to the slot host, composition sections to"__root__". borderWidth+borderAlignrow pair — both rows share thestrokePaintToken != nullgate. Legacy_base.jsonwithoutdimensions.strokeAligndegrades cleanly toborderAlign: "—"withprovenance: "not-measured"and ageneralNotesrecommendation to re-extract.
Figma plugin 2.3.0 (uspec-extract)
- Boolean-gated layer fallback (Phase A). Boolean → gated layer resolution walks
componentPropertyReferences.visibleand falls back to sibling variants when the layer is absent from the default state (e.g., a "clear" button that only appears when input is active). strokeAligncapture (Phase E).extractDims()emitsstrokeAlignas{ value, token: null, display }alongsidestrokeWeight. Present onvariants[].dimensions,treeHierarchical[*].dimensions, andsubComponentVariantWalksentries.- Node ids on every walk entry.
treeHierarchical,layoutTree,treeFlat,colorWalk,revealedTree,revealedColorWalk, and Phase ImeasureHierarchicalall carry the Figma nodeid/nodeIdof the source layer.
Rebuild locally to pick up the changes: cd figma-plugin && npm install && npm run build, then re-import the manifest in Figma Desktop.
Structure skill follow-ups
borderWidthrows now requirestrokeWeight.value > 0— no more phantomborderWidth: 0rows on nodes with the property set but no painted stroke.- Notes columns can no longer carry Figma node ids or
TODO: confirm with Figmastubs — Notes is engineer-facing implementation context. - The Mode A / B split added on top of V2.1.4's
7d2e7f4baseline is reverted in favour of the simpler unifiedrootOnly/fullTreeannotation flow.
Housekeeping
maintaining.mdupdated for npm's current web-based 2FA flow (no more--otp=…).utils/README.mdremoved;README.mdandimplementation.mdprose tightened.
Get the changes
npx uspec-skills updateThe Figma plugin is built locally — rebuild and re-import to pick up plugin 2.3.0 behaviour. No action needed on existing Figma libraries.
Companion npm release: uspec-skills@0.2.10.