customize-opencode
Skill1 starsChanged 11 days agoMITView on GitHub
Edit or create OpenCode's own configuration. Use ONLY when configuring OpenCode itself. Do NOT use for the user's application code.
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
Always create a backup before editing: cp opencode.json opencode.json.bak
- Distinctive: line 47
Read the current config. Identify exactly what needs to change:
- Distinctive: line 55
If multiple changes, do them one at a time.
- Distinctive: line 77
Before restarting the agent:
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Customize OpenCode
Configure OpenCode itself — not your application.
Editing OpenCode's own config (opencode.json, .opencode/, ~/.config/opencode/) requires care — a mistake can break the agent's ability to function.
When to Use
- Creating or editing
opencode.json/opencode.jsonc - Adding, modifying, or removing MCP servers
- Changing agent permission rules
- Installing or disabling plugins
- Editing skill paths or agent definitions
When NOT to Use
- Your application code (use the appropriate platform skill)
- Any project that is not configuring OpenCode itself
Output Contract
| Artifact | Format | Location | Quality Criteria |
| Validated config | JSON | opencode.json | JSON valid, permission rules safe, MCP URLs reachable |
Always create a backup before editing: cp opencode.json opencode.json.bak
Core Process
Phase 1 — Assess
Read the current config. Identify exactly what needs to change:
Current: model: claude-sonnet-4 → Want: model: claude-sonnet-4-20250514
Change: one field in model
Risk: low — model string onlyIf multiple changes, do them one at a time. Verify after each.
Phase 2 — Edit
Make surgical edits. One change per operation:
| What | How | Risk |
| Model/provider | Edit model or provider.<name>.options | Low |
| MCP server | Add/remove mcp.<name> block | Medium — verify URL/command |
| Permission rule | Edit permission.<tool> | High — can lock out tools |
| Plugin | Add/remove from plugin array | Low — npm installs silently |
| Agent definition | Edit agent.<name> | Low — only affects that agent |
Danger zones (verify twice before committing):
- API keys in
provider.optionsormcp.<name>.headers— use{env:VAR}substitution instead of plaintext - Permission rules with
"deny"— ensure essential tools (read, bash, write) remain accessible - MCP server commands/URLs — a typo means the tool silently fails
"*": "deny"in permissions — locks everything. Always pair with explicit allows.
Phase 3 — Validate
Before restarting the agent:
☐ JSON is valid: python3 -c "import json; json.load(open('opencode.json'))"
☐ Permission rules don't deny essential tools (read, bash, write)
☐ MCP URLs are reachable (curl -I <url>)
☐ Backup exists: opencode.json.bak
☐ No plaintext API keys (all using {env:VAR} or {file:PATH})Anti-Patterns
- Plaintext secrets — API keys in config instead of
{env:VAR}. Exposed in logs and version control. - Blind deny-all —
"*": "deny"without explicit allows. Agent can't read files or run commands. - Silent MCP removal — Removing an MCP server that other config sections depend on.
- Malformed JSON — Missing comma or trailing comma in
opencode.json. Use--checkflag. - Wrong scope — Editing project
opencode.jsonwhen intending to change global~/.config/opencode/opencode.json.
Verification
- Backup created before edit
- JSON valid after edit
- Permission rules allow essential tools (read, bash, write)
- No plaintext API keys in committed config
- MCP URLs/commands verified reachable
- Only one config file changed (project or global, not both)
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- NazmusSayad/skills★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/CLAUDE.mdCLAUDE.md
- adapt-skillSkill
- api-and-interface-designSkill
- architecture-analysisSkill
- audit-skillSkill
- backend-api-masterySkill
- browser-testing-with-devtoolsSkill
- ci-cd-and-automationSkill
- clarify-skillSkill
- cli-toolsSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-engineeringSkill
- critique-skillSkill
- debugging-and-error-recoverySkill
- debugging-three-strikesSkill
- delight-skillSkill
- deprecation-and-migrationSkill
- dev-environment-auditSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- engineering-fundamentalsSkill
- frontend-desktopSkill
- frontend-mobileSkill
- frontend-pwaSkill
- frontend-ui-engineeringSkill
- frontend-webSkill
- fullstack-shippingSkill
- gateSkill
- git-init-and-versioningSkill
- git-workflow-and-versioningSkill
- hard-skillSkill
- idea-refineSkill
- incremental-implementationSkill
- industrial-brutalist-uiSkill
- interview-meSkill
- minimalist-uiSkill
- multi-agent-orchestrationSkill
- observability-and-instrumentationSkill
- optimize-skillSkill
- output-skillSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- polish-skillSkill
- project-health-checkSkill
- project-metricsSkill
- redesign-skillSkill
- security-and-hardeningSkill
- self-improvementSkill
- shipping-and-launchSkill
- skill-creatorSkill
- skill-improverSkill
- soft-premium-uiSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- typeset-skillSkill
- user-onboardingSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

