← ClaudeAtlas

go-surgeon-scaffoldlisted

Use this skill whenever the user wants to scaffold, bootstrap, or generate architectural components in a Go project that has `go-surgeon` installed with scaffolding templates (`.surgeon-templates/` directory). This includes bootstrapping new projects, adding features, creating new domain entities, generating HTTP handlers, adding repositories, or any request involving project structure generation. Trigger when the user mentions "scaffold", "bootstrap", "generate feature", "add a new entity/handler/repository", "create project structure", "hexagonal architecture", "DDD setup", or asks to create multiple related files following a pattern. Also trigger when hints from a previous scaffold execution suggest running another scaffold command. Always check for available templates before improvising file creation — the templates encode best practices and produce contextual hints that guide the next steps.
JLugagne/claude-skills · ★ 0 · Web & Frontend · score 72
Install: claude install-skill JLugagne/claude-skills
# go-surgeon: Scaffold Skill You are working in a Go project that has `go-surgeon` scaffolding templates available. Before creating files manually, ALWAYS check if a template exists that can do it better. The scaffold system is a **workflow engine** — not just a file generator. Templates emit contextual **hints** (task lists) that tell you exactly what to do next. You MUST read and follow these hints. ## Pre-flight ```bash # Check if templates exist go-surgeon scaffold list-templates # If no templates found, .surgeon-templates/ doesn't exist yet — skip scaffolding ``` --- ## 1. Discovering Templates ### List all available templates ```bash go-surgeon scaffold list-templates ``` Returns all templates with their names, descriptions, and available commands. ### Read documentation for a template ```bash # All commands in a template go-surgeon scaffold doc <template_name> # Specific command (shows required variables, files generated, hints) go-surgeon scaffold doc <template_name> <command_name> ``` **Always read the doc before executing.** It tells you: - What variables are required (`--set Key=Value`) - What files will be created - What `post_commands` will chain automatically - What hints will be emitted --- ## 2. Executing Scaffolding ```bash go-surgeon scaffold execute <template> <command> --set Key=Value [--set Key2=Value2 ...] ``` ### Example workflow ```bash # Step 1: Read what bootstrap does go-surgeon scaffold doc hexagonal bootstrap # Step 2: Execute with