go platform engineering

    by Isroil Muhitdinov

    1

    Standardized engineering playbook for Go backends and self-hosted Kubernetes platforms using GitOps and layered design.

    Free

    Security scanned

    Works with the AI Agents you already use

    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

    StepActionPlatform Requirement
    ContractDefine orders.yaml OpenAPI specMust include error-code catalogue and authz relations.
    MigrationCreate Postgres migration with CHECK constraintsUse integer money and partial unique indexes for active orders.
    FoundationWrap the DB driver in a foundation packageNo raw SQL in business logic; use ports and adapters.
    BusinessImplement pure core logicNo I/O or clock calls; use outbox pattern for state changes.
    APIImplement strict JSON validationSubject must come from session only; default deny authz.
    AuditRecord order_created eventInclude 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

    1. Initialize the ADR using assets/adr-template.md to document the order state machine.
    2. Generate server stubs from your OpenAPI spec using make gen.
    3. Add the orders table 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

    1. Architectural Review: Use the layering rules in assets/arch_test.go to audit existing service boundaries.
    2. Backend Workflow: Define contracts first, generate code, write failing table tests, and implement business logic with outbox events.
    3. Platform Workflow: Declare infrastructure changes in OpenTofu or Helm, verify with Kyverno admission policies, and deploy via Flux.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Network Access
    Read Files
    Listed16 days ago

    What's inside

    Frequently Asked Questions

    This skill provides a standardized architectural playbook and automated enforcement tools for Go backends and Kubernetes platforms, solving the problem of architectural rot, inconsistent patterns, and security gaps in scaling teams.

    The package includes architectural enforcement tests, CI/CD gate configurations, security scanning templates, and a step-by-step workflow for GitOps-driven infrastructure and contract-first development.

    This skill is optimized for AI agents capable of interpreting Go and YAML, such as GitHub Copilot, Cursor, or custom GPTs, and requires an environment with Go, OpenTofu, and a Kubernetes cluster (ideally Talos-based).

    No, this skill is purpose-built for Go-based backends and a specific cloud-native stack including Postgres and NATS; it does not provide support for other languages or non-relational database architectures.

    Initial setup involves integrating the provided `arch_test.go` into your repository and configuring your CI pipeline to run the included security and linting gates, which typically takes less than an hour for an existing project.

    Yes, the skill includes patterns for zero-trust networking using Cilium and automated security scanning with Trivy and Cosign, making it ideal for building services that must meet strict regulatory standards.

    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.

    Free