Agent skill

To Goal

by tt-a1i in tt-a1i/matt-skills-with-to-goal

Turn approved planning evidence or partially completed work into a portable, verifiable execution goal.

MITAuto-check passedAgent Workflows

Install To Goal

skills CLI
$ npx skills add tt-a1i/matt-skills-with-to-goal --skill to-goal -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tt-a1i/matt-skills-with-to-goal to-goal --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tt-a1i/matt-skills-with-to-goal.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/engineering/to-goal .claude/skills/to-goal && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
to-goal
GitHub stars
184
Token cost
~2.7k tokens
SKILL.md length
1,466 words
Files
2
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Turn approved planning evidence or partially completed work into a portable, verifiable execution goal.

  • Works in 7 steps: Read the complete approved source,… → Inspect the repository instructions and… → Inspect the current branch, HEAD,… → …
  • Work needs to cross sessions
  • SKILL.md covers Source of truth, Accepted inputs, Gather current evidence and Select scope, plus 10 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

To Goal is an agent skill from tt-a1i/matt-skills-with-to-goal. Turn approved planning evidence or partially completed work into a portable, verifiable execution goal. Use when work needs to cross sessions, people, agents, or harnesses; no other skill or tracker setup is required.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Agent Workflows, covering Session handoff. The repository describes itself as: Planning → verifiable goals → fresh-session implementation for AI coding agents. Based on mattpocock/skills v1.1. The licence is MIT.

When your agent uses it

  • Work needs to cross sessions
  • Tracker setup is required

Example prompts

  • “/to-goal”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Read the complete approved source, including acceptance criteria, corrections, and directly linked decisions or comments.
  2. Inspect the repository instructions and relevant design vocabulary.
  3. Inspect the current branch, HEAD, worktree status, recent commits, and diff. Record the pre-implementation HEAD as the comparison baseline.
  4. Compare current behavior and tests with every acceptance criterion.
  5. Classify criteria as evidenced complete, demonstrably incomplete, or unverified. A commit message is not evidence.
  6. Discover validation commands from the repository's own scripts, CI, documentation, and existing tests.
  7. Preserve user-established permissions and workspace boundaries from the source context.

What it can do on your machine

Read from SKILL.md and the folder at commit d09351e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

To Goal loads about 2.7k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 1,466 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from tt-a1i/matt-skills-with-to-goal at commit d09351e, republished under its MIT licence (© tt-a1i). 1,466 words, ~2,731 tokens.

Download SKILL.mdSave it as .claude/skills/to-goal/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
to-goal
description
Turn approved planning evidence or partially completed work into a portable, verifiable execution goal. Use when work needs to cross sessions, people, agents, or harnesses; no other skill or tracker setup is required.
disable-model-invocation
true

To Goal

Compile existing planning and repository evidence into an execution goal. Do not implement, mutate the tracker, create a branch, or modify files.

Source of truth

Treat the user's approved planning evidence as authoritative, regardless of whether it came from a conversation, spec, issue, document, or another skill. Do not reopen settled decisions. If the evidence is incomplete, name the missing decision instead of forcing the user through a particular planning workflow.

Accepted inputs

Resolve one of:

  • no argument: inspect the current conversation and repository for the latest approved, unblocked unit of work;
  • a ticket number or URL: read that ticket in full;
  • a parent spec issue: read the spec, sub-issues, and blocking graph, then select its current frontier;
  • a local spec or ticket path: read the complete file and any directly referenced local planning document (local tracker: .scratch/<feature>/spec.md and one file per ticket under .scratch/<feature>/issues/<NN>-<slug>.md);
  • --all <parent>: generate one dependency-ordered cross-ticket goal.

Always read ticket comments. For a tracker parent, use native sub-issue and dependency relationships when available; otherwise use explicit blocker text. Do not infer that a ticket is ready merely from its label.

If no argument yields several frontier tickets, list them and ask the user to choose one. Do not silently combine them. If a requested ticket is blocked, report its blockers and do not generate an implementation goal.

For work that does not fit one fresh context window, preserve its dependency order and produce either one bounded frontier goal or, only when explicitly requested, a cross-context --all goal. Suggest splitting without requiring a particular ticketing skill.

Gather current evidence

Before drafting:

  1. Read the complete approved source, including acceptance criteria, corrections, and directly linked decisions or comments.
  2. Inspect the repository instructions and relevant design vocabulary.
  3. Inspect the current branch, HEAD, worktree status, recent commits, and diff. Record the pre-implementation HEAD as the comparison baseline.
  4. Compare current behavior and tests with every acceptance criterion.
  5. Classify criteria as evidenced complete, demonstrably incomplete, or unverified. A commit message is not evidence.
  6. Discover validation commands from the repository's own scripts, CI, documentation, and existing tests.
  7. Preserve user-established permissions and workspace boundaries from the source context.

Keep this work read-only. Do not create status artifacts merely to build the goal.

Select scope

Default to exactly one unblocked unit of work. When the source uses tickets, choose one frontier ticket. The generated goal must fit one fresh context window and must not attract downstream work.

For --all:

  • preserve the complete dependency order;
  • distinguish the current frontier from future work;
  • carry forward partially completed work without treating it as done;
  • warn that the goal requires a persistent harness capable of context renewal;
  • never present --all as the normal Matt workflow.

Recommend execution capacity

Classify the implementation session by required capability, not by a hard-coded model name. The recommendation must remain portable across Claude Code, Codex, Pi, and other coding agents.

Choose exactly one capability tier:

  • Lightweight: bounded search, inventory, formatting, mechanical edits, or a small change following an established pattern with low failure cost.
  • Standard: normal feature work, focused bug fixes, tests, or moderate multi-file changes with clear repository patterns. This is the default.
  • Advanced: difficult root-cause analysis, cross-module design, security or authorization changes, schema/data migrations, concurrency, long-context synthesis, or work where a plausible mistake has high cost.

Choose exactly one reasoning intensity:

  • Low: deterministic work with little ambiguity and cheap verification.
  • Medium: some design judgment, multiple affected files, or non-trivial tests. This is the default.
  • High: ambiguous behavior, interacting invariants, risky migrations, concurrency, security boundaries, or expensive failure modes.

Recommend the lowest tier and intensity that can reliably complete the selected work. Include one short evidence-based reason. Do not recommend a stronger tier merely because the work is large; prefer splitting when it cannot fit one fresh context window.

Only name a concrete model when the target harness and its available model choices are known from current context. When naming one, present it as an optional mapping after the portable recommendation, not as the recommendation itself. Never assume a fixed set such as Luna, Terra, or Sol.

Readiness checklist

This list is for this compiler; do not put it in the paste block.

Required propositions — tick every item before drafting. If any of these is unchecked, stop and do not invent a goal.

<readiness-checklist>
  • Source is agent-ready: every required product decision and completion condition is in the evidence. If not, stop, name what is missing, and do not reopen a planning interview.
  • The selected unit of work is unblocked. If blocked, report the blockers only; do not generate an implementation goal.
  • Exactly one bounded frontier is selected. If several are equally valid, list them and ask the user to choose; do not silently combine them.
  • Pre-implementation HEAD recorded as the comparison baseline.
  • Every acceptance criterion classified: evidenced complete / demonstrably incomplete / unverified.
  • Validation commands discovered from the repository's scripts, CI, documentation, or existing tests.
  • Permissions and workspace boundaries from the source context preserved.
  • Every completion criterion is independently decidable from observable evidence; no subjective "looks good" conditions.
</readiness-checklist>

Conditional prohibitions — satisfied by default on the single-ticket path. Do not tick them; an unchecked item here is not a stop.

  • If this run is not --all: skip. If it is --all: the user asked for it explicitly, and the goal is labeled cross-context.
  • Work with no tickets: compile a goal directly when it fits one fresh context window; otherwise recommend a split without requiring a particular planning tool.
Show full SKILL.md (585 more words)Show less

Goal template

Required fields must be filled. Conditional fields appear only when they apply. Adapt the envelope to a known target harness; otherwise emit this generic block so it can be pasted into a fresh coding-agent session. Current state, Execution order, and the prefilled constraints stay required even when the harness names fewer sections.

Unless the source context explicitly overrides a default constraint, keep that line verbatim. When it does override, rewrite that line and name the source.

If current implementation is partial, put verified finished work in Current state and every remaining gap in Completion criteria. Never hide a known gap or tell the next agent to redo verified work.

Inherit every source criterion without changing product decisions. Do not relist evidenced-complete work as to-do.

<!-- compiler: only when tests were skipped, add these two Completion criteria lines (do not include them by default; they are not an execution to-do):
- [ ] Tests skipped because: <reason>
- [ ] Residual risk: <risk>
-->
<goal-template>

Goal

<one bounded outcome>

Current state

  • Branch:
  • HEAD (comparison baseline):
  • Dirty / untracked files to protect:
  • Evidenced complete:
  • Known gaps:
  • Existing failures:

Execution order

<shortest dependency-respecting path through the selected work>

Completion criteria

  • <source criterion>
  • Ran the smallest applicable validation: <command>
  • Reviewed the final diff against the source criteria and recorded baseline
  • Commit only after all selected criteria pass and the source context or user authorizes a commit
  • Workspace is clean except for this ticket's changes (unrelated dirty or untracked files untouched)

Constraints

  • do not push, open a pull request, merge, close issues, or edit tracker state
  • do not modify unrelated dirty or untracked files
  • do not implement downstream work early
  • use the agreed validation seam and prefer behavior evidence over implementation details
  • always run the smallest applicable validation during development
  • require broad or full validation only when repository gates demand it, the user explicitly requests it, or the change affects core logic, security, data consistency, concurrency, or a known bug regression
  • for low-risk non-behavioral work, allow tests to be skipped only when there is no relevant test seam or non-test validation is sufficient; still require the smallest applicable validation, and require the execution report to state why tests were skipped and identify any residual risk
  • review the final diff against the source criteria and recorded baseline before committing; use any available review tool only when it adds value
  • commit only after all selected criteria pass and the source context or user authorizes a commit
  • Validation breadth: smallest | full Reason:

Context

  • Approved source:
  • Design docs:
  • Agreed validation seam:
  • Inspect first (commands / files):
</goal-template>

Deliver

Output only:

  1. the ticked Readiness checklist — not part of the paste block;
  2. the filled goal template, copy-pasteable;
  3. the filled Session recommendation.
<session-recommendation>
  • Session: fresh | persistent goal loop
  • Capability: Lightweight | Standard | Advanced
  • Intensity: Low | Medium | High
  • Reason: <one sentence from observed task risk and complexity>
  • Optional model mapping: <only when the target harness and its model choices are known>
</session-recommendation>

Recommend a fresh session that directly executes the goal. The source, branch, and recorded baseline carry the context; do not send the fresh session back through an interview or require a particular upstream skill.

For --all, explicitly label the goal as cross-context and recommend a persistent goal loop. For one bounded frontier, recommend a normal fresh implementation or goal-loop session. The goal remains the execution contract regardless of how the target agent implements it. Keep the recommendation portable: for example, say Advanced + High for an authorization migration with concurrency invariants, not use Model X unless Model X is known to be available.

© tt-a1i, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/engineering/to-goal of tt-a1i/matt-skills-with-to-goal.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit d09351e

Compare with similar skills

To Goal next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

To Goal compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
To Goal this skilltt-a1i/matt-skills-with-to-goal184—~2.7kAutomated safety check: PassMIT
Orca CLIstablyai/orca89k2 repos~593Automated safety check: PassMIT
Beads Task Memorygastownhall/beads28k—~1.2kAutomated safety check: PassMIT
Session History Searchslopus/happy24k—~3.1kAutomated safety check: PassMIT
Paseo Agent Handoffgetpaseo/paseo20k1 repos~606Automated safety check: PassCustom licence
Memori Long-Term MemoryMemoriLabs/Memori17k—~2kAutomated safety check: NotesCustom licence

Similar skills

  • Orca CLI

    stablyai/orca

    Operate Orca-managed worktrees, folder contexts, terminals, repos, automations, artifacts, skill sharing, worktree comments, and Orca's embedded browser…

    89k GitHub starsUsed in 2 repos~593 tokens
    Agent WorkflowsAuto-check passed
  • Beads Task Memory

    gastownhall/beads

    Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.

    28k GitHub stars~1.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Searches past Claude Code, Codex and Cursor sessions and summarizes what was worked on, tried or decided, using extraction scripts instead of reading raw logs.

    24k GitHub stars~3.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Paseo Agent Handoff

    getpaseo/paseo

    Hands off the current task, including context, decisions and failed attempts, to a fresh agent through Paseo by writing a self-contained briefing prompt and launching that agent.

    20k GitHub starsUsed in 1 repo~606 tokens
    Agent WorkflowsAuto-check passed
  • Memori Long-Term Memory

    MemoriLabs/Memori

    Connects Claude Code to Memori Cloud for long-term memory, recalling stored context before substantive replies and saving new context afterward.

    17k GitHub stars~2k tokensUpdated 8 days ago
    Agent WorkflowsAuto-check: notes
  • Beads

    liwp/again

    A skill your agent uses when working in a repository that uses bd or Beads for durable project task tracking, issue dependencies, blocker management, multi-session handoff, or shared work memory.

    118 GitHub starsUsed in 6 repos~537 tokens
    Agent WorkflowsAuto-check passed

More from tt-a1i/matt-skills-with-to-goal

  • Goal Crafter

    tt-a1i/matt-skills-with-to-goal

    Craft verifiable, tight goal prompts for AI coding agents (Claude Code /goal, Codex Automations, Pi), either from a standalone task interview or from an already-approved to-goal handoff.

    184 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Roundtable

    tt-a1i/matt-skills-with-to-goal

    Convene a roundtable of sub-agents that debate a decision or proposal from opposing perspectives — parallel independent statements, anonymous cross-review, then a chaired verdict reporting consensus…

    184 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Spec Executor

    tt-a1i/matt-skills-with-to-goal

    Execute approved, bounded work in an isolated implementation conversation and return a structured evidence receipt.

    184 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Execute Spec In Fork

    tt-a1i/matt-skills-with-to-goal

    Orchestrate approved, bounded work through a same-directory Codex App fork: create and name the execution task, ask it to run spec-executor, route decisions through Codex Task Messenger, validate…

    184 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Handoff

    tt-a1i/matt-skills-with-to-goal

    Compact the current conversation into a portable handoff document, with an optional live clarification path for compatible Codex tasks.

    184 GitHub stars~504 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about To Goal

What does To Goal do?

Turn approved planning evidence or partially completed work into a portable, verifiable execution goal. To Goal is an agent skill from tt-a1i/matt-skills-with-to-goal. Turn approved planning evidence or partially completed work into a portable, verifiable execution goal.

When should I use To Goal?

To Goal fits situations like: work needs to cross sessions; tracker setup is required.

How do I install To Goal in Claude Code?

Run `npx skills add tt-a1i/matt-skills-with-to-goal --skill to-goal -a claude-code`. Or copy the skill folder (skills/engineering/to-goal in tt-a1i/matt-skills-with-to-goal) into .claude/skills/to-goal in your project. Claude Code loads it when a task matches its description.

How do I install To Goal in Codex?

Run `npx skills add tt-a1i/matt-skills-with-to-goal --skill to-goal -a codex`. Or copy the skill folder (skills/engineering/to-goal in tt-a1i/matt-skills-with-to-goal) into .agents/skills/to-goal in your project. Codex loads it when a task matches its description.

Can I use To Goal in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tt-a1i/matt-skills-with-to-goal --skill to-goal -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/to-goal, .gemini/skills/to-goal, .github/skills/to-goal and .opencode/skills/to-goal in your project.

What does To Goal need to run?

SKILL.md names no scripts, command-line tools or credentials: To Goal is instructions for the agent only.

Does To Goal access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is To Goal safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does To Goal use?

To Goal is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does To Goal use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to To Goal?

Skills that share tags, products or a category with To Goal: Orca CLI (stablyai/orca, 89k stars), Beads Task Memory (gastownhall/beads, 28k stars), Session History Search (slopus/happy, 24k stars) and Paseo Agent Handoff (getpaseo/paseo, 20k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains To Goal?

tt-a1i (a GitHub user) maintains it in tt-a1i/matt-skills-with-to-goal, which has 184 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 10, 2026.

Source: tt-a1i/matt-skills-with-to-goal on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.