---
name: scaffolding-durable-go-agent-workflows
description: "Scaffolds durable Go agent workflows with lifecycle hooks, tool definitions, and crash-resilient session persistence, gating destructive or external actions behind human approval. Use when a person provides architecture specs for a stateful Go agent."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Terminal."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/scaffolding-durable-go-agent-workflows/"
  kind: skill
  hermes:
    tags: ["golang", "code-generation", "workflow", "developer-tools"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Scaffolding durable Go agent workflows

Generate resilient Go agent boilerplate with explicit human-in-the-loop tool gates.

## When to use

Inspects project requirements to scaffold Go agent code featuring lifecycle hooks, tool definitions, and crash-resilient session persistence. It ensures that critical actions like external writes or system calls are properly gated behind human approval before saving changes.

## Inputs

- `agent_architecture_specs`: Requirements for the Go agent's stateful tasks, tool integrations, lifecycle hooks, and overall architecture.
- `tool_integration_requirements` (optional): Details of the external tools and tool boundaries the agent must support.
- `budget_limits` (optional): Any budget limits or constraints the agent runtime should enforce.

## Steps

1. When you ask: Receive agent architecture specs (A person asks to scaffold a durable Go agent workflow and shares architecture specs.)
2. Draft Go agent code and tool gates
3. Present code and await PR approval

## Instructions

Analyze user requirements for stateful tasks, tool integrations, and budget limits. Write idiomatic Go code setting up agent runtimes, tool boundaries, and lifecycle hooks. Ensure any destructive or external actions require explicit approval tokens before execution. Always display code diffs and request confirmation before creating pull requests, pushing commits, or modifying local repository files.

## Approvals

- Creating pull requests waits for explicit confirmation after code diffs are displayed.
- Pushing commits waits for explicit human confirmation.
- Modifying local repository files waits for explicit human confirmation.
- Destructive or external actions require an explicit approval token before execution.

## Output

Go agent scaffold code, tool gate definitions, and code diffs presented for review before any PR is created. (format: document)

## Source

Summarized in our own words from [agent-sdk-go: Framework for building stateful AI agents in Go. ![GitHub Repo stars](https://img.shields.io/github/stars/agenticenv/agent-sdk](https://github.com/agenticenv/agent-sdk-go) (GitHub, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/scaffolding-durable-go-agent-workflows/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
