mirror of
https://github.com/tiennm99/miti99.git
synced 2026-08-04 06:24:32 +00:00
2.9 KiB
2.9 KiB
Multi-tool usage (Claude Code · OpenCode · Codex)
This repo is usable from three AI coding tools off one shared engine. The newsletter scripts live in scripts/newsletter/ and every tool calls them as node scripts/newsletter/*.js from the repo root. Project instructions live once in AGENTS.md.
Per-tool setup & invocation
| Tool | Instruction file | How the workflow surfaces | Setup | Invocation example |
|---|---|---|---|---|
| Claude Code | CLAUDE.md → imports AGENTS.md |
Native skill auto-dispatch from .claude/skills/ |
None (works as-is) | Paste a URL; mt-add-url auto-runs |
| OpenCode | AGENTS.md (auto-read) |
.claude/skills/ auto-discovered via the skill tool, governed by opencode.json |
None beyond opencode.json (committed) |
Ask to add a URL; pick/skill mt-add-url |
| Codex | AGENTS.md (auto-read) |
Repository skills discovered from .agents/skills/ |
None (works as-is) | Ask to add a URL or invoke $mt-add-url |
Shared engine: all three call node scripts/newsletter/*.js from repo root — no per-tool script copies.
Notes per tool
- Claude Code —
CLAUDE.mdis a thin file that importsAGENTS.md(@AGENTS.md); all instruction content lives inAGENTS.md. Permissions in.claude/settings.json. - OpenCode — reads
.claude/skills/<name>/SKILL.mdnatively (multi-location search up the worktree), so the samemt-*skills work with zero duplication.opencode.jsonmirrors the Claude allow-list intent (node/git/hugo/edit). No MCP block — relies on OpenCode's built-in web fetch/search. Restart OpenCode after editingopencode.json(config is not hot-reloaded). - Codex — reads repository skills from
.agents/skills/and can invoke them explicitly ($mt-add-url) or implicitly from their descriptions. The checked-in Codex skills delegate to the canonical workflow definitions in.claude/skills/, so workflow behavior stays shared without an install or sync step.
Teardown — pick one, remove the rest
Once you commit to one tool, delete the others' config:
- Keep Claude Code only → remove
opencode.jsonand.agents/. Keep.claude/. - Keep OpenCode only → remove
.claude/settings*.jsonand.agents/. Keep.claude/skills/— OpenCode reads it. If you want to drop the.claude/dir entirely, first move skills to.opencode/skills/(scripts are path-neutral inscripts/newsletter/, so the move breaks nothing). Optionally makeAGENTS.mdthe only instruction file (deleteCLAUDE.md). - Keep Codex only → keep
.agents/skills/,AGENTS.md,scripts/newsletter/, and the canonical.claude/skills/files referenced by the Codex skills. You may remove Claude-specific settings andopencode.json.
In every case: keep scripts/newsletter/, .claude/skills/, and AGENTS.md — they are the shared engine, canonical workflows, and instructions.