Skip to content
Back to skills

Scaffold Go

ASecurity

Scaffold Go projects with Alizia-BE architecture: Clean Architecture, GORM, Gin, PostgreSQL, DI, migrations. Trigger: new Go project.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
databasesgobashsqldockertestinggitbackend

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add SebastianLuser/claude-code-arcane --skill scaffold-go --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scaffold Go?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Scaffold Go
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sebastianluser-scaffold-go/badge)](https://www.skillsdirectory.com/skills/sebastianluser-scaffold-go)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: scaffold-go
description: "Scaffold Go projects with Alizia-BE architecture: Clean Architecture, GORM, Gin, PostgreSQL, DI, migrations. Trigger: new Go project."
category: "backend"
argument-hint: "[project-name]"
user-invocable: true
allowed-tools: Read, Glob, Grep, Bash, Write, Edit
---
# Go Project Scaffold — Alizia-BE Style

Generates a complete Go project structure with Clean Architecture + team-ai-toolkit.

## MANDATORY WORKFLOW

**Before generating any code, complete these steps in order.**

### Step 0: Gather Requirements

Clarify (or infer from context if already specified):

1. **Project name** (e.g., "vigia-be", "tich-be")
2. **Go module** (e.g., "github.com/educabot/vigia-be")
3. **Description** (1 line)
4. **First domain/feature** (e.g., "alerts", "students")
5. **Default port** (default: 8080)
6. **Local PostgreSQL port** (default: 5432)

If the user already specified these values, skip straight to Step 1.

### Step 1: Implement

Follow: Architecture → Structure to generate → Patterns → Dependencies → Rules.

### Step 2: Verify

```bash
GOPRIVATE=github.com/educabot/* go mod download
go build ./...
go test ./...          # all tests must pass
```

## Architecture

Dependency flow (strict): `entrypoints → usecases → providers (interfaces) ← repositories`

| Layer | Location | Responsibility | Imports |
|------|-----------|-----------------|---------|
| **Entities** | `src/core/entities/` | Domain structs, enums, value objects | Nothing |
| **Providers** | `src/core/providers/` | Interfaces (contracts) + sentinel errors | entities |
| **Usecases** | `src/core/usecases/{feature}/` | Business logic. 1 file = 1 operation | providers, entities |
| **Entrypoints** | `src/entrypoints/` | HTTP handlers, containers, middleware | usecases, entities |
| **Repositories** | `src/repositories/{feature}/` | GORM implementation of providers | providers, entities |
| **Mocks** | `src/mocks/` | testify mocks for testing | providers |

## Structure to generate

> → Read references/project-structure.md for full file list per directory

## Patterns

> → Read references/patterns.md for UseCase, Handler, Repository, Entity, Errors, DI, and Test patterns

## Core dependencies

team-ai-toolkit v1.7.7, gin v1.12.0, golang-jwt/jwt v5.3.1, google/uuid v1.6.0, testify v1.11.1, gorm v1.31.1, gorm/datatypes v1.2.7.

## Rules

- Generate ALL files with working code (no placeholders)
- Every file must compile
- Include ≥1 working usecase + handler + repo + test
- The first `go test ./...` must pass
- Use `GOPRIVATE=github.com/educabot/*` in the Dockerfile
- Migrations with up + down
- .env.example with pre-generated test tokens
- CLAUDE.md with the project conventions
- Docs in the user's language, code in English

Files in this skill

  • SKILL.md2.7 KB
  • references/patterns.md1.1 KB
  • references/project-structure.md1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.