一键导入
goal-design
Write or tighten Codex and Claude Code /goal prompts with clear done conditions, required checks, evidence, and stop rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write or tighten Codex and Claude Code /goal prompts with clear done conditions, required checks, evidence, and stop rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | goal-design |
| description | Write or tighten Codex and Claude Code /goal prompts with clear done conditions, required checks, evidence, and stop rules. |
| user-invocable | true |
| argument-hint | <rough goal, task, ticket, issue set, or prompt> |
Turn a rough objective into a /goal prompt with finish line, checks, evidence, and stop rules.
Use when the user wants the agent to continue until proven complete or blocked. Skip simple questions, one-off edits, and work with no verifiable success condition.
/goal.Do not open the PR until tests and verification pass.Read the brief and referenced ticket, issue, plan, spec, docs, code, tests, or commands. Define the finish line. Ask only when finish line, checks, allowed side effects, or stop conditions are missing. If the goal is too vague to verify, ask for the evidence source.
Answer:
Use known checks:
Add concrete stop rules:
When blocked, the agent must report:
Return the paste-ready /goal prompt first.
Keep explanation short.
Avoid clever phrasing, abstract labels, and unexplained system words.
Single task:
/goal
Use the `task-to-pr` skill to implement the provided task.
Do not stop until one of these is true:
1. A draft PR has been opened for the task.
2. The work is genuinely blocked and the blocker is reported with evidence.
Before changing code, read the task, repo instructions, and referenced files or docs.
Keep scope to the task.
Use a dedicated branch and worktree.
Follow existing codebase patterns.
Make the smallest complete change that satisfies the task.
Add or update tests for changed behavior.
Do not open the PR until the work has been tested and verified.
Required verification:
- Run the relevant automated tests.
- Run documented lint and quality checks.
- Run the app locally if the task changes user-facing behavior.
- For UI changes, verify desktop and mobile in a real browser.
- Use a review subagent to check for bugs, regressions, missing tests, and scope creep.
- Use a separate acceptance subagent to check the task's acceptance criteria.
- Review the final diff for unrelated changes, brittle code, missing tests, and broken docs.
Fix valid failures and repeat until verification is clean.
Then commit, push, open a draft PR, and update the task with the PR link and verification evidence.
The PR body must include the task link or task text, summary of changes, acceptance criteria status, and verification commands.
Stop and ask if the task is unclear, already has an open PR, needs missing secrets or product decisions, repeats the same blocker three times, or requires expanding beyond task scope.
Do not merge, deploy, combine unrelated work, discard unrelated local changes, or edit changelogs, generated files, vendored files, or lockfiles unless required.
Task list:
/goal
Use the `task-to-pr` workflow to implement the provided task list.
Create one draft PR per task.
Do not stop until every task has either a verified draft PR or a blocker reported with evidence.
Before changing code, read the task list, repo instructions, and referenced files or docs.
Work one task at a time unless the user explicitly asks for parallel work.
For each task, use a dedicated branch and worktree.
Keep each PR scoped to exactly one task.
Follow existing codebase patterns.
Make the smallest complete change that satisfies the current task.
Add or update tests for changed behavior.
Do not open a PR until that task has been tested and verified.
For each task, run the relevant automated tests, the repo's documented lint and quality checks, and any required browser checks.
Use a review subagent and a separate acceptance subagent for each task.
Review the final diff for unrelated changes, brittle code, missing tests, and broken docs.
Fix valid failures and repeat until verification is clean for that task.
Then commit, push, open a draft PR, and update the task with the PR link and verification evidence.
Each PR body must include the task link or task text, summary of changes, acceptance criteria status, and verification commands.
Keep at most 2 draft PRs open from this goal unless the user approves more.
Stop and ask if a task is unclear, depends on an unreviewed earlier PR, already has an open PR, needs missing secrets or product decisions, repeats the same blocker three times, or requires expanding beyond its scope.
Do not merge, deploy, combine tasks in one PR, discard unrelated local changes, or edit changelogs, generated files, vendored files, or lockfiles unless required.
The prompt must answer:
Avoid prompts like:
Rewrite them into /goal prompts with checks, evidence, and stop rules.
Break a spec, brief, issue tracker item, or user request into agent-sized tasks, using phases and milestones only when they clarify larger work, delivered to exactly one destination.
Bootstrap a new or empty project repository with a local skeleton: README, license, .gitignore, AGENTS.md, docs, and optional commit or push only when explicit. Interview the repo creator when file-changing decisions are unclear.
Create a traceable Git branch for the current task.
Verify browser-rendered work in a real browser. Use for HTML, UI, visual docs, presentations, local apps, and browser-facing changes.
Stage intended changes and create one Conventional Commit.
Find and fix the root cause when something breaks: a failing test, a broken build, a bug report, or behavior that doesn't match expectations. Use when the user says 'debug', 'why is this failing', 'fix this bug', or when a failure interrupts other work.