AI Pop Compiler
This skill handles validation, scaffolding, and client compilation checks. It utilizes the embedded Go CLI scaffolder program located inside the skill's assets directory.
Embedded Resources
The complete Go-based scaffolder source code and its Web Component template bundles are bundled inside this skill:
By embedding this code, any agent loading this skill can instantly scaffold or maintain an artist page on-demand.
Instructions
-
Verify Contract:
- Confirm that the compiled
artist.jsonfile in the artist workspace is well-formed and matches our strict data contract schema.
- Confirm that the compiled
-
Compile the Go Scaffolder On-Demand:
- Before running the scaffolder, check if the executable is compiled. If not, build it from the embedded asset source.
- Note on Read-Only Environments: If the skill folder is read-only, compile the binary directly to your writable target artist workspace:
Terminal window # Compile the Go CLI tool directly into the writable target workspacego build -o /path/to/artist_workspace/ai-pop-scaffolder \/path/to/skills/ai-pop-compiler/assets/scaffolder/main.go \/path/to/skills/ai-pop-compiler/assets/scaffolder/templates.go - Otherwise, if the environment is writable, you may build locally:
Terminal window cd assets/scaffoldergo build -o ai-pop-scaffolder
-
Run Scaffolder:
- Run the compiled binary on the target artist directory containing
artist.json:Terminal window /path/to/ai-pop-scaffolder --dir /path/to/artist_workspace - Confirm that all source files and media assets are written to the
websubdirectory.
- Run the compiled binary on the target artist directory containing
-
Execute Compiler Check:
- Navigate into the newly created
webfolder. - Run
npm run buildto verify that the TypeScript compiler (tsc) and Vite successfully bundle the assets intodist/with no compilation errors.
- Navigate into the newly created