/claude-resources:x [-co|--codex] [-a|--auto] [-m|--merge] [-pr|--prototype] [-f|-fix|--auto-fix] [-nf|--no-fix] [-lo|--local] [-toco|--to-codex] [-tocl|--to-claude] [-v|--verify-ui] [-s|--stay] [-nor|--no-review] [-ri|--raise-issues] [-nori|--no-raise-issues] [options] <instructions>from claude-resources
Routes development requests to /x-as-pr (single-topic) or /x-wt-teams (multi-topic parallel) workflows. Use '/x <instructions>' or trigger with 'dev', 'implement', 'build'.
Ships in claude-resources. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Route development requests to the right workflow skill: /x-as-pr (single-topic) or /x-wt-teams (multi-topic parallel).
On Claude Code on the web (
$CLAUDE_CODE_REMOTE=true): followweb/web-mode.md— GitHub via the GitHub MCP (notgh), Claude-only (ignore Codex-co), subagents-only (no agent teams; route multi-topic work to subagent fan-out, not the teams path), no Dropbox.
The downstream skill MUST target the current (invocation) branch, NOT the repository's default branch.
Before routing, record the current branch:
INVOCATION_BRANCH=$(git branch --show-current)
When you hand off to /x-as-pr or /x-wt-teams, the resulting PR's base (target) MUST be $INVOCATION_BRANCH — not main, not master, not the repo default — unless the user explicitly typed a different base.
Concrete example (this is the bug we are preventing):
Current branch: topic/foo-bar
User runs: /x do blah blah...
CORRECT: new branch topic/moo-mew → PR targets topic/foo-bar
WRONG: new branch topic/moo-mew → PR targets main ← DO NOT DO THIS
If you find yourself about to run gh pr create without --base, STOP — gh defaults to the repo default branch. Always pass --base "$INVOCATION_BRANCH" explicitly unless the user specified a different base.
This rule propagates to the downstream skill. The downstream skill restates it, but the facade also carries it so the rule is visible from the first moment.
This skill is an orchestration entry point for long-running autonomous work. When invoked, behave as if Auto Mode is active — regardless of session mode:
These rules apply to the facade itself and propagate to the chosen downstream skill (/x-as-pr or /x-wt-teams), which carry the same auto-pilot defaults.
Parse $ARGUMENTS for:
-co, --codex, --make-issue, --issue, -s, --stay, -lo, --local, -v, --verify-ui, -nor, --no-review, -ri, --raise-issues, -nori, --no-raise-issues, --no-issue, -a, --auto, -m, --merge, -pr, --prototype, -f, -fix, --auto-fix, -nf, --no-fix, -toco, --to-codex, -tocl, --to-claude, etc.)If NO flags are passed (just instructions or an issue), apply this default:
-v (verify-ui)If any flags ARE passed explicitly, use those as-is — do NOT add the -v default either.
Two tiers plus a skip, forwarded to the chosen skill. They change which reviewer runs — not child or subagent models.
| Passed | Reviewer at the downstream review step |
|---|---|
| nothing | /code-review --fix — the default, the built-in reviewer in its own context |
-co / --codex | /deep-review — /code-review plus /codex-review for cross-model coverage |
-nor / --no-review | none |
There is no effort level. Neither this skill nor the downstream ones take one — the reviewer is invoked bare and uses its own default (/code-review reuses the level the user last typed). Depth comes from -co. Never pass ultra — only the user can launch that, by typing /code-review ultra themselves.
There is no reviewer-model flag. /code-review runs on the session model — Claude Code ignores skill-level model overrides — so the model is set by /model or CLAUDE_CODE_SUBAGENT_MODEL.
Apply model policy: explicit scoped user choices override defaults; the manager judges from evidence. Worker annotations are recommendations, missing ones default to Sonnet, and ordinary bounded fix agents use Sonnet. Reviewer settings remain separate.
-a / --auto)When -a or --auto is passed, forward it to the chosen skill. -a means "run the whole chain autonomously": /big-plan -a auto-creates the issues (skipping the confirmation wait) and chains straight into the implementation skill, and /x-wt-teams -a auto-continues multi-wave plans wave after wave instead of stopping at each hand-off. -a does NOT merge the final PR — merging is -m's job. The two are orthogonal and compose: full hands-off end-to-end is -a -m.
-m / --merge)When -m or --merge is passed, forward it to the chosen skill. When the final implementation is done, the downstream skill merges the PR into its base branch, runs the cleanup phase, and watches CI on the base branch (fixing it if it goes red) — via /prc + /watch-ci. On the escalation path, /big-plan forwards -m into whichever implementation skill it chains into. Intended for safe-to-merge work; without -m, the workflow ends with a ready-but-unmerged PR.
On web (web-mode.md §8): the downstream merge runs in-turn — the agent polls CI via the GitHub MCP and merges in the same run once green, because web has no background-task wakeup to resume a backgrounded /watch-ci. So on web, -a -m must finish at a merged PR in one autonomous run; the agent must not stop at "PR ready, CI running, I'll check back" (the recurring "agent is waiting for my order to merge" failure). Off web this is inert — the terminal's background-poll path already auto-resumes.
-pr / --prototype)For UI work that should be prototyped before it is planned — a UI polish session, or rough-idea brainstorming for a new feature's UI. /big-plan -pr builds throwaway rough UIs, shows them, takes the user's feedback, iterates, and only then decomposes, with the settled direction as the spec.
-pr forces the /big-plan escalation. A fast path has no planning step to put a prototype in front of, so /x -pr … never routes to /x-as-pr or /x-wt-teams directly — it escalates regardless of how small the work looks (Axis 1 is decided by the flag, not by the size heuristic). Forward it verbatim: /x -pr "rework the settings page" → /big-plan -a -pr "rework the settings page".
It does NOT override epic detection. An [Epic] / [Super-Epic] issue is already planned, so prototyping in front of it is meaningless — the epic-issue rule below still routes to /x-wt-teams. Say -pr was ignored for that reason rather than dropping it silently.
Don't confuse -pr with /x-as-pr. The similarity is accidental: -pr is the prototype flag, /x-as-pr is the single-topic implementation skill. /x -pr … means "prototype first", never "route to /x-as-pr".
/x only parses and forwards — the loop, its non-suppressible feedback checkpoint (-a and -nor do not remove it), and its flag composition all live in /big-plan (see its Prototype Mode section and big-plan/references/prototype-mode.md).
-toco / --to-codex, -tocl / --to-claude)Plan here, implement somewhere else. Two destinations for the same move:
| Flag | Destination | Reach for it when |
|---|---|---|
-toco / --to-codex | A Codex CLI session | The implementation should run on a different tool |
-tocl / --to-claude | A brand-new Claude Code session | The implementation should start on a clean context window — the agent-side stand-in for /clear, which cannot be invoked from inside a session |
They are mutually exclusive. If both were typed, say which two collided and stop — do not guess, and do not let two windows open.
/x only parses and forwards — the behavior lives in whichever skill it routes to (/big-plan's Step 11, which delegates to /tocodex or /toclaude, or /x-as-pr / /x-wt-teams's own Handoff Modes section). In every case a new tmux window opens at the repo root running that CLI with the matching invocation, the window is focused, and the session ends — forwarding -a / -m / -nf / -nori / -lo into that command. The two fast paths submit only under -a; the /big-plan route submits by default, since /tocodex and /toclaude treat the hand-off itself as the ask.
Either flag works on every route, so forward it verbatim and never drop it — dropping it silently implements locally, the exact opposite of what was asked. The routing decision is unchanged; only who implements changes:
| Route | Result |
|---|---|
| Escalation | /big-plan -a -toco / -tocl — plans here, hands the epic over at Step 11 (via /tocodex / /toclaude) |
| Fast path, single | /x-as-pr -toco … / -tocl … — hands off immediately, implements nothing here |
| Fast path, multi | /x-wt-teams -toco … / -tocl … — same |
The two fast paths fire the hand-off at the start (there is no artifact to build first); /big-plan fires it at the end, once the issues the new session is pointed at exist. Terminal-only: web has no tmux and no second CLI to launch, so both flags are inert there and the skill implements normally.
-nor / --no-review)When -nor or --no-review is passed, forward it to the chosen skill. The downstream skill skips the post-implementation review step entirely (no /code-review, no /deep-review, no fix-delegation Agent) and goes straight from implementation to push / CI watch / PR revision. Use when the task is throwaway or you've already reviewed the changes yourself.
-ri / --raise-issues, default — and -nori / --no-raise-issues to suppress)By default the downstream skill raises GitHub issues (labeled agent-found) for problems, bugs, or improvement possibilities found in code unrelated to the current task. -ri / --raise-issues is the explicit form of the default. Pass -nori / --no-raise-issues to suppress.
Forward whichever flag was on the invocation to the chosen skill. If neither was passed, no forwarding is needed — the downstream default already raises issues.
-f / -fix / --auto-fix, default — and -nf / --no-fix to skip)Auto-fix is the downstream default: after the main work, /x-as-pr and /x-wt-teams triage the agent-found issues raised this session and auto-fix the safe subset before final cleanup. -f / -fix / --auto-fix is the explicit form of the default; pass -nf / --no-fix to skip the step and leave raised issues open for human triage. It requires -ri (the default) and is a no-op under -nori.
/x only parses and forwards: forward whichever flag was on the invocation to the chosen skill (and into the /big-plan -a escalation — see Strategy Selection). If neither was passed, no forwarding is needed — the downstream default already auto-fixes. See the chosen skill's "Auto-Fixing Raised Findings" step for behavior.
-lo / --local)When -lo or --local is passed, forward it to the chosen skill (fast paths and the /big-plan -a escalation). The downstream skill keeps the run's bookkeeping — the plan, tracking issue, spec, and step-by-step progress — in a cclogs coordination directory instead of GitHub issues, so a public / team repo doesn't accumulate workflow-spam issues. agent-found problem issues are still raised (they're legitimate bug reports, not spam) unless -nori is also passed. /x only parses and forwards — all behavior lives downstream (see $HOME/.claude/skills/x-wt-teams/references/local-mode.md).
Routing has two axes. Decide both before invoking anything.
Axis 1 — plan-first vs implement-now. -pr / --prototype decides this axis on its own: it always escalates (see Prototype Mode above). Otherwise: does the request need research, decomposition, or have unclear scope? If yes, escalate to /big-plan -a (it plans, then routes downstream to /x-as-pr or /x-wt-teams itself — so the single/multi decision stays in one place). If the work is ready to build, skip planning and go straight to a fast path.
Axis 2 — single vs multi (fast paths only). When the work is ready to build, decide between /x-as-pr (single cohesive topic) and /x-wt-teams (multiple independent topics). /big-plan makes this same decision downstream when you escalate, so you only apply Axis 2 on the fast paths.
/big-plan -a (plan-first escalation) whenEscalate to planning when the request is research/decomposition-heavy or its scope is unclear:
/x-as-pr vs /x-wt-teams because the topic boundaries aren't yet clear — planning will surface them./x appends -a on the escalation, even when the user didn't type it. The user asked /x for action, so the plan must chain into the implementation skill in the same session — not end at a planning-only hand-off. /big-plan -a auto-creates the issues, delegates ordinary design/architecture/scoping choices to the planner, and then auto-invokes the implementation skill; only its narrow hard-autonomy stops (a concrete unmitigated operational hazard or genuinely non-executable plan) may interrupt that chain. /big-plan keeps the single-vs-multi routing downstream (single-sub-issue plan → /x-as-pr; multi → /x-wt-teams), so there is no duplicated single/multi logic here.
Forward -m, -nf, -nori, and -lo cleanly into the escalation:
/x "big thing" → /big-plan -a (plan + auto-implement; PR left ready-but-unmerged; auto-fix and issue-raising run by default downstream)./x -a -m "big thing" → /big-plan -a -m (plan + auto-implement + auto-merge + cleanup — full hands-off)./x -nf "big thing" → /big-plan -a -nf (the no-fix opt-out rides through /big-plan's hand-off into the implementation skill, exactly like -m; -nori rides the same way)./x -pr "rework the settings page" → /big-plan -a -pr "…" (prototype the UI, take feedback, then plan — see Prototype Mode above; -pr escalates on its own, whatever the size heuristic says)./x -lo "big thing" → /big-plan -a -lo (local mode rides all the way down: /big-plan writes the plan to cclogs instead of an epic/sub issues and hands the plan path — not an issue URL — to the implementation skill)./x -a -m -toco "big thing" → /big-plan -a -m -toco (plan here, implement on Codex: /big-plan ends by handing $x-wt-teams -a -m {epic#} to /tocodex, which runs it in a new tmux window. Nothing is implemented in this session — see Handoff Modes below)./x -a -m -tocl "big thing" → /big-plan -a -m -tocl (same, but the epic goes to /toclaude, which starts a fresh Claude Code session on /x-wt-teams -a -m {epic#} — for when the implementation should not inherit the planner's context).-a is appended by /x on every escalation (this replaces the retired -impl flag); user-typed -m / -nf / -nori / -lo / -pr / -toco / -tocl ride along. Do NOT forward -co to /big-plan — it has no reviewer flags: its Step 5 plan review is unconditional (/codex-2nd, with a silent Opus fallback) and -nor is the only opt-out. -co keeps its meaning on the fast paths, where it upgrades the code review to /deep-review. Note that on the escalation path, implementation-only flags (-v, reviewer flags) do NOT reach the implementation skill — /big-plan forwards only -a, -m, -nf, -nori, and -lo downstream (per its own rules). Only the fast paths forward the full implementation-flag set to /x-as-pr / /x-wt-teams.Guardrail (asymmetric cost — escalation is more expensive than a fast path):
-pr / --prototype passed → escalate, full stop. The flag is the decision; the size heuristics below do not apply to it./x-as-pr or /x-wt-teams). Keep the "I roughly call /x" speed for small work — do NOT escalate small tasks into planning./big-plan -a./big-plan, or build it directly? (plan / build)". Then proceed on the answer. EXCEPTION: if -a / --auto was passed, do NOT ask — just escalate (the user opted into autonomy). This one-line confirm is the only place /x ever pauses; it is NOT plan mode and must not drift into one (Auto-Pilot still prefers action)./x-wt-teams when (fast path, ready-to-build multi-topic)/x-as-pr when (fast path, ready-to-build single-topic)/x-as-pr as the simpler option. (This is distinct from plan-vs-build ambiguity, which Axis 1 resolves by escalating to /big-plan -a.)When the argument is a GitHub issue URL or number, fetch the issue title before routing:
gh issue view <number> --json title -q '.title'
# or for a URL: gh issue view <url> --json title -q '.title'
If the title contains [Epic] or [Super-Epic] → route to /x-wt-teams.
Epic issues are created by /big-plan and contain multiple sub-issues meant for parallel agent teams — /x-as-pr cannot handle them correctly.
Match [Super-Epic] explicitly — it does NOT contain the substring [Epic], so a naive check falls through to /x-as-pr. A [Super-Epic] issue is a /big-plan -is sweep bundle dashboard (label super-epic): /x-wt-teams recognizes it, prints the first open child epic's command, and stops. The same applies to an [Epic] whose body carries **Super-epic:** #N (a super-epic child) — always /x-wt-teams, never /x-as-pr, even when it has a single sub-issue, because its epic-PR must merge into the super base.
| Request | Route | Why |
|---|---|---|
| "add pagination to the user list" | /x-as-pr | Single feature, ready to build |
| "fix the login bug #42" | /x-as-pr | Single fix, ready to build |
| "implement dark mode, add search, update footer" | /x-wt-teams | 3 independent topics, ready to build |
| "refactor the auth system" | /x-as-pr | One cohesive refactor, ready to build |
| "build the settings page with theme picker, notification prefs, and profile editor" | /x-wt-teams | 3 parallel-able sections, ready to build |
| "figure out how to add multi-tenancy and implement it" | /big-plan -a | Research + decomposition needed first |
| "rework the whole billing system to support usage-based pricing" | /big-plan -a | Large, ill-defined, multi-phase |
| "migrate the app to the new framework" | /big-plan -a | Cross-cutting; needs wave sequencing |
/x -a -m "overhaul onboarding end-to-end" | /big-plan -a -m | Big + -a -m → escalate, no confirm, autonomous + auto-merge |
| "improve the dashboard somehow" (vague) | one-line confirm → likely /big-plan -a | Ambiguous scope; ask plan/build first (unless -a) |
/x -pr "the settings page feels dated" | /big-plan -a -pr | -pr decides Axis 1 by itself — prototype the UI, take feedback, then plan |
https://github.com/owner/repo/issues/42 | /x-as-pr | Single issue, ready to build |
https://github.com/owner/repo/issues/42 (title has [Epic]) | /x-wt-teams | Epic issue from /big-plan (already planned) |
Once the strategy is chosen, invoke the appropriate skill.
Plan-first escalation (Axis 1 → big): append -a (and forward -m / -nf / -nori if passed) and invoke /big-plan. -a is appended by /x even when the user didn't type it — /x's contract is action, so the plan chains into implementation in-session.
Skill tool: skill="big-plan", args="-a <-m if passed> <-pr if passed> <-nf if passed> <-nori if passed> <-lo if passed> <-toco or -tocl if passed> <other flags> <instructions-or-issue-refs>"
(If the request was ambiguous and -a was NOT passed, ask the one-line plan/build confirm first — see Strategy Selection — then either escalate as above or take a fast path per the answer.)
Fast paths (Axis 2 → ready to build): invoke the single/multi skill directly.
Skill tool: skill="x-as-pr", args="<flags> <instructions>"
# or
Skill tool: skill="x-wt-teams", args="<flags> <instructions>"
Pass through ALL arguments (flags + instructions) to the chosen skill (-a, -m, -f/-nf, -ri/-nori, -lo/--local, and -toco/--to-codex or -tocl/--to-claude included — they're forwarded on every route; the defaults -f/-ri need no forwarding when not explicitly typed). -pr is the one exception: never forward it to a fast path. It normally forces the escalation, so the question only arises on the epic-issue carve-out above — there, drop it from the /x-wt-teams args and say it was ignored because the epic is already planned.
/x-as-pr and /x-wt-teams; all planning logic lives in /big-plan/big-plan -a when research/decomposition/unclear scope), then single vs multi on the fast paths. /big-plan keeps the single/multi decision downstream — never duplicate it here/x-as-pr — it's simpler and the user can always re-run. When in doubt between plan and build, ask the one-line confirm (unless -a)/x-as-pr", "Routing to /x-wt-teams", or "Escalating to /big-plan -a (needs planning first)"What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
84 skills in this plugin
/bambu-3mfCreate/edit Bambu Studio 3MF projects from a saved printer template. Use for Bambu/H2D printable parts, plate arrangement, 3MF revisions, or print settings, even when the input is STL/STEP./big-planPlan work as one epic plus child GitHub issues, with review and verification. Use for /big-plan, implementation planning/decomposition, UI brainstorming that should end in a plan (-pr), or issue sweeps (-is/-isask)./cclogsLoad recent prototypes, plans, logs and artifacts from the repo-scoped cclogs dir to continue earlier work. Use for /cclogs, or whenever the user refers to a prior session's prototype/plan/report as if it exists./claudemd-refactorRefactor CLAUDE.md files: analyze the setup and split a large root CLAUDE.md into directory-scoped files. Use for 'refactor/split/organize CLAUDE.md' or when the root CLAUDE.md is too large./claude-resources-sharePublish ~/.claude resources (skills, commands, hooks, scripts, CLAUDE.md) to the public claude-resources mirror. Use for 'share claude resource', 'sync settings', or 'export to claude-resources'./cleanup-resourcesEnd-of-workflow audit of touched GitHub issues, PRs and branches (close/keep/delete) plus a sweep of stale build temp dirs. Use after /big-plan, /x-as-pr, /x-wt-teams, or for 'cleanup resources' / 'clean disk'.npx claudepluginhub takazudo/claude-resources --plugin claude-resourcesOther plugins' skills for the same job