whatisgithub

What is claude-code-goal-draft-policy?

yshmr/claude-code-goal-draft-policy — explained in plain English

Analysis updated 2026-05-18

0ShellAudience · developerComplexity · 2/5LicenseSetup · easy

In one sentence

A Claude Code skill that helps you write clear, verifiable completion conditions for the /goal command so autonomous work stops correctly.

Mindmap

mindmap
  root((goal-draft-policy))
    What it does
      Drafts goal conditions
      Repairs broken goals
      Adds stop clauses
    Tech stack
      Shell scripts
      Claude Code skill
    Use cases
      Autonomous task setup
      Condition review
      Guardrail design
    Audience
      Claude Code developers
      Autonomous agent builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Turn a vague task request into a precise, ready to paste /goal condition.

USE CASE 2

Review and repair an existing /goal condition that is not completing correctly.

USE CASE 3

Add proper stop clauses so autonomous Claude Code loops do not run forever.

USE CASE 4

Define measurable proof commands and guardrails for multi-turn coding tasks.

What is it built with?

ShellClaude Code Skill

How does it compare?

yshmr/claude-code-goal-draft-policy123satyajeet123/bitnet-serverahloiscreamo/pod-search
Stars000
LanguageShellShellShell
Setup difficultyeasyeasyeasy
Complexity2/52/52/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires Claude Code v2.1.139 or later since that is when the /goal command was added.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

This project is a skill for Claude Code, the AI coding assistant, that helps you write good completion conditions for its /goal command. The /goal command lets Claude keep working across multiple turns on its own until a condition you set is met, with a small fast model checking after each turn whether that condition has been satisfied. The problem this skill solves is that vague completion conditions cause trouble in two directions: either the work never finishes because the wording is too strict or unclear, or Claude wrongly claims it is done and the checking model believes it, because that model only reads the conversation text and never runs any tools itself. This skill turns a rough request into a single ready to paste goal condition built from five parts: a measurable end state, a real command found in the repository that proves the state was reached, the exact evidence in that command's output that counts as success, a guardrail describing what must not be broken along the way, and a stop clause that prevents endless looping if the goal turns out to be unreachable. It can also review and repair an existing goal condition that is not working as intended. Installation is a simple copy of the skill folder into the personal Claude Code skills directory, after which it activates automatically when you ask for autonomous, verifiable work, or can be called directly by name. The author is unusually transparent about testing: every claim in the documentation is labeled as official, as the author's own method, as an inference, or as tested through small experiments, and the repository includes detailed logs from repeated evaluation rounds comparing results with and without the skill. The most recent recorded comparison shows the skill and an unassisted baseline performing close to evenly, so the author is careful to say the skill's benefit is a trend, not a guarantee. This project is not affiliated with or endorsed by Anthropic, and it is released under the MIT license.

Copy-paste prompts

Prompt 1
Help me draft a /goal condition for finishing this feature with a clear proof command.
Prompt 2
Review my existing /goal condition and tell me why it is not completing.
Prompt 3
Show me how to install this skill into my Claude Code skills directory.
Prompt 4
Explain the five parts a good /goal completion condition should have.

Frequently asked questions

What is claude-code-goal-draft-policy?

A Claude Code skill that helps you write clear, verifiable completion conditions for the /goal command so autonomous work stops correctly.

What language is claude-code-goal-draft-policy written in?

Mainly Shell. The stack also includes Shell, Claude Code Skill.

What license does claude-code-goal-draft-policy use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is claude-code-goal-draft-policy to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is claude-code-goal-draft-policy for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.