ghc-decisions
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseghc-decisions
ghc-decisions
Opt-in structured rubric classifier for fast , , and
checks ( on native models such as
, with fallback).
predicatechoicescore0 output tokens/v1/decisionsgpt-6-luna-decisions/v1/chat/completions用于快速执行 、 和 检查的选择启用型结构化评分规则分类器(原生 模型(如 )使用 ,并以 作为回退)。
predicatechoicescore/v1/decisionsgpt-6-luna-decisions0 output tokens/v1/chat/completionsGates
门控
- Opt-in only. If neither /
--base-url,--model/GHC_DECISIONS_BASE_URL, norGHC_DECISIONS_MODEL($XDG_CONFIG_HOME/ghc-decisions/config.yaml) is configured,~/.config/ghc-decisions/config.yamlprintsscripts/ghc_decisions.pyand exits{"skipped": true, "reason": "not configured"}when0is passed (or exits--if-configuredon direct required calls). Parent workflows must continue their deterministic verification without failing when this skill is unconfigured or unreachable.2 - 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 (, mutually exclusive
predicate, orchoicewith 2–10 levels) and branch in code rather than asking for multi-hop reasoning.score
- 仅限主动启用。 如果未配置 /
--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。当此 skill 未配置或无法访问时,父级工作流必须继续执行其确定性验证,不得因此失败。2 - 仅提供分流建议,绝不作为唯一验收依据。 决策模型不会运行命令、检查文件系统或证明某项声明。始终应独立重新推导数字并运行确定性的仓库门控。
- 原子化标准。 自定义问题应保持单步骤(、互斥的
predicate,或包含 2–10 个等级的choice),并在代码中分支处理,而不是要求模型进行多跳推理。score
Usage
使用方法
Run via . Only if a script command fails (for
example is not found), read references/troubleshooting.md.
scripts/ghc_decisions.pyuv runuvbash
S=skills/productivity/ghc-decisions/scripts/ghc_decisions.py # or ~/.agents/skills/ghc-decisions/scripts/ghc_decisions.py通过 运行 。仅当脚本命令失败时(例如未找到 ),阅读 references/troubleshooting.md。
uv runscripts/ghc_decisions.pyuvbash
S=skills/productivity/ghc-decisions/scripts/ghc_decisions.py # or ~/.agents/skills/ghc-decisions/scripts/ghc_decisions.pyList 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":"..."}'
--base-url http://127.0.0.1:4141/v1
--model gpt-6-luna-decisions
--api decisions
--state '{"finding":"...", "evidence":"...", "candidate":"..."}'
undefineduv 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":"..."}'
--base-url http://127.0.0.1:4141/v1
--model gpt-6-luna-decisions
--api decisions
--state '{"finding":"...", "evidence":"...", "candidate":"..."}'
undefinedBundled Presets
内置预设
| Preset | Questions ( | Primary parent / use case |
|---|---|---|
| | |
| | CI / test / scheduled-job failure log triage |
| | PreToolUse / permission hook shadow-mode risk classification |
| | |
| | |
| | |
| | |
| | |
| | |
| 预设 | 问题( | 主要父级流程/用例 |
|---|---|---|
| | |
| | CI/测试/定时任务失败日志分流 |
| | PreToolUse/权限 hook 影子模式风险分类 |
| | |
| | |
| | |
| | |
| | |
| | |
Configuration
配置
Resolved through (see references/configuration.md):
scripts/skill_config.py| Key | Flag | Environment variable | Default |
|---|---|---|---|
| | | none (opt-in; skips under |
| | | none (opt-in; skips under |
| | | |
| | | |
| — | | |
通过 解析(参见 references/configuration.md):
scripts/skill_config.py| 键 | 标志 | 环境变量 | 默认值 |
|---|---|---|---|
| | | 无(需主动启用;在 |
| | | 无(需主动启用;在 |
| | | |
| | | |
| — | | |
Additional resources
其他资源
- — stdlib-only CLI and library for
scripts/ghc_decisions.pyand/v1/decisions./v1/chat/completions - — the 9 bundled rubric presets.
scripts/rubrics.json - — vendored configuration resolver.
scripts/skill_config.py - — offline unit and HTTP-stub tests.
scripts/tests/test_ghc_decisions.py - references/configuration.md — configuration lookup order and file path.
- references/troubleshooting.md — read only when a command fails.
uv run
- ——仅使用标准库的 CLI 和库,支持
scripts/ghc_decisions.py与/v1/decisions。/v1/chat/completions - ——9 个内置评分规则预设。
scripts/rubrics.json - ——内置配置解析器。
scripts/skill_config.py - ——离线单元测试和 HTTP 桩测试。
scripts/tests/test_ghc_decisions.py - references/configuration.md——配置查找顺序和文件路径。
- references/troubleshooting.md——仅在 命令失败时阅读。
uv run