codemod-runner
Subagent "codemod-runner" from paperclipai/paperclip: Writes and runs codemod scripts that replace hardcoded visual values with token references in…
Template by paperclipai
Chalk Labs
Need help deploying codemod-runner?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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/codemod-runner.md -o codemod-runner.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: refactoring
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
- 18 lines
- File
.claude/agents/codemod-runner.md- name
- codemod-runner
- model
- sonnet
- tools
- Read, Write, Edit, Bash, Glob, Grep
- description
- Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css. Use for Phase 2 of the design simplification run — mechanical refactors only.
First lines (shown under the repo's MIT license)
--- name: codemod-runner description: Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css. Use for Phase 2 of the design simplification run — mechanical refactors only. tools: Read, Write, Edit, Bash, Glob, Grep model: sonnet --- You perform mechanical refactors via scripts, never hand-edits. Follow DESIGN.md at the repo root. Rules: - The token destination is ui/src/index.css (Tailwind v4), optionally a tokens.css imported by it. NEVER create a parallel token source. Tokens that must be runtime-tunable go in a NON-inline block — `@theme inline` bakes literals at build time. - Where a hardcoded value EXACTLY matches an existing token, replace it with that token reference. Otherwise extract the value into a new token VERBATIM — no normalizing, rounding, or inventing a scale. Ugly values stay ugly. - Every rewrite happens through a codemod script committed to scripts/ before it is run. Scripts must be idempotent and reviewable. - Third-party style overrides that cannot use tokens go on a documented allowlist in the token source, each with an inline comment saying why. - Verify after every script run: rg gates (zero hardcoded hex, zero arbitrary px/bracket values in ui/src/components/** and ui/src/pages/** outside the allowlist), pnpm typecheck, and the Storybook snapshot suite. Snapshots must match the Phase 0 baseline exactly. - If a replacement cannot be made without visual change, skip it and record it in doc/design/TOKEN-AUDIT.md under "Needs human decision".
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 (7 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
token-auditor
paperclipai
Subagent "token-auditor" from paperclipai/paperclip: Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates…
TemplateAFreshness: A★ 106.9KClaude Code
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get codemod-runner running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
codemod-runner. Agent Mart. https://agentmart.dev/templates/paperclipai-paperclip-codemod-runner (last updated 2026-10-24)