优化 GoalPro 的循环判断与意图区分 - #1
Draft
pfx43 wants to merge 1 commit into
Draft
Conversation
pfx43
force-pushed
the
agent/goalpro-conditional-loop-intent-boundaries
branch
from
July 27, 2026 07:09
b405dcb to
cddf0dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动内容
Goal Prompt。Loop Prompt。Intent字段拆分为:User-stated intent:用户明确表达的意图AI-inferred potential intent:AI 推断的潜在意图Value judgments requiring confirmation:需要用户确认的价值判断README.md、source-rules.md和CHANGELOG.md,保证文档与运行时契约一致。这样修改的好处
降低一次性任务的输出噪音
旧版固定生成 Goal 和 Loop,即使任务能够在一次执行中完成并验收,也会附带不必要的循环协议。改为按需生成后,一次性任务更简洁,也不会被错误包装成长期循环工作流。
明确用户与 AI 的责任边界
单一
Intent容易混合用户真正说过的内容、AI 的推断以及主观价值选择。拆分后三类信息可以独立审查,避免把 AI 猜测的动机或偏好写成用户已经确认的要求。降低错误决策风险
会改变路线的优先级、质量标准、风险容忍度和范围取舍,现在必须明确标记为待确认判断,不能再被静默写入 Goal。
保留真正有价值的持续迭代
对于周期性工作、监控、发布后反馈、指标变化、用户反馈和审稿意见等确实会产生新证据的任务,原有的证据驱动 Loop 协议仍然完整保留。
兼容性
Intent或默认双提示词结构仅作为任务内容参考,当前SKILL.md的三类意图区分和 Loop 判断门具有优先级。验证
quick_validate.py skills/goalpro:通过,输出Skill is valid!Intent:模板已移除、默认双提示词规则无残留。git diff --check:通过。