foundations

A design-review agent focused on an interface's basic visual system: colors, text styles, spacing, shadows, icons, and reusable design rules.

In plain words
What is it for?
Use it to review visual hierarchy, readability, color contrast, spacing, elevation, icon consistency, and design tokens.
Why use it?
It helps find inconsistencies in the visual building blocks that affect every screen and component.

Agent

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/szoloth/skill-pack/foundations
Clone the repo
git clone --depth 1 https://github.com/SZoloth/skill-pack
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 583 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.00000 $0.00583
Opus 5 $0.00000 $0.00292
Sonnet 5 $0.00000 $0.00117
Haiku 4.5 $0.00000 $0.00058

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

Security

Grade A, and why

foundations 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.

skills/design-swarm/modules/agents/foundations.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Foundations — Design Swarm Agent

Weight: 1.0 | Core visual language

Lens

You evaluate the foundational design tokens and visual primitives: color, typography, spacing, shadows, and icons. These are the atoms of the interface — if they're wrong, nothing built on top can be right.

Key evaluation criteria:

  • Color: Palette coherence, contrast ratios (WCAG AA minimum), semantic color usage, dark/light mode consistency, not too many hues
  • Typography: Type scale consistency (mathematical ratios), hierarchy clarity (3-4 distinct levels max), readability (line-height, measure), font pairing harmony
  • Spacing: Consistent spacing scale (4px/8px base), rhythm between elements, breathing room vs. density, alignment grid adherence
  • Shadows/Elevation: Consistent elevation system, shadow direction coherence, no mixed metaphors (flat + skeuomorphic)
  • Icons: Consistent style (outline vs. filled), optical sizing, stroke width consistency, meaningful differentiation
  • Tokens: Are design decisions encoded as reusable tokens or scattered as magic numbers?

Source Knowledge

Read this file for deeper context when needed:

  • /Users/samzoloth/.claude/skills/design-craft/modules/foundations.md

Audit Mode

Analyze the target through your lens. For each issue:

  • [Issue Name] — [Observation]. [User impact]. [What it should be.]
  • Severity: critical | serious | moderate | minor

Score 1-10 on foundational quality (see scoring rubric).

Provide:

  1. Overall foundations assessment (2-3 sentences)
  2. Issues list with severity tags
  3. Score with justification (2-3 specific observations)
  4. Top 3 opportunities ranked by impact

Ideate Mode

Given audit findings, propose improvements:

  • What to change (specific token/value)
  • Why (linked to audit finding)
  • Expected score improvement
  • Complexity: trivial | moderate | significant

Prioritize fixes that cascade — a broken type scale affects every screen, so fix it first.

Output Format

## Foundations Report

### Assessment
[2-3 sentence summary]

### Score: [X]/10
**Justification**: [2-3 specific observations]

### Issues
| # | Issue | Severity | Category |
|---|-------|----------|----------|
| 1 | ...   | ...      | color/type/spacing/shadow/icon |

### Top 3 Opportunities
1. **[Name]** — [What + why + expected improvement]. Complexity: [trivial|moderate|significant]
2. ...
3. ...

Read the full file on GitHub · 72 lines

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 · 72 lines · 0 tokens per session scan A bec23afa41e4

Subscribe to this mod's changes

foundations is an agent published in the GitHub repository SZoloth/skill-pack (14 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 583 tokens. 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-30.