Annotating Agent Methods (Scala)
SkillDocs & knowledgeAdds descriptive annotations to Scala agent methods so AI systems can discover and understand them.
Use Annotating Agent Methods (Scala) in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Annotating Agent Methods (Scala) and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Annotating Agent Methods (Scala) skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
About this skill
Adding prompt and description annotations to Scala agent methods. Use when the user asks to add descriptions, prompts, or documentation metadata to agent methods for AI/LLM discovery.
What this skill tells your AI
The instructions your AI receives, as published by golemcloud/golem in golem-skills/skills/scala/golem-annotate-agent-scala/SKILL.md and read by ahel’s review.
Overview
Golem agents can annotate methods with @prompt and @description annotations. These provide metadata for AI/LLM tool discovery — agents with annotated methods can be used as tools by LLM-based systems.
Annotations
@prompt("...")— A short instruction telling an LLM when to call this method@description("...")— A longer explanation of what the method does, its parameters, and return value
Usage
import golem.runtime.annotations.{agentDefinition, description, prompt}
import golem.BaseAgent
import scala.concurrent.Future
@agentDefinition(mount = "/inventory/{warehouseId}")
trait InventoryAgent extends BaseAgent {
class Id(val warehouseId: String)
@prompt("Look up the current stock level for a product")
@description("Returns the number of units in stock for the given product SKU. Returns 0 if the product is not found.")
def checkStock(sku: String): Future[Int]
@prompt("Add units of a product to inventory")
@description("Increases the stock count for the given SKU by the specified amount. Returns the new total.")
def restock(sku: String, quantity: Int): Future[Int]
@prompt("Remove units of a product from inventory")
@description("Decreases the stock count for the given SKU. Returns a Left if insufficient stock.")
def pick(sku: String, quantity: Int): Future[Either[String, Int]]
}
Guidelines
@promptshould be a natural-language instruction an LLM can match against a user request@descriptionshould document behavior, edge cases, and expected inputs/outputs- Both annotations are optional — omit them for internal methods not intended for LLM discovery
- Annotations have no effect on runtime behavior; they are purely metadata
Signals
- GitHub stars
- 2k
- Forks
- 210
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
golem-annotate-agent-scala- Source
- github.com/golemcloud/golem
More in Docs & knowledge
Skill · mattpocock
More in Docs & knowledgecanvas-design
Skill · anthropics
More in Docs & knowledgedoc-coauthoring
Skill · anthropics
More in Docs & knowledgewriting-for-agents
Skill · mattpocock
More in Docs & knowledgespec-driven-development
Skill · addyosmani
More in Docs & knowledgedefuddle
Skill · kepano
More in Docs & knowledge