Skip to main content
command CX Codex

pack — Claude Code slash command: what it does, how to install

pack runs designlang once and drops every output — tokens, components, Storybook, prompts — into one design-system folder you can zip.

MIT ★ 5,183 updated 2026-10-23

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add Manavarya09/design-extract
/plugin install designlang@designlang
Open on GitHub

What pack does

One run of npx designlang pack with a site URL writes every designlang emitter into a single folder. Give it no argument and it asks for the address. Output lands in ./<host>-design-system/ by default.

tokens/ holds DTCG tokens, a Tailwind config, CSS and Figma variables, motion and theme.js. components/ gets typed React stubs. The folder also carries a runnable storybook/ project, a small HTML starter wired to tokens/variables.css, prompts for v0, Lovable, Cursor and Claude Artifacts, a README.md with the grade and a LICENSE.txt recording provenance.

--with-clone replaces the HTML starter with a full Next.js clone, and the run takes longer because of it. Take it when you want an app you can start, not just files to read. When it finishes, the command prints the file count and size, reads back the generated README.md, then points you at zipping the folder or running npm install && npm run storybook inside storybook/.

What it helps with

  • pack tokens, a Tailwind config and CSS variables into one folder
  • get a runnable Storybook project for the design system
  • ship v0 and Lovable prompts next to the tokens
  • hand the whole design system over as a zip
  • swap the HTML starter for a Next.js clone

Example prompts for the agent

  • Run /pack <url> and put every designlang output in one folder.
  • Use /pack <url> --with-clone, I want the runnable Next.js clone rather than the minimal starter.
  • Run /pack <url>, then tell me what the generated README.md says and what is in tokens/.

How to install pack

1Plugin marketplace

/plugin marketplace add Manavarya09/design-extract
/plugin install designlang@designlang

2Manually: put the files in place

.claude/commands/pack.md

Call it with /pack. For all projects use ~/.claude/commands/

Questions about pack

How do I install pack in Claude Code?

Run /plugin marketplace add Manavarya09/design-extract, then /plugin install designlang@designlang. The command file lands at .claude/commands/pack.md.

What does pack do?

It runs designlang once and writes tokens, typed React component stubs, a Storybook project, an HTML starter and prompts into ./<host>-design-system/, then reports the size of the result.

What is --with-clone for?

It swaps the small HTML starter for a full Next.js clone. The run takes longer, and it makes sense when you want a working app out of the folder.

Source text

pack.md · MIT
---
description: Bundle every designlang output (DTCG tokens, Tailwind, shadcn, Figma vars, motion, anatomy, Storybook, prompts) into one polished design-system directory ready to zip and ship.
argument-hint: <url> [--with-clone] [--open]
---

Run the full extraction once and write every emitter output into a single, signed, layered directory.

```bash
npx designlang pack $ARGUMENTS
```

If no URL is provided, ask the user. Default output is `./<host>-design-system/`.

Layout produced:

```
<host>-design-system/
├── README.md           bespoke "Built from <host>" + grade + at-a-glance
├── LICENSE.txt         provenance + usage guidance
├── tokens/             DTCG + Tailwind + CSS vars + Figma vars + motion + theme.js
├── components/         typed React stubs (anatomy.tsx)
├── storybook/          runnable Storybook project
├── starter/            minimal HTML starter wired to tokens/variables.css
├── prompts/            v0 / Lovable / Cursor / Claude Artifacts + named recipes/*.md
└── extras/             voice.json + prompt-pack.md rollup
```

After the run:

1. Surface the headline (`X files, Y KB · ./<dir>`)
2. Read the auto-generated `README.md` and tell the user what's inside
3. Suggest next steps:
   - `cd <dir> && zip -r ../<dir>.zip .` to package for sharing
   - `cd <dir>/storybook && npm install && npm run storybook` to run the design system locally
   - Copy `tokens/tailwind.config.js` straight into a project

Use `--with-clone` to swap the minimal HTML starter for the full Next.js clone (slower; only when the user wants a runnable app).

© Manavarya Singh · MIT · Manavarya09/design-extract

Similar slash commands

All slash commands for Design →

From the same set16

The whole set →

Project sponsors

Companies that keep this analytics open