better-goal/SKILL.md
为任意 coding agent 编写高质量任务目标的指南。当用户提到「设定目标」「goal」「任务目标」「持久目标」「完成标准」、或需要为复杂多轮任务(性能优化、调试、迁移、研究复现等)定义可验证的完成条件和约束时触发。
npx skillsauth add ninehills/skills better-goalInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
一个好的任务目标是可验证的完成合约,而非更大的 prompt。它让 agent 在多轮探索中持续朝着既定结果工作,并在证据达标时停止。
| | 一次性任务 | 持久目标 | |---|---|---| | 模式 | 请求 → 工作 → 结果 → 等待 | 工作 → 检查 → 继续或完成 | | 适用 | 单次明确任务 | 路径不确定的多轮探索任务 | | 完成 | 任务执行完毕 | 证据验证目标达成 |
应该用: 性能优化、flaky test 排查、依赖迁移、需要复现的 bug 调查、多步重构、基准驱动调优、需要产出最终产物的研究任务。
不要用: 单行修改、简短解释、代码审查、一次性问答。标语式目标("让代码更好"、"重构一下")也不适合。
适用条件:持久目标 + 可验证的完成线 + 需多轮探索的路径。
/goal <期望最终状态> verified by <具体证据> while preserving <约束条件>。
Use <允许的工具或边界>。
Between iterations,<如何选择下一步>。
If blocked or no valid paths remain,<报告内容和解锁条件>。
弱:/goal Improve performance
强:/goal Reduce p95 checkout latency below 120 ms, verified by the checkout benchmark, while keeping the correctness suite green. Use only the checkout service, benchmark fixtures, and related tests. Between iterations, record what changed, what the benchmark showed, and the next best experiment to try. If the benchmark cannot run or no valid paths remain, stop with the attempted paths, the evidence gathered, the blocker, and the next input needed.
关键差异:强目标命名了结果(<120ms)、验证方式(checkout benchmark)、约束(correctness suite green)。即使延迟从 180ms 降到 135ms,目标仍未完成;延迟达标但测试失败,目标也未完成;基准无法运行,必须报告阻塞而非宣告成功。
弱:/goal Reproduce Buehler et al., "Deep Hedging"
强:/goal Produce the strongest evidence-backed reproduction of Buehler et al., "Deep Hedging," using the available paper materials and local resources. Attempt every headline result, verify the outputs, and end with a report that separates reproduced mechanics, approximate trained results, blocked exact replay, and remaining uncertainty.
关键差异:强目标定义了证据标准(confirmed / approximate / blocked / uncertain 四层分级),防止"看似可行"的产物变成过度宣称的结论。
如果不确定如何写,先描述任务,让 agent 生成草案:
Help me turn this into a task goal: I want to keep working on this flaky
checkout test until we either fix it with evidence or can clearly explain
what is blocking progress.
然后审查草案,收紧成功条件、验证面、约束和阻塞终止条件,再开始执行。
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
tools
UI/UX design intelligence for web and mobile. Includes 50+ styles, 161 color palettes, 57 font pairings, 161 product types, 99 UX guidelines, and 25 chart types across 10 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, and HTML/CSS). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, and check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, and mobile app. Elements: button, modal, navbar, sidebar, card, table, form, and chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, and flat design. Topics: color systems, accessibility, animation, layout, typography, font pairing, spacing, interaction states, shadow, and gradient. Integrations: shadcn/ui MCP for component search and examples.
data-ai
Triage issues through a state machine driven by triage roles. Use when user wants to create an issue, triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.
tools
Turn the current conversation context into a PRD and publish it to the project issue tracker. Use when user wants to create a PRD from the current context.