dr-set-goal

dr-set-goal is a skill for Claude Code, Codex from AHepi/DeepReason. It costs 40 tokens per session (578 once invoked), scanned A, original, MIT.

A goal-setting step for turning a broad engineering problem into one specific result that can be checked by a test or command. It records the goal in a GOAL.md file before investigation begins.

In plain words
What is it for?
Use it at the start of a DeepReason work period, called a tranche, to define the expected result, classify the problem, and set boundaries for the work.
Why use it?
It prevents unclear problem statements from leading to unfocused code reading or unauthorized changes. It also separates confirmed defects from missing or undocumented capabilities.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ahepi/deepreason/dr-set-goal
Any agent
npx skills add AHepi/DeepReason --skill dr-set-goal
Clone the repo
git clone --depth 1 https://github.com/AHepi/DeepReason

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 dr-set-goal

README.md
[![agentmods](https://agentmods.dev/badge/skills/ahepi/deepreason/dr-set-goal.svg)](https://agentmods.dev/skills/ahepi/deepreason/dr-set-goal)
Your own site
<a href="https://agentmods.dev/skills/ahepi/deepreason/dr-set-goal"><img src="https://agentmods.dev/badge/skills/ahepi/deepreason/dr-set-goal.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 578 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00040 $0.00578
Opus 5 $0.00020 $0.00289
Sonnet 5 $0.00008 $0.00116
Haiku 4.5 $0.00004 $0.00058

Measured 5d ago against content hash 86ea78d8f2ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dr-set-goal 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 5d 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/dr-set-goal/SKILL.md · 57 lines

How it starts

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

Set the tranche goal

Input: a problem statement (from the operator, a failed run, RESULTS.md, or PARKED.md). Output: exactly one GOAL.md. Nothing else. You do not read source code in this phase beyond confirming a file exists.

Procedure

  1. Restate the problem as ONE observable, checkable statement about the record or the tests. Good: "run-9175f0ec terminated budget_denied on all 8 question turns with zero provider calls." Bad: "the scheduler has issues."
  2. Classify it:
    • defect — record/tests show behavior contradicting a documented guarantee (spec §, docstring, RESULTS.md claim).
    • regression-risk — behavior is undocumented but a change would alter it.
    • capability-gap — nothing is broken; something is missing. Only defect tranches may proceed to implementation without explicit operator approval; the other two stop after FIX.md (proposal) and report.
  3. Write the success criterion as a command + expected output. It must be decidable by a machine, e.g.:
    • "verify_root(<root>) returns zero conjecture-context violations" or
    • "pytest tests/test_x.py::test_y passes and the full gate stays at 0 failed."
  4. Write the boundary list: files/subsystems presumed in scope (max 3), and an explicit NOT-IN-SCOPE line for the nearest tempting neighbor.
  5. Size check: if you cannot imagine the fix under ~150 changed lines and one commit, split the problem and pick the FIRST piece only; put the rest in PARKED.md.

GOAL.md template (fill every field; delete nothing)

# Goal: <one line>
Class: defect | regression-risk | capability-gap
Observed: <one sentence, with the record/test evidence pointer>
Success criterion (machine-decidable):
    <command>
    <expected output>
In scope: <max 3 paths/subsystems>
NOT in scope: <the nearest tempting thing you will not touch>
Budget: <=150 changed lines, 1 commit, <n> hours
Stop conditions inherited from orchestrator: yes

Read the full file on GitHub · 57 lines

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. 5d ago First seen · 57 lines · 40 tokens per session scan A 86ea78d8f2ff

Subscribe to this mod's changes

dr-set-goal is a skill published in the GitHub repository AHepi/DeepReason (141 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 578 once invoked, about $0.0002 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-30.

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