用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill shared-repo-push-gates命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | shared-repo-push-gates |
| description | Shared-repo push blocked? Know the gates that block you. |
| version | 1.0.0 |
| author | Hermes Cortex (Esther) |
| license | MIT |
| platforms | ["linux","macos"] |
| metadata | {"hermes":{"tags":["git","push","governance","dogfood","concurrent","pii","enforcement"],"related_skills":["change-checklist","survey-before-action","git-deployment-workflow"]}} |
The shared fleet repo enforces commit/push gates. Know how they behave BEFORE pushing — most rejections are environmental (another session's working tree), not a problem with your diff.
~/hermes-cortex (the shared fleet repo)~/.hermes/skills)git diff HEAD --name-only, so a concurrent session's
unstaged/untracked files (e.g. a peer's in-flight script in
ops/scripts/) trip "code changes without docs" + "doctor reports N
failure" and block even a clean docs-only push. The dogfood run it
triggers then fails its own git pull --rebase step on those same
unstaged changes.write_file/skill_manage into the repo or ~/.hermes/skills). A
legitimate public site not on the allowlist gets flagged (2026-08-24: a
doc referencing a new public site was blocked as "non-public server URL
host"). Workaround: reference the site in prose without the scheme, and
use allowlisted hosts (github.com) for real links. Never try to bypass
the gate.adversarial-verifier skill required for commits while any
ops/scripts/ working-tree change exists — even for docs-only commits.
Load the skill, run
python3 ~/.hermes-cortex/scripts/adversarial-verify.py --file <your-staged-files> --level A2 --gate,
then commit.begin_change in a session whose lock was later purged
by restart/cortex-update. Symptom: push blocked with "doctor reports N
failure" + ❌ PENDING cycles, even after dogfood passes. Fix: query
mcp_loop_governance_cycle_query(unreviewed=true), feedback_accept
(or feedback_override) every orphaned PENDING cycle, re-run doctor to
0 fail, then push. The current task's own cycle (lock held) is INFO, not
a blocker.❌ Deploy sync /
❌ <plugin> content). After committing a repo change to a deployed
artifact (plugin, script), run bash ~/.hermes-cortex/scripts/cortex-dogfood.sh --force
(pull → deploy → doctor → verify) BEFORE git push — the gate runs the
doctor itself and will otherwise block.git status --short. Foreign unstaged/untracked files
present → expect the gate to block; plan for a later push.git add <yours>) — never git add -A in a
shared tree.git status --short before debugging your commit.git push origin main succeeds unchanged.