Set a native Claude Code /goal on THIS session so you keep working until a condition holds — use when you decide you should not stop until some concrete, checkable condition is met (tests pass, a…

MITAuto-check: warnings

Install Self Goal

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add Windy3f3f3f3f/claude-self-goal --skill self-goal -a claude-code

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

GitHub CLI
$ gh skill install Windy3f3f3f3f/claude-self-goal self-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/Windy3f3f3f3f/claude-self-goal.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skill .claude/skills/self-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
self-goal
GitHub stars
102
Token cost
~559 tokens
SKILL.md length
220 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Set a native Claude Code /goal on THIS session so you keep working until a condition holds — use when you decide you should not stop until some concrete, checkable condition is met (tests pass, a…

  • You decide you should not stop until some concrete
  • SKILL.md covers When to use, How and Notes
  • Calls claude
  • Checkable condition is met (tests pass

What it does

Self Goal is an agent skill from Windy3f3f3f3f/claude-self-goal. Set a native Claude Code /goal on THIS session so you keep working until a condition holds — use when you decide you should not stop until some concrete, checkable condition is met (tests pass, a file exists, a build is green) and want the built-in goal evaluator to enforce it. Works in interactive, tmux, and background/daemon sessions. Do not use for vague intentions; the condition must be objectively checkable.

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with tmux. The repository describes itself as: Let a running Claude Code session set its own native /goal — including background / non-tmux sessions — via tmux send-keys or a fail-closed TIOCSTI inject. The licence is MIT.

When your agent uses it

  • You decide you should not stop until some concrete
  • Checkable condition is met (tests pass
  • A build is green) and want the built-in goal evaluator to enforce it
  • Vague intentions

Example prompts

  • “/self-goal”

What it can do on your machine

Read from SKILL.md and the folder at commit da69f2f. 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

    Shell commands in SKILL.md call:

    • claude

    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

Self Goal loads about 559 tokens when it runs. Until then it costs about 107 tokens; SKILL.md has 220 words of instructions outside code blocks.

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

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: warnings

The automated check found patterns that need a careful read before installing.

  • WarningContains instruction-override wording (e.g. “without asking the user”)SKILL.md:36
    ted as met. It auto-clears on success — do not tell the user to run `/goal clear` after the goal is achieved.

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 Windy3f3f3f3f/claude-self-goal at commit da69f2f, republished under its MIT licence (© Windy3f3f3f3f). 220 words, ~559 tokens.

Download SKILL.mdSave it as .claude/skills/self-goal/SKILL.md (or your agent's skills folder).
name
self-goal
description
Set a native Claude Code /goal on THIS session so you keep working until a condition holds — use when you decide you should not stop until some concrete, checkable condition is met (tests pass, a file exists, a build is green) and want the built-in goal evaluator to enforce it. Works in interactive, tmux, and background/daemon sessions. Do not use for vague intentions; the condition must be objectively checkable.

self-goal

Give the current session its own native /goal by running the claude-self-goal tool from your Bash tool. It figures out the session type (interactive / tmux / daemon background) and picks the right delivery channel automatically.

When to use

Use this when, mid-task, you conclude you should keep going until a specific, checkable condition holds — and you want Claude Code's built-in goal evaluator (not just your own intention) to keep the session from stopping early.

Good conditions are objective: "all tests in ./test pass", "the file dist/app.js exists", "the build is green". Avoid vague ones like "the code is good".

How

bash
# set a goal on this session (always quote the condition):
claude-self-goal "all tests pass and the build is green"

# clear it early if the plan changes:
claude-self-goal --clear

# set a goal on another background session you own:
claude-self-goal --session <id> "the PR's CI is green"

Replace claude-self-goal with the absolute path if it is not on PATH (e.g. /usr/local/bin/claude-self-goal).

Notes

  • Auto-detected channel: tmux → tmux send-keys (no root); plain interactive → TIOCSTI (needs root); daemon /bg session → claude attach over its rv socket. A headless claude -p session can't take an interactive /goal and is refused.
  • Always quote the condition — an unquoted multi-word condition is split into several arguments by the shell.
  • The condition is injected as a single line; control characters are rejected.
  • Once set, the ◎ /goal active chip appears and Claude Code's native goal evaluator should keep the session working until the condition is evaluated as met. It auto-clears on success — do not tell the user to run /goal clear after the goal is achieved.

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

Files

Just SKILL.md in skill of Windy3f3f3f3f/claude-self-goal.

Open the folder on GitHubat commit da69f2f

Compare with similar skills

Self 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.

Self Goal compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Self Goal this skillWindy3f3f3f3f/claude-self-goal102—~559Automated safety check: WarnMIT
1passwordtrpc-group/trpc-agent-go1.9k14 repos~656Automated safety check: PassApache-2.0
CodeGraph Agent Evalcolbymchenry/codegraph74k—~950Automated safety check: PassMIT
Tmuxtrpc-group/trpc-agent-go1.9k23 repos~868Automated safety check: PassApache-2.0
CodexBar Live QAsteipete/CodexBar22k—~1.2kAutomated safety check: PassMIT
Tmuxopenclaw/openclaw392k1 repos~640Automated safety check: PassMIT

Similar skills

  • 1password

    trpc-group/trpc-agent-go

    Set up and use 1Password CLI (op). An agent skill from trpc-group/trpc-agent-go.

    1.9k GitHub starsUsed in 14 repos~656 tokens
    AI & LLM EngineeringAuto-check passed
  • CodeGraph Agent Eval

    colbymchenry/codegraph

    Benchmarks how much CodeGraph helps a coding agent on a real repository, comparing runs with and without it for a chosen local or published version.

    74k GitHub stars~950 tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Tmux

    trpc-group/trpc-agent-go

    Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.

    1.9k GitHub starsUsed in 23 repos~868 tokens
    Data & AnalyticsAuto-check passed
  • CodexBar Live QA

    steipete/CodexBar

    Runs live QA for the CodexBar app: provider usage matrix checks through its packaged CLI, config validation and menu checks, with 1Password-backed credentials handled safely.

    22k GitHub stars~1.2k tokensUpdated today
    Testing & QAAuto-check passed
  • Tmux

    openclaw/openclaw

    Control tmux sessions/panes for interactive CLIs: list, capture output, send keys, paste text, monitor prompts.

    392k GitHub starsUsed in 1 repo~640 tokens
    Auto-check passed
  • Reproduces a feature from Codex or Claude Code in Qwen Code by running the reference agent under capture, reading the traces, then implementing matching behavior.

    28k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed

Works with

Questions about Self Goal

What does Self Goal do?

Set a native Claude Code /goal on THIS session so you keep working until a condition holds — use when you decide you should not stop until some concrete, checkable condition is met (tests pass, a…. Self Goal is an agent skill from Windy3f3f3f3f/claude-self-goal. Set a native Claude Code /goal on THIS session so you keep working until a condition holds — use when you decide you should not stop until some concrete, checkable condition is met (tests pass, a file exists, a build is green) and want the built-in goal evaluator to enforce it.

When should I use Self Goal?

Self Goal fits situations like: you decide you should not stop until some concrete; checkable condition is met (tests pass; A build is green) and want the built-in goal evaluator to enforce it; vague intentions.

How do I install Self Goal in Claude Code?

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

How do I install Self Goal in Codex?

Run `npx skills add Windy3f3f3f3f/claude-self-goal --skill self-goal -a codex`. Or copy the skill folder (skill in Windy3f3f3f3f/claude-self-goal) into .agents/skills/self-goal in your project. Codex loads it when a task matches its description.

Can I use Self 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 Windy3f3f3f3f/claude-self-goal --skill self-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/self-goal, .gemini/skills/self-goal, .github/skills/self-goal and .opencode/skills/self-goal in your project.

What does Self Goal need to run?

Going by SKILL.md and its folder, Self Goal needs the command-line tools its instructions call (claude).

Does Self 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 Self Goal safe to install?

Our automated static check of SKILL.md flagged 1 warning(s): contains instruction-override wording (e.g. “without asking the user”). Read the flagged lines before installing; the check is not a guarantee either way.

What licence does Self Goal use?

Self 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 Self Goal use?

About 559 tokens (SKILL.md is roughly 2.2k 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 Self Goal?

Skills that share tags, products or a category with Self Goal: 1password (trpc-group/trpc-agent-go, 1.9k stars), CodeGraph Agent Eval (colbymchenry/codegraph, 74k stars), Tmux (trpc-group/trpc-agent-go, 1.9k stars) and CodexBar Live QA (steipete/CodexBar, 22k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Self Goal?

Windy3f3f3f3f (a GitHub user) maintains it in Windy3f3f3f3f/claude-self-goal, which has 102 GitHub stars. The repository was last updated on July 8, 2026.

Source: Windy3f3f3f3f/claude-self-goal on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.