agentleFS
crywolfecrywolfe/claude-code-design/.claude/skills/handoff/SKILL.md

handoff

Skill0 starsChanged 7 days agoMITView on GitHub

Build a developer handoff bundle for an artifact — source, extracted components, tokens, a README with structure + assumptions + open questions, the reference screenshot, and an optional zip. Use when user says "hand off", "handoff", "dev bundle", "give this to engineering".

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use decision-mapping, setup-ts-deep-modules and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • FabienDehopreSkill

    decision-mapping

    Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.

    Also in 8 projects that use this

  • liufeng1976Skill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 52 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 63 projects that use this

  • AWSSkill

    to-questionnaire

    Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

    Also in 110 projects that use this

  • GoogleSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 107 projects that use this

  • LesaniSkill

    writing-fragments

    Grilling session that mines the user for fragments — heterogeneous nuggets of writing (claims, vignettes, sharp sentences, half-thoughts) — and appends them to a single document as raw material for a future article. Use when the user wants to develop ideas before imposing structure, or mentions "fragments", "ideate", or "raw material" for writing.

    Also in 67 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never cp the source HTML itself into the bundle.

    line 32
  2. Very specific:

    If .claude/design-tokens.json exists: Bash(cp .claude/design-tokens.json handoff/<name>/src/tokens.json).

    line 38
  3. Very specific:

    Always Write src/tokens.css with the same values as CSS custom properties.

    line 40
  4. Very specific:

    Never write outside handoff/.

    line 74
  5. Distinctive:

    No secrets, tokens, or absolute machine paths in the README.

    line 75

“Common” is measured: kept by at least 6 in 10 of the 172 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Handoff

Mirror of Claude Design's "Handoff" export: a self-describing bundle a developer can pick up without the chat history. Output lands in handoff/<name>/ (gitignored).

Preconditions

  • $0 must be a path under artifacts/. Refuse anything else.
  • The artifact should have passed /done this session (a fresh .claude/last-preview.png exists). If not, run /done $0 first.

Steps

  1. Timestamp: Bash(date -u +%Y%m%dT%H%M%SZ) → <ts> (use the printed value; no shell substitution).
  2. Layout: <name> = basename of $0 without extension, slugified.
    Bash(mkdir -p handoff/<name>/src/components)
  3. Copy the source with dev-only tooling removed (preview-time tools such as live reload, the editor overlay and the sketch pad are not part of the design). Stripping is done by code, never by hand:
    Bash(node scripts/prepare-publish.mjs artifacts/<path> --strip-only --out handoff/<name>/src/<name>.html)
    • Non-zero exit: stop and show the output (exit 4 means dev-only content survived stripping).
    • On success the JSON lists stripped (what was removed) and local_refs (the sibling files the cleaned HTML still references). Bash(cp artifacts/<dir>/x.jsx handoff/<name>/src/x.jsx) each entry of local_refs (spell each path literally). Never copy a file that was stripped: dev-only scripts and their siblings stay out of the bundle.
    • Never cp the source HTML itself into the bundle.
    • Bash(cp .claude/last-preview.png handoff/<name>/reference.png) if it exists.
  4. Extract components. Read the HTML. For every inline <script type="text/babel"> block, split top-level function Foo(...) / const Foo = (...) => React components into handoff/<name>/src/components/<Foo>.jsx via Write, each ending with export default Foo;. Keep the app entry (ReactDOM.createRoot(...)) in src/App.jsx. Non-React artifacts (plain decks): skip this step and say so in the README.
  5. Extract tokens.
    • If .claude/design-tokens.json exists: Bash(cp .claude/design-tokens.json handoff/<name>/src/tokens.json).
    • Otherwise derive src/tokens.json from --tweak-* custom properties and the :root block in <style>.
    • Always Write src/tokens.css with the same values as CSS custom properties.
  6. Write handoff/<name>/handoff.json (machine-readable manifest):
    {
      "name": "<name>",
      "source": "artifacts/<path>",
      "generated_at": "<ts>",
      "kind": "deck | prototype | wireframe | animation | design-system | page",
      "artboards": [ { "id": "slide-1", "label": "Cover", "width": 1920, "height": 1080 } ],
      "components": ["Header", "Card"],
      "tokens": "src/tokens.json",
      "published_url": "<from design-assets.json if /publish ran, else null>",
      "dependencies": { "react": "18.3.1", "react-dom": "18.3.1", "@babel/standalone": "7.29.0" }
    }
    artboards: one per <section> for decks, one per <DesignCanvas.Cell> for wireframes, one per top-level screen for prototypes.
  7. Write handoff/<name>/README.md with these sections, in this order:
    • What this is — one paragraph, the brief in the user's words.
    • Structure — file tree of the bundle; component → path map.
    • Run it — python3 -m http.server 4567 --bind 127.0.0.1 --directory src then open http://127.0.0.1:4567/<name>.html.
    • Integrate — Vite / CRA / plain <script type="module"> steps; note the window.* exports the multi-file Babel contract relies on.
    • Design decisions & assumptions — every choice made without explicit user confirmation (fonts, spacing scale, placeholder imagery, invented copy). Be specific; this is the list a developer will question.
    • Open questions — anything the user deferred or the brief left unresolved.
    • Tokens — table of tokens.json.
    • Reference — link to reference.png and, if present, the published URL and its comment thread.
  8. Optional zip (only with --zip): Bash(zip -r handoff/<name>-<ts>.zip handoff/<name>).
  9. Report: bundle path, file count (Bash(ls handoff/<name>/src)), and the two README sections most worth a developer's attention: assumptions and open questions.

Rules

  • Never write outside handoff/. Never modify the source artifact.
  • No secrets, tokens, or absolute machine paths in the README.
  • The README is prose for a developer, not a transcript: summarize what was decided, not what was said.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.