skills/developer-tools-integrations/goal-meta-skill/SKILL.md
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.
npx skillsauth add bahayonghang/my-claude-code-settings goal-meta-skillInstall 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.
把一个模糊任务,收敛成 Codex 可以持续执行、可以验证、知道何时停止和何时暂停的 /goal 指令。
Run as a production-lite meta skill.
Default assumptions:
/goal command, not a general prompt./goal. Do not output /目标 as the command unless the user's environment explicitly documents that alias./goal <text> sets a persistent goal, /goal views the current goal, and /goal pause, /goal resume, and /goal clear manage it. If the user asks to inspect, pause, resume, or clear an existing goal, give the relevant management command instead of drafting a new objective./goal is missing from the slash command list, tell the user to enable features.goals in Codex config or run the equivalent Codex feature enable command for their environment./goal that points at a local instruction file and put the long contract in that file content or a separate copy block./goal.推荐执行版(中文,可直接复制) and Goal Draft (English-compatible) unless the user asks for one language only.Stop when and Pause if as part of the same completion/blocking contract.references/default-goal-strategy.md: familiar vs unknown domain, low vs high risk, new work vs existing project.references/interview-checklist.md.references/goal-command-playbook.md./goal, /goal pause, /goal resume, or /goal clear guidance rather than inventing a replacement goal./goal objective within the 4,000 character limit. When the contract is longer, use a file-pointer pattern such as /goal Follow the task contract in .planning/<task>.md and stop only when its verification section is satisfied.python scripts/lint_goal_command.py <file> or py -3 scripts/lint_goal_command.py <file> before calling the goal done. Add --require-chinese-companion when validating Chinese-first output.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.
If the user asks how to manage an existing Codex goal, answer with the minimal command:
/goal to view the current goal./goal pause to pause it./goal resume to continue it./goal clear to remove it.Do not output long generic coaching unless the user asks for explanation.
A strong goal:
Reject or revise a goal that:
make it better, finish this, or fix bugs[Outcome] in user-facing executable drafts高级, 有质感, or professional as verification instead of translating them into screenshots, runtime checks, review criteria, or iteration rulesreferences/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, unresolved placeholders, and optional Chinese-first companion sections.tools
Write, debug, and validate ast-grep structural code search rules. Use this skill when the user needs syntax-aware code search, AST pattern matching, structural refactor discovery, language-construct queries, or searches that plain text tools like rg can miss, such as finding functions with particular descendants, calls inside specific contexts, missing error handling, React hook shapes, decorators, or other Tree-sitter-backed code structures.
development
Use when the user asks to ground an ambitious proposal, avoid over-grand designs, make a bold direction executable, pressure-test feasibility, prevent "too much vision and too little landing", or turn a strategy/refactor/product idea into the smallest verifiable first move with stop rules. Trigger for requests such as 落地, 先落地, 别太飘, 收一收, 可执行, 可验证, 止损, and for follow-ups after geju-style big-picture thinking. Do not trigger for ordinary code review or implementation unless the user explicitly asks to ground or shrink the plan first.
development
Use when the user explicitly asks to think bigger, open up the design space, challenge conservative design, avoid over-indexing on backward compatibility, escape local-detail fixation, or make a bold high-level product or architecture direction call. Use for strategic reframing, not for ordinary code review, PRD writing, implementation planning, or adversarial risk review.
development
Implement safe, behavior-preserving code refactors after inspecting the existing project. Use when the user asks to refactor code, split large files or modules, extract functions or methods, reduce duplicated logic, rename confusing classes/functions/variables, improve code comments, remove unused or dead code, or says 重构代码, 拆分模块, 提取方法, 减少重复代码, 优化命名, 优化注释, 删除未调用代码. For broad refactor requests, plan safe slices and wait for approval; for narrow scoped requests, directly implement the smallest verifiable slice.