goal-define

goal-define is a skill for Claude Code from baodq97/open-plugin. It costs 132 tokens per session (2,047 once invoked), scanned A, original, MIT.

A guided tool for turning a rough software request into a clear, checkable goal. It captures limits, working rules, success conditions, and when to stop.

In plain words
What is it for?
Use it when a task is vague or involves several steps, such as building, fixing, deploying, exploring, or planning a software project.
Why use it?
It reduces ambiguity and helps an agent avoid wandering beyond the intended task.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the swe-flow plugin — 2 skills shipped together

Good fit Use it when a task is vague or involves several steps, such as building, fixing, deploying, exploring, or planning a software project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/baodq97/open-plugin/goal-define
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 baodq97/open-plugin --skill goal-define
Clone the repo
git clone --depth 1 https://github.com/baodq97/open-plugin

Made for: Claude Code.

Or install swe-flow, the plugin that ships this one along with the rest of its 2 skills.

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-define

README.md
[![agentmods](https://agentmods.dev/badge/skills/baodq97/open-plugin/goal-define/github.svg)](https://agentmods.dev/skills/baodq97/open-plugin/goal-define)
Your own site
<a href="https://agentmods.dev/skills/baodq97/open-plugin/goal-define"><img src="https://agentmods.dev/badge/skills/baodq97/open-plugin/goal-define/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-define

Your own site · 80×15
<a href="https://agentmods.dev/skills/baodq97/open-plugin/goal-define"><img src="https://agentmods.dev/badge/skills/baodq97/open-plugin/goal-define.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,047 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.00132 $0.02047
Opus 5.5 $0.00053 $0.00819
Sonnet 5.5 $0.00026 $0.00409
Haiku 4.5 $0.00013 $0.00205

Measured 3mo ago against content hash 08db685f7745, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

goal-define 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 3mo 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.

plugins/swe-flow/skills/goal-define/SKILL.md · 196 lines

How it starts

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

Goal Define

Turn rough user input into a structured, verifiable /goal text through guided interview.

A well-structured goal has a control core — four sections that prevent the agent from wandering or over-committing:

Section Purpose
Constraints Hard fences — what you CANNOT do
Operating rules How you work — iteration size, scope control
Done when Finish line — measurable success criteria
Pause if Abort conditions — stop instead of grinding

Without all four, autonomous work either wanders or burns tokens on doomed approaches.

Process

Work through these phases in order. Each phase fills one section of the goal template. Use AskUserQuestion for structured choices. Ask one question per message.

Phase 1: Detect Task Type

Classify the user's intent into one of four types. This determines which optional sections to include and how to phrase interview questions.

Type Signal phrases Extra sections
Implementation "build", "fix", "add", "implement", "deploy" Components to build, Storage layout
Exploration "explore", "understand", "trace", "diagram", "how does X work" Method (tools), Output format constraints
Audit "review", "check", "audit", "validate", "security" Areas to examine, Severity classification
Refactoring "refactor", "restructure", "clean up", "migrate" Before/after criteria, Regression checks

If ambiguous, ask the user. If the user's input already makes the type obvious, skip this question.

Phase 2: Title & Scope

Extract or ask for:

  • One-line title: <Task Type>: <description in ≤ 10 words>
  • Scope boundary: What is explicitly IN scope? What is OUT?

If the user's initial input is detailed enough, propose a title and confirm.

Phase 3: Context Discovery

Identify what the agent should read before starting work.

Context-aware discovery: Check what's available in the current environment and suggest accordingly:

Read the full file on GitHub · 196 lines

Files

What ships with it

1 file 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. 3mo ago First seen · 196 lines · 132 tokens per session scan A 08db685f7745

Subscribe to this mod's changes

goal-define is a skill published in the GitHub repository baodq97/open-plugin (4 stars, last pushed 6mo ago), licensed MIT. It adds 132 tokens to every session and 2,047 once invoked, about $0.0005 per session on Opus 5.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

goal-define compared with skills from other repositories

goal-define next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
goal-definebaodq97/open-pluginSkill46mo agoMITA132Claude Code
metrics-dashboardphuryn/pm-skillsSkill28k22d agoMITA47Claude Code
ab-test-analysisphuryn/pm-skillsSkill28k22d agoMITA54Claude Code
brainstorm-okrsphuryn/pm-skillsSkill28k22d agoMITA49Claude Code
dummy-datasetphuryn/pm-skillsSkill28k22d agoMITA48Claude Code
outcome-roadmapphuryn/pm-skillsSkill28k22d agoMITA53Claude Code
pre-mortemphuryn/pm-skillsSkill28k22d agoMITA79Claude Code