Develop and migrate OpenCode V2 plugins, clients, SDK hosts, and HTTP API integrations. Use for the OpenCode plugin API, `@opencode/client`, `@opencode/sdk`, server API, Effect entrypoints, or V1-to-V2 API migration.
Ships in timmo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use OpenCode V2 and its Effect-native APIs unless the user explicitly asks for a Promise-only integration or hybrid compatibility.
package.json exports map before using a subpath. Confirm that every OpenCode package resolves to a mutually compatible release and that Effect platform packages use the same Effect release channel.https://opencode.ai/config.json.@opencode/plugin/effect, Plugin.define, and an effect function. Use the plugin Scope for registrations, finalizers, and scoped fibers instead of manual Promise cleanup.@opencode/client/effect. Compose operations with Effect, consume subscriptions as Stream values, and use @opencode/client/effect/service for the Node background service.@opencode/sdk/effect. Own the host with Effect.scoped or provide it through OpenCode.layer()./openapi.json, use Effect's HttpClient, and decode request and response boundaries with Schema.AbsolutePath, Location.Ref, and resource IDs. Do not cast plain strings or untrusted responses into them.Effect.orDie only when the surrounding application deliberately treats that failure as a defect.import { Plugin } from "@opencode/plugin/effect"
import { Effect } from "effect"
export default Plugin.define({
id: "example",
effect: (ctx) =>
Effect.gen(function* () {
yield* ctx.storage.set("loaded", true)
yield* Effect.addFinalizer(() => ctx.storage.remove("loaded"))
}),
})
Plugin hook callbacks and registered command, tool, integration, or websearch executors return Effect values. Tool inputs and outputs use Effect Schema rather than unchecked JSON Schema casts.
import { AbsolutePath, Location, OpenCode } from "@opencode/client/effect"
import { Effect } from "effect"
import { FetchHttpClient } from "effect/unstable/http"
const program = Effect.gen(function* () {
const client = yield* OpenCode.make({ baseUrl: "http://localhost:4096" })
return yield* client.session.create({
location: Location.Ref.make({
directory: AbsolutePath.make("/workspace"),
}),
})
})
const session = await Effect.runPromise(
program.pipe(Effect.provide(FetchHttpClient.layer)),
)
Use Stream operators for client.event.subscribe() and other streaming operations. Provide the required HTTP, filesystem, and platform layers at the application boundary, not inside reusable workflows.
import { AbsolutePath, Location, OpenCode } from "@opencode/sdk/effect"
import { Effect } from "effect"
const program = Effect.scoped(
Effect.gen(function* () {
const opencode = yield* OpenCode.create()
return yield* opencode.sessions.create({
location: Location.Ref.make({
directory: AbsolutePath.make("/workspace"),
}),
})
}),
)
const session = await Effect.runPromise(program)
@opencode/client, @opencode/client/service, or the Promise SDK only inside that documented exception. Do not present them as the default V2 starting point.Typecheck examples against the target project's exact locked package set after verifying every imported subpath in published and installed package metadata. Exercise plugin load and cleanup, and run one real client or SDK operation. For direct HTTP work, verify the same operation with opencode2 api or the Effect-native generated client.
What SKILL.md sets; muted values are Claude Code's defaults
/timmo:opencode-effectfrom timmo
npx claudepluginhub timmo001/skills --plugin timmo55 skills in this plugin
/agentic-workflowsDesign, create, update, debug, audit, or upgrade GitHub Agentic Workflows with the `gh aw` extension. Use when work involves workflow Markdown, compiled `.lock.yml` files, agent engines, MCP tools, safe outputs, work queues, scheduled memory consolidation, local SDLC issue bootstrap, or `gh aw` commands./asking-questionsDecide when to ask the user a question and how to present it. Use before any clarifying question, choice, or confirmation, whether through the Plannotator Inbox or in chat, and to decide whether to hold questions until findings are presented or divert to grilling; do not use to run light or full grilling rounds./broRe-pitch the immediately preceding response with enough context to follow, using plain, concise, unambiguous language. Use ONLY when the user explicitly invokes /bro or says the previous response did not land.Other plugins' skills for the same job