用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/wojons/skills --skill opencode-config命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when you need comprehensive accessibility auditing including WCAG compliance, legal requirements mapping, and user testing with disabilities
Apply systematic adversarial thinking patterns including devil's advocate, assumption busting, red teaming, and white hat security approaches
A 10-step methodology for building software with AI collaboration - from north star through automated Ralph loop execution with zero human-in-the-loop code writing
基于 SOC 职业分类
正在显示 SKILL.md
| name | opencode-config |
| description | Configure OpenCode settings using JSON or Markdown files for project-specific or global preferences |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developers using OpenCode who need to customize behavior per project or globally","category":"configuration"} |
Understand and manage OpenCode configuration files in JSON or Markdown format, with proper precedence between global and project settings. This skill emphasizes research-driven verification because configuration details change over time.
scripts/validate-config.sh) to check existing configuration files# Create a project-specific opencode.json with custom model
cat > opencode.json << EOF
{
"$schema": "https://opencode.ai/config.json",
"model": "anthropic/claude-haiku-4-5",
"permission": {
"edit": "ask",
"bash": "ask"
}
}
EOF
# Create a global mode using Markdown
mkdir -p ~/.config/opencode/modes/
cat > ~/.config/opencode/modes/review.md << 'EOF'
---
temperature: 0.1
tools:
write: false
edit: false
bash: false
---
You are in code review mode. Focus on code quality, potential bugs, and security considerations without making direct changes.
EOF
When analyzing configuration:
config_source: ~/.config/opencode/opencode.json
config_type: global
format: json
precedence: 2/6
effective_settings:
model: anthropic/claude-sonnet-4-5
autoupdate: true
When creating configuration:
{
"status": "created",
"file": ".opencode/modes/debug.md",
"format": "markdown",
"precedence": "project"
}
searxng_searxng_web_search, searxng_web_url_read) before providing specific implementation guidance..well-known/opencode)~/.config/opencode/opencode.json)OPENCODE_CONFIG env var)opencode.json in project).opencode directories (agents, commands, plugins)OPENCODE_CONFIG_CONTENT env var)opencode.json; Markdown with YAML frontmatter is supported for modes, agents, commands, etc.$schema field provides validation and autocomplete in editors.{env:VAR} and {file:path} for variable substitution in config files.agent option (deprecated mode option).