opencode-repo-setup-skill

opencode-repo-setup-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 64 tokens per session (3,240 once invoked), scanned B, original, Apache-2.0.

An interactive setup guide for enabling selected MCP servers and related options for one OpenCode project. MCP servers are tools that an agent can connect to, while CodeGraph builds a project code map.

In plain words
What is it for?
Use it to configure a repository’s opencode.json, optionally initialize CodeGraph, and add project rules to AGENTS.md.
Why use it?
It avoids changing global settings and makes project-specific tool choices, token costs, and rollback steps explicit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Claude Code.

Good fit Use it to configure a repository’s opencode.json, optionally initialize CodeGraph, and add project rules to AGENTS.md.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/opencode-repo-setup-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add darellchua2/opencode-config-template --skill opencode-repo-setup-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for opencode-repo-setup-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/opencode-repo-setup-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/opencode-repo-setup-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/opencode-repo-setup-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/opencode-repo-setup-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for opencode-repo-setup-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/opencode-repo-setup-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/opencode-repo-setup-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,240 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.03240
Opus 5.5 $0.00026 $0.01296
Sonnet 5.5 $0.00013 $0.00648
Haiku 4.5 $0.00006 $0.00324

Measured 2mo ago against content hash ec03cf949999, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

opencode-repo-setup-skill scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **"Backend: wasm" (5–10x slower)** — install native build tools (`sudo apt install build-essential python3 make`; macOS: `xcode-select --install`; Windows: WSL, or VS Build Tools then `npm rebuild better-sqlite3`), the
skills/opencode-repo-setup-skill/SKILL.md · 187 lines

How it starts

The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.

What I do

I am the interactive frontend for per-project MCP enablement. The global deploy ships most MCP servers disabled (zero always-on schema cost); this skill is how a specific repo opts in. I run in the primary session of the TARGET project (not the configurator repo):

  1. Detect — scan the repo for setup signals
  2. Ask — present a question-tool menu of opt-in servers + extras
  3. Write — merge-write ONLY the delta into <repo>/opencode.json
  4. Init — optionally run codegraph init -i
  5. Report — enabled set, estimated token cost, revert instructions

I never edit the global ~/.config/opencode/config.json. Opencode merges project config over global with project wins semantics, so a one-key delta is all that's needed.

When to use me

  • User says "set up MCP for this repo", "enable Jira/Atlassian here", "project-level opencode setup"
  • A marker rule fired (user AGENTS.md may say: if a repo's AGENTS.md mentions Jira/MCP needs, offer this skill)
  • First session in a repo that carries its own .opencode/ — offer to review/extend it

Step 1 — Detect

Cheap, read-only scans (no network):

Signal Check Suggests
Existing project config <repo>/opencode.json exists Idempotent mode: show current overrides, offer to extend
CodeGraph index <repo>/.codegraph/ exists codegraph already enabled locally; no action
Jira usage AGENTS.md/README mentions Jira keys (PROJ-123), JIRA env vars, atlassian refs offer atlassian enable
GitHub-centric .github/, gh in scripts gh CLI usually suffices; no MCP needed
Docs-heavy .docx/.pptx/.pdf in repo offer markitdown/docling packs
Frontend package.json with next/react offer next-devtools
Python pyproject.toml nothing MCP-specific by default
GitHub repo .github/ or GitHub remote present AND .github/ISSUE_TEMPLATE/ absent offer issue-template scaffold (Step 2 extras)

Report findings in one table, then go to Step 2.

Read the full file on GitHub · 187 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +17 lines ec03cf949999
  2. 2mo ago Changed a98cf2bc6fea
  3. 2mo ago Changed · +9 lines 94b9537c8b2d
  4. 2mo ago Changed · +4 lines f6f4d05f3b14
  5. 2mo ago Changed · +2 lines 49ad1034638e
  6. 3mo ago First seen · 155 lines · 64 tokens per session scan B db1770dfbadc

Subscribe to this mod's changes

opencode-repo-setup-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 64 tokens to every session and 3,240 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

opencode-repo-setup-skill compared with skills from other repositories

opencode-repo-setup-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opencode-repo-setup-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0B64Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill333k7d agoMITA21Claude Code