Spec Goal Development logo

Spec Goal Development

Community
hanshuang1008-del
spec-goal-development

面向跨项目 Codex 编码智能体的默认开发编排 Skill。对自然语言提出的新增、修改、调试、重构、集成或发布请求,自动判断是否属于复杂或意图不明确的开发任务;必要时用普通语言澄清真实目标,显性展示 SPEC 创建与用户授权,建立并展示 Goal,分片实施、持续调试、分层验证并完成交付闭环。非开发任务和简单、低风险、局部且可逆的开发任务走轻量路径。

Overview

Publisherhanshuang1008-del
Repositoryspec-goal-development
Skill namespec-goal-development
Stars
44
Forks
0
Bundled files
8
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by hanshuang1008-del on GitHub. Read the source before you install it.

Installation

Install the Spec Goal Development AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hanshuang1008-del/spec-goal-development/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hanshuang1008-del/spec-goal-development.git \
  .claude/skills/spec-goal-development
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Spec Goal Development in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Spec Goal Development on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Spec Goal Development is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

SPEC 与 Goal 开发工作流

把本 Skill 当作复杂开发任务的默认编排层。用户不需要主动提及 Skill、SPEC、Goal 或 Sub-agent;Agent 负责识别、解释并推进,但关键状态和授权必须让用户看见。

1. 自动判断是否进入完整流程

从用户的自然语言请求和仓库事实判断:

  • 非开发任务:不使用本 Skill,按请求处理。
  • 简单开发任务:目标明确、局部、低风险、可逆、无需跨文件或契约变化时,走轻量路径:事实检查 → 最小修改 → 受影响验证 → 结果说明。不创建正式 SPEC、Goal 或 Sub-agent。
  • 复杂或意图不明确的开发任务:涉及新增功能、跨文件/跨层修改、接口/数据/权限/安全/配置/迁移变化、复杂调试、集成、发布,或同一句需求存在多种合理理解时,自动进入完整闭环。

即使用户只说“帮我加个登录”“把这个页面改成可下单”“这个功能总是报错”,也要根据风险和不确定性自行选择流程,不要求用户先说出流程术语。

项目专用 Skill、AGENTS.md 和事实源约束具体业务与技术规则;它们可以补充本流程,但不能以跳过意图确认、完成标准、验证或收尾为代价。发生冲突时遵守更高优先级的项目规则,并记录影响。

2. 显性但紧凑的状态协议

关键能力必须让用户看见,但不能把内部执行日志全部输出。完整流程只使用短状态,不重复已经确认的内容。

输出预算

阶段基准预算必要时硬上限
首次响应5 行10 行
需求澄清3 个短段落5 个要点
SPEC 草案8 个要点12 个要点
Goal 建立3 项5 项
阶段更新4 行8 行
最终交付5–8 行12 行

5 行是默认观感目标。首次响应只有满足以下任一条件时才可扩展到 10 行:需要用户授权、涉及安全/迁移/不可逆操作、存在阻塞/失败/回滚、需要同时说明 2 个以上实施切片,或存在 2 个以上用户决策点。其他阶段只有对应的安全、授权、关键失败、回滚或用户决策需要才使用硬上限。

必须显性展示的门禁

不要一次性把所有状态都播报。进入相应阶段时,按一行显示:

text
[流程] SPEC-Goal|阶段:需求澄清|状态:进行中

创建 SPEC 时显示:

text
[SPEC 草案] 已创建|目标:……|不做:……|完成:……
[授权] 请确认是否按这个方向实现;确认前不会修改产品代码。

用户确认后显示:

text
[SPEC] APPROVED|依据:用户确认“……”
[Goal] 已建立|阶段:1/4|完成条件:……

如果无法创建工具级 Goal,显示:

text
[Goal] 未建立|原因:……|替代:使用文本状态持续跟踪

需要并行时,先用一行说明建议和授权点;用户同意后再展示分工。验证和交付只报告实际结果、未验证项和阻塞,不复制完整 SPEC。

超出基准预算时按顺序降级:保留当前状态、风险、当前动作和下一步;压缩已确认事实;删除重复背景、工具日志和逐步过程;把详细表格写入参考文件。达到硬上限仍无法说明时,只给紧凑摘要并询问用户是否展开。除非用户要求,不展示完整内部模板、每个工具调用或逐步思考过程。

3. 先读取事实

开始复杂开发任务前:

  1. 查找并遵守适用的 AGENTS.md、项目文档和安全限制。
  2. 阅读真实代码、配置、测试、调用链、共享契约和 Git 状态。
  3. 区分已确认事实、用户决策、合理推断和待确认假设。
  4. 先完成能从仓库得到的调查,再向用户提问。
  5. 不用历史聊天、旧计划或过时文档替代当前磁盘事实。

4. 用普通语言确认真实意图并创建 SPEC

目标是减少误解和中途停止,不是让用户完成需求工程作业。

  1. 用不超过 5 行普通语言复述:当前事实、理解的目标、建议范围和最关键未知点。
  2. 一次只问一个最关键的问题,优先问会改变范围、用户体验、架构、安全或验收的问题。
  3. 每次得到回答后更新决策记录,已确定的内容不重复询问。
  4. 不要求用户选择“SPEC 模式”或填写模板。
  5. 需求足够实施时,创建并展示精简 SPEC 草案,只保留“做什么、不做什么、怎样算完成”。
  6. 明确进入授权门禁,例如:
text
[SPEC 草案] 已创建|目标:……|不做:……|完成:……
[授权] 请确认是否按这个方案开始实现;确认前不会修改产品代码。
  1. 用户说“可以”“就按这个方向”“开始做吧”或等价表达时,保留能够证明授权的最短用户原话,不用 Agent 自己的总结替代;然后显性报告:
text
[SPEC 状态] APPROVED
[批准依据] 用户确认:“……”

用户不需要说“批准 SPEC”,但 Agent 必须明确请求并记录授权。沉默或继续讨论不算批准。

如果用户说“直接做”,但约束仍不足以避免明显误解,先问最小必要问题;不影响用户结果的细节记录为可追溯的 Agent 假设并继续澄清,不要自行中断。

5. 实施前门禁自检

在首次修改产品代码或创建 Sub-agent 前,必须完成一次短自检:

text
[门禁检查]
SPEC:已创建|批准证据:用户原话“……”|状态:APPROVED
Goal:已建立|完成条件:……
并行检查:已完成|状态:SERIAL_READY / PARALLEL_WAIT_AUTH / AUTHORIZED
授权:已获得 / 未获得,改为串行 / 等待回答

若缺少 SPEC 批准原话、Goal 状态、并行检查或必要的并行授权,不得进入对应实施路径。批准原话应来自用户当前对话;继续讨论、补充信息或沉默不算批准。自检格式见 references/execution-templates.md。

6. 建立并展示 Goal

对跨文件、跨层、需要多轮调试、存在不确定性或验证成本较高的任务,默认进入 Goal 管理。创建前显性说明:

text
[Goal] 准备建立|用途:跟踪实现、调试、验证和收尾|完成:……

若当前平台/任务上下文允许创建工具级 Goal,创建后立即展示目标、阶段和状态。若平台要求额外授权,用普通语言请求一次确认;用户不需要知道工具参数。若无法使用 Goal 工具,保留同等的文本状态,并明确说明限制。

只有简单开发任务,或用户明确要求不创建且任务仍可安全追踪时,才跳过 Goal。Goal 必须持续到验证、文档和交付收尾完成。

7. 分片实施与持续调试

进入实施前:

  1. 重新检查已批准范围、事实源、分支、现有 diff 和并行写入风险。
  2. 将工作拆成最小可验证切片,先处理共享契约和高风险边界。
  3. 明确每个切片的完成证据;共享契约、迁移、规范性文档和最终集成由主 Agent 串行维护。
  4. 只在关键节点发送不超过 4 行的阶段状态,不把阶段汇报说成完成。

实现或测试失败时:

  • 读取真实错误、调用链和运行状态;
  • 定位根因,做最小修复;
  • 重跑受影响验证,必要时回归完整基线;
  • 只有确实需要用户决策时,才提出一个聚焦问题,并保留已完成进度。

禁止跳过关键检查、伪造结果或把失败改名为“待优化”。

8. Sub-agent:强制并行检查、自然授权、可追踪分工

Sub-agent 不是每个任务都需要,但复杂任务进入实施前必须做一次并行检查,不能静默跳过。状态定义和合法跳转见 references/parallel-state-machine.md。

先显性报告以下三种结果之一:

text
[并行检查] 适合并行|可拆分:页面、数据、测试|等待授权
text
[并行检查] 不适合并行|原因:任务共享状态多/写入范围无法隔离|主 Agent 串行推进
text
[并行检查] 暂不判断|原因:还缺少……|先完成需求澄清

如果存在两个或以上互不重叠、能独立验证的工作切片,必须用普通语言提出建议:

text
[并行协作建议]
这个任务可以拆成页面、数据和测试三个部分。我建议让不同执行单元同时推进,并在最后做一次独立检查。是否允许这样分工?

用户明确同意后,才创建 Sub-agent,并立即展示:职责、读取范围、唯一写入范围、禁止修改范围、完成证据和验证命令。用户拒绝时进入串行路径;用户尚未回答时保持等待,不得默认为同意或拒绝。

如果任务明显适合并行但没有获得授权,不能假装“没有并行价值”:等待回答时显示“等待授权”;用户要求继续但不授权时显示“未授权,改为串行”。并行失败、写入冲突或能力不可用时,显示原因后按状态表降级。

  • 共享契约、迁移、规范性文档和最终集成由主 Agent 负责;
  • 每个实现 Agent 只有唯一写入范围;
  • 返回后复核磁盘实际变化,不直接相信完成声明;
  • 独立监督 Agent 只读,不修改实现文件;
  • 没有独立 Agent 时,只能报告为主 Agent 二次复查;
  • P0 必须修复;P1 原则上修复,除非用户明确接受且不违反安全和项目规则。

9. 分层验证,真实报告

根据项目实际命令选择适用层级,并记录证据:

  • 静态检查、格式、类型检查、构建;
  • 单元/组件测试;
  • API、接口或 Mock 回归;
  • 集成测试;
  • 隔离全栈 E2E;
  • 真实桌面/设备 UX;
  • 外部系统或真实网站 E2E。

不得用低层验证代替高层验证。未执行的层级必须标记“未验证”,写明原因、风险和补验方式。

10. 收尾与交付

完成前检查:

  1. 已批准范围全部实现,非目标未扩大;
  2. 行为、数据、接口、配置、启动方式和用户说明已同步;
  3. 废弃入口和旧概念已搜索并按决定清理;
  4. 所需验证实际通过,未验证范围已披露;
  5. Git 分支、工作区、diff、敏感文件和无关变化已复核;
  6. Goal 完成标准全部满足,用户知道下一步。

最终报告必须用紧凑摘要显性列出:SPEC 状态、批准证据、Goal 状态、实际完成、验证层级、未验证范围、Sub-agent 分工/监督结论和 Git 状态;详细内容按需展开。除非用户或项目规则要求,不自动提交、推送或创建 PR。

11. 显式入口与模板

显式使用仍然支持:

text
$spec-goal-development

但复杂开发任务不应依赖用户记住这个命令。需要内部模板时使用:

  • references/spec-template.md
  • references/parallel-state-machine.md
  • references/execution-templates.md
  • scripts/validate_parallel_state_machine.py

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Spec Goal Development AI skill do?

面向跨项目 Codex 编码智能体的默认开发编排 Skill。对自然语言提出的新增、修改、调试、重构、集成或发布请求,自动判断是否属于复杂或意图不明确的开发任务;必要时用普通语言澄清真实目标,显性展示 SPEC 创建与用户授权,建立并展示 Goal,分片实施、持续调试、分层验证并完成交付闭环。非开发任务和简单、低风险、局部且可逆的开发任务走轻量路径。

Why use Spec Goal Development on TypingMind?

Because you install it once and use it with any model. Spec Goal Development is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Spec Goal Development in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hanshuang1008-del/spec-goal-development/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Spec Goal Development?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Spec Goal Development?

As many as you like. As long as a model supports skills, you can use Spec Goal Development with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Spec Goal Development AI skill free?

Yes. It is published on GitHub by hanshuang1008-del under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇