Goal

From gabrielmoreira/agent-skills-mirror · View interactive version

Goal is an AI agent skill from the GitHub repository gabrielmoreira/agent-skills-mirror. Manage the persistent thread goal from the Python REPL. Use to read goal status and budget usage, to start a goal when the user explicitly asks for one, to pause, resume, or cancel a goal when requested, or to mark the active goal complete once its objective is fully achieved.

How to use this skill

Skill file

Goal

The thread goal is a persistent objective the harness keeps re-prompting you to

pursue across turns until it is complete. Goal state (status, token budget,

usage accounting) lives in the host; this skill is the kernel-side interface to

it. Call it directly from the Python REPL:

await goal.get()
await goal.create("ship the release notes")
await goal.pause()
await goal.resume()
# If the user cancels the objective: await goal.cancel()
await goal.complete()

API

is set), remaining_tokens, and completion_budget_report. The goal dict

carries objective, status, token_budget, tokens_used,

time_used_seconds, and timestamps.

Fails while a goal is still pending (active, paused, or budget-limited); a

completed or errored goal is replaced by the new one. Only create a goal when

the user or system/developer instructions explicitly ask for a persistent

long-running goal; do not infer goals from ordinary tasks. Set token_budget

only when an explicit token budget is requested.

objective has actually been achieved and no required work remains; do not

call it merely because the budget is nearly exhausted or because you are

stopping work. When the result includes a completion_budget_report, report

that final usage to the user.

These calls return a dict containing the updated goal; inspect

result["goal"]["status"] before announcing success. Host errors raise

RuntimeError; the transport's status envelope is not part of the result. Pausing or

canceling from Python lets the current call finish; it prevents further goal

continuations rather than aborting its own tool execution.

Rules

instructions. Cancel is not completion; do not report the objective achieved.

not merely say it is done — the harness keeps continuing the goal until the

completion call arrives.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.