/officialunofficial-skills:to-primitives [feature description, or path to a story/PRD doc]from Official Unofficial Skills
Decomposes a feature into capability primitives, grades each against the current codebase, and produces an in-repo design doc with a build-order graph.
Ships in Official Unofficial Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill takes a feature — a user story, flow, or expected outcome, from the argument or the current conversation — and abstracts it into the capabilities it rests on, graded against whatever repo you are standing in. It is repo-agnostic: discover each repo's architecture at run time; assume nothing about planes, layers, or stacks. It earns its cost on features; don't point it at one-line fixes.
exists — the codebase, or a dependency it already uses, provides it. Cite file:line.partial — cite what exists at file:line, plus a one-line gap: what it still lacks for this feature.missing — nothing to build on.Stopping rule (two-sided). exists → cite and stop decomposing. missing → split only while the sub-parts are themselves missing and would be built and tested independently; the floor is what the platform, stdlib, or existing dependencies already hand you. Depth therefore adapts to the repo: shallow in a mature codebase, sinking as deep as "you need a persistence layer, full stop" in a young one.
Intake gap-check. The story may already be refined (e.g. via /grilling) — respect that work. Hunt for the ambiguities whose answer would change the primitive set: durability across restarts, approval gates, multi-tenancy, ordering guarantees, latency class. Ask only those, batched, each with a recommended answer; every unasked judgment call becomes a stated assumption. Done when each load-bearing ambiguity is either answered or written down as an assumption.
Ground in the repo. Read the repo's domain docs when present (CONTEXT.md, docs/adr/, docs/design/, architecture pages), then fan out read-only exploration agents to grade every candidate primitive. Done when every primitive and prerequisite carries a grade and every exists/partial grade carries file:line evidence — a grade with no citation is not a grade.
Abstract. Name the primitives by behavior, apply the stopping rule, and list external prerequisites in their own section — things outside the repo's code the feature is unbuildable without: webhook subscriptions, OAuth registrations, deployed infra, secrets, contracts, data sources. Same grading. Then name the core components on top. Done when every component's constituent primitives all appear in the primitives section.
Order the missing. Draw a small mermaid dependency graph over the missing pieces only — nodes are the missing pieces, edges are "needs" — then derive waves: wave 1 = buildable now, wave 2 = unblocked by wave 1, and so on. Done when every missing piece appears in exactly one wave.
Write the doc to docs/design/<feature-slug>-primitives.md in the target repo, using the template below. Leave it untracked and leave the issue tracker alone — turning waves into issues is a separate, deliberate step (/to-issues).
The doc's altitude is capabilities and assemblies; implementation tasks (files, functions, migrations) belong to the tracker, downstream.
The feature restated in two to four sentences, from the user's perspective.
The judgment calls made without asking, one line each — each one falsifiable, so a wrong assumption is cheap to correct and re-run.
| Primitive | Grade | Evidence | Gap |
|---|---|---|---|
| behavior-named capability | exists / partial / missing | file:line | partial only: the one-line gap |
Same table shape, for what lives outside the repo's code.
Each component: one line of what it does, plus the primitives it wires together.
graph TD
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub officialunofficial/skills --plugin officialunofficial-skills85 skills in this plugin
/alignmentMeasures a running page for edges, gaps, centres and radii that miss by a pixel or two, judges visual weight, and returns a numbered report with proof./animateBuilds a web animation from scratch and writes the code. Decides in order whether it should animate at all, its purpose, the tool, the properties, the easing and duration or spring, how it interrupts and exits, and reduced motion. Use when asked to animate something, add motion, build a transition, or make a component feel alive. For React Native or Expo use animate-expo. To critique existing motion use review-animations. To audit a whole codebase use improve-animations./animate-expoOther plugins' skills for the same job