Here's what an AI coding agent writes when it's asked to add a save button to a SwiftUI screen and has nothing but its training data to go on:
DFButton("Save", icon: "checkmark", isLoading: isSaving) { save() }
It doesn't compile. DFButton has no icon: or isLoading: parameter — it never did. The agent is pattern-matching against every PrimaryButton/IconButton component it's ever seen in a training set and guessing. The real call, for a button that needs an icon, is:
Button { save() } label: { Label("Save", systemImage: "checkmark") }
.buttonStyle(.df(.filled))
That's not a hypothetical. It's a real gotcha in DesignFoundation, our SwiftUI component library (54 themed components, 8 theme presets, iOS 18+/macOS 15+/visionOS 2+), documented because agents kept hitting it. The fix we shipped wasn't a better prompt — it was giving Claude something to check against before it writes a line.
A skill is a shelf of facts. A command is a lever.
DesignFoundation has shipped a Claude-readable reference for a while, as a skill you upload to claude.ai or Claude Desktop (Settings → Capabilities → Skills). That skill — SKILL.md plus a generated reference.md — works exactly like you'd expect: it sits in context, and when Claude decides the task calls for it, it reads the real API instead of guessing.
That's useful, and it's also the ceiling of what a skill can do. A skill is inert text. It can't:
- gate behavior. A skill can say "don't modify files unless asked," but that's advice sitting in context, competing with however the user phrased their request. There's no mechanism forcing the model to actually respect it.
- give you a repeatable entry point. Every invocation of a skill-backed request depends on the model re-deriving the right scope from scratch. Ask twice, worded differently, get two different scopes.
- carry its own restricted toolset. A skill has no permissions of its own. It's just a file.
So this release adds a second delivery form on top of the same reference: a Claude Code plugin. Same generated docs, but now wrapped in slash commands and a delegate agent that actually enforces the stuff a skill can only suggest.
/plugin marketplace add NerdSnipe-Inc/design-foundation
/plugin install design-foundation
(or the one-step form: /plugin install design-foundation --marketplace NerdSnipe-Inc/design-foundation)
What you get that a skill can't give you
Five commands, each a fixed, repeatable operation instead of a free-text request Claude has to interpret fresh every time:
/design-foundation:component <name> # look up a real component's exact signature
/design-foundation:theme <preset> # apply one of the 8 shipped presets at the scene root
/design-foundation:new-screen <desc> # scaffold a themed screen from DF primitives
/design-foundation:audit [path] # report-only scan for raw Color/font/cornerRadius token bypass
/design-foundation:audit --apply # same scan, with permission to fix what it finds
/design-foundation:pro # when a feature matches a Pro block, link to it — once
/design-foundation:audit is the clearest example of why this needed to be a command and not just a skill-informed answer. Report mode and --apply mode aren't two phrasings of the same request — they're two different permission grants. Report mode delegates to a design-foundation-builder agent that is explicitly told it cannot call Edit or Write, full stop. --apply mode delegates to the same agent with permission to fix what it finds, and an instruction to re-scan from scratch rather than trust a stale run. That branch lives in the plugin's agent definition — a file with its own tool grants — not in a sentence inside a skill that the model has to remember to honor.
The agent's own prompt has to spell out what happens when the mode is ambiguous, because "advice in context" isn't enough once a tool can actually write files:
If the invocation does not clearly state which mode you're in, you MUST default to report-only audit mode.
That's a sentence a skill could contain. The difference is the plugin's agent is also restricted so that even if it ignored the sentence, report mode still can't touch a file — Bash is scoped to the read-only lint command, nothing else. A skill has no comparable backstop.
The reference can't drift, in either form
Both the skill and the plugin pull the same reference.md, and that file isn't hand-maintained — it's generated from AGENTS.md (the project's own compile-checked API reference) by scripts/generate_plugin_skill.py, with a --check mode wired into CI. If someone edits a component signature in AGENTS.md and forgets to regenerate the skill, the build fails. The skill you install today is the same one a git diff would show you if you went looking.
$ python3 scripts/generate_plugin_skill.py --check
/path/to/skills/design-foundation/reference.md is up to date
That part isn't new to this release — it's why we were comfortable shipping a skill at all. What's new is wrapping it in something that can also act.
Try it
/plugin install design-foundation --marketplace NerdSnipe-Inc/design-foundation
/design-foundation:new-screen a settings screen with a sign-out button
- Repo (free, MIT, Swift Package Manager): https://github.com/NerdSnipe-Inc/design-foundation
- We also opened a PR adding it to the community awesome-claude-plugins marketplace: https://github.com/composio-community/awesome-claude-plugins/pull/868
- For full screens and blocks (auth flows, dashboards, 55 screens across 12 verticals) built on these same primitives, instead of assembling them yourself: DesignFoundation Pro
Top comments (0)