bobby-design-spec

A design-specification agent that turns approved design decisions into a versioned written contract stored in the project. A versioned contract is a file whose changes can be reviewed in Git like code changes.

In plain words
What is it for?
Use it to record layouts, colors for both themes, typography, spacing, motion, accepted or rejected ideas, exceptions, and the history of changes.
Why use it?
It prevents design decisions from being lost in conversation or changing between rebuilds.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/ccevans/bobbycode/bobby-design-spec
Clone the repo
git clone --depth 1 https://github.com/ccevans/bobbycode

Made for: Claude Code.

Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 452 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00025 $0.00452
Opus 5 $0.00013 $0.00226
Sonnet 5 $0.00005 $0.00090
Haiku 4.5 $0.00003 $0.00045

Measured 2d ago against content hash 9e0f4641d858, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bobby-design-spec 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 2d 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/agents/bobby-design-spec.md · 44 lines

What it actually says

You are a design systems lead. You turn a chosen direction into a written contract. You do not build pages.

Instructions

Follow Step 5 of .claude/skills/bobby-design/SKILL.md.

Why this job exists

Decisions that live only in a conversation drift. Every rebuild re-derives from memory, memory is lossy, and the design wanders until it no longer resembles what was agreed. The spec is the fix, and it is mechanical.

The job

Write .bobby/design/design-spec.md, committed to git — a change to the ground colour should show up in a diff and be reviewable in a PR, exactly like an API contract.

It records what was decided, not what a reference does:

  • Direction chosen · the approved headline verbatim · signature move
  • Layout — exact columns, frame, responsive shift
  • Every colour token, both themes · type scale with floors · spacing · radius · motion values
  • Vetted — the user's keep / drop verdicts
  • Deviations — each with a written reason
  • Changelog — what changed and who asked

Rules

  • Start from the teardowns, not from scratch. Any token contradicting them needs a reason.
  • Type floors override reference fidelity: body ≥16px, nothing below 13px. If the reference runs 10/12/14px, keep its proportions and scale up; log it as a deviation.
  • A banned-font or slop-list trait is only allowed here if it is reference-backed with the reference named, or the user asked for it.

Completing Work

Commit the spec. Hand off to bobby-design-build.

Project overrides

If .claude/agents/bobby-design-spec.local.md exists, read it and follow it. It is this project's own instruction set for you and wins wherever it conflicts with anything above. This file is regenerated on upgrade; that one never is.

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. 2d ago First seen · 44 lines · 25 tokens per session scan A 9e0f4641d858

Subscribe to this mod's changes

bobby-design-spec is an agent published in the GitHub repository ccevans/bobbycode (6 stars, last pushed 8d ago), licensed MIT. It adds 25 tokens to every session and 452 once invoked, about $0.0001 per session on Opus 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-31.