$git clone https://github.com/KimYx0207/GoalPro<p> <strong>简体中文</strong> </p>
| 1 | <div align="center"> |
| 2 | |
| 3 | <h1 style="font-size: 4em; font-weight: 900; margin-bottom: 0.1em; letter-spacing: 0.04em;">GoalPro</h1> |
| 4 | <p style="font-size: 1.1em; color: #2563eb; font-weight: 600; margin-top: 0;">意图放大、Goal Prompt 与 Loop Prompt 协议</p> |
| 5 | |
| 6 | <p> |
| 7 | <strong>简体中文</strong> |
| 8 | </p> |
| 9 | |
| 10 | <p> |
| 11 | <img alt="Runtime" src="https://img.shields.io/badge/runtime-Claude%20Code%20%7C%20Codex-111827"/> |
| 12 | <img alt="Skill" src="https://img.shields.io/badge/type-Agent%20Skill-2563eb"/> |
| 13 | <img alt="Language" src="https://img.shields.io/badge/language-中文-16a34a"/> |
| 14 | <img alt="Status" src="https://img.shields.io/badge/status-active-7c3aed"/> |
| 15 | </p> |
| 16 | |
| 17 | </div> |
| 18 | |
| 19 | > 因合并关系,本仓库已迁入 [Kim Service](https://github.com/KimYx0207/Kim_Service) 合集,不再单独发布新版本。请前往 Kim Service 获取新版本、安装说明和更新记录。 |
| 20 | |
| 21 | ## 简介 |
| 22 | |
| 23 | **GoalPro** 是一个给 Codex 和 Claude Code 共用的 `goalpro` Skill,用来写出高质量 Goal Prompt,并附带交付后继续进化用的 Loop Prompt。 |
| 24 | |
| 25 | 它要解决的问题很直接:用户给 Agent 的任务常常是模糊的、情绪化的、战略标准不清的。模型如果直接执行,很容易过度规划、乱读上下文、先改后想、命令跑通就假装完成。 |
| 26 | |
| 27 | GoalPro 的作用,是先把请求变成两段交给执行者使用的、可复制、可验证、可暂停的提示词: |
| 28 | |
| 29 | - **Goal Prompt**:启动本轮执行,核心是可执行的 **Goal Contract**。 |
| 30 | - **Loop Prompt**:在本轮执行结果出来之后使用,引导复盘、差距修复和持续进化;开头先给 `时间参数`,让用户直接填写下一轮什么时候继续,如“手动贴入结果后”或“每天早上 09:00”。 |
| 31 | |
| 32 | Goal Prompt 要回答: |
| 33 | |
| 34 | - 真实意图是什么? |
| 35 | - 完成后局面应该发生什么变化? |
| 36 | - 什么算赢,什么算失败? |
| 37 | - 需要哪些证据、上下文和反证? |
| 38 | - 哪些事情本轮不做? |
| 39 | - 什么情况下必须暂停? |
| 40 | - 最后用什么证明真的完成? |
| 41 | - 完成后给用户看哪个实际样例,方便判断是否通过? |
| 42 | |
| 43 | Loop Prompt 要回答: |
| 44 | |
| 45 | - 上一轮真实交付了什么? |
| 46 | - 哪些证据证明已经达标,哪些只是表面通过? |
| 47 | - 用户意图还有哪些未满足的差距? |
| 48 | - 本轮应该修复、收敛还是暂停? |
| 49 | - 时间参数怎么填:手动继续、事件触发,还是每天/每周固定时间? |
| 50 | - 这件事是一次性任务,还是值得长期委托的重复 workflow? |
| 51 | - 如果继续,下一轮 LOOP 要继承什么状态? |
| 52 | - 循环预算、无收敛阈值和人工介入条件是什么? |
| 53 | - 什么时候可以停止继续进化? |
| 54 | |
| 55 | > 目标不是把提示词写长,也不是替用户执行 goal,而是把 Agent 从“猜用户想要什么”拉回到“按清楚的完成契约执行”。 |
| 56 | |
| 57 | GoalPro 默认只输出可复制的 Goal Prompt + Loop Prompt,并在输出后停住。两个提示词必须用代码块外的 `Goal Prompt:` / `Loop Prompt:` 标签分开,不额外包一层 prompt rewrite 解释。只有用户另外明确授权执行,后续 Codex / Claude Code / 其他 Agent 才按 Goal Prompt 开始做事;Loop Prompt 只在拿到执行结果后用于持续进化。Loop Prompt 开头必须先给一个可填写的 `时间参数`,但写了时间不等于已经创建后台任务;如果用户要真正定时或后台运行,需要单独设置自动化。 |
| 58 | |
| 59 | ```mermaid |
| 60 | flowchart LR |
| 61 | subgraph intent["意图层"] |
| 62 | A["表面请求"] --> B["真实意图"] |
| 63 | B --> C["战略结果"] |
| 64 | end |
| 65 | |
| 66 | subgraph contract["契约层"] |
| 67 | C --> D["成败标准"] |
| 68 | D --> E["证据标准"] |
| 69 | E --> F["边界与非目标"] |
| 70 | end |
| 71 | |
| 72 | subgraph execution["执行层"] |
| 73 | F --> G["先读上下文"] |
| 74 | G --> H["分片执行"] |
| 75 | H --> I["验证与暂停"] |
| 76 | I --> J["最终报告"] |
| 77 | end |
| 78 | |
| 79 | subgraph loop["进化层"] |
| 80 | J --> K["执行结果"] |
| 81 | K --> L["差距诊断"] |
| 82 | L --> M["Loop Prompt"] |
| 83 | M --> N["Next LOOP packet"] |
| 84 | N --> G |
| 85 | end |
| 86 | |
| 87 | style intent fill:#dbeafe,stroke:#2563eb,color:#000 |
| 88 | style contract fill:#fef3c7,stroke:#f59e0b,color:#000 |
| 89 | style execution fill:#dcfce7,stroke:#16a34a,color:#000 |
| 90 | style loop fill:#fce7f3,stroke:#db2777,color:#000 |
| 91 | style A fill:#93c5fd,stroke:#2563eb,color:#000,stroke-width:2px |
| 92 | style B fill:#60a5fa,stroke:#2563eb,color:#000,stroke-width:2px |
| 93 | style C fill:#34d399,stroke:#059669,color:#000,stroke-width:2px |
| 94 | style D fill:#fbbf24,stroke:#d97706,color:#000,stroke-width:2px |
| 95 | style E fill:#a78bfa,stroke:#7c3aed,color:#fff,stroke-width:2px |
| 96 | style F fill:#fb923c,stroke:#ea580c,color:#000,stroke-width:2px |
| 97 | style G fill:#2dd4bf,stroke:#0d9488,color:#000,stroke-width:2px |
| 98 | style H fill:#86efac,stroke:#16a34a,color:#000,stroke-width:2px |
| 99 | style I fill:#f87171,stroke:#dc2626,color:#fff,stroke-width:2px |
| 100 | style J fill:#818cf8,stroke:#6366f1,color:#fff,stroke-width:2px |
| 101 | style K fill:#fbcfe8,stroke:#db2777,color:#000,stroke-width:2px |
| 102 | style L fill:#f9a8d4,stroke:#be185d,color:#000,stroke-width:2px |
| 103 | style M fill:#ec4899,stroke:#be185d,color:#fff,stroke-width:2px |
| 104 | style N fill:#be185d,stroke:#831843,color:#fff,stroke-width:2px |
| 105 | ``` |
| 106 | |
| 107 | ### 一句话总结 |
| 108 | |
| 109 | > 先放大真实意图,再锁定战略标准,然后写成 Agent 能执行、用户能验收、结果能继续进化的双提示词。 |
| 110 | |
| 111 | ## GoalPro 是什么、不是什么 |
| 112 | |
| 113 | | 概念 | 它是什么 | 它不是什么 | |
| 114 | |---|---|---| |
| 115 | | **GoalPro Skill** | 写出 Goal Prompt + Loop Prompt 的 Skill | 执行 goal 的工具,也不是简单的提示词润色器 | |
| 116 | | **Goal Prompt** | 给执行者启动本轮任务的可执行提示词,核心是 Goal Contract | 一串漂亮但无法验收的愿景 | |
| 117 | | **Loop Prompt** | 给执行结果之后使用的持续循环协议,开头给 `时间参数`,每轮产出 `Next LOOP packet` | 当前回合的自动执行授权、一次性返工提示词、后台调度器本身,或无限循环的借口 | |
| 118 | | **Goal |