opencode-delegate/SKILL.md
Delegate coding work to OpenCode through safe-opencode. Use when Codex should plan, route the job to a suitable DeepSeek model, review git diff, and validate instead of writing the main code itself.
npx skillsauth add sssemil/skills opencode-delegateInstall 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.
Use this skill when the user wants Codex to orchestrate coding work while OpenCode performs the implementation inside the safe-claude sandbox.
Codex is the planner, operator, reviewer, and validator.
OpenCode is the implementer.
Run OpenCode only through:
safe-opencode run
Do not use plain opencode for delegated implementation.
Do not write the main implementation yourself.
Use safe-opencode for:
Codex remains responsible for:
Use the smallest useful DeepSeek model.
Use DeepSeek v4 Flash for simple, bounded, low-risk jobs:
Fast command:
safe-opencode run --model deepseek/deepseek-v4-flash --title "codex-delegate: <short-task-name>" "<single focused job>"
Use DeepSeek v4 Pro for heavier work:
Pro command:
safe-opencode run --model deepseek/deepseek-v4-pro --title "codex-delegate: <short-task-name>" "<single focused job>"
If a Fast job returns a weak, broad, or confused patch, do not keep pushing it. Escalate once to Pro with a sharper prompt.
If either model ID is wrong, discover the installed DeepSeek model names:
safe-opencode models deepseek
Then rerun with the exact provider/model value shown.
If safe-opencode is missing, check:
command -v safe-opencode
safe-opencode --help
If it is not installed, report that blocker. Do not silently fall back to plain opencode.
Before delegation, run:
git status --short
Then inspect enough of the repo to know:
Do not delegate blind.
The OpenCode prompt must be narrow and operational.
Include:
Use this prompt shape:
You are implementing one focused change in this repository.
Goal:
<specific goal>
Scope:
- Inspect: <files/directories>
- Edit only files needed for the goal.
- Keep the diff minimal.
- Preserve public APIs unless the task requires changing them.
- Follow existing project style.
Tests:
- Add or update tests if useful.
- Use the existing test framework.
- Do not invent a new test setup.
Do not:
- Rewrite unrelated code.
- Reformat whole files.
- Rename things unnecessarily.
- Change dependency versions unless required.
- Touch secrets, env files, generated files, vendored files, or lockfiles unless required.
- Run destructive commands.
Stop after the patch.
For simple jobs, run the Fast command:
safe-opencode run --model deepseek/deepseek-v4-flash --title "codex-delegate: <short-task-name>" "<prompt>"
For heavier jobs, run the Pro command:
safe-opencode run --model deepseek/deepseek-v4-pro --title "codex-delegate: <short-task-name>" "<prompt>"
Always run:
git diff --stat
git diff
Read the diff yourself.
Reject or repair patches with:
If the diff is too broad, do not fix it manually first. Send a narrower corrective OpenCode job.
Run the smallest useful validation command.
Prefer project-native commands:
npm test
npm run test
npm run typecheck
npm run lint
pnpm test
pnpm typecheck
pytest
go test ./...
cargo test
Only say validation passed when the command actually passed.
If validation fails because of the OpenCode patch, send one narrow follow-up.
Use Fast for obvious, local failures. Use Pro for failures that require reasoning across several files.
Repair prompt:
Fix only this validation failure from the previous patch:
<error output>
Constraints:
- Keep the current approach unless clearly wrong.
- Make the smallest change.
- Do not rewrite unrelated code.
- Do not add dependencies.
- Stop after the fix.
Then rerun:
git diff
<validation command>
Use at most two OpenCode repair passes before doing a tiny Codex cleanup or reporting the blocker.
Codex may edit directly only for:
Do not take over the main implementation unless safe-opencode fails.
End with:
safe-opencode, not opencode.git diff.safe-opencode failures.tools
Autonomous Linear task worker that selects Linear issues, implements them with TDD, self-reviews, commits, pushes, and moves finished work to In Review.
tools
Systematically reviews a project subsystem-by-subsystem with resumable .brutal-workspace state and creates Linear review finding issues for CRITICAL and MAJOR problems.
development
Collaborative, multi-perspective feature planning with rigorous requirements interrogation. Creates Linear project documents and Linear issues instead of local workspace plan/task files.
documentation
Compact the current conversation into a handoff document for another agent to pick up.