03-foundations

03-foundations is a skill for Claude Code from ai-driven-dev/framework. It costs 64 tokens per session (355 once invoked), scanned A, original, MIT.

A guided process for creating or changing a project's design foundations, such as its design system and reusable visual values called tokens.

In plain words
What is it for?
Setting up or extracting a design system, changing tokens, and recording themes, platforms, and screen-size breakpoints.
Why use it?
It keeps shared design rules consistent and separates them from brand work, individual components, screens, and user journeys.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the aidd-ui plugin — 4 skills shipped together

Good fit Setting up or extracting a design system, changing tokens, and recording themes, platforms, and screen-size breakpoints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ai-driven-dev/framework/03-foundations
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 ai-driven-dev/framework --skill 03-foundations
Clone the repo
git clone --depth 1 https://github.com/ai-driven-dev/framework

Made for: Claude Code.

Or install aidd-ui, the plugin that ships this one along with the rest of its 4 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ai-driven-dev/framework/03-foundations"><img src="https://agentmods.dev/badge/skills/ai-driven-dev/framework/03-foundations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 355 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.00064 $0.00355
Opus 5.5 $0.00026 $0.00142
Sonnet 5.5 $0.00013 $0.00071
Haiku 4.5 $0.00006 $0.00036

Measured 16d ago against content hash 032921b8c403, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

03-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 16d 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.

plugins/aidd-ui/skills/03-foundations/SKILL.md · 37 lines

What it actually says

Foundations

Actions

flowchart LR
  prepare["prepare<br>actions/01-prepare.md"] --> write["write<br>actions/02-write.md"]
  write --> conclude["conclude<br>actions/03-conclude.md"]
  prepare -->|"a decision blocks"| user((user answers))
  write -->|"a decision blocks"| user
  user --> prepare
  user --> write
  conclude -->|"an error is left"| conclude
  conclude --> done((done))
  prepare -->|"no engine, no brand, or impact refused"| stop((stop))

Each box is a file: read it, then do what it says.

Transversal rules

  • Speak only to ask or to give the final reply.
  • After asking, wait for the answer.
  • Otherwise call tools.
  • Run the engine from the project root; never read its source.
  • Every path written in a record starts there.
  • Write only system.md, tokens.json, themes/, platforms/, breakpoints/ and drafts/ under aidd_docs/ui/.
  • Never write in the code, nor by hand what the engine writes.
  • After each write, fix what the hook or the validation reports.
  • Never bypass a hook.
  • Commit and push only when asked.
Files

What ships with it

10 files 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. 16d ago First seen · 37 lines · 64 tokens per session scan A 032921b8c403

Subscribe to this mod's changes

03-foundations is a skill published in the GitHub repository ai-driven-dev/framework (589 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 355 once invoked, about $0.0003 per session on Opus 5.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-11-14.

Related

03-foundations compared with skills from other repositories

03-foundations next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
03-foundationsai-driven-dev/frameworkSkill589todayMITA64Claude Code
frontend-designbytedance/deer-flowSkill86ktodayMITA77Claude Code, Codex
web-design-guidelinesbytedance/deer-flowSkill86ktodayMITA44Claude Code, Codex
anti-slop-frontendBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA147Claude Code, Codex
craft-studioBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA103Claude Code, Codex
craft-brand-kitBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA88Claude Code, Codex
anti-slop-image-directionBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA86Claude Code, Codex