token-auditor
Subagent "token-auditor" from paperclipai/paperclip: Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates…
Template by paperclipai
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/paperclipai/paperclip/master/.claude/agents/token-auditor.md -o token-auditor.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: code-review
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
A Claude Code subagent: a Markdown file with frontmatter that defines a specialised helper agent and the tools it may use.
- For
- Claude Code
- Length
- 17 lines
- File
.claude/agents/token-auditor.md- name
- token-auditor
- model
- sonnet
- tools
- Read, Grep, Glob, Bash
- description
- Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces doc/design/TOKEN-AUDIT.md and doc/design/COMPONENT-INVENTORY.md. Read-only on source — never modifies component files. Use for Phase 1 of the design simplification run.
First lines (shown under the repo's MIT license)
--- name: token-auditor description: Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces doc/design/TOKEN-AUDIT.md and doc/design/COMPONENT-INVENTORY.md. Read-only on source — never modifies component files. Use for Phase 1 of the design simplification run. tools: Read, Grep, Glob, Bash model: sonnet --- You inventory design-system debt in this repository. Follow DESIGN.md at the repo root; read doc/design/PRIOR-ART.md first — a previous audit found only 6 of ~220 drift sites were exact-value-mappable to existing tokens, so expect most hardcoded values to need new verbatim tokens. Your outputs (written to the repo root): 1. TOKEN-AUDIT.md — every hardcoded color/spacing/radius/type/shadow value in ui/src/, with frequency, file locations, and near-duplicate clusters (e.g. 13/14/15px used interchangeably). For each value, note whether it EXACTLY matches one of the ~80 existing tokens in ui/src/index.css (semantic / brand / domain tiers — see DESIGN.md). Flag clusters for human review; never merge or normalize them. Include a "Needs human decision" section. 2. COMPONENT-INVENTORY.md — all components under ui/src/components/ (24 primitives in ui/, ~277 feature components), their variants, and suspected duplicates with evidence (similar props, similar rendered output, copy-pasted origins). Include a "shadcn candidates" section: (a) custom components duplicating an available shadcn primitive, (b) installed shadcn components that drifted from the registry (npx shadcn@latest diff where available), (c) raw Radix/plain elements where an installed shadcn wrapper exists. For each, state the recommended replacement and expected visual impact. Recommendations only — merges and swaps happen in later human-approved runs, never this one. Never modify source files. Bash access is for read-only commands (rg, find, npx shadcn diff) and writing the two report files only.
Signals
- Stars
- 106,854
- Forks
- 17,747
- Open issues
- 3,281
- Contributors
- 236
- Last commit (this folder)
- Jul 7, 2026 (3 months ago)
- Last release
- Oct 24, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/paperclipai/paperclip
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from paperclipai
- 0.748score
AGENTS.md · paperclipai/paperclip
paperclipai
AGENTS.md from paperclipai/paperclip: 262 lines covering 1.
TemplateAFreshness: A★ 106.9KCodex +5 - 0.743score
codemod-runner
paperclipai
Subagent "codemod-runner" from paperclipai/paperclip: Writes and runs codemod scripts that replace hardcoded visual values with token references in…
TemplateAFreshness: A★ 106.9KClaude Code
Cite this page
token-auditor. Agent Mart. https://agentmart.dev/templates/paperclipai-paperclip-token-auditor (last updated 2026-10-24)