Read-only Effect methods

SkillAI & models

Lets your agent define read-only query methods on Golem agents that can be cached for faster repeated calls.

Use Read-only Effect methods in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Read-only Effect methods and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Read-only Effect methods skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Read-only Effect methodsStart free
About this skill

Adds cacheable read-only methods to Effect Golem agents. Use for queries that do not mutate agent state.

What this skill tells your AI

The instructions your AI receives, as published by golemcloud/golem in golem-skills/skills/effect/golem-read-only-method-effect/SKILL.md and read by Ahel’s review.

Set readOnly on a method; handlers must remain ordinary Effects and must not mutate state or perform writes.

value: method({ input: {}, success: Schema.Number, readOnly: true })
cached: method({
  input: {},
  success: Schema.String,
  readOnly: { cache: { ttlNanos: 5_000_000_000n } },
})

Whether a read-only result is cached per principal is derived from its input: declare a PrincipalSchema parameter when the response depends on the caller. A read-only handler without that declared parameter cannot access the ambient Principal service. Do not mark a method read-only merely because its return type is immutable.

Signals

GitHub stars
2k
Forks
210
Last commit
Oct 2026
Advanced
Item type
skill
Key
golem-read-only-method-effect
Source
github.com/golemcloud/golem