Index of every page on this site: llms.txt
All skills
akdevsaha-dev avatar

/init-backend

@ce26f0a
Run it yourself

Initialize a production-oriented backend project using Node.js with TypeScript, Python with FastAPI and uv, or Go. Use when the user asks to initialize, scaffold, bootstrap, or set up a backend.

Use this Skill: https://skilld.dev/gh/akdevsaha-dev/factory-skills/init-backend

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesgo.md

≈585 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Go Backend Standard

Stack

  • Current supported stable Go release
  • Go standard library net/http
  • encoding/json
  • log/slog
  • Go modules
  • Go built-in testing

Avoid third-party dependencies for the initial scaffold unless they provide a clear benefit.

Project structure

All paths below are relative to the backend/ directory. Create backend/ first and generate every file inside it. Do not place src/, tests/, or config files at the repository root.

backend/ ├── cmd/ │ └── api/ │ └── main.go ├── internal/ │ ├── config/ │ │ └── config.go │ ├── routes/ │ │ └── routes.go │ ├── handlers/ │ │ └── health.go │ ├── services/ │ │ └── health.go │ ├── validators/ │ │ └── validators.go │ └── middleware/ │ └── middleware.go ├── tests/ │ └── health_test.go ├── .env.example ├── .gitignore ├── go.mod └── README.md

Initialization

Run every command in this file from inside the backend/ directory (mkdir -p backend && cd backend).

Initialize a Go module using:

go mod init <module-name>

Ask for the module path only if it cannot be inferred from an existing module or repository configuration.

Use the standard library HTTP router and modern ServeMux routing.

Architecture

Routes: Register HTTP routes.

Handlers: Handle HTTP requests and responses.

Services: Implement business logic.

Validators: Provide reusable request validation helpers when required.

Config: Read environment variables and apply defaults.

Middleware: Implement shared HTTP concerns only when necessary.

Health endpoint

GET /health

Response:

{ "status": "ok" }

Default port: 8080

Engineering requirements

  • Use http.Server with explicit timeouts.
  • Support graceful shutdown with context.
  • Use log/slog for structured logging.
  • Use encoding/json for responses.
  • Return appropriate HTTP status codes.
  • Avoid global mutable application state.
  • Do not add a database unless requested.
  • Keep dependencies minimal.

Development

go run ./cmd/api

Build

go build -o bin/api ./cmd/api

Tests

go test ./...

Verification

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts11d3 checks · Risk SAFE
  • Gen Agent Trust Hub11d

    The backend initialization skill is designed to scaffold production-ready projects in Node.js, Python, or Go. It follows standard industry practices for project structure, dependency management, and verification. While the skill possesses significant capabilities like executing shell commands and installing packages, these actions are intended for its primary purpose of setting up a development environment. It references the author's own engineering guidelines on GitHub as a template. The low verdict reflects the inherent surface for indirect prompt injection common in tools that inspect local project files.

  • Socket11d

    No alerts

  • Snyk11d

    Risk: LOW · No issues

Signed by skilld at ce26f0a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 2 weeks ago

README badge

README badge for akdevsaha-dev/factory-skills/init-backend