# go-backend-clean-architecture

go-backend-clean-architecture scaffolds a Go backend in the current folder: Gin, MongoDB, JWT auth and Clean Architecture layers, from clone to first run.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 105 installs · ★ 18 repo stars
- Author: rebyteai-template
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/rebyteai-template/rebyte-skills/tree/HEAD/go-backend-clean-architecture/SKILL.md
- Updated: 2026-06-16
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/go-backend-clean-architecture

## What it does

The skill walks an agent through bootstrapping a Go service from the go-backend-clean-architecture template: it pulls the repository into the working directory, downloads the Go modules and points out where the MongoDB connection and JWT secret go.

A non-empty folder is handled by cloning into `_temp_template` first and moving the files across. Build with `go build -o app ./cmd/main.go`, run with `go run ./cmd/main.go`.

Go 1.21+ and a reachable MongoDB are needed before anything compiles. Docker support is there too, though the container path stays optional.

## Requirements
- Works with: MongoDB

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add rebyteai-template/rebyte-skills --skill go-backend-clean-architecture -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/go-backend-clean-architecture/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/go-backend-clean-architecture/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add rebyteai-template/rebyte-skills --skill go-backend-clean-architecture -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/go-backend-clean-architecture/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add rebyteai-template/rebyte-skills --skill go-backend-clean-architecture -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/go-backend-clean-architecture/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install rebyteai-template/rebyte-skills go-backend-clean-architecture
```

2. **Manually: put the files in place**
- File: `.github/skills/go-backend-clean-architecture/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add rebyteai-template/rebyte-skills --skill go-backend-clean-architecture -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/rebyteai-template/rebyte-skills --path go-backend-clean-architecture
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/go-backend-clean-architecture/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add rebyteai-template/rebyte-skills --skill go-backend-clean-architecture -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/rebyteai-template/rebyte-skills/tree/HEAD/go-backend-clean-architecture/SKILL.md

## When to use it
- stand up a Gin service without wiring the boilerplate by hand
- add MongoDB storage and JWT auth to a fresh Go project
- start from a Clean Architecture layout instead of one flat file
- get from an empty repo to a running server

## Example prompts
- Scaffold the go-backend-clean-architecture template in this folder and pull the modules
- Wire up the MongoDB connection string and JWT secret in the environment
- Build the app with `go build -o app ./cmd/main.go` and start it

## Similar
- [clean-architecture](https://affpapa.org/en/nevibecode/skills/mindrally-clean-architecture.md) — skill · 1100 installs
- [go-backend-microservices](https://affpapa.org/en/nevibecode/skills/go-backend-microservices.md) — skill · 877 installs
- [enterprise-user-management-ai-system](https://affpapa.org/en/nevibecode/skills/enterprise-user-management-ai-system.md) — skill · 372 installs
- [android-clean-architecture](https://affpapa.org/en/nevibecode/skills/android-clean-architecture.md) — skill · 7200 installs
- [nodejs-mongodb-cursorrules-prompt-file-tutorial](https://affpapa.org/en/nevibecode/rules/nodejs-mongodb-cursorrules-prompt-file-tutorial.md) — rule · ★ 41178 repo stars

From the same set: [rebyteai-template/rebyte-skills](https://affpapa.org/en/nevibecode/by/rebyteai-template/rebyte-skills.md) — 12 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
