generate
Run go generate to build templ templates and frontend assets. Use after changing templates or CSS/JS.
12 stars
Best use case
generate is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Run go generate to build templ templates and frontend assets. Use after changing templates or CSS/JS.
Teams using generate should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
$curl -o ~/.claude/skills/generate/SKILL.md --create-dirs "https://raw.githubusercontent.com/PeterBooker/veloria/main/.claude/skills/generate/SKILL.md"
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/generate/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How generate Compares
| Feature / Agent | generate | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Run go generate to build templ templates and frontend assets. Use after changing templates or CSS/JS.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Generate Assets Run `go generate` to build templ templates and frontend CSS/JS assets. ## Usage - `/generate` - Generate all assets ## Steps 1. **Run go generate** ```bash go generate ./assets/... 2>&1 ``` This executes two steps defined in `assets/embed.go`: 1. `templ generate` - Compiles `.templ` files into Go code 2. `npm install && npm run build` - Builds frontend CSS/JS into `assets/static/` 2. **Verify output** ```bash ls -la assets/static/css/ assets/static/js/ 2>&1 ``` 3. **Install the updated binary** ```bash go install ./... ``` 4. **Report results** ``` ## Generate Results ### templ - [number of templates compiled] ### Frontend - CSS: [files generated] - JS: [files generated] ### Status - Binary installed: yes/no ``` ## When to Run Run `/generate` after changing: - Any `.templ` template file - Frontend CSS in `frontend/css/` - Frontend JS or `package.json` ## Prerequisites - Node.js and npm must be available - npm dependencies are installed automatically by the generate step - `templ` CLI must be installed (`go install github.com/a-h/templ/cmd/templ@latest` if missing) ## CI Alignment The CI pipeline runs `go generate ./assets/...` before every build. Running `/generate` locally ensures your embedded assets are current.
Related Skills
We are still matching the closest adjacent skills for this page. In the meantime, continue through the full directory.