hay-kot/scaffold/scaffold-author
Claude Code and agent skill by hay-kot/scaffold
- community
- ext:[{"type":"template","description":"Custom templates for code generation"}]
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install hay-kot/scaffold/scaffold-authorSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
scaffold-author — Create, edit, and test scaffold templates
User-invocable: true Auto-triggerable: true
Triggers when: User wants to create a new scaffold template, edit scaffold.yaml, write template files, or test/validate a scaffold.
Scaffold Types
Project Scaffold
Creates a new directory named after the project. The user is prompted for a project name.
Valid root directory names: {{ .Project }}, {{ .ProjectSlug }}, {{ .ProjectSnake }}, {{ .ProjectKebab }}, {{ .ProjectCamel }}, {{ .ProjectPascal }}
Template Scaffold
Generates files into the current directory. No project name prompt. The templates/ prefix is stripped from output paths. Use rewrites and inject to place files precisely.
Quick Start: Project Scaffold
Or create manually:
scaffold.yaml:
`{{ .ProjectKebab }}/main.go`:
Quick Start: Template Scaffold
scaffold.yaml:
Bootstrapping
scaffold init
Creates .scaffold/ with a hello-world template scaffold example.
scaffold init --stealth
Same as above, but adds .scaffold to .git/info/exclude so it's hidden from git without touching .gitignore. Useful for personal scaffolds in shared repos.
scaffold.yaml Reference
See scaffold-yaml-schema.md for the complete field reference. Key sections:
- questions — Interactive prompts that collect user input
- computed — Derived variables from template expressions
- features — Conditional file inclusion/exclusion
- rewrites — Remap output file paths (template scaffolds)
- inject — Insert content into existing files (template scaffolds)
- presets — Named variable sets for non-interactive use
- each — Multi-file expansion from list variables
- skip — Glob patterns for files copied without template rendering
- delimiters — Custom template delimiters per file glob
- messages — Pre/post scaffold markdown messages
- metadata — Version constraints
Template Engine
See template-engine.md for the complete template reference. Key points:
- Variables:
.Project,.ProjectKebab,.Scaffold.*,.Computed.*,.Each.* - Functions: All sprout functions +
wraptmpl,toPlural,toSingular,isPlural,isSingular,partial - File/directory names are also templates
- Partials go in a
partials/directory at the scaffold root
Testing Workflow
1. Lint the config
Validates question names, prompt types, computed names, skip globs, rewrite paths, injection modes, and delimiter configs.
2. Inspect the metadata
Outputs JSON showing questions (with resolved types), presets, computed values, features, and messages. Use this to verify the scaffold looks correct.
3. Dry-run
Renders fully but writes nothing. Outputs JSON listing all files that would be created. Catches template errors without side effects.
4. Snapshot test
Renders in-memory and outputs a full AST with file contents. Ideal for:
- Verifying exact output content
- CI/CD diffing against expected output
- Catching regressions
5. Full test command (recommended)
Reading Template Errors
Template errors show:
- File path and line:column where the error occurred
- Context lines (the error line plus surrounding lines)
- Delimiter info if custom delimiters are in use
Common causes:
- Referencing undefined variables (e.g.,
.Scaffold.typo) - Missing closing delimiters
- Calling undefined functions
- Type mismatches in template expressions
Preset-Driven Testing
Always define at least one preset (typically default) so scaffolds can be tested non-interactively. The preset should provide valid values for all required questions.
Test each preset:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/scaffold/skills/scaffold-author/SKILL.md
Popularity
- Repository stars
- 179
- Repository forks
- 24
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Extension points
templateCustom templates for code generation
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hay-kot/scaffold/scaffold-author)