Agent skill

Opencode Delegation

by athola in athola/claude-night-market

Delegates tasks to OpenCode (opencode run) via delegation-core.

MITAuto-check: notesAgent Workflows

Install Opencode Delegation

skills CLI
$ npx skills add athola/claude-night-market --skill opencode-delegation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install athola/claude-night-market opencode-delegation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/conjure/skills/opencode-delegation .claude/skills/opencode-delegation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
opencode-delegation
GitHub stars
342
Token cost
~999 tokens
SKILL.md length
415 words
Files
1
Skills in repo
159
Repo updated
First seen
Licence
MIT

At a glance

Delegates tasks to OpenCode (opencode run) via delegation-core.

  • Delegation-core selects OpenCode
  • SKILL.md covers Overview, When To Use, When NOT To Use and Prerequisites, plus 4 more sections
  • Calls opencode, npm and uv; needs ANTHROPIC_API_KEY and OPENAI_API_KEY
  • A provider-agnostic harness is wanted

What it does

Opencode Delegation is an agent skill from athola/claude-night-market. Delegates tasks to OpenCode (opencode run) via delegation-core. Use when delegation-core selects OpenCode or a provider-agnostic harness is wanted.

Its SKILL.md is about 1000 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Delegation-core selects OpenCode
  • A provider-agnostic harness is wanted

Example prompts

  • “Use the opencode-delegation skill to delegate tasks to OpenCode (opencode run) via delegation-core”
  • “/opencode-delegation”

Requirements

  • Python 3
  • Node.js
  • A credential in ANTHROPIC_API_KEY
  • A credential in OPENAI_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • opencode
    • npm
    • uv
    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm and uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ANTHROPIC_API_KEY
    • OPENAI_API_KEY
    • OPENCODE_SERVER_PASSWORD

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Opencode Delegation loads about 999 tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 415 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~999

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:66
    API_KEY` or `OPENAI_API_KEY`, through a `.env` file, or

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 415 words, ~999 tokens.

Download SKILL.mdSave it as .claude/skills/opencode-delegation/SKILL.md (or your agent's skills folder).
name
opencode-delegation
description
Delegates tasks to OpenCode (opencode run) via delegation-core. Use when delegation-core selects OpenCode or a provider-agnostic harness is wanted.
alwaysApply
false
category
delegation-implementation
tags
opencode, cli, delegation, provider-agnostic
dependencies
delegation-core
tools
opencode, delegation_executor.py
usage_patterns
opencode-cli-integration, provider-agnostic-routing
complexity
intermediate
model_hint
standard
estimated_tokens
550
references
delegation-core/shared-shell-execution.md

OpenCode Delegation

Overview

OpenCode is an open-source, provider-agnostic terminal agent published as npm opencode-ai. Its scripting entry point is opencode run, which takes the prompt as positional arguments.

Being provider-agnostic makes it the most flexible entry in the registry: the model behind it is whatever the local OpenCode config selects, including a local one.

When To Use

  • delegation-core selected opencode for the task
  • A provider the registry does not model directly is wanted, and OpenCode already has it configured
  • A local or self-hosted model should serve the request

When NOT To Use

  • No provider credentials are configured. opencode auth list shows what is present
  • A specific model must be pinned from this side. Model choice belongs to OpenCode's own config, not to the delegation call

Prerequisites

Installation
bash
npm install -g opencode-ai@latest

Homebrew, pnpm, bun, scoop and chocolatey are also documented upstream.

Authentication

Credentials resolve per provider through environment variables such as ANTHROPIC_API_KEY or OPENAI_API_KEY, through a .env file, or through opencode auth login. Stored credentials are written to ~/.local/share/opencode/auth.json, and the config file supports {env:VARIABLE_NAME} interpolation.

Verification runs opencode auth list, because there is no single variable to check when the provider set is open-ended.

Quick Start

Using the shared delegation executor
bash
uv run python scripts/delegation_executor.py opencode "Find the bug" \
  --files src/
Through the Makefile
bash
make -C plugins/conjure delegate-opencode PROMPT='Find the bug'
Direct CLI usage
bash
opencode run "Explain the use of context in this package"

Smart Delegation

opencode declares the code_execution strength and ranks last among the network providers in the candidate order, ahead only of the local glimmer service. It declares no model ids, since model choice belongs to OpenCode's own configuration.

Show full SKILL.md (173 more words)Show less

OpenCode-Specific Details

PropertyValue
Binaryopencode
Packageopencode-ai
Headless formopencode run <prompt>
Prompt deliverypositional
Version probeopencode --version
Auth probeopencode auth list

opencode run --file <path> attaches a file upstream, but this service inlines file context into the prompt instead, which keeps one delivery path across every provider that lacks an @path syntax.

opencode serve starts a headless HTTP server that opencode run --attach <url> can target, and it honors OPENCODE_SERVER_PASSWORD. That path is not modeled here: the registry spawns a process per delegation rather than holding a server.

An output-format flag is documented for the session list, export and db subcommands, but not confirmed for run, so none is declared.

Exit Criteria

  • opencode resolves on PATH and answers opencode --version
  • opencode auth list shows at least one configured provider
  • The built command is opencode run <prompt> with the prompt last and no prompt flag before it
  • File context was inlined into the prompt rather than passed with --file
  • Output saved to delegations/opencode/YYYYMMDD_HHMMSS.md
  • This skill ran because delegation-core selected opencode

© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/conjure/skills/opencode-delegation of athola/claude-night-market.

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

Opencode Delegation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Opencode Delegation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Opencode Delegation this skillathola/claude-night-market342—~999Automated safety check: NotesMIT
MCP Server Builderanthropics/skills180k64 repos~2.3kAutomated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k11 repos~4.1kAutomated safety check: NotesApache-2.0
Using Superpowersfarm-fe/farm5.6k35 repos~1.4kAutomated safety check: PassMIT
Executing Plans Inlineobra/superpowers296k2 repos~5.1kAutomated safety check: PassMIT
Claude Code Agent Developmentanthropics/claude-plugins-official38k8 repos~2.8kAutomated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 64 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 11 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Using Superpowers

    farm-fe/farm

    A skill your agent uses when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

    5.6k GitHub starsUsed in 35 repos~1.4k tokens
    Agent WorkflowsAuto-check passed
  • Executing Plans Inline

    obra/superpowers

    Has the agent carry out an implementation plan itself, task by task in the current session, keeping a ledger, proving each step with a test and ending with one whole-branch review.

    296k GitHub starsUsed in 2 repos~5.1k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 8 repos~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    795 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed

More from athola/claude-night-market

All 159 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    342 GitHub stars~3.4k tokensUpdated 2 days ago
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    342 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    342 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    342 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    342 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    342 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed

Categories

Questions about Opencode Delegation

What does Opencode Delegation do?

Delegates tasks to OpenCode (opencode run) via delegation-core. Opencode Delegation is an agent skill from athola/claude-night-market. Delegates tasks to OpenCode (opencode run) via delegation-core.

When should I use Opencode Delegation?

Opencode Delegation fits situations like: delegation-core selects OpenCode; A provider-agnostic harness is wanted.

How do I install Opencode Delegation in Claude Code?

Run `npx skills add athola/claude-night-market --skill opencode-delegation -a claude-code`. Or copy the skill folder (plugins/conjure/skills/opencode-delegation in athola/claude-night-market) into .claude/skills/opencode-delegation in your project. Claude Code loads it when a task matches its description.

How do I install Opencode Delegation in Codex?

Run `npx skills add athola/claude-night-market --skill opencode-delegation -a codex`. Or copy the skill folder (plugins/conjure/skills/opencode-delegation in athola/claude-night-market) into .agents/skills/opencode-delegation in your project. Codex loads it when a task matches its description.

Can I use Opencode Delegation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add athola/claude-night-market --skill opencode-delegation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/opencode-delegation, .gemini/skills/opencode-delegation, .github/skills/opencode-delegation and .opencode/skills/opencode-delegation in your project.

What does Opencode Delegation need to run?

Going by SKILL.md and its folder, Opencode Delegation needs the command-line tools its instructions call (opencode, npm, uv and make) and credentials named ANTHROPIC_API_KEY, OPENAI_API_KEY and OPENCODE_SERVER_PASSWORD. Our summary lists: Python 3; Node.js; A credential in ANTHROPIC_API_KEY; A credential in OPENAI_API_KEY.

Does Opencode Delegation access the network?

SKILL.md contains no URLs. Its commands use npm and uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Opencode Delegation safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Opencode Delegation use?

Opencode Delegation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Opencode Delegation use?

About 999 tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Opencode Delegation?

Skills that share tags, products or a category with Opencode Delegation: MCP Server Builder (anthropics/skills, 180k stars), Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Using Superpowers (farm-fe/farm, 5.6k stars) and Executing Plans Inline (obra/superpowers, 296k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Opencode Delegation?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 342 GitHub stars. The repository holds 159 skills in this directory. The repository was last updated on October 6, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.