Skill v1.0.0
currentAutomated scan100/100name: anatomy-of-a-template description: > Design or audit what belongs in a reusable application template so scaffolded apps share one layout for gates and agents. Use when creating templates, reviewing template drift, or deciding what is template vs app-specific. Inspired by Velocity "Anatomy of a Template" + COMMON-HARNESS template shape. metadata: version: "1.0.0"
Anatomy of a Template
A template is not a demo app. It is the contract between scaffolding and every later gate.
What a good template includes
- Runnable skeleton — install / dev / test / build scripts that work after
copy with minimal edits.
- Stable layout — predictable dirs for client, server, tests, migrations,
config examples.
- Root orchestration — top-level manifest that wires workspaces or
concurrently-style scripts when fullstack.
- Safety defaults —
.gitignore,.env.example, Dockerfile (or equivalent),
no secrets committed.
- Agent-readable seams — paths that docs-sync and phase gates can discover
without bespoke snowflakes.
- Strip points — clear optional modules so
/build frontendstyle modes
delete rather than rewrite.
- Standards hooks — room for
standards/, security baseline comments, or
CI starter — without baking one org's entire product.
What stays out of the template
- Business domain features for a single product
- Environment-specific credentials or project IDs
- One-off spikes and abandoned experiments
- Full security scanner trees (keep those as optional add-ons)
- Gamified delivery portals or org-specific factory UIs
Audit checklist
When reviewing template/:
- [ ] Fresh copy boots (
install+devor documented equivalent) - [ ] Required paths match what skills/hooks document
- [ ] No committed secrets;
.env.examplecovers needed vars - [ ] Frontend/backend/test boundaries are deletable without surgery
- [ ] Versioned dependencies are intentional (not years stale by accident)
- [ ] README section: "after scaffold, do X next"
Productive tension (keep both)
Some Velocity material stresses working code as the best specification. That does not cancel written requirements/architecture — it means the template and tracer-bullet prototype carry truth that prose alone cannot. Use lifecycle-phase-gates for the written gates; use this card so the scaffolded code stays a trustworthy baseline.
Agent procedure
- Inventory current template paths vs harness assumptions.
- List mismatches as template bugs (fix once) vs app bugs (fix in
./app). - Propose template PRs before inventing per-app exceptions.
- Hand scaffolding itself to
template-first-scaffold.
Sources (inspiration only)
- Velocity paper theme: Technical: Anatomy of a Template
- COMMON-HARNESS
template/publicrole (MIT) — not vendored here