/throughline:repository-builderfrom ThroughLine
Scaffolds a pnpm + Turborepo monorepo from a local design-system folder, sets up local git, and walks through creating a GitHub remote with PRs and CI. Use when the user wants to turn a folder into a real project, add version control, or set up a monorepo.
Ships in ThroughLine. 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.
Turns the user's working folder into a scalable monorepo and advances their version-control stage. Defaults: pnpm + Turborepo, with a layout ready to grow into a full app:
my-design-system/
├── design-system.json (the manifest, already here)
├── package.json (workspace root)
├── pnpm-workspace.yaml
├── turbo.json
├── .gitignore
├── .env.example
├── packages/
│ ├── tokens/ (synced token output lands here — skill 6)
│ └── ui/ (components / Storybook live here — skill 7)
└── apps/ (empty, ready for a Next.js app later)
Read user.codingLevel from the manifest and ${CLAUDE_PLUGIN_ROOT}/references/coding-level.md.
Everything below describes the actions, which are identical for every user.
How much you explain each concept scales with the level — new gets plain-
language teaching of repos, env files, and secrets; comfortable gets terse
action statements. The hard secret-safety rules never scale.
Scope check first. If the user is bringing an existing app to retrofit or
migrate (not scaffolding a clean monorepo) — or the repo work is entangled with a
larger re-architecture — that has outgrown this skill. Follow
${CLAUDE_PLUGIN_ROOT}/references/scaling-up-handoff.md: surface risks and major parts, confirm scope,
and brainstorm/plan first. For a normal scaffold-from-scratch, continue here.
The user is at one of three workspace.stage values. This skill advances them
one step at a time, introducing each concept only when its payoff is concrete.
Read the current stage from the manifest and pick up where they are.
Create the workspace files (root package.json, pnpm-workspace.yaml,
turbo.json, packages/tokens, packages/ui, apps/, a sensible
.gitignore, and a .env.example). Record repo.packageManager = pnpm,
repo.monorepo = turborepo.
For new users, explain in one line what this is: "A monorepo is just one folder
that holds several related projects together — here, your tokens and your
components, with room to add an app later." For comfortable users, just state
what you scaffolded.
Checkpoint: show the structure, let the user look before committing anything.
git init)This is the soft-nudge seam from the design: the moment code exists, version
history earns its keep. If workspace.stage is still folder, offer it:
new: "Right now your folder has no 'history' — if something breaks there's no
undo. Git gives your folder a memory: every change is saved as a checkpoint you
can see and roll back. Want me to turn that on? It's one step and stays entirely
on your computer — nothing goes online yet."comfortable: "Want me to git init and make the first commit?"If yes: git init, ensure .gitignore covers node_modules, .env, build
output; make an initial commit. Set workspace.stage and repo.stage to
local-git. Confirm the user can see they now have version history.
Do not force git. A user can stay in folder if they insist, but most will
want it once there's code. The token-sync skill needs at least local-git, so
it will re-offer this if skipped.
Only when the user wants what GitHub provides — backup, PRs for token-sync review, CI for Storybook/Chromatic. Frame it as "push what you already have somewhere safe and shareable," not "make an empty repo and figure out what goes in it" — they already have a working local repo.
Detect gh (the GitHub CLI):
gh is present and authenticated: offer to run gh repo create — but
show the exact command and what it will do first, and get approval before
running. A new user may not know what that command does to their account, so
explain: "This creates a repository on your GitHub account and connects your
local folder to it." Never create the repo, set branch protection, or change
settings silently.gh is absent: first recommend installing it. It's the single thing
that turns repo creation from a fiddly multi-step browser chore into one
automated command — exactly the friction this plugin exists to remove. Say so
plainly and offer to guide a quick one-time setup:
brew install gh; Windows winget install GitHub.CLI;
Linux via the system package manager (or cli.github.com). Then authenticate
with gh auth login — walk new users through the browser prompts.gh path
above (show the gh repo create command, get approval, then run it).new users be maximally explicit: go to
github.com, click New repository, name it, leave it empty (don't initialize
with a README), Create, then copy the commands GitHub shows for "push an
existing repository" and run them. Verify the push succeeded.On success, set workspace.stage and repo.stage to github and record
repo.remote. Append repository-builder to completedSkills.
The folder-resident documentation store at design-system/docs/ (canonical
*.doc.json records plus the generated index.json + llms.txt) already exists
from the Figma phase. Bring it under version control as-is — do not relocate it
(the path is stable across folder→repo, and every manifest doc.path points at it).
Ensure it is committed (not git-ignored).
Wire the documentation drift gate into the repo's verification so it runs in CI
alongside tokens:validate: add a docs:check step (the docs-check.mjs script is
installed by storybook-chromatic-builder; if code hasn't been set up yet, note
that the gate comes online with the Storybook step). docs:check exits non-zero on
drift; Figma surfaces report edit-unverified and are checked in a Figma session.
This is where users with low coding experience get stuck — many have never made
an env file or added a secret to a "vault." Handle it with care, scaled to
codingLevel, but with the hard rules constant. There are two distinct
homes for a secret, and conflating them is a common mistake — make the
distinction explicit for new/some users:
.env file. A plain text file in the repo root
holding KEY=value lines, used when running things on your own computer.
It must be gitignored so it never gets committed. The repo ships a
.env.example (no real values, just the key names) as a template — explain
that new users copy it to .env and fill in real values..env, so any secret CI needs (e.g.
CHROMATIC_PROJECT_TOKEN) must be added there separately.The hard rules, regardless of level:
.env is gitignored; only .env.example
(key names, no values) is committed.For new users, teach the why once ("a secret key is like a password for a
service; if it's committed to code, anyone who sees your repo can use it — that's
why it lives in a gitignored file locally and an encrypted vault in
production"). Then give the literal steps. Verify: after they add a secret,
have them confirm it's set (e.g. re-run the workflow and check CI goes green),
because a beginner who pastes it wrong has no other signal.
This skill itself usually only sets up .env.example and the .gitignore. The
actual secret values (Chromatic, etc.) get added when the skill that needs
them runs (Storybook/Chromatic in skill 7) — but explain the env-file concept
here so it's familiar by then.
Tell the user what's unlocked at their new stage. If they came here heading
toward token sync, point them to it ("now we can turn your Figma tokens into real
code files in packages/tokens"). Don't auto-run the next skill.
.env or any secret value.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jrpease/throughline --plugin throughline12 skills in this plugin
/component-builderBuild Figma components — buttons, inputs, cards, badges, chips, modals, and more — with variant matrices (types, sizes, states) and icon/component/content slots bound to the design system's tokens and styles. Use this when the user wants to create components, build a component library, make buttons/inputs/cards/etc. in Figma, or set up the foundational UI kit. Also trigger after tokens and icons exist, when the user is ready to build actual UI components./component-pipelineTake a single new component from Figma to fully-built-and-storied code, end to end — build it in Figma, sync any new tokens it introduced, then build its code component and stories. Orchestrates component-builder, token-sync-layer, and storybook-chromatic-builder with a human confirmation between each stage. Use this when the user wants to add a new component to an existing design system, ship a component end-to-end, or run the full new-component flow. Also trigger on "/new-component" or when someone wants one component built all the way through to code./design-system-auditMeasure a pre-existing design system before retrofitting it onto tokens, so the retrofit is right-sized. This is a PROCESS skill and the brownfield front door. Use this when retrofitting a design system onto a mature codebase and an already-populated Figma file, when the user wants to audit an existing system, size a retrofit, count existing tokens/variables/bindings, or figure out how much work a migration is. Also trigger when figma-environment-setup detects a brownfield situation (existing repo or populated Figma file), before any building./figma-environment-setupSet up the local working folder and connect Claude to Figma so the design-system skills can read and write variables, styles, and components. Run this BEFORE brainstorming and before any other design-system skill. Invoke it immediately when the user wants to start, set up, or begin building a design system — phrases like 'let's setup my design system', 'let's get started', 'connect Figma', or 'build my design system' should all trigger this skill first, ahead of brainstorming. Also trigger when the user wants to fix a broken Figma connection, or mentions the Figma Console MCP, the desktop bridge plugin, or a Figma access token./icon-system-builderBuild an icon system in Figma — a dedicated "Icons" page of well-named, scalable icon components from Lucide, Tabler, Phosphor, Material, or custom SVGs. Use this when the user wants to set up icons, add an icon library, import Lucide or Material icons, create icon components, or build an icon set in Figma. Also trigger when the user mentions iconography, an icon page, or needs icons for their components./retrofit-plannerOrchestrate a full brownfield design-system retrofit end to end — audit, refine, rebind, sync, baseline, code, docs, cleanup — with a human confirmation gate between every phase. Use this when the user wants to run a complete retrofit, migrate a mature codebase and populated Figma file onto tokens, resume an in-progress retrofit, or be walked through the safe retrofit sequence. Also trigger after design-system-audit has sized the system, or when figma-environment-setup detects an in-progress retrofit.Other plugins' skills for the same job