agent-config
Create, update, or audit AGENTS.md (default) or CLAUDE.md agent instructions: set up, prune, add a rule, or merge CLAUDE.md or…
Run coding tasks via opencode using free cloud models. Use when asked to offload work to opencode.ai or run a free model. Don't use for local models (Ollama, LM Studio), Claude/OpenAI calls, or when Claude should do the work itself.
$ npx -y skills add luongnv89/skills --skill opencode-runner --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/opencode-runnerContext preview
The summary Claude sees to decide when to auto-load this skill.
Run coding tasks via opencode using free cloud models. Use when asked to offload work to opencode.ai or run a free model. Don't use for local models (Ollama, LM Studio), Claude/OpenAI calls, or when Claude should do the work itself.
name: opencode-runner description: "Run coding tasks via opencode using free cloud models. Use when asked to offload work to opencode.ai or run a free model. Don't use for local models (Ollama, LM Studio), Claude/OpenAI calls, or when Claude should do the work itself." license: MIT effort: medium metadata: version: 1.6.0 author: "Luong NGUYEN <luongnv89@gmail.com>"
Delegate coding tasks to opencode using free models — zero cost, fully automated.
OpenCode (opencode.ai) is a terminal AI coding assistant that supports multiple providers and models. This skill automates the process of selecting the best available free model, launching the task, and reporting progress back to you.
1. **Never do the task yourself.** This skill exists solely to delegate work to opencode. If opencode is not installed, fails to run, or no free cloud model is available — report the problem to the user and **stop**. Do not fall back to editing files directly, writing code yourself, or using any other tool to accomplish the user's coding task. The whole point is that opencode does the work.
2. **Only select cloud models.** Never select local models (e.g., `ollama/*`, `lmstudio/*`, or any model running on localhost). Only select models from the `opencode/*` provider namespace, which are cloud-hosted on OpenCode Zen. Local models have unpredictable availability, performance, and may not support the tool-use capabilities opencode needs.
3. **Always clean up after yourself.** opencode spawns background processes (LSP servers, MCP servers, node workers) that persist after the task finishes. Every execution path — success, failure, error, timeout — must end with the cleanup steps in Phase 6. Orphaned opencode processes silently eat CPU and memory, and users won't notice until their machine slows to a crawl.
Before creating/updating/deleting files in an existing repository, sync the current branch with remote:
branch="$(git rev-parse --abbrev-ref HEAD)" git fetch origin git pull --rebase origin "$branch"
If the working tree is not clean, stash first, sync, then restore:
git stash push -u -m "pre-sync" branch="$(git rev-parse --abbrev-ref HEAD)" git fetch origin && git pull --rebase origin "$branch" git stash pop
If `origin` is missing or conflicts occur, stop and ask the user before continuing.
Check that opencode is installed and at the latest version.
which opencode && opencode --version
If `opencode` is not found, tell the user:
> opencode is not installed. Install it with one of these commands: > > ```bash > curl -fsSL https://opencode.ai/install | bash > ``` > or > ```bash > npm i -g opencode-ai@latest > ``` > or (macOS) > ```bash > brew install opencode > ```
Then **stop completely** with `BLOCKED — opencode is not installed` (*Final Report*) — do not proceed to any other phase, do not attempt the task yourself, do not edit any files. Wait for the user to install opencode and re-invoke this skill.
1. Run `opencode upgrade`. It upgrades to the latest version, or confirms the installed one is current. 2. If `opencode upgrade` exits non-zero, tell the user its error and suggest running `opencode upgrade` manually. Then continue to item 3. 3. Run `opencode --version` again. 4. If `opencode --version` exits non-zero, stop with `BLOCKED — opencode does not start after the upgrade`. Do not continue to Phase 2.
Query the available models, present the free ones to the user, and let them choose. If the user doesn't choose, fall back to the priority order.
opencode models 2>/dev/null
| Priority | Model ID | Notes | |----------|----------|-------| | 1 | `opencode/deepseek-v4-flash-free` | Strong recent free coding model — preferred default | | 2 | `opencode/minimax-m2.5-free` | MiniMax free tier — good general-purpose | | 3 | `opencode/nemotron-3-super-free` | NVIDIA Nemotron free tier | | 4 | `opencode/big-pickle` | Free fallback | | 5 | `opencode/gpt-5-nano` | Small fallback; free only when `opencode models` prices it at $0 |
Model IDs evolve. A model is **free-tier eligible** when its ID is in the `opencode/*` namespace and one of these holds: the ID ends in `-free`, the ID is `opencode/big-pickle`, or the `opencode models` output prices it at $0. Match by suffix, not by exact ID. Without a $0 price in the output, leave `opencode/gpt-5-nano` out.
1. Run `opencode models` and collect all entries. 2. **Filter out all non-`opencode/*` models** — ignore anything from `ollama/*`, `lmstudio/*`, `nvidia/*`, or any other namespace. Only cloud-hosted `opencode/*` models qualify. 3. Among the remaining list, keep only the free-tier eligible models. 4. **Present the free models to the user as numbered options**, in priority order, with priority 1 marked as the default. Use the `<options>` format if possible. Example:
> I found these free cloud models available via opencode. Pick one, or accept the default. > > 1. `opencode/deepseek-v4-flash-free` *(default — priority 1)* > 2. `opencode/minimax-m2.5-free` > 3. `opencode/nemotron-3-super-free` > 4. `opencode/big-pickle`
5. If the user names a model, use that one. If the user says "default", "you pick", "any", or doesn't specify, use priority 1 (the highest-priority available free model). 6. If no free-tier eligible model remains, **stop** with
One command drops a tested, versioned skill into your agent. No more ad-hoc prompts. The same rigorous steps run every time. Skills are independent files.
Create, update, or audit AGENTS.md (default) or CLAUDE.md agent instructions: set up, prune, add a rule, or merge CLAUDE.md or…
Find open AI engineering jobs that fit a candidate, verify location and apply links, and assess each employer's product. Use for…
Generate App Store screenshots and header/search images for iPhone, iPad and Mac from a codebase or landing page, or re-render a…
Audit iOS/macOS apps against App Store Review Guidelines before submission, with evidence-backed verdicts and fixes. Don't use…
Optimize App Store and Google Play listings via a 7-phase, plan-approval-gated ASO workflow (keyword strategy, metadata,…
Generate a commit message, stage all changes, and push to remote after scanning for secrets, large files, and protected-branch…