원클릭으로
opencode-config
Rules and guidelines for configuring the OpenCode CLI, including Agents, Commands, Skills, and Permissions.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Rules and guidelines for configuring the OpenCode CLI, including Agents, Commands, Skills, and Permissions.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use agent-browser for browser automation against real rendered web pages or web apps. Trigger when tasks require navigation, element interaction, extracting rendered data, or taking screenshots. Do not use for static fetches, direct API calls, or non-browser work.
Use when the user wants to scrape websites, crawl or map URLs, search the web, extract structured data from web pages, or run AI web agents using the Firecrawl API from the command line.
Create, revise, and validate effective skills. Use when adding a new skill or changing an existing skill's SKILL.md, bundled scripts, references, assets, scaffold templates, or validation tooling.
Must use any time a TypeScript file is read or written.
Must use whenever Bun is used.
OpenCode session storage locations and inspection guidance. Use when asked where OpenCode stores session data, chat history, local databases, or repo-specific session metadata.
| name | opencode-config |
| description | Rules and guidelines for configuring the OpenCode CLI, including Agents, Commands, Skills, and Permissions. |
OpenCode is an interactive AI CLI agent. This skill provides the necessary context for understanding its configuration structure so that you can create, modify, or extend its capabilities.
OpenCode configurations can be placed either globally or per-project:
~/.config/opencode/.opencode/Inside these directories, OpenCode expects the following structure:
opencode.json (or .jsonc): The main configuration file.agents/*.md: Markdown files defining custom agents (Primary or Subagents).commands/*.md: Markdown files defining custom slash commands (e.g., /test).skills/<name>/SKILL.md: Markdown files defining dynamic skills loaded via the skill tool.Skills are reusable behavior definitions.
skills/<skill-name>/SKILL.md.SKILL.md must start with YAML frontmatter containing name and description.name must be 1-64 characters, lowercase alphanumeric with single hyphens (^[a-z0-9]+(-[a-z0-9]+)*$).skill({ name: "..." }) tool.Example skills/git-release/SKILL.md:
---
name: git-release
description: Create consistent releases and changelogs
---
## What I do
- Draft release notes...
Agents are specialized AI assistants. There are Primary agents (main conversation) and Subagents (invoked automatically or via @name).
agents/*.md..md) becomes the agent's name.Example agents/security-auditor.md:
---
description: Performs security audits and identifies vulnerabilities
mode: subagent
model: anthropic/claude-3-5-sonnet-20241022
temperature: 0.1
permission:
edit: deny
bash:
"*": ask
---
You are a security expert. Focus on identifying potential security issues.
description (required): What the agent does.mode: primary, subagent, or all.model: Override the default model (e.g., anthropic/claude-3-5-sonnet-20241022).temperature: 0.0 to 1.0.steps: Max agentic iterations before forcing text-only response (replaces deprecated maxSteps).permission: Fine-grained tool access (ask, allow, deny) for edit, bash, webfetch, etc.Commands let you create custom /slash commands in the TUI.
commands/*.md.commands/test.md becomes /test).Example commands/analyze-coverage.md:
---
description: Analyze test coverage
agent: plan
---
Here are the current test results:
!`npm test`
Review the component in @src/components/Button.tsx.
Focus on the failing tests for $ARGUMENTS and suggest fixes.
$ARGUMENTS or $1, $2: Inject user-provided arguments.!command: Inject shell output into the prompt.@filepath: Inject file contents into the prompt.agent: Specify which agent should execute this command.subtask: Set to true to force execution as a subagent, keeping the main context clean.Permissions control what tools an agent can execute. They can be set globally in opencode.json or overridden per agent.
Values: ask, allow, deny.
Example opencode.json:
{
"permission": {
"edit": "deny",
"bash": {
"*": "ask",
"git status": "allow",
"grep *": "allow"
},
"skill": {
"internal-*": "deny"
}
}
}
Important: Rules evaluate in order. The last matching rule wins. Always place wildcards (*) first.
permission over tools: The tools: { write: false } format is deprecated. Use permission: { edit: deny } instead.subagents with limited permissions.skills/ so agents can retrieve it only when needed.