背景
デバイス上の Claude Code と OpenCode をファイル比較。全パスはローカルで検証済み。
Gap A: ルール(7ファイル → OpenCode 未配置)
検証: ls ~/.claude/rules/ → 7ファイル (coding-style/delegation/git-workflow/quality/testing/hook-deployment)
OpenCode: instruction.ts:145 で ~/.opencode/rules/ 読み込み実装済み (PR feat: グローバル + プロジェクト階層ルールファイル読み込み #72 ) だがファイル未配置
対策: ~/.opencode/rules/ にルール配置
Gap B: コマンド(17本 → 0本)
検証: ls ~/.claude/commands/ → 17ファイル、ls ~/.config/opencode/commands/ → 存在しない
対策: 高優先6本移植
Gap C: エージェント(26ロール → 3ロール)
検証: ls ~/.claude/agents/ → 26ファイル、guardrails/profile/agents/ → 3ファイル (implement/review/provider-eval)
対策: security-reviewer, tdd-guide 等を移植
Gap D: opencode.jsonc 設定
検証: ~/.config/opencode/opencode.jsonc 存在するが model/small_model/autoupdate 未設定
対策: 設定追加
Gap E: プラグイン
検証: ~/.opencode/hooks/ → テスト用2本のみ。guardrails プラグイン未実装
対策: guardrails.ts を ~/.config/opencode/plugins/ に作成
Gap F: スキル(対応不要)
検証: ls ~/.claude/skills/ → 51ファイル。flag.ts:37-38 で OPENCODE_DISABLE_CLAUDE_CODE_SKILLS 制御
環境変数未設定 → 互換レイヤー有効
優先度
高: ルール配置 (30min)
高: guardrails.ts プラグイン (2h)
中: コマンド移植 (1h)
中: 設定最適化 (30min)
低: エージェント移植 (2h)
背景
デバイス上の Claude Code と OpenCode をファイル比較。全パスはローカルで検証済み。
Gap A: ルール(7ファイル → OpenCode 未配置)
Gap B: コマンド(17本 → 0本)
Gap C: エージェント(26ロール → 3ロール)
Gap D: opencode.jsonc 設定
Gap E: プラグイン
Gap F: スキル(対応不要)
優先度