scan

scan is a skill for Claude Code, Codex from Dragoon0x/dragoon-skills. It costs 116 tokens per session (604 once invoked), scanned A, original, MIT.

A codebase analysis command that records a project’s design system in a file called dragoon.json. A design system is the project’s shared choices for colors, spacing, fonts, shapes, shadows, motion, and screen sizes.

In plain words
What is it for?
Set up Dragoon for a project, identify its technology stack and visual tokens, measure basic accessibility signals, and refresh the design fingerprint after major code changes.
Why use it?
Design reviews need a reliable picture of the project’s existing visual rules. This creates a shared reference before other Dragoon checks inspect or critique the codebase.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Set up Dragoon for a project, identify its technology stack and visual tokens, measure basic accessibility signals, and refresh the design fingerprint after major code changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dragoon0x/dragoon-skills/scan
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.

Any agent
npx skills add Dragoon0x/dragoon-skills --skill scan
Clone the repo
git clone --depth 1 https://github.com/Dragoon0x/dragoon-skills

Made for: Claude Code, Codex.

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 scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/dragoon0x/dragoon-skills/scan/github.svg)](https://agentmods.dev/skills/dragoon0x/dragoon-skills/scan)
Your own site
<a href="https://agentmods.dev/skills/dragoon0x/dragoon-skills/scan"><img src="https://agentmods.dev/badge/skills/dragoon0x/dragoon-skills/scan/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 scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/dragoon0x/dragoon-skills/scan"><img src="https://agentmods.dev/badge/skills/dragoon0x/dragoon-skills/scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 604 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.00116 $0.00604
Opus 5 $0.00058 $0.00302
Sonnet 5 $0.00023 $0.00121
Haiku 4.5 $0.00012 $0.00060

Measured 8d ago against content hash 0b47d2390d73, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

scan 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/scan/SKILL.md · 49 lines

What it actually says

/scan

Generates dragoon.json, the canonical fingerprint of a codebase's design DNA. Every other dragoon skill reads or writes against this file.

When to use

Run /scan when:

  • The user is setting up dragoon in a new project for the first time
  • The user asks to "scan", "fingerprint", "audit the design system", "analyze the codebase"
  • Another dragoon command (/critique, /slop, /review) needs a manifest and one doesn't exist
  • The codebase has changed significantly and the existing manifest is stale

What it produces

A dragoon.json file at the project root with:

  • stack: framework (react/next/vue/svelte/etc), styling layer (tailwind/css/styled-components/etc), language, package manager
  • tokens.color: top distinct colors with usage counts and inferred roles
  • tokens.spacing: distinct spacing values, inferred grid (4/6/8/12/16px), confidence score
  • tokens.type: font families, font sizes, inferred scale ratio (golden, perfect-fourth, etc), confidence
  • tokens.radius / shadow / motion / breakpoints: top values with counts
  • metrics: file counts, component count estimate, accessibility signals (alt rate, button label rate, semantic tag use)
  • rules: derived defaults (grid size, type ratio, max variants per token, allowed colors). Edit by hand if needed.

Run it

node ~/.claude/skills/dragoon/skills/scan/scripts/scan.js [root]

Flags:

  • --out <path> write to a custom path
  • --json print manifest to stdout
  • --dry-run compute but don't write
  • --quiet no terminal output beyond errors
  • --help full usage

Notes

  • Pure regex scanning. No AST parser dependency. No network calls.
  • Skips node_modules, dist, build, .git automatically (gitignore-aware).
  • Caps at 5,000 files per scan and 2MB per file. Larger codebases get a representative sample.
  • Re-run /scan after major design changes to keep rules current.
Files

What ships with it

1 file 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. 8d ago First seen · 49 lines · 116 tokens per session scan A 0b47d2390d73

Subscribe to this mod's changes

scan is a skill published in the GitHub repository Dragoon0x/dragoon-skills (4 stars, last pushed 4mo ago), licensed MIT. It adds 116 tokens to every session and 604 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

design-system-tokens

Design token management with the W3C Design Token spec, three-tier hierarchy (global/alias/component), OKLCH color, Style Dictionary transforms, and dark mode theming. Use when creating token files, implementing theme systems, or building design-to-code pipelines.

yonatangross/orchestkit · 58 tokens

figma-extract-design-system

Extract a design system from vibe-coded production apps that never had one: inventory components, mine de-facto styling into DTCG tokens, scaffold a Storybook package, port components, and optionally round-trip tokens/components into Figma. Use when the user wants to 'extract a design system', 'create a design system…

southleft/figma-console-mcp-skills · 133 tokens

figma-blame-node

Find which Figma version introduced a specific change — a component property or a child node — via a binary search over version history (log2(N) API calls instead of N). Answers 'who added this and when'. Use when the user wants git-blame-style attribution for a Figma design — triggers: 'when was this component…

southleft/figma-console-mcp-skills · 176 tokens

figma-export-tokens

Export Figma variables to design token files in DTCG, CSS custom properties, Tailwind v4/v3, SCSS, TypeScript, JSON, Style Dictionary, or Tokens Studio. Use when the user wants to pull design tokens OUT of Figma into code — triggers: 'export tokens', 'export Figma variables', 'generate CSS variables from Figma', 'turn…

southleft/figma-console-mcp-skills · 144 tokens

figma-generate-component-doc

Generate complete Markdown documentation for a Figma component — anatomy/layer tree, design tokens (colors, spacing, typography), states/variants matrix, accessibility notes, content guidelines, and optional code-parity + YAML frontmatter. Use when the user wants a docs page or handoff spec for a component or…

southleft/figma-console-mcp-skills · 150 tokens

figma-version-history

List a Figma file's version history, snapshot the file at any past version, and diff two versions (added/removed/renamed pages plus deep per-component changes). Use when the user wants to inspect Figma history — triggers: 'list Figma versions', 'what versions does this file have', 'show version history', 'snapshot…

southleft/figma-console-mcp-skills · 181 tokens