ds-skill-extraction-workshop: Skill for Claude Code

.claude/skills/primer-react/SKILL.md

primer-react is a skill for Claude Code from vercel-labs/ds-skill-extraction-workshop. It costs 167 tokens per session (3,774 once invoked), scanned A, original, MIT.

A guide for building accessible interfaces with Primer React, GitHub's React component library. It covers the library's visual tokens, assets, components, and public programming interfaces.

In plain words
What is it for?
Use it to build GitHub-style React pages with components such as buttons, inputs, headings, labels, alerts, progress bars, and timelines.
Why use it?
It helps an agent use GitHub's design system consistently instead of inventing separate controls and styles.

Skill for Claude Code ✓ vendor

Written for Claude Code: installed under .claude/.

This is vercel-labs/ds-skill-extraction-workshop's own configuration. It tells Claude Code how to work on ds-skill-extraction-workshop itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ds-skill-extraction-workshop configures →

About the project

Vercel Labs' DS Skill Extraction Workshop is a starter repository for a workshop that teaches developers to turn a design system into reusable agent skills and use one to generate a Primer React interface. It guides participants through setup, generation, and visual review of the resulting application. The catalogue entries provide the skills and instructions used in the workshop.

vercel-labs/ds-skill-extraction-workshop · 13 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to vercel-labs/ds-skill-extraction-workshop. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vercel-labs/ds-skill-extraction-workshop/main/.claude/skills/primer-react/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vercel-labs/ds-skill-extraction-workshop

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for primer-react

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel-labs/ds-skill-extraction-workshop/primer-react/github.svg)](https://agentmods.dev/skills/vercel-labs/ds-skill-extraction-workshop/primer-react)
Your own site
<a href="https://agentmods.dev/skills/vercel-labs/ds-skill-extraction-workshop/primer-react"><img src="https://agentmods.dev/badge/skills/vercel-labs/ds-skill-extraction-workshop/primer-react/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for primer-react

Your own site · 80×15
<a href="https://agentmods.dev/skills/vercel-labs/ds-skill-extraction-workshop/primer-react"><img src="https://agentmods.dev/badge/skills/vercel-labs/ds-skill-extraction-workshop/primer-react.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 167 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,774 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00167 $0.03774
Opus 5.5 $0.00067 $0.01510
Sonnet 5.5 $0.00033 $0.00755
Haiku 4.5 $0.00017 $0.00377

Measured 2mo ago against content hash d773d59ea322, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

primer-react scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/primer-react/SKILL.md · 194 lines

How it starts

The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mission

A primer-react skill is an adapter that teaches an agent how to build high-fidelity apps with Primer React. It is not a copy of the documentation. It tells the agent what to read, what APIs are public, what sources are authoritative, and how to verify that generated UI uses the system correctly.

In scope: tokens, assets, component descriptions, component APIs. Out of scope: tone of voice, marketing copy, product copywriting. When you encounter a copy/naming/casing rule during generation (e.g. "Title Case the label", "placeholder is action-oriented"), recognize it, route it — mention it as a candidate for a sibling copy skill — but do NOT extract it into this DS skill.

Setup

Install:

npm install @primer/react @primer/primitives @primer/octicons-react

Wire the provider in app/layout.tsx (verbatim from vercel-labs/primer-nextjs-template@app/layout.tsx):

"use client";

import "./globals.css";

import { BaseStyles, ThemeProvider } from "@primer/react";
import type { ReactNode } from "react";

export default function RootLayout({ children }: { children: ReactNode }) {
  return (
    <html
      lang="en"
      data-color-mode="auto"
      data-light-theme="light"
      data-dark-theme="dark"
      suppressHydrationWarning
    >
      <body>
        <ThemeProvider colorMode="auto">
          <BaseStyles
            style={{
              backgroundColor: "var(--bgColor-default)",
              height: "100vh",
            }}
          >
            {children}
          </BaseStyles>
        </ThemeProvider>
      </body>
    </html>
  );
}

Source: vercel-labs/primer-nextjs-template@app/layout.tsx.

"use client" is required because ThemeProvider colorMode="auto" reads the browser preference at runtime. suppressHydrationWarning on <html> is required because the provider writes the resolved mode attribute during hydration.

NOTE — the height: "100vh" on <BaseStyles style> above is verbatim from the reference project (a single-screen showcase). In YOUR app use minHeight instead; see the fixed-viewport-height Hard Rule below.

Read the full file on GitHub · 194 lines

Files

What ships with it

36 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 194 lines · 0 tokens per session scan A d773d59ea322

Subscribe to this mod's changes

primer-react is a skill published in the GitHub repository vercel-labs/ds-skill-extraction-workshop (13 stars, last pushed 4mo ago), licensed MIT. It adds 167 tokens to every session and 3,774 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

primer-react compared with skills from other repositories

primer-react next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
primer-reactvercel-labs/ds-skill-extraction-workshopSkill134mo agoMITA167Claude Code
chakra-ui-builderchakra-ui/chakra-uiSkill41kyesterdayMITA214Claude Code, Codex
tamagui-v6-configtamagui/tamaguiSkill14ktodayMITA0Claude Code, Codex
tamagui-theme-generatortamagui/tamaguiSkill14ktodayMITA48Claude Code, Codex
frontend-ui-dark-tsmicrosoft/skillsSkill3.2kyesterdayMITA48Claude Code
cobejsMengTo/SkillsSkill7.3kyesterdayMITA31Claude Code, Codex
vercel-composition-patternscalesthio/OpenMontageSkill77k3d agoAGPL-3.0A58Claude Code, Codex