ghc-decisions

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

ghc-decisions

ghc-decisions

Opt-in structured rubric classifier for fast
predicate
,
choice
, and
score
checks (
0 output tokens
on native
/v1/decisions
models such as
gpt-6-luna-decisions
, with
/v1/chat/completions
fallback).
用于快速执行
predicate
、
choice
和
score
检查的选择启用型结构化评分规则分类器(原生
/v1/decisions
模型(如
gpt-6-luna-decisions
)使用
0 output tokens
,并以
/v1/chat/completions
作为回退)。

Gates

门控

  • Opt-in only. If neither
    --base-url
    /
    --model
    ,
    GHC_DECISIONS_BASE_URL
    /
    GHC_DECISIONS_MODEL
    , nor
    $XDG_CONFIG_HOME/ghc-decisions/config.yaml
    (
    ~/.config/ghc-decisions/config.yaml
    ) is configured,
    scripts/ghc_decisions.py
    prints
    {"skipped": true, "reason": "not configured"}
    and exits
    0
    when
    --if-configured
    is passed (or exits
    2
    on direct required calls). Parent workflows must continue their deterministic verification without failing when this skill is unconfigured or unreachable.
  • Advisory triage, never sole acceptance. A decision model does not run commands, inspect the filesystem, or prove a claim. Always re-derive numbers and run deterministic repository gates independently.
  • Atomic criteria. Keep custom questions single-step (
    predicate
    , mutually exclusive
    choice
    , or
    score
    with 2–10 levels) and branch in code rather than asking for multi-hop reasoning.
  • 仅限主动启用。 如果未配置
    --base-url
    /
    --model
    、
    GHC_DECISIONS_BASE_URL
    /
    GHC_DECISIONS_MODEL
    ,也没有
    $XDG_CONFIG_HOME/ghc-decisions/config.yaml
    (
    ~/.config/ghc-decisions/config.yaml
    ),则
    scripts/ghc_decisions.py
    会打印
    {"skipped": true, "reason": "not configured"}
    ;传入
    --if-configured
    时退出
    0
    ,直接执行必需调用时退出
    2
    。当此 skill 未配置或无法访问时,父级工作流必须继续执行其确定性验证,不得因此失败。
  • 仅提供分流建议,绝不作为唯一验收依据。 决策模型不会运行命令、检查文件系统或证明某项声明。始终应独立重新推导数字并运行确定性的仓库门控。
  • 原子化标准。 自定义问题应保持单步骤(
    predicate
    、互斥的
    choice
    ,或包含 2–10 个等级的
    score
    ),并在代码中分支处理,而不是要求模型进行多跳推理。

Usage

使用方法

Run
scripts/ghc_decisions.py
via
uv run
. Only if a script command fails (for example
uv
is not found), read references/troubleshooting.md.
bash
S=skills/productivity/ghc-decisions/scripts/ghc_decisions.py   # or ~/.agents/skills/ghc-decisions/scripts/ghc_decisions.py
通过
uv run
运行
scripts/ghc_decisions.py
。仅当脚本命令失败时(例如未找到
uv
),阅读 references/troubleshooting.md。
bash
S=skills/productivity/ghc-decisions/scripts/ghc_decisions.py   # or ~/.agents/skills/ghc-decisions/scripts/ghc_decisions.py

List bundled presets

List bundled presets

uv run "$S" --list-presets
uv run "$S" --list-presets

Run a preset only when the operator has configured ghc-decisions (exits 0 with {"skipped": true} otherwise)

Run a preset only when the operator has configured ghc-decisions (exits 0 with {"skipped": true} otherwise)

uv run "$S" --if-configured --preset claim-audit --state-file state.json
uv run "$S" --if-configured --preset claim-audit --state-file state.json

Explicit one-shot call against a local ghc-proxy /v1/decisions endpoint

Explicit one-shot call against a local ghc-proxy /v1/decisions endpoint

uv run "$S" --preset pr-feedback-triage
--base-url http://127.0.0.1:4141/v1
--model gpt-6-luna-decisions
--api decisions
--state '{"finding":"...", "evidence":"...", "candidate":"..."}'
undefined
uv run "$S" --preset pr-feedback-triage
--base-url http://127.0.0.1:4141/v1
--model gpt-6-luna-decisions
--api decisions
--state '{"finding":"...", "evidence":"...", "candidate":"..."}'
undefined

Bundled Presets

内置预设

PresetQuestions (
type
)
Primary parent / use case
claim-audit
verdict
(
choice
),
action_required
(
predicate
),
risk_score
(
score
)
delegated-work-acceptance
,
report-claim-audit
,
hermes-ops-claim-verification
ci-triage
symptom
(
choice
),
root_cause_proven
(
predicate
),
triage_priority
(
score
)
CI / test / scheduled-job failure log triage
tool-risk
tier
(
choice
),
out_of_scope
(
predicate
),
blast_radius
(
score
)
PreToolUse / permission hook shadow-mode risk classification
skill-review
bucket
(
choice
:
change
/
verify
/
consider
),
has_direct_contradiction
(
predicate
)
hoa-skill-review
intake and candidate grading
memory-curation
durability
(
choice
),
relationship
(
choice
)
distill-memory
/
nmem
pre-write deduplication and noise filtering
pr-feedback-triage
resolution
(
choice
:
resolved_root_cause
/
symptom_patch
/
unaddressed
/
regression_introduced
)
review-revision-candidates
,
ce-resolve-pr-feedback
citation-entailment
entailment
(
choice
:
strictly_entailed
/
temporal_or_scope_drift
/
unsupported_extrapolation
/
insufficient_evidence
)
evidence-boundary-discipline
,
official-document-verification
model-escalation
route
(
choice
:
stay_fast_worker
/
escalate_single_reviewer
/
escalate_dual_audit
)
gdd
review tier routing
spec-readiness
readiness
(
choice
:
ready_to_dispatch
/
missing_acceptance_seam
/
unbounded_scope
)
spec-convergence
,
define-goal
pre-dispatch gate
预设问题(
type
)
主要父级流程/用例
claim-audit
verdict
(
choice
)、
action_required
(
predicate
)、
risk_score
(
score
)
delegated-work-acceptance
、
report-claim-audit
、
hermes-ops-claim-verification
ci-triage
symptom
(
choice
)、
root_cause_proven
(
predicate
)、
triage_priority
(
score
)
CI/测试/定时任务失败日志分流
tool-risk
tier
(
choice
)、
out_of_scope
(
predicate
)、
blast_radius
(
score
)
PreToolUse/权限 hook 影子模式风险分类
skill-review
bucket
(
choice
:
change
/
verify
/
consider
)、
has_direct_contradiction
(
predicate
)
hoa-skill-review
接收与候选项评级
memory-curation
durability
(
choice
)、
relationship
(
choice
)
distill-memory
/
nmem
写入前去重和噪声过滤
pr-feedback-triage
resolution
(
choice
:
resolved_root_cause
/
symptom_patch
/
unaddressed
/
regression_introduced
)
review-revision-candidates
、
ce-resolve-pr-feedback
citation-entailment
entailment
(
choice
:
strictly_entailed
/
temporal_or_scope_drift
/
unsupported_extrapolation
/
insufficient_evidence
)
evidence-boundary-discipline
、
official-document-verification
model-escalation
route
(
choice
:
stay_fast_worker
/
escalate_single_reviewer
/
escalate_dual_audit
)
gdd
审查层级路由
spec-readiness
readiness
(
choice
:
ready_to_dispatch
/
missing_acceptance_seam
/
unbounded_scope
)
spec-convergence
、
define-goal
派发前门控

Configuration

配置

Resolved through
scripts/skill_config.py
(see references/configuration.md):
KeyFlagEnvironment variableDefault
base_url
--base-url
GHC_DECISIONS_BASE_URL
none (opt-in; skips under
--if-configured
)
model
--model
GHC_DECISIONS_MODEL
none (opt-in; skips under
--if-configured
)
api
--api
GHC_DECISIONS_API
decisions
(
decisions
or
chat-completions
)
effort
--effort
GHC_DECISIONS_EFFORT
low
(used by
chat-completions
)
api_key
—
GHC_DECISIONS_API_KEY
dummy
通过
scripts/skill_config.py
解析(参见 references/configuration.md):
键标志环境变量默认值
base_url
--base-url
GHC_DECISIONS_BASE_URL
无(需主动启用;在
--if-configured
下跳过)
model
--model
GHC_DECISIONS_MODEL
无(需主动启用;在
--if-configured
下跳过)
api
--api
GHC_DECISIONS_API
decisions
(
decisions
或
chat-completions
)
effort
--effort
GHC_DECISIONS_EFFORT
low
(由
chat-completions
使用)
api_key
—
GHC_DECISIONS_API_KEY
dummy

Additional resources

其他资源

  • scripts/ghc_decisions.py
    — stdlib-only CLI and library for
    /v1/decisions
    and
    /v1/chat/completions
    .
  • scripts/rubrics.json
    — the 9 bundled rubric presets.
  • scripts/skill_config.py
    — vendored configuration resolver.
  • scripts/tests/test_ghc_decisions.py
    — offline unit and HTTP-stub tests.
  • references/configuration.md — configuration lookup order and file path.
  • references/troubleshooting.md — read only when a
    uv run
    command fails.
  • scripts/ghc_decisions.py
    ——仅使用标准库的 CLI 和库,支持
    /v1/decisions
    与
    /v1/chat/completions
    。
  • scripts/rubrics.json
    ——9 个内置评分规则预设。
  • scripts/skill_config.py
    ——内置配置解析器。
  • scripts/tests/test_ghc_decisions.py
    ——离线单元测试和 HTTP 桩测试。
  • references/configuration.md——配置查找顺序和文件路径。
  • references/troubleshooting.md——仅在
    uv run
    命令失败时阅读。