一键导入
generate
Run go generate to build templ templates and frontend assets. Use after changing templates or CSS/JS.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run go generate to build templ templates and frontend assets. Use after changing templates or CSS/JS.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run Go benchmarks and compare results to detect performance regressions. Use before and after performance-related changes.
Run pre-push quality checks (vet + lint + tests with race detector). Use before pushing code.
Run tests with coverage analysis and identify untested code paths. Use to find gaps before releases.
Check and tidy Go module dependencies. Use after adding/removing imports or before releases.
Run integration tests that require Docker (Postgres, MinIO via testcontainers). Use to validate database and storage behavior.
Run golangci-lint and static analysis on Go code. Use before pushing or to check code quality.
| name | generate |
| description | Run go generate to build templ templates and frontend assets. Use after changing templates or CSS/JS. |
| disable-model-invocation | true |
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.