with one click
hegel
迭代收敛(太虚二转·澄源):链式分析自动循环至稳定。触发词: 收敛, 黑格尔, hegel.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
迭代收敛(太虚二转·澄源):链式分析自动循环至稳定。触发词: 收敛, 黑格尔, hegel.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
提交推送开PR,自适应描述。触发词: commit and PR, ship this.
多角色并行审查需求/计划文档。触发词: 审文档, doc review.
创建清晰传达价值的git commit。触发词: commit, save changes.
创建隔离git worktree用于并行开发或PR审查。触发词: worktree, 并行开发.
发散思维(太虚一转·散怀):想法量、SCAMPER、Stakeholder轮转。触发词: 发散, 开脑洞, 奥斯本. Divergent thinking (太虚一转·散怀): volume of ideas, SCAMPER, stakeholder rotation → idea-pool.md. Use when user says "发散", "开脑洞", "奥斯本", "osborn". 即便用户未明确说"用 osborn",当对话出现以下信号时也应主动建议使用:方案只有一条路想扩空间、 团队讨论在同一批想法里打转、方向定了但觉得可能有更好的选择、用户说"还有别的思路吗""帮我想想还有什么可能"。 不要等用户说出触发词才启动——识别意图比匹配关键词更重要。
Fact verification (太虚三转·叩实): decompose conclusion → testable predictions → external data validation. Use when user says "验证", "贝叶斯", "bayes", "靠谱吗".
| name | hegel |
| description | 迭代收敛(太虚二转·澄源):链式分析自动循环至稳定。触发词: 收敛, 黑格尔, hegel. |
单次分析天然有盲区——迭代收敛把多种分析方法串成自动循环管线,每轮送入校准、挑战、深化三个环节,直到不确定项稳定。校准对齐事实,挑战引入对立视角攻击结论,深化把存活结论往下挖。最终输出收敛报告,标注每条结论的置信度和剩余不确定项。
太虚五转第二转:澄源(收敛)。浊水静置,杂质沉淀,清水浮现。
解决什么:单次分析各自有盲区,发现看不到深层逻辑、验证易陷入自证、偏差检查不产出新发现。本 skill 将多种分析方法编排为自动迭代管线,通过三维架构实现跨领域的认知收敛。
三维架构:
deterministic epistemic ontological
┌────────────────┬───────────────┬───────────────┐
P1 发现 │ 提取断言 │ 提取断言 │ 提取断言 │
P2 校准 │ 硬验证→二值 │ 软验证→区间 │ 概率分布→接受 │
P3 偏差 │ F1 假设验证 │ F2+F5 框架 │ F2+F3 精确化 │
P4 深化 │ 根因追溯 │ 证据扩展 │ 情景+鲁棒性 │
P5 收敛 │ 二值判定 │ 区间窄化 │ 稳定性检查 │
P6 报告 │ 统一输出 │
└────────────────┴───────────────┴───────────────┘
领域透镜: code / investment / prd-review / ideation / architecture-decision / retrospective / specification-bridge
不做什么:不替代子 skill 的独立使用(简单任务直接用单个 skill)。
S0 前置检查 + lens 校验 + 初始化 → hegel-state.json
S1 定界 → scope(边界+维度+约束+预算)→ scope-validate.py
S2 发现 → claims[](Toulmin 五型断言提取,lens 快速路径可跳过)
S2.5 rigor gate → 断言质量预筛(6 维 rigor probes)
S3 校准 → findings[](bayes mode:calibrate + uncertainty_type 判定)→ gate_check
┌─ S4 挑战 → feynman_flags[](feynman --lens 适配 F1-F6)→ gate_check + emergent 升级判定
│ S5 深化 → confidence 更新(lens 路由 + bayes mode:verify)→ gate_check
│ S6 收敛判定 → check-convergence.py → exit code
└─ exit=1(未收敛)→ 回到 S4
exit=0|2 → S7 报告 + 漂移检查
S4→S5→S6 为内循环(current_round 在 S4 入口 +1)。各步骤职责详见 §3-§11。
SKILL_DIR=$(dirname "$0")/.. # hegel skill 目录
python3 $SKILL_DIR/scripts/preflight-check.py --lens {lens}
退出码 0 = 就绪,1 = 缺失(阻塞,输出安装指引)。
加载 references/lens-{name}.md,执行 L1-L7 结构校验(7 个 section 齐全)。缺失 section 阻塞管线。
python3 $SKILL_DIR/scripts/init-state.py \
--target "{用户输入}" \
--target-type {推断类型} \
--lens {lens} \
--problem-type {problem_type} \
--max-rounds {N} \
--output hegel-state.json
# --problem-type 可选,从 pipeline 传入(deterministic / non_deterministic / mixed / pending)
产出空骨架 state.json。Schema 见 references/state-schema.md。
输出:目标、lens、模式、收敛阈值(含 hard_cap)、最大轮次。自动进入 S1。
scope:
schema_version: 1
revision: 1
system_type: "deterministic | non_deterministic | mixed"
system_type_rationale: "≥20 字说明"
dimensions: [{id, name, description, weight, source, active}]
success_criteria: [{id, description, type, params, linked_dimensions}]
constraints:
axioms: [{id, description, violation_action, check_type, check_rule, semantic_prompt}]
parameters: [{id, name, value, description, violation_action, check_type, check_rule, semantic_prompt}]
budget: {complexity, max_safety_valve_rounds, estimated_passes}
provenance: {lens_id, user_overrides, pre_scan_inferred, auto_fill_ratio}
problem_type 先验:若 pipeline 传入 problem_type(非 pending),S1 将其作为 scope.system_type 的先验值——LLM 仍需验证并填写 system_type_rationale,但起点从该先验开始。若 problem_type 为 pending 或未传入,S1 按当前行为自行判定。
python3 $SKILL_DIR/scripts/scope-validate.py scope.json
V1-V10 校验规则。退出码:0=通过,1=错误,2=仅告警。
调用断言提取提示词(prompts/claim-extract-*.md),输入 target_text + lens + scope。
产出 claims[],每条 claim 含 Toulmin 五型分类 + "2+1" 不确定性标记。
详见 hegel/prompts/claim-extract-*.md。
当 lens 支持快速路径时(如 code lens,target_type 为 file/diff/pr),可跳过断言提取步骤,由领域 skill 直接产出 findings[]。
此时:
structural_discovery当 target_type == "architecture" 时,执行架构专用协议。详见 references/architecture-target-type.md(物化输入、scope 维度、发现分类、深化策略、禁止行为)。
| 检查 | 标准 | 失败时 |
|---|---|---|
| 提取率 | claims 数 ≥ 1 | gate escalate |
| 平均提取置信度 | ≥ 0.6 | 触发退化方案 |
| 类型覆盖 | ≥ 2 种 type | warning |
| 确认覆盖率 | confirm_no_change 占比 ≥ 15% | warning: 分析框架可能存在确认偏差(预设「原方案有问题」),未检验零假设 |
S2 提取后、S3 校准前,对每条 claim 执行 6 维 rigor probes 质量预筛(evidence/specificity/counterfactual/simplicity(剃刀)/attachment/durability,各 0-2 分)。≥0.6 通过、≥0.3 标记、<0.3 淘汰。详见 references/rigor-gate.md。
能力来源:rigor gate 吸收了已废弃的 ce-brainstorm product-pressure-test.md(产品级压力测试)的 5 个维度(evidence/specificity/counterfactual/attachment/durability),hegel 额外贡献 simplicity(奥卡姆剃刀)作为第 6 维。原 ce-brainstorm 的压力测试本质上是对断言的收敛行为,与 rigor gate 天然同构。详见 references/product-pressure-test.md。
若传入 --standalone 参数,跳过本步骤,直接产出空 findings[] 并标记 skipped_by: standalone,进入 S4。
否则,调用 bayes mode:calibrate,遍历 claims[] 产出 findings[]。
uncertainty_type(deterministic / epistemic / ontological)claim_finding_map 双向映射默认 1:1;多条 claim 指向同一事实→合并(claim_refs[]);confidence_extractable < 0.4→过滤;零 findings→gate escalate;finding 继承源 claim 的 claim_category(合并取最高优先级:bug > design_gap > missing_feature > confirm_no_change)。
S3/S5 每次更新 confidence 后立即应用:≥0.85(deterministic)→confirmed;≤0.15→dismissed;epistemic CI<阈值→confirmed;ontological 连续2轮 delta<0.05→confirmed。反向转换仅在 S4 feynman 惩罚时。
S3 完成后执行 gate_check(见 §9)。
若传入 --standalone 参数,跳过本步骤,直接标记所有 findings 的 feynman_flags 为 {skipped_by: standalone},进入 S5。
否则,调用 feynman,--input findings --lens {lens}。
逐条 finding 执行 P1-P6 审查,F1-F6 检查问题从 lens 文件 §5 动态加载。
feynman_flagspenalty_rules 加载(默认:F1+F5 同时 ❌ → confidence -= 0.2,回退为 uncertain)F1(未验证假设)或 F5(自证清白)触发 ❌ 时,向 S5 bayes 发送 prior_source: feynman_reset 信号。
分析中发现新约束 → 写入 emergent_constraints[],status=cooling → 下一轮 feynman 审查后决定 promote 或 dismiss。
S4 完成后执行 gate_check + emergent 升级判定。
--standalone 时跳过本步骤。否则仅对 status=uncertain 的 findings 执行深挖 + bayes 验证。深化策略路由(D1删除测试/D2因果追溯/D3边界探测/D4复现验证)按 claim_type 选择,按 uncertainty_type 路由 bayes 验证方式。含先验重置、snap-back 检测、CI 产出、新增 finding、重分类等规则。详见 references/s5-deepening-and-gate.md。
每步写完 state.json 后执行 gate_check()。三种约束(Axiom 不可变→halt / Parameter 阈值可调→warn|escalate / Emergent 运行时发现→冷却升级),五级响应(continue/warn/escalate/reassess_scope/halt)。详见 references/s5-deepening-and-gate.md。
python3 $SKILL_DIR/scripts/check-convergence.py hegel-state.json
退出码:0=已收敛,1=未收敛,2=安全阀截断。
| 条件 | 说明 |
|---|---|
| C1 | 置信度稳定(delta 按类型分化:deterministic=0.03,其余=0.05) |
| C2 | 无新增 findings |
| C3 | 无翻转 + 伪稳定检测(仅 epistemic) |
| C4 | 类型感知收敛(deterministic→二值,epistemic→CI<0.3,ontological→稳定 2 轮) |
| C5 | 无 unresolved escalated 约束违规 |
| C6 | 相变检测(置信度跳变≥0.3 / 状态翻转 / CI宽度突变≥50%)—仅记录,不阻塞收敛 |
详见 references/convergence-criteria.md。
max_rounds = base + onto_bonus(1 if any ontological else 0)
hard_cap = lens 级参数(从 lens frontmatter 加载)
输出进度摘要,回到 S4(current_round +1)。
对比 S1 scope 与实际分析轨迹,检测边界漂移。
收敛完成后、报告生成前,执行正面价值扫描,防止「批判致死」。
触发条件(满足任一即触发):
--debono 参数执行:调用 debono skill(可选依赖),输入为 S1 scope + findings[] 全量(含 dismissed)。
产出:
debono_scan:存活论证 + 四维价值扫描(用户价值 / 技术可行性 / 战略对齐 / 机会成本)counterbalance_verdict:是否存在「被批判掩盖的真实价值」不触发时:debono_scan = null,不影响报告。
converged / converged_with_blind_spots / converged_with_counterbalance / truncated / truncated_with_blind_spots / aborted / initialized / in_progress。详见 references/report-format.md。
报告必须含 YAML frontmatter(signals.terminal_status + signals.system_type)。含收敛摘要、确认问题(含 effective_severity)、零假设检验、已排除问题、归真对冲、边界漂移、审计日志。severity 须考虑 confidence(<0.6 降为 major,<0.4 降为 minor)。详见 references/report-format.md。
报告路径:docs/hegel-reports/{target_slug}-hegel-{date}.md
两阶段分类(S2 提取→S3 校准),按类型路由校准/偏差/深化/收敛策略,含 problem_type 适配。详见 references/s5-deepening-and-gate.md。
读取 hegel-state.json,检查 current_pass/current_round,从当前步骤开头继续,findings 和 pass_log 保留已有数据。
Lens: references/lens-{name}.md(code/investment/prd-review/ideation/architecture-decision/retrospective/specification-bridge[--spec-only])
状态: references/state-schema.md | 收敛: references/convergence-criteria.md | 报告: references/report-format.md
脚本: scripts/{init-state,scope-validate,check-convergence}.py | 提示词: prompts/claim-extract-*.md
# 代码审查(默认 code lens)
/hegel src/core/parser.ts
# 投资分析
/hegel --lens investment --target "APP thesis" --target-type thesis
# 架构决策分析
/hegel --lens architecture-decision --target "架构方案.md" --target-type adr
# 独立模式(taixu-pipeline 专用,跳过 S3/S4/S5 内嵌调用)
/hegel --standalone --lens ideation --target idea-pool.md --problem-type non_deterministic
# --spec-only 快速规格化(跳过 S3-S5,直接生成 requirements doc)
/hegel --lens specification-bridge --spec-only "优化周报输出格式"
配合 --lens specification-bridge 使用,跳过完整收敛循环(S3-S5),直接从用户输入生成 requirements doc。适用于快速对齐场景(3-8min vs 完整模式 10-30min)。
交互规则遵循 osborn P0-clarify 的渐进式 Q&A。详见 references/lens-specification-bridge.md §--spec-only。
详见 references/design-decisions.md(D1-D12 共 12 条历史决策记录)。