scaffold

scaffold is a command for Claude Code from SwiftfulThinking/SwiftfulStarterProject. It costs 23 tokens per session (259 once invoked), scanned A, original, MIT.

A file scaffolding command for creating common Swift project files from a chosen template. Templates include screens, managers, components, models, tests, modules, and other app structures.

In plain words
What is it for?
Use it to create Swift Testing unit-test files, SwiftUI components, data models, navigation modules, deep-link handlers, and similar project pieces. Swift is a programming language, and Swift Package Manager is Swift's system for adding reusable packages.
Why use it?
It avoids repeatedly setting up boilerplate files and wiring by hand when starting a new part of an app.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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 commands/swiftfulthinking/swiftfulstarterproject/scaffold
Clone the repo
git clone --depth 1 https://github.com/SwiftfulThinking/SwiftfulStarterProject

Made for: Claude Code.

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 scaffold

README.md
[![agentmods](https://agentmods.dev/badge/commands/swiftfulthinking/swiftfulstarterproject/scaffold.svg)](https://agentmods.dev/commands/swiftfulthinking/swiftfulstarterproject/scaffold)
Your own site
<a href="https://agentmods.dev/commands/swiftfulthinking/swiftfulstarterproject/scaffold"><img src="https://agentmods.dev/badge/commands/swiftfulthinking/swiftfulstarterproject/scaffold.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 259 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.1 $0.00023 $0.00259
Opus 5 $0.00012 $0.00130
Sonnet 5 $0.00005 $0.00052
Haiku 4.5 $0.00002 $0.00026

Measured yesterday against content hash 37cfd3c2e3a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

scaffold 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 yesterday.

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.

.claude/commands/scaffold.md · 22 lines

What it actually says

Ask the user what they want to scaffold. Present these options:

  1. Screen — VIPER screen (View, Presenter, Interactor, Router) with RIBs wiring
  2. Manager — Manager with service protocol + Mock/Prod implementations
  3. Component — Dumb UI component with injected data
  4. Model — Codable/Sendable model with CodingKeys, eventParameters, mocks
  5. Test — Swift Testing unit test file
  6. Module — Top-level navigation module
  7. Paywall — Paywall variant with AB test wiring
  8. AB Test — AB test service + mock + DevSettings wiring
  9. View Modifier — ViewModifier + View extension
  10. Extension — Type extension file
  11. Package — SPM package integration
  12. Deep Link — Deep link / push notification handler

After the user picks an option and describes what they need, use the Task tool to invoke the scaffolder agent with their request. Pass the full description of what to create.

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. yesterday First seen · 22 lines · 23 tokens per session scan A 37cfd3c2e3a2

Subscribe to this mod's changes

scaffold is a command published in the GitHub repository SwiftfulThinking/SwiftfulStarterProject (74 stars, last pushed 5mo ago), licensed MIT. It adds 23 tokens to every session and 259 once invoked, about $0.0001 per session on Opus 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-09-04.