Skip to content
Back to skills

Golem Api Design

ASecurity

Design or change Golem's exported Go APIs and package boundaries. Use before adding public constructors, interfaces, options, result fields, model capabilities, tool contracts, or concurrency behavior.

  • 9 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add abubakarsiddik31/golem --skill golem-api-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Golem Api Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Golem Api Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/abubakarsiddik31-golem-api-design/badge)](https://www.skillsdirectory.com/skills/abubakarsiddik31-golem-api-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: golem-api-design
description: Design or change Golem's exported Go APIs and package boundaries. Use before adding public constructors, interfaces, options, result fields, model capabilities, tool contracts, or concurrency behavior.
---

# Golem API design

Design the smallest public contract that gives applications a useful, testable capability. Read `docs/foundation.md` and `references/api-decisions.md` before editing an exported API.

## Decision sequence

1. Write the caller's intended code in a test or package example.
2. List the required inputs, output, cancellation behavior, failure stages, and observable run evidence.
3. Decide whether a concrete type and option function work. Introduce an interface only if applications must substitute an implementation.
4. Place provider-specific types behind the `model` package boundary; do not leak SDK or transport types into core APIs.
5. Test the proposed contract against a fake implementation, including the primary failure path.
6. Update `README.md`; add an ADR before a difficult-to-reverse cross-package commitment.

## Non-negotiable checks

- Use `context.Context` first for every blocking operation.
- Preserve causal errors with wrapping; distinguish model, decode, tool, and policy stages.
- Use type parameters for caller-owned dependencies and outputs, not `map[string]any`.
- Keep result evidence normalized and ordered.
- Specify goroutine ownership and cancellation before adding concurrency.

Reject an API that is convenient only because it hides a provider, retry, validation, or lifecycle decision from the caller.

Files in this skill

  • SKILL.md1.6 KB
  • agents/openai.yaml179 B
  • references/api-decisions.md911 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.