goal-prompt-builder

goal-prompt-builder is a skill for Claude Code, Codex from joonlab/joonlab-claudecode-setting-for-share. It costs 422 tokens per session (2,948 once invoked), scanned A, original, MIT.

A guide for writing completion conditions for Claude Code’s /goal feature, which lets a long-running task continue until stated conditions are met.

In plain words
What is it for?
Use it to define measurable completion requirements, specify how results must be demonstrated in the conversation, include constraints, and set limits for unattended work.
Why use it?
It helps turn a broad request into observable checks that show whether the work is actually finished, reducing vague or endless goals.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; mentions Claude Code.

Good fit Use it to define measurable completion requirements, specify how results must be demonstrated in the conversation, include constraints, and set limits for unattended work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joonlab/joonlab-claudecode-setting-for-share/goal-prompt-builder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add joonlab/joonlab-claudecode-setting-for-share --skill goal-prompt-builder
Clone the repo
git clone --depth 1 https://github.com/joonlab/joonlab-claudecode-setting-for-share

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for goal-prompt-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/joonlab/joonlab-claudecode-setting-for-share/goal-prompt-builder/github.svg)](https://agentmods.dev/skills/joonlab/joonlab-claudecode-setting-for-share/goal-prompt-builder)
Your own site
<a href="https://agentmods.dev/skills/joonlab/joonlab-claudecode-setting-for-share/goal-prompt-builder"><img src="https://agentmods.dev/badge/skills/joonlab/joonlab-claudecode-setting-for-share/goal-prompt-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for goal-prompt-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/joonlab/joonlab-claudecode-setting-for-share/goal-prompt-builder"><img src="https://agentmods.dev/badge/skills/joonlab/joonlab-claudecode-setting-for-share/goal-prompt-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 422 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,948 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00422 $0.02948
Opus 5 $0.00211 $0.01474
Sonnet 5 $0.00084 $0.00590
Haiku 4.5 $0.00042 $0.00295

Measured 12d ago against content hash 7d13548351ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

goal-prompt-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude/skills/goal-prompt-builder/SKILL.md · 132 lines

How it starts

The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Goal Prompt Builder

Claude Code 네이티브 /goal 기능에 넣을 완료 조건을 설계해 주는 스킬이다. (공식 정본: https://code.claude.com/docs/en/goal — 자세한 검증 사실과 출처는 references/goal-mechanics.md 참고)

왜 이 스킬이 필요한가

/goal <조건>을 걸면 Claude가 매 턴 끝마다 그 조건이 충족됐는지 평가받고, 충족될 때까지 사용자 프롬프트 없이 며칠이고 계속 작업한다. 강력한 만큼 양날의 검이다.

  • 좋은 조건을 넣으면 복잡한 작업이 무인으로 끝까지 완수된다.
  • 나쁜 조건(주관적이거나, Claude의 출력만으로 증명할 수 없는 조건)을 넣으면 평가자가 영영 "미달성"으로 봐 무한 루프에 빠지거나, 반대로 Claude가 "다 됐다"고 요약만 해도 통과되어 겉만 그럴듯한 헛결과가 나온다.

좋은 완료 조건을 사람이 처음부터 정확히 쓰기는 어렵다. 그래서 **클로드에게 조건 자체를 설계하게 하는 것(메타 프롬프팅)**이 정석이고, 이 스킬이 그 과정을 표준화한다.

/goal이 실제로 어떻게 작동하는가 (이 한 가지는 꼭 기억)

조건을 평가하는 것은 **작고 빠른 모델(기본 Haiku)**이며, 이 평가자는 도구를 실행하거나 파일을 직접 읽지 않는다. 오직 "대화에 드러난 것(transcript)"만 보고 판정한다.

여기서 이 스킬의 모든 설계가 따라 나온다: 완료 조건은 Claude 자신의 출력으로 증명할 수 있는 형태여야 한다. 즉 "테스트가 통과한다"가 아니라 "Claude가 npm test를 실제로 실행하고 그 결과(exit 0)를 대화에 보여준다"가 되어야 한다. 평가자는 Claude가 보여준 것만 믿는다.

언제 작동하는가 / 제외

  • 작동: 어떤 작업을 /goal로 무인 완수시키고 싶다는 요청·의도. 장기·복잡·고검증 작업.
  • 제외: /goal이 무엇인지 묻는 설명 질문, 이미 걸린 루프를 푸는 트러블슈팅(/goal clear). 또 한 번에 끝나는 단발 작업은 골이 과하니 더 가벼운 방식을 권한다.

워크플로우

1단계 — 작업 의도 파악

사용자의 고수준 작업을 듣는다. 대화에 이미 맥락이 충분하면 그것을 우선 활용한다(불필요하게 다시 묻지 말 것). 다음을 머릿속에 둔다: "이 작업이 '끝났다'를 무엇으로 판정하는가? 그 판정을 Claude가 자기 출력으로 어떻게 보여줄 수 있는가?"

2단계 — 대화형 정제 (측정 가능한 종료 상태로 좁히기)

작업을 측정 가능한 단일 종료 상태로 좁히는 데 필요한 정보가 빠졌으면 AskUserQuestion으로 핵심만 되묻는다. 특히 다음을 확인한다.

  • 무엇이 충족되면 끝인가? (테스트 통과 / 빌드 성공 / 파일 N개 / 큐 비움 / 모든 호출부 마이그레이션 등)
  • 그걸 어떤 명령·검사로 증명할 수 있는가? (npm test exit 0, git status clean 등)
  • 가는 길에 바뀌면 안 되는 것은? (다른 테스트 파일 수정 금지, API 계약 유지 등)
  • 무인으로 돌릴 거라면 턴/시간 상한은? (or stop after 20 turns)

한 번에 2~4개만, 결과를 좌우하는 것만 묻는다. "알아서 해줘"라면 합리적 가정을 명시하고 진행한다.

3단계 — 완료 조건 3요소 구성

공식 가이드의 좋은 조건 = 다음 3요소를 자연어 한 문장(필요시 여러 절)으로 결합한 것. 무인 실행이면 턴 절을 더한다.

  1. 측정 가능한 종료 상태 — test result / build exit code / file count / empty queue 등
  2. 명시적 검증 방법(stated check) — Claude가 어떻게 증명할지 ("npm test exits 0", "git status is clean")
  3. 지켜야 할 제약 — 도중에 바뀌면 안 되는 것 ("no other test file is modified")
  4. (무인 실행 시) 턴/시간 상한 — "or stop after N turns" (/goal엔 내장 토큰 예산이 없다)

Read the full file on GitHub · 132 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 132 lines · 422 tokens per session scan A 7d13548351ab

Subscribe to this mod's changes

goal-prompt-builder is a skill published in the GitHub repository joonlab/joonlab-claudecode-setting-for-share (10 stars, last pushed 1mo ago), licensed MIT. It adds 422 tokens to every session and 2,948 once invoked, about $0.0021 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens