Generate

From PeterBooker/veloria · View interactive version

Generate is an AI agent skill from the GitHub repository PeterBooker/veloria. Run go generate to build templ templates and frontend assets. Use after changing templates or CSS/JS.

How to use this skill

Skill file

Generate Assets

Run go generate to build templ templates and frontend CSS/JS assets.

Usage

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/

  1. Verify output

```bash

ls -la assets/static/css/ assets/static/js/ 2>&1

```

  1. Install the updated binary

```bash

go install ./...

```

  1. Report results

```

## Generate Results

### templ

### Frontend

### Status

```

When to Run

Run /generate after changing:

Prerequisites

CI Alignment

The CI pipeline runs go generate ./assets/... before every build. Running /generate locally ensures your embedded assets are current.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.