Crawler Summary

go-development answer-first brief

Production Go development patterns: error handling (typed errors, sentinel errors, Unwrap chains), interface design (accept interfaces, return structs), testing (table-driven, test seams, httptest), concurrency (bounded parallelism, timeouts), resilience (circuit breaker, exponential backoff), and project tooling (golangci-lint, gofumpt, Makefile). Use when writing, reviewing, or setting up Go code and projects. Based on patterns from gogcli and Effective Go. --- name: go-development description: > Production Go development patterns: error handling (typed errors, sentinel errors, Unwrap chains), interface design (accept interfaces, return structs), testing (table-driven, test seams, httptest), concurrency (bounded parallelism, timeouts), resilience (circuit breaker, exponential backoff), and project tooling (golangci-lint, gofumpt, Makefile). Use when writing, reviewing, Published capability contract available. No trust telemetry is available yet. Last updated 3/1/2026.

Freshness

Last checked 3/1/2026

Best For

Contract is available with explicit auth and schema references.

Not Ideal For

go-development is not ideal for teams that need stronger public trust telemetry, lower setup complexity, or more explicit contract coverage before production rollout.

Evidence Sources Checked

editorial-content, capability-contract, runtime-metrics, public facts pack

Claim this agent
Agent DossierGitHubSafety: 89/100

go-development

Production Go development patterns: error handling (typed errors, sentinel errors, Unwrap chains), interface design (accept interfaces, return structs), testing (table-driven, test seams, httptest), concurrency (bounded parallelism, timeouts), resilience (circuit breaker, exponential backoff), and project tooling (golangci-lint, gofumpt, Makefile). Use when writing, reviewing, or setting up Go code and projects. Based on patterns from gogcli and Effective Go. --- name: go-development description: > Production Go development patterns: error handling (typed errors, sentinel errors, Unwrap chains), interface design (accept interfaces, return structs), testing (table-driven, test seams, httptest), concurrency (bounded parallelism, timeouts), resilience (circuit breaker, exponential backoff), and project tooling (golangci-lint, gofumpt, Makefile). Use when writing, reviewing,

OpenClawself-declared

Public facts

6

Change events

1

Artifacts

0

Freshness

Mar 1, 2026

Verifiededitorial-contentNo verified compatibility signals

Published capability contract available. No trust telemetry is available yet. Last updated 3/1/2026.

Schema refs publishedTrust evidence available

Trust score

Unknown

Compatibility

OpenClaw

Freshness

Mar 1, 2026

Vendor

Oss Skills

Artifacts

0

Benchmarks

0

Last release

Unpublished

Executive Summary

Key links, install path, and a quick operational read before the deeper crawl record.

Verifiededitorial-content

Summary

Published capability contract available. No trust telemetry is available yet. Last updated 3/1/2026.

Setup snapshot

git clone https://github.com/oss-skills/go-development.git
  1. 1

    Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.

  2. 2

    Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Evidence Ledger

Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.

Verifiededitorial-content
Vendor (1)

Vendor

Oss Skills

profilemedium
Observed Mar 1, 2026Source linkProvenance
Compatibility (2)

Protocol compatibility

OpenClaw

contractmedium
Observed Feb 24, 2026Source linkProvenance

Auth modes

api_key

contracthigh
Observed Feb 24, 2026Source linkProvenance
Artifact (1)

Machine-readable schemas

OpenAPI or schema references published

contracthigh
Observed Feb 24, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance
Integration (1)

Crawlable docs

6 indexed pages on the official domain

search_documentmedium
Observed Apr 15, 2026Source linkProvenance

Release & Crawl Timeline

Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.

Self-declaredagent-index

Artifacts Archive

Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.

Self-declaredGITHUB OPENCLEW

Extracted files

0

Examples

6

Snippets

0

Languages

typescript

Parameters

Executable Examples

text

cmd/<binary>/main.go       # Thin: just calls Execute() and handles exit
internal/                  # All implementation — prevents external imports
  <domain>/                # Package per concern, not per layer
go.mod
Makefile

go

func main() {
    if err := cmd.Execute(os.Args[1:]); err != nil {
        os.Exit(exitCode(err))
    }
}

go

type AuthRequiredError struct {
    Service string
    Email   string
    Cause   error
}

func (e *AuthRequiredError) Error() string {
    return fmt.Sprintf("auth required for %s %s", e.Service, e.Email)
}

func (e *AuthRequiredError) Unwrap() error { return e.Cause }

// Checker function — consumers use this, not type assertions
func IsAuthRequiredError(err error) bool {
    var e *AuthRequiredError
    return errors.As(err, &e)
}

go

var (
    errNotFound     = errors.New("not found")
    errStateMismatch = errors.New("state mismatch")
)

// Check with errors.Is — works through wrapping chains
if errors.Is(err, errNotFound) { ... }

go

// Define interface WHERE IT'S USED, not where implemented
type Store interface {
    Get(key string) (string, error)
    Set(key, value string) error
}

// Constructor returns concrete type (or interface if multiple implementations)
func NewKeyringStore(ring keyring.Keyring) *KeyringStore {
    return &KeyringStore{ring: ring}
}

// Factory returns interface when implementation varies
func OpenDefault() (Store, error) {
    ring, err := openKeyring()
    if err != nil { return nil, err }
    return &KeyringStore{ring: ring}, nil
}

go

var _ Store = (*KeyringStore)(nil)
var _ Store = (*FileStore)(nil)

Docs & README

Full documentation captured from public sources, including the complete README when available.

Self-declaredGITHUB OPENCLEW

Docs source

GITHUB OPENCLEW

Editorial quality

ready

Production Go development patterns: error handling (typed errors, sentinel errors, Unwrap chains), interface design (accept interfaces, return structs), testing (table-driven, test seams, httptest), concurrency (bounded parallelism, timeouts), resilience (circuit breaker, exponential backoff), and project tooling (golangci-lint, gofumpt, Makefile). Use when writing, reviewing, or setting up Go code and projects. Based on patterns from gogcli and Effective Go. --- name: go-development description: > Production Go development patterns: error handling (typed errors, sentinel errors, Unwrap chains), interface design (accept interfaces, return structs), testing (table-driven, test seams, httptest), concurrency (bounded parallelism, timeouts), resilience (circuit breaker, exponential backoff), and project tooling (golangci-lint, gofumpt, Makefile). Use when writing, reviewing,

Full README

name: go-development description: > Production Go development patterns: error handling (typed errors, sentinel errors, Unwrap chains), interface design (accept interfaces, return structs), testing (table-driven, test seams, httptest), concurrency (bounded parallelism, timeouts), resilience (circuit breaker, exponential backoff), and project tooling (golangci-lint, gofumpt, Makefile). Use when writing, reviewing, or setting up Go code and projects. Based on patterns from gogcli and Effective Go.

Go Development

Production Go patterns extracted from real codebases. Not generic advice — concrete patterns with rationale.

When to Use

  • Writing or reviewing Go code
  • Designing interfaces, error types, or package structure
  • Setting up Go project tooling (linting, formatting, CI)
  • Implementing concurrent or resilient HTTP clients
  • Writing tests for Go code

When NOT to Use

  • CLI-specific patterns (Kong, output formatting, exit codes) — use open-cli skill
  • Trivial scripts or one-off tools

Project Structure

cmd/<binary>/main.go       # Thin: just calls Execute() and handles exit
internal/                  # All implementation — prevents external imports
  <domain>/                # Package per concern, not per layer
go.mod
Makefile

main.go should be ~10 lines:

func main() {
    if err := cmd.Execute(os.Args[1:]); err != nil {
        os.Exit(exitCode(err))
    }
}

internal/ enforces encapsulation — consumers can't import your implementation. Package by domain (auth/, config/, zoho/), not by layer (models/, services/).

Error Handling

See errors.md for full patterns.

Typed Errors

type AuthRequiredError struct {
    Service string
    Email   string
    Cause   error
}

func (e *AuthRequiredError) Error() string {
    return fmt.Sprintf("auth required for %s %s", e.Service, e.Email)
}

func (e *AuthRequiredError) Unwrap() error { return e.Cause }

// Checker function — consumers use this, not type assertions
func IsAuthRequiredError(err error) bool {
    var e *AuthRequiredError
    return errors.As(err, &e)
}

Sentinel Errors

var (
    errNotFound     = errors.New("not found")
    errStateMismatch = errors.New("state mismatch")
)

// Check with errors.Is — works through wrapping chains
if errors.Is(err, errNotFound) { ... }

Wrapping Rules

  • Wrap with context: fmt.Errorf("fetch users: %w", err)
  • Never wrap twice: don't wrap an already-wrapped error with the same context
  • Actionable messages: "no refresh token; try again with --force-consent"

Interface Design

See interfaces.md for full patterns.

Accept Interfaces, Return Structs

// Define interface WHERE IT'S USED, not where implemented
type Store interface {
    Get(key string) (string, error)
    Set(key, value string) error
}

// Constructor returns concrete type (or interface if multiple implementations)
func NewKeyringStore(ring keyring.Keyring) *KeyringStore {
    return &KeyringStore{ring: ring}
}

// Factory returns interface when implementation varies
func OpenDefault() (Store, error) {
    ring, err := openKeyring()
    if err != nil { return nil, err }
    return &KeyringStore{ring: ring}, nil
}

Compile-Time Interface Checks

var _ Store = (*KeyringStore)(nil)
var _ Store = (*FileStore)(nil)

When NOT to Use Interfaces

  • Only one implementation exists and you don't need test mocking
  • The type is a simple data struct
  • You're adding indirection for "future flexibility" — YAGNI

Testing

See testing.md for full patterns.

Table-Driven Tests

func TestFormatBytes(t *testing.T) {
    tests := []struct {
        name     string
        bytes    int64
        expected string
    }{
        {name: "zero", bytes: 0, expected: "0 B"},
        {name: "KB boundary", bytes: 1024, expected: "1.0 KB"},
    }
    for _, tt := range tests {
        t.Run(tt.name, func(t *testing.T) {
            assert.Equal(t, tt.expected, formatBytes(tt.bytes))
        })
    }
}

Package-Level Vars as Test Seams

Alternative to interfaces for dependency injection:

// Production code
var openSecretsStore = secrets.OpenDefault

func createClient() (*Client, error) {
    store, err := openSecretsStore()
    // ...
}

// Test code
func TestCreateClient(t *testing.T) {
    orig := openSecretsStore
    t.Cleanup(func() { openSecretsStore = orig })

    openSecretsStore = func() (secrets.Store, error) {
        return &mockStore{}, nil
    }
    // ...
}

Test Helpers

func captureStdout(t *testing.T, fn func()) string {
    t.Helper() // Stack traces point to caller, not here
    r, w, _ := os.Pipe()
    orig := os.Stdout
    os.Stdout = w
    fn()
    w.Close()
    os.Stdout = orig
    b, _ := io.ReadAll(r)
    return string(b)
}

Concurrency

See concurrency.md for full patterns.

Bounded Parallelism

const maxConcurrency = 10
sem := make(chan struct{}, maxConcurrency)

type result struct {
    index int
    item  Item
    err   error
}
results := make(chan result, len(items))
var wg sync.WaitGroup

for i, item := range items {
    wg.Add(1)
    go func(idx int, it Item) {
        defer wg.Done()
        select {
        case sem <- struct{}{}:
            defer func() { <-sem }()
        case <-ctx.Done():
            results <- result{index: idx, err: ctx.Err()}
            return
        }
        // ... do work
        results <- result{index: idx, item: processed}
    }(i, item)
}

go func() { wg.Wait(); close(results) }()

Timeout Pattern

func openWithTimeout(timeout time.Duration) (Resource, error) {
    ch := make(chan resourceResult, 1)
    go func() {
        r, err := openBlocking()
        ch <- resourceResult{r, err}
    }()
    select {
    case res := <-ch:
        return res.resource, res.err
    case <-time.After(timeout):
        return nil, fmt.Errorf("timeout after %v", timeout)
    }
}

Resilience

See resilience.md for full patterns.

Retry with Exponential Backoff

  • Respect Retry-After header first
  • Exponential backoff with jitter: baseDelay * 2^attempt + random(0, baseDelay/2)
  • Separate retry limits per error class (3 for 429, 1 for 5xx)
  • Make request body replayable for POST/PUT retries
  • Context-aware sleep (respect cancellation during backoff)

Circuit Breaker

  • Open after N consecutive failures
  • Auto-reset after timeout period
  • sync.Mutex for thread safety
  • Log state transitions

File I/O

Atomic Writes

func writeConfig(path string, data []byte) error {
    tmp := path + ".tmp"
    if err := os.WriteFile(tmp, data, 0o600); err != nil {
        return fmt.Errorf("write: %w", err)
    }
    return os.Rename(tmp, path) // Atomic on Unix
}

Permissions

  • Config files: 0o600 (user read/write only)
  • Config dirs: 0o700 (user access only)
  • Never store secrets in config — use keyring or encrypted file store

Context Propagation

Context Values with Type-Safe Keys

type ctxKey struct{} // Empty struct — unique per package

func WithMode(ctx context.Context, mode Mode) context.Context {
    return context.WithValue(ctx, ctxKey{}, mode)
}

func FromContext(ctx context.Context) Mode {
    if v, ok := ctx.Value(ctxKey{}).(Mode); ok {
        return v
    }
    return Mode{} // Zero value default
}

Rules:

  • One key type per package (empty struct prevents collisions)
  • Helper functions hide context.Value complexity
  • Always provide a safe default for missing values

Project Tooling

Makefile

VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
LDFLAGS := -X main.version=$(VERSION)
TOOLS_DIR := $(CURDIR)/.tools

build:
	go build -ldflags "$(LDFLAGS)" -o bin/app ./cmd/app

test:
	go test ./... -race -count=1

lint: tools
	$(TOOLS_DIR)/golangci-lint run

fmt: tools
	$(TOOLS_DIR)/goimports -local github.com/your/module -w .
	$(TOOLS_DIR)/gofumpt -w .

tools:
	@mkdir -p $(TOOLS_DIR)
	GOBIN=$(TOOLS_DIR) go install mvdan.cc/gofumpt@v0.9.2
	GOBIN=$(TOOLS_DIR) go install golang.org/x/tools/cmd/goimports@v0.41.0
	GOBIN=$(TOOLS_DIR) go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.8.0

ci: fmt lint test

Key points:

  • Local tools in .tools/ — don't pollute global GOPATH/bin
  • Pinned versions — reproducible builds
  • -local for goimports — groups internal imports separately
  • -race in tests — always detect data races
  • Version via ldflags — embed git info at build time

References

| File | Topic | |------|-------| | errors.md | Typed errors, sentinel errors, wrapping, error checking | | interfaces.md | Interface design, DI patterns, when to use interfaces | | testing.md | Table-driven tests, test seams, httptest, helpers | | concurrency.md | Bounded parallelism, timeouts, channels, sync primitives | | resilience.md | Circuit breaker, retry transport, backoff, replayable body |


Patterns extracted from gogcli by Peter Steinberger and Go standard library idioms.

Contract & API

Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.

Verifiedcapability-contract

Contract coverage

Status

ready

Auth

api_key

Streaming

No

Data region

global

Protocol support

OpenClaw: self-declared

Requires: openclew, lang:typescript

Forbidden: none

Guardrails

Operational confidence: medium

Contract is available with explicit auth and schema references.
Trust confidence is not low and verification freshness is acceptable.
Invocation examples
curl -s "https://xpersona.co/api/v1/agents/oss-skills-go-development/snapshot"
curl -s "https://xpersona.co/api/v1/agents/oss-skills-go-development/contract"
curl -s "https://xpersona.co/api/v1/agents/oss-skills-go-development/trust"

Reliability & Benchmarks

Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.

Missingruntime-metrics

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

No benchmark suites or observed failure patterns are available.

Media & Demo

Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.

Missingno-media
No screenshots, media assets, or demo links are available.

Related Agents

Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.

Self-declaredprotocol-neighbors
GITHUB_REPOSactivepieces

Rank

70

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

Traction

No public download signal

Freshness

Updated 2d ago

OPENCLAW
GITHUB_REPOScherry-studio

Rank

70

AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs

Traction

No public download signal

Freshness

Updated 5d ago

MCPOPENCLAW
GITHUB_REPOSAionUi

Rank

70

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

Traction

No public download signal

Freshness

Updated 6d ago

MCPOPENCLAW
GITHUB_REPOSCopilotKit

Rank

70

The Frontend for Agents & Generative UI. React + Angular

Traction

No public download signal

Freshness

Updated 23d ago

OPENCLAW
Machine Appendix

Contract JSON

{
  "contractStatus": "ready",
  "authModes": [
    "api_key"
  ],
  "requires": [
    "openclew",
    "lang:typescript"
  ],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": false,
  "inputSchemaRef": "https://github.com/oss-skills/go-development#input",
  "outputSchemaRef": "https://github.com/oss-skills/go-development#output",
  "dataRegion": "global",
  "contractUpdatedAt": "2026-02-24T19:45:27.862Z",
  "sourceUpdatedAt": "2026-02-24T19:45:27.862Z",
  "freshnessSeconds": 4424192
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://xpersona.co/api/v1/agents/oss-skills-go-development/snapshot",
    "contractUrl": "https://xpersona.co/api/v1/agents/oss-skills-go-development/contract",
    "trustUrl": "https://xpersona.co/api/v1/agents/oss-skills-go-development/trust"
  },
  "curlExamples": [
    "curl -s \"https://xpersona.co/api/v1/agents/oss-skills-go-development/snapshot\"",
    "curl -s \"https://xpersona.co/api/v1/agents/oss-skills-go-development/contract\"",
    "curl -s \"https://xpersona.co/api/v1/agents/oss-skills-go-development/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_OPENCLEW",
      "generatedAt": "2026-04-17T00:42:00.496Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile"
}

Facts JSON

[
  {
    "factKey": "docs_crawl",
    "category": "integration",
    "label": "Crawlable docs",
    "value": "6 indexed pages on the official domain",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  },
  {
    "factKey": "vendor",
    "category": "vendor",
    "label": "Vendor",
    "value": "Oss Skills",
    "href": "https://github.com/oss-skills/go-development",
    "sourceUrl": "https://github.com/oss-skills/go-development",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-03-01T06:05:19.852Z",
    "isPublic": true
  },
  {
    "factKey": "protocols",
    "category": "compatibility",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "href": "https://xpersona.co/api/v1/agents/oss-skills-go-development/contract",
    "sourceUrl": "https://xpersona.co/api/v1/agents/oss-skills-go-development/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-02-24T19:45:27.862Z",
    "isPublic": true
  },
  {
    "factKey": "auth_modes",
    "category": "compatibility",
    "label": "Auth modes",
    "value": "api_key",
    "href": "https://xpersona.co/api/v1/agents/oss-skills-go-development/contract",
    "sourceUrl": "https://xpersona.co/api/v1/agents/oss-skills-go-development/contract",
    "sourceType": "contract",
    "confidence": "high",
    "observedAt": "2026-02-24T19:45:27.862Z",
    "isPublic": true
  },
  {
    "factKey": "schema_refs",
    "category": "artifact",
    "label": "Machine-readable schemas",
    "value": "OpenAPI or schema references published",
    "href": "https://github.com/oss-skills/go-development#input",
    "sourceUrl": "https://xpersona.co/api/v1/agents/oss-skills-go-development/contract",
    "sourceType": "contract",
    "confidence": "high",
    "observedAt": "2026-02-24T19:45:27.862Z",
    "isPublic": true
  },
  {
    "factKey": "handshake_status",
    "category": "security",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "href": "https://xpersona.co/api/v1/agents/oss-skills-go-development/trust",
    "sourceUrl": "https://xpersona.co/api/v1/agents/oss-skills-go-development/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true
  }
]

Change Events JSON

[
  {
    "eventType": "docs_update",
    "title": "Docs refreshed: Sign in to GitHub · GitHub",
    "description": "Fresh crawlable documentation was indexed for the official domain.",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  }
]

Sponsored

Ads related to go-development and adjacent AI workflows.