- Home
- Skills
- APIs & Backend
- go platform engineering
go platform engineering
Standardized engineering playbook for Go backends and self-hosted Kubernetes platforms using GitOps and layered design.
Free
go platform engineering
Example session with this skill installed
I need to add a new 'orders' domain to our Go backend. How should I structure the layers and the database migration to follow the platform principles?
- Read your context and instructions
- Compiled the go platform engineering
I will guide you through adding the orders domain following the strictly layered, contract-first, and additive programming principles.
Orders Domain Implementation
| Step | Action | Platform Requirement |
|---|---|---|
| Contract | Define orders.yaml OpenAPI spec | Must include error-code catalogue and authz relations. |
| Migration | Create Postgres migration with CHECK constraints | Use integer money and partial unique indexes for active orders. |
| Foundation | Wrap the DB driver in a foundation package | No raw SQL in business logic; use ports and adapters. |
| Business | Implement pure core logic | No I/O or clock calls; use outbox pattern for state changes. |
| API | Implement strict JSON validation | Subject must come from session only; default deny authz. |
| Audit | Record order_created event | Include who, when, subject, and old/new state. |
// Example Layering Test (test/arch/orders_test.go)
func TestOrdersLayering(t *testing.T) {
// Enforce: api -> app -> business -> foundation
arch.Check(t, arch.Rule{
Layer: "orders/business",
MayNotImport: []string{"orders/api", "orders/app"},
})
}
Next steps
- Initialize the ADR using
assets/adr-template.mdto document the order state machine. - Generate server stubs from your OpenAPI spec using
make gen. - Add the
orderstable to the permission-matrix in your authz model.
Connects securely to your tools. The creator never sees your data.
About this skill
Standardizing Go backend architecture and Kubernetes platform engineering is difficult when teams grow. This skill provides a rigorous playbook for building regulated, multi-product platforms using Go and a cloud-native stack. It replaces vague conventions with hard architectural rules and automated checks.
What it does
- Enforces Layered Design via automated tests to ensure imports only flow downward from API to foundation.
- Drives Contract-First Development by generating code from OpenAPI or Protobuf specs and enforcing drift tests.
- Secures the Supply Chain using Trivy for scanning, Cosign for signing, and Gitleaks for secret detection.
- Hardens Persistence through Postgres invariants, including partial unique indexes, exclusion constraints, and outbox patterns.
- Orchestrates GitOps Infrastructure using OpenTofu, Flux, and Talos for stateful, self-hosted Kubernetes.
How it works
- Architectural Review: Use the layering rules in
assets/arch_test.goto audit existing service boundaries. - Backend Workflow: Define contracts first, generate code, write failing table tests, and implement business logic with outbox events.
- Platform Workflow: Declare infrastructure changes in OpenTofu or Helm, verify with Kyverno admission policies, and deploy via Flux.
- Validation: Run the local gate checks (testing, linting, scanning) to ensure every commit meets the platform standard.
Frameworks & tools
The skill is built for Go backends and a platform stack including Cilium, Envoy Gateway, Kyverno, Tetragon, OpenBao, External Secrets, NATS JetStream, OpenTofu, Talos, and Flux.
Why this beats prompting it yourself
Generic prompts often suggest "standard" patterns that break at scale or under regulation. This skill enforces specific, battle-tested constraints like vendor wrapping and additive programming that prevent architectural rot.
Use cases
- Designing a new Go service that requires strict regulatory compliance.
- Migrating from polling-based architectures to NATS-driven push events.
- Setting up a GitOps-driven Kubernetes platform with zero-trust networking.
- Automating PR reviews for architectural layering and security violations.
Known limitations
Focuses specifically on Go and a Talos/Flux/Cilium platform stack. Does not provide templates for non-relational databases or public cloud managed services like RDS.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 16 days ago
- Free with an Agensi account
- Software
Git
Permissions
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.