Qiaomu Goal Meta Skill
把一个模糊任务,收敛成 Codex 可以持续执行、可以验证、知道何时停止和何时暂停的 /goal 指令。
Copyright (c) 向阳乔木
X: https://x.com/vista8
GitHub: https://github.com/joeseesun/
Operating Mode
Run as a production-lite meta skill.
Default assumptions:
- The user wants a paste-ready Codex
/goal command, not a general prompt.
- The executable slash command stays
/goal. Do not output /目标 as the command unless the user's environment explicitly documents that alias.
- The first goal block should be the best recommended executable version, not a half-filled template. Users often copy the first draft directly.
- For Chinese users, output Chinese content and Chinese field names by default while keeping the command prefix
/goal.
- For Chinese users, include both
推荐执行版(中文,可直接复制) and Goal Draft (English-compatible) unless the user asks for one language only.
- If the task is still vague but low-risk, choose the best conservative defaults and continue. Ask only when the answer changes cost, risk, ownership, or product direction.
- If the domain is unfamiliar or specialized, create a discovery-first goal that makes the agent inspect authoritative project/docs/runtime evidence before implementation instead of inventing domain rules.
- If the missing detail is low-risk, make an explicit assumption and continue.
- Do not start the work described by the goal unless the user explicitly asks. This skill creates the goal instruction.
- Prefer concrete verification commands and artifacts over vague confidence phrases.
- Prefer narrow write boundaries and explicit forbidden paths over broad permission.
- Treat
Stop when and Pause if as part of the same completion/blocking contract.
Workflow
- Restate the task as an outcome, not an activity.
- Classify the task using
references/default-goal-strategy.md: familiar vs unknown domain, low vs high risk, new work vs existing project.
- Choose best defaults for low-risk unknowns and write a one-sentence reason.
- Identify missing information across the Goal contract:
- success criteria
- verification commands, artifacts, or evidence
- constraints that must not change
- allowed writes and forbidden paths
- iteration policy
- completion evidence
- blocked stop conditions, human decisions, or budget caps
- If the task is under-specified, prefer numbered multiple-choice adjustments with defaults. Use
references/interview-checklist.md.
- For Chinese-first users, produce the Chinese recommended execution goal first, then an English-compatible mirror that preserves the same meaning and keeps English field labels.
- Check the command against
references/goal-command-playbook.md.
- For file deliverables, run
python3 scripts/lint_goal_command.py <file> before calling the goal done.
Output Contract
When enough information is known, output the best recommended command first. Do not leave placeholders in real output.
/goal Create a first-version local MVP for the requested task, inspect project-provided commands before changing code, implement the core user-visible workflow, and keep unrelated systems unchanged.
Verification: run the smallest project-provided checks, start the local app or relevant runtime, complete the core workflow once, and capture logs/screenshots or command output as evidence.
Constraints: do not add accounts, paid services, production changes, destructive operations, or unrelated features unless requested.
Boundaries: write only inside the new project directory or the directly related existing project files.
Iteration policy: implement one focused workflow at a time, rerun checks after meaningful changes, inspect logs before retrying, and make at most 3 focused improvement rounds before reporting remaining risks.
Stop when: the core workflow is proven by runtime evidence and checks pass or missing checks are explicitly reported.
Pause if: credentials, payments, production data, destructive changes, legal/medical/financial decisions, copyrighted assets, or unclear ownership is required.
For Chinese-first users, prefer this equivalent shape:
/goal 基于用户需求创建第一版本地 MVP,先读取项目已有命令和约束,实现核心用户可见流程,并避免改动无关系统。
验证:运行项目提供的最小相关检查,启动本地应用或对应运行环境,完整走通一次核心流程,并用日志、截图或命令输出作为证据。
约束:不加入账号、付费服务、生产变更、破坏性操作或无关功能,除非用户明确要求。
边界:只写入新项目目录,或只修改现有项目中与该功能直接相关的文件。
迭代策略:一次实现一个聚焦工作流,每次有意义改动后重跑检查,重试前先读日志,最多做 3 轮聚焦改进后报告剩余风险。
完成条件:核心流程有运行证据证明可用,检查通过或明确说明缺少配置。
暂停条件:需要凭证、付费、生产数据、破坏性操作、法律/医疗/金融判断、版权素材或所有权不清时暂停。
When the task is vague, output:
推荐执行版(中文,可直接复制): the best default /goal.
默认选择理由: one concise sentence.
可选调整: numbered choices with recommended defaults and short option labels.
你可以直接回复: an example such as 按默认 or 1B 2A 3C.
Goal Draft (English-compatible): a faithful English-compatible mirror with English field labels.
If the user writes in English, output only the English-compatible draft unless they ask for Chinese too.
Do not output long generic coaching unless the user asks for explanation.
Quality Bar
A strong goal:
- has one concrete outcome
- names exact checks or evidence
- protects unrelated files, user data, secrets, and default branches
- defines the write boundary
- tells the agent how to iterate after failures
- says when to stop because completion is proven
- says when to pause because a human decision, credential, account state, budget, or repeated blocker is required
Reject or revise a goal that:
- says only
make it better, finish this, or fix bugs
- lacks verification
- lets the agent edit the whole machine or repo without reason
- asks for repeated retries without a new source of evidence
- has no pause condition for external auth, secrets, payments, destructive actions, or ambiguous product decisions
- leaves placeholders such as
[Outcome] in user-facing executable drafts
- treats vague words such as
高级, 有质感, or professional as verification instead of translating them into screenshots, runtime checks, review criteria, or iteration rules
Reference Files
references/goal-command-playbook.md: the core /goal template, when to use it, examples, and anti-patterns.
references/default-goal-strategy.md: lazy-user defaults, unknown-domain discovery, risk classification, and direct-copy output rules.
references/interview-checklist.md: question bank for turning vague tasks into strong goals.
scripts/lint_goal_command.py: lightweight checker for required /goal labels and unresolved placeholders.
1---
2name: qiaomu-goal-meta-skill
3description: |
4 Turn vague or complex Codex tasks into strong `/goal` commands with outcome, verification, constraints, boundaries, iteration policy, completion evidence, and pause/block conditions. Use when the user asks for Codex goal instructions, Goal 指令, 目标指令, `/goal` prompts, 中文 Goal 模板, plan-to-goal interviews, success criteria, verification commands, or bounded agent work definitions.
5metadata:
6 source: https://skillmd.com/skills/joeseesun/qiaomu-goal-meta-skill
7---
8
9# Qiaomu Goal Meta Skill
10
11把一个模糊任务,收敛成 Codex 可以持续执行、可以验证、知道何时停止和何时暂停的 `/goal` 指令。
12
13Copyright (c) 向阳乔木
14X: https://x.com/vista8
15GitHub: https://github.com/joeseesun/
16
17## Operating Mode
18
19Run as a production-lite meta skill.
20
21Default assumptions:
22
23- The user wants a paste-ready Codex `/goal` command, not a general prompt.
24- The executable slash command stays `/goal`. Do not output `/目标` as the command unless the user's environment explicitly documents that alias.
25- The first goal block should be the best recommended executable version, not a half-filled template. Users often copy the first draft directly.
26- For Chinese users, output Chinese content and Chinese field names by default while keeping the command prefix `/goal`.
27- For Chinese users, include both `推荐执行版(中文,可直接复制)` and `Goal Draft (English-compatible)` unless the user asks for one language only.
28- If the task is still vague but low-risk, choose the best conservative defaults and continue. Ask only when the answer changes cost, risk, ownership, or product direction.
29- If the domain is unfamiliar or specialized, create a discovery-first goal that makes the agent inspect authoritative project/docs/runtime evidence before implementation instead of inventing domain rules.
30- If the missing detail is low-risk, make an explicit assumption and continue.
31- Do not start the work described by the goal unless the user explicitly asks. This skill creates the goal instruction.
32- Prefer concrete verification commands and artifacts over vague confidence phrases.
33- Prefer narrow write boundaries and explicit forbidden paths over broad permission.
34- Treat `Stop when` and `Pause if` as part of the same completion/blocking contract.
35
36## Workflow
37
381. Restate the task as an outcome, not an activity.
392. Classify the task using `references/default-goal-strategy.md`: familiar vs unknown domain, low vs high risk, new work vs existing project.
403. Choose best defaults for low-risk unknowns and write a one-sentence reason.
414. Identify missing information across the Goal contract:
42 - success criteria
43 - verification commands, artifacts, or evidence
44 - constraints that must not change
45 - allowed writes and forbidden paths
46 - iteration policy
47 - completion evidence
48 - blocked stop conditions, human decisions, or budget caps
495. If the task is under-specified, prefer numbered multiple-choice adjustments with defaults. Use `references/interview-checklist.md`.
506. For Chinese-first users, produce the Chinese recommended execution goal first, then an English-compatible mirror that preserves the same meaning and keeps English field labels.
517. Check the command against `references/goal-command-playbook.md`.
528. For file deliverables, run `python3 scripts/lint_goal_command.py <file>` before calling the goal done.
53
54## Output Contract
55
56When enough information is known, output the best recommended command first. Do not leave placeholders in real output.
57
58```text
59/goal Create a first-version local MVP for the requested task, inspect project-provided commands before changing code, implement the core user-visible workflow, and keep unrelated systems unchanged.
60Verification: run the smallest project-provided checks, start the local app or relevant runtime, complete the core workflow once, and capture logs/screenshots or command output as evidence.
61Constraints: do not add accounts, paid services, production changes, destructive operations, or unrelated features unless requested.
62Boundaries: write only inside the new project directory or the directly related existing project files.
63Iteration policy: implement one focused workflow at a time, rerun checks after meaningful changes, inspect logs before retrying, and make at most 3 focused improvement rounds before reporting remaining risks.
64Stop when: the core workflow is proven by runtime evidence and checks pass or missing checks are explicitly reported.
65Pause if: credentials, payments, production data, destructive changes, legal/medical/financial decisions, copyrighted assets, or unclear ownership is required.
66```
67
68For Chinese-first users, prefer this equivalent shape:
69
70```text
71/goal 基于用户需求创建第一版本地 MVP,先读取项目已有命令和约束,实现核心用户可见流程,并避免改动无关系统。
72验证:运行项目提供的最小相关检查,启动本地应用或对应运行环境,完整走通一次核心流程,并用日志、截图或命令输出作为证据。
73约束:不加入账号、付费服务、生产变更、破坏性操作或无关功能,除非用户明确要求。
74边界:只写入新项目目录,或只修改现有项目中与该功能直接相关的文件。
75迭代策略:一次实现一个聚焦工作流,每次有意义改动后重跑检查,重试前先读日志,最多做 3 轮聚焦改进后报告剩余风险。
76完成条件:核心流程有运行证据证明可用,检查通过或明确说明缺少配置。
77暂停条件:需要凭证、付费、生产数据、破坏性操作、法律/医疗/金融判断、版权素材或所有权不清时暂停。
78```
79
80When the task is vague, output:
81
821. `推荐执行版(中文,可直接复制)`: the best default `/goal`.
832. `默认选择理由`: one concise sentence.
843. `可选调整`: numbered choices with recommended defaults and short option labels.
854. `你可以直接回复`: an example such as `按默认` or `1B 2A 3C`.
865. `Goal Draft (English-compatible)`: a faithful English-compatible mirror with English field labels.
87
88If the user writes in English, output only the English-compatible draft unless they ask for Chinese too.
89
90Do not output long generic coaching unless the user asks for explanation.
91
92## Quality Bar
93
94A strong goal:
95
96- has one concrete outcome
97- names exact checks or evidence
98- protects unrelated files, user data, secrets, and default branches
99- defines the write boundary
100- tells the agent how to iterate after failures
101- says when to stop because completion is proven
102- says when to pause because a human decision, credential, account state, budget, or repeated blocker is required
103
104Reject or revise a goal that:
105
106- says only `make it better`, `finish this`, or `fix bugs`
107- lacks verification
108- lets the agent edit the whole machine or repo without reason
109- asks for repeated retries without a new source of evidence
110- has no pause condition for external auth, secrets, payments, destructive actions, or ambiguous product decisions
111- leaves placeholders such as `[Outcome]` in user-facing executable drafts
112- treats vague words such as `高级`, `有质感`, or `professional` as verification instead of translating them into screenshots, runtime checks, review criteria, or iteration rules
113
114## Reference Files
115
116- `references/goal-command-playbook.md`: the core `/goal` template, when to use it, examples, and anti-patterns.
117- `references/default-goal-strategy.md`: lazy-user defaults, unknown-domain discovery, risk classification, and direct-copy output rules.
118- `references/interview-checklist.md`: question bank for turning vague tasks into strong goals.
119- `scripts/lint_goal_command.py`: lightweight checker for required `/goal` labels and unresolved placeholders.