golemcloud/golem/golem-annotate-agent-go
- community
Checking that the SKILL.md file is still in the repository.
Configuring a Go agent's definition — name, description, mode, HTTP mount, and method descriptions. Use when the user asks to set an agent's name/description, make it durable or ephemeral, mount it under an HTTP path, or add descriptions to agent methods for metadata/LLM discovery in a Go Golem project.
Install
npx vskill@latest install golemcloud/golem/golem-annotate-agent-goSKILL.md
Configuring a Go Agent's Definition
Overview
An agent's definition carries all of its declarative metadata. In Go there are no attribute macros — the metadata is plain values you pass to golem.DefineAgent:
- the
golem.Specstruct —Name,Description,Mode,HTTP(mount), andSnapshot; - per-method options passed to
Agent.Method—golem.Description(...)for a method description andgolem.HTTP(...)for HTTP routes.
This metadata is surfaced in the published agent-type schema (used by the platform, by other agents, and by metadata/LLM tool discovery). It has no effect on the handler logic itself.
Steps
- Set identity + mode on the
Spec:Name,Description, and (optionally)Mode. - Describe each method with the
golem.Description("...")option onAgent.Method. - Mount over HTTP (optional) by setting
Spec.HTTPand addinggolem.HTTP(...)routes to methods. - Build — run
golem build.
Spec fields (agents/inventory/inventory.go)
golem.Spec has these fields:
| Field | Type | Meaning | |
|---|---|---|---|
Name | string | Wire-level agent type name, as seen by the platform and other agents. Required. | |
Description | string | Free-text description surfaced in the agent-type metadata. | |
PromptHint | string | Tells AI callers when to create this agent; surfaced with its constructor. | |
Mode | golem.Mode | golem.Durable (default) or golem.Ephemeral. | |
HTTP | *golem.Mount | When set, mounts the agent's methods under an HTTP path prefix (see below). | |
Snapshot | golem.SnapshotPolicy | Snapshot cadence; zero value disables snapshotting. | |
Dependencies | []golem.AgentDependency | Agents of this component that this one depends on, published with its metadata. |
Mode
- `golem.Durable` — the default (
Modezero value). State persists across invocations and replays deterministically on recovery. - `golem.Ephemeral` — no state is persisted across invocations.
Describing methods
Attach golem.Description("...") to a method to set the description carried in the schema. Setting it more than once for the same method is a definition error, not a silent overwrite.
Method options compose — pass several in one Agent.Method call (e.g. golem.Description(...) together with golem.PromptHint(...), golem.HTTP(...) or golem.ReadOnly()).
Mounting over HTTP
Set Spec.HTTP to a *golem.Mount and add golem.HTTP(...) routes per method. Every ID field must appear as a {var} in the mount path so the platform can identify the instance.
golem.Mount fields: Path (required), Auth, CORS, PhantomAgent, PhantomID (select an existing phantom by golem.PhantomIDPath(name) or golem.PhantomIDQuery(name), optionally .Optional()), WebhookSuffix, ExposeFiles, FileResponseHeaders. Verb constructors are golem.GET/POST/PUT/DELETE/PATCH/... and golem.Custom("VERB", "/path"). For full route-binding rules (path/query/header/body, per-route auth and CORS) load golem-add-http-endpoint-go.
Key Constraints
Spec.Nameis required and is the wire-level type name — keep it stable, other agents address this agent by it.Modedefaults togolem.Durable(the zero value); setgolem.Ephemeralonly for stateless agents.golem.Description(...)andgolem.HTTP(...)are definition-side metadata onAgent.Method; they never change handler behavior.- Setting
Descmore than once on one method is a definition error reported at discovery. Descdescribes what a method does;golem.PromptHint(...)(andSpec.PromptHintfor the agent) tells AI callers when to use it, like Rust's#[description]/#[prompt]pair. Each is set at most once per method.
Related Skills
| Skill | When to Load | |
|---|---|---|
golem-add-agent-go | Create the agent's definition + implementation from scratch | |
golem-add-http-endpoint-go | Full HTTP mount/route binding rules (path/query/header/body, auth, CORS) | |
golem-mark-read-only-go | Mark a method read-only and configure result caching | |
golem-configure-durability-go | Tune durability/retry behavior for a durable agent |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggolem-skills/skills/go/golem-annotate-agent-go/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/golemcloud/golem/golem-annotate-agent-go)