AI coding agents work best when they understand your design system. Humic gives agents access to your tokens through the CLI, so they can generate code that uses the right values instead of hardcoding colors and spacing.Documentation Index
Fetch the complete documentation index at: https://docs.humic.dev/llms.txt
Use this file to discover all available pages before exploring further.
How it works
The Humic CLI supports--json output on every command. Agents can call these commands and parse the JSON to understand your design system — no MCP server or custom integration needed.
Setup
1. Install the CLI
Add Humic as a dev dependency so it’s available in your project:2. Initialize your project
humic.config.json and writes a context file that agents can read.
3. Configure your agent
Add instructions to your agent’s configuration or system prompt. Here’s an example for Claude Code (inCLAUDE.md):
.cursor/rules:
Useful commands for agents
| Command | What the agent gets |
|---|---|
npx humic tokens list --json | All tokens with types and values |
npx humic tokens list --type color --json | Just color tokens |
npx humic scales list --json | All color scales with hex values |
npx humic tokens guidelines --json | Usage rules and recommendations |
npx humic validate --file src/Button.tsx --json | Validation results for a specific file |
Code validation
Thevalidate command uses AI to check code against your design system rules. It catches:
- Hardcoded color values that should use tokens
- Magic numbers for spacing that should use primitives
- Inconsistent usage patterns

