define-goal
它能做什么
这项技能帮助你在开始工作之前明确一个具体目标,包括可衡量的成果和检验成功的清晰方式。适合希望智能体瞄准正确结果的人。
适用场景
- ✓当你要求智能体设定一个目标,并需要帮助使其具体且可衡量的时候。
- ✓当你的目标模糊不清,并且希望在工作开始前有清晰的成功标准的时候。
- ✓当你想知道智能体应该在什么时候停下来询问你,而不是继续进行的时候。
技能链接
https://github.com/openai/skills/blob/main/skills/.curated/define-goal/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想让我们的应用更快,但不知道一个好的目标是什么。你能帮我定义一个目标吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把你的意图重新表述为一个具体的成果,建议能反映真实成功的数字,说明哪些在范围之内、哪些不在,并说明它将如何验证完成情况。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Define Goal
Overview
Shape the user's intent into an objective an agent can pursue honestly. Prefer measurable outcomes, explicit evidence, and bounded scope over activity descriptions.
This skill covers goal definition and goal-tool creation only. Do not create intermediate planning artifacts, durable snapshots, ledgers, decision logs, or resume files from this skill.
Workflow
Confirm that goal definition is actually needed.
- Use this skill when the user asks for
$define-goal, asks to create or set a goal, asks for the goal tool, or wants help turning an intention into a clear objective. - If the user only asks for ordinary implementation work, do the work directly instead of forcing goal creation.
- Use this skill when the user asks for
Restate the likely goal in concrete terms. A usable goal names:
- the specific outcome that will be true
- the main artifact, system, repo, environment, or user-facing behavior involved
- how completion will be verified
- what is in scope
- what is out of scope when ambiguity would matter
- the stop condition for asking the user instead of grinding
Make it quantitative when the domain supports it. Prefer numbers that represent real success, not decorative precision:
- pass/fail validators: exact tests, checks, CI jobs, evals, commands, or acceptance criteria
- quality thresholds: latency, error rate, cost, accuracy, recall, precision, coverage, flake rate, bundle size, memory, uptime, completion rate, or manual review criteria
- artifact constraints: file paths, affected modules, allowed commands, output formats, target environments, deadlines, or maximum blast radius
- evidence counts: number of reproduced failures, successful reruns, reviewed examples, migrated records, addressed comments, or verified cases
Repair weak goals before setting them.
- Rewrite vague goals into measurable objectives when local context makes the rewrite safe.
- Ask one concise clarification question when the missing detail changes the intended outcome or validation.
- Reject pure activity goals such as "make progress," "keep investigating," "improve things," or "work on X" unless they are sharpened into a verifiable outcome.
Check active goal state before creating a goal.
- Call
get_goal. - If there is no active goal and the objective meets the quality bar, call
create_goal. - If there is an active goal that still matches the user's intent, continue using it instead of creating a duplicate.
- If there is an active goal that conflicts with the new request, ask whether to finish the current goal, mark it complete if done, or start a separate goal-backed thread.
- Call
Create the goal only after it passes the quality bar.
- Use a single concise objective string.
- Include the verification evidence in the objective itself.
- Include scope bounds when they constrain the work.
- Include a token budget only when the user explicitly requested one.
- Do not call
create_goalfor an ordinary multi-step task unless the user explicitly asked for goal-backed work.
Goal Quality Bar
Before create_goal, the objective should answer:
- What concrete thing will be true when this is done?
- What evidence will prove it?
- What quantitative or binary threshold defines success?
- What scope boundaries matter?
- What should cause the agent to stop and ask?
Good:
Reduce checkout API p95 latency below 250 ms for the documented slow path by making the smallest safe server-side change, then verify with
npm run test:checkoutand the existing local latency benchmark showing p95 under 250 ms across 3 consecutive runs.
Good:
Resolve the open review comments on PR 123 that request code changes, update only the affected auth files and tests, and verify with the targeted auth test command plus
gh pr view 123showing no unresolved change-request threads.
Weak:
Make checkout faster.
Weak:
Keep investigating the PR comments.
Quantification Heuristics
- For bugs, define success as reproduction first, fix second, and a failing-then-passing validator when possible.
- For tests, name the exact command and required pass condition.
- For performance, name the metric, target threshold, measurement method, and number of runs.
- For quality work, define an observable acceptance bar such as reviewed examples, lint/typecheck/test pass, or user-approved artifact.
- For research, define the decision the research must enable, the sources or systems
常见问题
这会替我创建文件或计划吗?
不会,这项技能只负责定义目标,不创建规划文件、快照或日志。
它总是会创建一个目标吗?
不会,如果你只是想完成普通的工作,这项技能说明应直接去做。
按照这项技能,什么样的目标才是好目标?
好的目标要说明成果、涉及的系统、如何检查完成情况、范围,以及何时应停下来询问。
详情
作者的原始描述
Help the user define a concrete, measurable goal before starting work, especially when they ask to use the goal tool, create a goal, set an objective, clarify success criteria, or turn a fuzzy intention into a quantitative outcome. Use this skill for goal creation and goal refinement only; it does not manage durable snapshots, decision logs, or long-running execution artifacts.
repo: openai/skills
热度
- GitHub 星标
- 28k
- 排名
- #9847
- 许可证
- —
- 更新时间
- 2026/10/28
评论
- …
同一仓库的更多技能
aspnet-core
28k帮你的智能体构建、审阅或升级 ASP.NET Core 网络应用,选择合适的应用类型,并遵循微软针对 .NET 的最新指导。
chatgpt-apps
28k帮你的智能体构建一个将 MCP 服务器与小组件界面配对的 ChatGPT 应用,涵盖工具设计、界面资源、元数据和本地设置。
cli-creator
28k帮你的智能体把 API 文档、规范或现有脚本转化为可复用的命令行工具,可在任何文件夹中运行,并返回稳定的 JSON。
figma-code-connect-components
28k帮你的智能体用 Code Connect 把 Figma 设计组件与其代码版本相连,使设计和代码保持一致。