skills/agent-config/SKILL.md
How to configure Claude Code / OpenCode / Codex settings
npx skillsauth add arthur0824hao/skills agent-configInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
記錄如何調整 Claude Code / OpenCode / Codex 的設定。統一參考。
| 設定 | 路徑 | 格式 |
|---|---|---|
| 專案設定 | .claude/settings.json | JSON |
| 使用者設定 | ~/.claude/settings.json | JSON |
| Hooks | .claude/settings.json → hooks | pre/post tool hooks |
| MCP servers | .claude/settings.json → mcpServers | server definitions |
| 專案指令 | CLAUDE.md (root) | Markdown |
| Memory | .claude/projects/<hash>/memory/ | Markdown + frontmatter |
關鍵設定:
{
"permissions": {"allow": ["Bash","Read","Write","Edit"], "deny": []},
"hooks": {"PreToolUse": [{"command": "...", "event": "..."}]},
"env": {"VARIABLE": "value"}
}
| 設定 | 路徑 | 格式 |
|---|---|---|
| 專案設定 | .opencode/opencode.json | JSON (schema: https://opencode.ai/config.json) |
| 全域設定 | ~/.config/opencode/opencode.jsonc | JSONC |
| Agents | .opencode/agents/<name>.md | Markdown + frontmatter |
| 權限 | opencode.json → permission | {"*":"allow","question":"deny"} |
關鍵設定:
{
"model": "github-copilot/claude-sonnet-4.5",
"instructions": ["CLAUDE.md", "AGENTS.md"],
"compaction": {"auto": true, "tail_turns": 15},
"permission": {"*": "allow", "question": "deny"},
"agent": {
"plan": {"disable": true},
"build": {"disable": true}
}
}
Agent 設定 (AgentConfig):
model: 模型 IDdisable: boolean — 停用內建 agentprompt: 自訂 system promptpermission: 工具權限覆蓋mode: agent modehidden: 隱藏不顯示禁止: 對 OpenCode 送 Tab (IR-level)
| 設定 | 路徑 | 格式 |
|---|---|---|
| 專案指令 | AGENTS.md | Markdown |
| 設定 | Codex 無 local config file — 全靠 AGENTS.md + env |
| 環境 | Codex sandbox 自動讀 repo root 的 AGENTS.md |
注意: Codex 是 cloud-based,設定有限。主要透過 AGENTS.md 指令控制行為。
.bh/sentinel-log/ (IR-no-syslog).bh/config/agent-slots.yaml 記錄每 agent 的 model/runtime/provider| 目標 | 操作 |
|---|---|
| Disable OpenCode agent | opencode.json → agent.<name>.disable: true |
| 改 OpenCode model | opencode.json → model: "<provider>/<model>" |
| 加 Claude Code hook | .claude/settings.json → hooks.PreToolUse[] |
| 加 OpenCode agent | .opencode/agents/<name>.md (frontmatter + instructions) |
| 改 Codex behavior | 編輯 AGENTS.md |
| 查 OpenCode schema | curl -s https://opencode.ai/config.json |
data-ai
Persistent shared memory for AI agents backed by PostgreSQL (fts + pg_trgm, optional pgvector). Includes compaction logging and maintenance scripts.
tools
ICD Operator
tools
Canonical skill graph navigation skill for the Skill System.
tools
GitHub operations skill for gh CLI issue, label, template, and workflow management. Use when requests include: create issue, list issues, apply label, manage templates, check workflow, or gh operations.