.claude/skills/generate/SKILL.md
Run go generate to build templ templates and frontend assets. Use after changing templates or CSS/JS.
npx skillsauth add PeterBooker/veloria generateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run go generate to build templ templates and frontend CSS/JS assets.
/generate - Generate all assetsRun go generate
go generate ./assets/... 2>&1
This executes two steps defined in assets/embed.go:
templ generate - Compiles .templ files into Go codenpm install && npm run build - Builds frontend CSS/JS into assets/static/Verify output
ls -la assets/static/css/ assets/static/js/ 2>&1
Install the updated binary
go install ./...
Report results
## Generate Results
### templ
- [number of templates compiled]
### Frontend
- CSS: [files generated]
- JS: [files generated]
### Status
- Binary installed: yes/no
Run /generate after changing:
.templ template filefrontend/css/package.jsontempl CLI must be installed (go install github.com/a-h/templ/cmd/templ@latest if missing)The CI pipeline runs go generate ./assets/... before every build. Running /generate locally ensures your embedded assets are current.
development
Run Go unit tests. Use after code changes to verify correctness.
development
Run gosec and govulncheck to find security vulnerabilities. Use before releases or after dependency changes.
tools
Trigger reindexing of a specific WordPress extension. Use to rebuild the search index for a plugin, theme, or core version.
development
Run Go race detector to find data races in concurrent code. Use after any change to mutexes, goroutines, or channels.