con un clic
claude-goal
Set a goal condition for a Claude Code background session.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Set a goal condition for a Claude Code background session.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Preflight Claude Code auth, model access, real-browser readiness, workspace path, and permission mode before long delegated jobs.
List Claude jobs for the current workspace.
Refresh or repair the installed CC Codex plugin through Codex plugin commands.
Wait for a Claude job to produce a result, blocker, or timeout.
Run an adversarial code review of a Claude job in a fresh independent Claude Code session (thorough; eliminates confirmation bias).
Run a batch of Claude Code instructions via the Batch Parallel Work Orchestration runtime.
| name | claude-goal |
| description | Set a goal condition for a Claude Code background session. |
You are the Codex skill wrapper for the cc dispatcher's goal subcommand.
Resolve <plugin-root> as the parent directory of the skills/ directory that contains this file
(so <plugin-root>/scripts/cc.mjs is the dispatcher). Confirm <plugin-root>/scripts/cc.mjs exists before running.
Run:
node "<plugin-root>/scripts/cc.mjs" goal -- "<condition>"
Return the dispatcher's stdout verbatim. If the command exits non-zero, show stderr/stdout to the user and explain that the dispatcher failed. Do not reimplement the command logic yourself.
Behavior rules:
--name, --model, --effort, --permission-mode, --add-dir,
--bypass-permissions, --dangerously-skip-permissions,
--allow-dangerously-skip-permissions, --mcp-config, --agent, --agents, --allowedTools,
--allowed-tools, --disallowedTools, --disallowed-tools, --tools,
--settings, --setting-sources, --strict-mcp-config,
--append-system-prompt, --system-prompt, --plugin-dir,
--plugin-url, --bare, --safe-mode, --ide, --chrome,
--no-chrome, --disable-slash-commands,
--exclude-dynamic-system-prompt-sections, --verbose, --json.--effort flag accepts low, medium, high, xhigh, or max (Claude CLI valid set). The ultracode value is TUI-only and is silently ignored when passed via --effort. To trigger Claude Code's auto-orchestration workflow planning, use $claude-workflow instead — it injects the ultracode: keyword that activates the same behavior.--yes to skip the first-run privacy acknowledgement.
Do not inject --yes for ordinary jobs. Exception: if the user explicitly
asks for trusted unattended Claude work and you forward --bypass-permissions,
--dangerously-skip-permissions, or --permission-mode bypassPermissions,
include --yes in the same command so the job stays inside the cc
status/result surface instead of falling back to native claude. If the
dispatcher reports that an acknowledgement is required in any other case,
surface that message to the user instead of retrying with --yes.--bypass-permissions for fresh local shell/tool automation jobs. The
dispatcher translates bypass aliases to Claude Code's literal
--dangerously-skip-permissions flag. If a bypass-launched job still needs
interactive input immediately, the dispatcher exits non-zero and marks the job
failed instead of returning a blocked worker. This does not resolve browser
selection, passkeys, or other local user-gesture prompts.--allow-edit — it is not applicable to this subcommand.Approval flow — important:
This skill starts a Claude Code background session with /goal <condition>
injected as the opening slash command. The runtime tracks goal-completion
automatically; no interactive approval dialog is required. After the job ID
and Claude session short ID are printed, the user can run:
claude attach <shortId>
using the printed Claude session short ID inside Claude Code to watch progress and see when the goal condition is met.
Cost notice:
Goal sessions iterate until the stated condition is satisfied or the session
is stopped. The number of iterations depends on the complexity and scope of
the condition. Consider scoping conditions tightly (e.g., "all unit tests in
src/utils/ pass") to avoid open-ended run time. Use $claude-stop to
terminate a goal session early.
If $claude-status <jobId> returns needs_input on the FIRST poll and stays there, the /goal injection failed to reach the model. This is intermittent upstream behavior. Stop the stalled session with $claude-stop <jobId> and re-run $claude-goal with the same directive. Two consecutive failures with the same directive is unusual; if you see it, try rewording the directive to be more concrete (e.g., add an explicit "Emit the exact text DONE then stop" sentinel).
Goal sessions appear as standard background jobs; after starting one:
$claude-status — check live progress$claude-result — read the final output once the goal condition is met$claude-followup — send an additional instruction mid-run$claude-stop — terminate the goal session early