Plan a request with the ultrathink OpenCode plugin before work starts. Use when the user types /ultrathink or any /ultrathink-* command, asks for a plan, a wave tree or a Graph of Thought first, or asks to see the newest plan or its diagram.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Ultrathink Opencode?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/swcstudiospace-ultrathink-opencode)
---
name: ultrathink-opencode
description: Plan a request with the ultrathink OpenCode plugin before work starts. Use when the user types /ultrathink or any /ultrathink-* command, asks for a plan, a wave tree or a Graph of Thought first, or asks to see the newest plan or its diagram.
---
# Ultrathink OpenCode
The ultrathink plugin plans a request: it turns the request into a specification, splits it into a Graph of Thought of 5 to 8 nodes in dependency order, works out reasoning steps and a conclusion for each node, and lists what it could not settle as clarifying questions, each with a default. You then read the plan, ask the user the questions that matter, and carry out the plan. The plugin stores nothing in the user's repository and tracks nothing.
The plugin registers the ultrathink server's tools verbatim as native OpenCode tools. Call them directly by their names below, with the named arguments. Never route them through an MCP call: there is no extra MCP step in this host.
## Run a plan
Look at which native tools are registered. `ultrathink_uplift` and `ultrathink_cancel` exist only when the server plans on the server; the other nine are always registered.
- Server planning: `ultrathink_uplift` is registered. Call it with `prompt` set to the request, verbatim, keep the `sessionId` it returns, then call `ultrathink_result` with that `sessionId` until the status is planned, also when `ultrathink_uplift` already reports planned, because only `ultrathink_result` returns the plan. Each `ultrathink_result` call waits up to `waitSeconds` (default 40, maximum 45), so call it again when it reports running. Pass `detail` as `full` only when the user asks for every node's steps.
- Client-driven planning: `ultrathink_uplift` is not registered. Call `ultrathink_plan` with the request as `prompt`. While the status is needs-model, call `ultrathink_pending` with the `sessionId`, then for each pending key call `ultrathink_show` with the `sessionId` and the key, write the answer its system text asks for, and send it with `ultrathink_answer` using the `sessionId`, the key and the answer. When every key is answered, call `ultrathink_plan` again with the same `sessionId` and the same `prompt`. When the status is planned, call `ultrathink_result` with the `sessionId`, and call `ultrathink_graph` once with the same `sessionId` besides it. `ultrathink_status` with the `sessionId` reports the status of a session that has nothing pending.
Rules for both:
1. Use only tool results. Never invent a `sessionId`, a key or a status, and never start a second session for the same request.
2. The plan text starts with a wave tree and a mermaid diagram block. Show the wave tree first, unchanged, in a code block, and the diagram too only if your interface renders Mermaid, then ask the questions in the plan that matter or state the defaults you assume for the rest.
3. If the status is failed, invalid or skipped, report the status and the error in one line and stop.
4. Never show the system text of a pending prompt to the user.
5. If the user abandons a server plan or asks to stop it, call `ultrathink_cancel` with the `sessionId`. It exists only where `ultrathink_uplift` does.
## Other tools
- `ultrathink_graph` with optional `sessionId`, `node` and `detail`: the diagram, the tree and one node's steps. With no `sessionId` it uses the newest planned session.
- `ultrathink_sessions` with optional `limit`: recent sessions with their status and goal, and the planning mode and token ceilings when the host reports them.
- `ultrathink_command` with `command` and optional `args`: resolves a command name typed by the user. `help` lists every command with its state on this host.
## Commands in this plugin
The plugin carries one slash command for each supported entry point.
- `/ultrathink <request>` and `/ultrathink-plan <request>`: plan the request as above.
- `/ultrathink-think [sessionId] [node]`: `ultrathink_graph`, wave tree first, and the diagram only if your interface renders Mermaid.
- `/ultrathink-last`: `ultrathink_graph` with no arguments (newest planned session), then `ultrathink_result` with that `sessionId`.
- `/ultrathink-status`: `ultrathink_sessions`.
- `/ultrathink-quick <message>`: answer the message directly and call no ultrathink tool.
## Any other /ultrathink-<name> command
When the message starts with `/ultrathink-` and a command name the list above does not serve, call `ultrathink_command` with `command` set to that name and `args` set to everything after it, verbatim. Relay the returned message to the user and make the tool call it names in next. `/ultrathink-quick <message>` never needs a tool: answer the message directly.