Skip to content
Back to skills

Audit Tokens

ASecurity

Design token audit, hard-coded values a token covers, unused, undefined, and duplicate tokens, and token color contrast

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentsbashgit

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill audit-tokens --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Audit Tokens?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Audit Tokens
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-audit-tokens/badge)](https://www.skillsdirectory.com/skills/ku5ic-audit-tokens)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: audit-tokens
description: Design token audit, hard-coded values a token covers, unused, undefined, and duplicate tokens, and token color contrast
argument-hint: "<path, or nothing for the project root>"
allowed-tools:
  - Bash(git log *)
  - Bash(kit contrast *)
---

# /audit-tokens

Audit how a codebase uses its design tokens. Read-only.

Loading this skill isn't enough. Before the step a row names, read its file.

| Before                    | Read                                                   |
| ------------------------- | ------------------------------------------------------ |
| Finding the token sources | [reference/token-files.md](reference/token-files.md)   |
| Running the checks        | [reference/audit-checks.md](reference/audit-checks.md) |

## Run

Resolve the target, the arguments or the project root, then work this file's procedure per `skills/kit-rules/reference/subagents.md` section 4, and write the report yourself. Then run the report-format skill's Runtime checks yourself, and reply per `skills/kit-rules/reference/output.md` section 3.

## Procedure

1. Stack is in the `<repo-context>` block. Load the pattern skill for each UI stack in it (tailwind-patterns for `@theme`).
2. Find the token sources per [reference/token-files.md](reference/token-files.md), and list each token with its name, value, file, and mode. Generated outputs aren't sources.
3. Run the five checks in [reference/audit-checks.md](reference/audit-checks.md), hard-coded, unused, undefined, duplicate, and contrast.
4. Contrast comes from `kit contrast <fg> <bg>` only, never hand arithmetic. The thresholds are the wcag-audit skill's.

## Output file

Load the report-format skill and use its format. Write to the path `kit scratch-dir tokens <target-slug>` prints. Each finding carries `file:line`, the value or token, and the token that should have been used.

## Rules

- No token file, config, or source is edited.
- A token or value the checks can't resolve is `unverified`, never a pass.

Arguments: `$ARGUMENTS`

Files in this skill

  • SKILL.md2 KB
  • reference/audit-checks.md1.1 KB
  • reference/token-files.md1 KB
  • sources.md928 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.