Repository navigation
fix(skills): the git-workflow skill described machinery that does not exist - #429
Conversation
… exist Verified every claim the skill makes about the landing machinery against the actual .github repo and the live repos. Five were false: 1. "on a PASS verdict, feeds the `auto-merge` workflow that merges (squash) and CalVer-tags" — there is no auto-merge workflow. pr-validator.yml enables GitHub's OWN native auto-merge inline (`enablePullRequestAutoMerge`), and the CalVer tag + CHANGELOG are written by the separate tag-on-merge workflow that the merge triggers. The skill's own body already said this correctly, so it contradicted itself. 2. "GitHub branch protection (`enforce_admins`) block it in every repo" — the legacy branch-protection API is not in use anywhere; `repos/<r>/branches/main /protection` returns "Branch not protected" on spec, sdk and charly alike. Protection is a per-repo RULESET (creation + deletion + non_fast_forward + a required `validate / validate` check, with the charly-auto-merge App as the sole bypass actor). branch-protection.sh actively DELETES legacy protection, because it has no bypass slot for the app that writes the CHANGELOG. 3. "the `pre-push-gate` ... is NOT wired under Claude Code" — it is, via .claude/settings.json's PreToolUse hooks. It blocked a push to main in this very session. 4. The required check is named `validate / validate`, not `charly/pr-validator`. The workflow is named charly/pr-validator; the CHECK is `<caller job name> / <called job name>` and both jobs are `validate`. The distinction is load-bearing: it is what a ruleset must require. 5. Every path into the skill corpus still said `plugins/` — that corpus is now `marketplace/`. 37 path corrections across three candies, each verified to resolve. The RUNTIME plugin directory (/usr/lib/charly/plugins/) is a different thing and is deliberately untouched. Also repoints four skill `Source:` paths that the candy de-submodule invalidated (candy/plugin-vm/... -> plugin-vm/candy/plugin-vm/...), and two stale family names (charly-core/charly-build -> core/build). No skill was removed: all 303 have live subjects. What was stale was the paths they cite, not the skills themselves.
Review — PASSHead SHA: Security screen: PASS — docs-only candy skill-content change; no secrets, no exfiltration, no scope mismatch, no weakened guardrails (it corrects the skill's description of the gate to match reality, a strengthening). Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — docs-only candy Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
I audited every claim the
git-workflowskill makes about the landing machinery against theactual
opencharly/.githubrepo and the live repos, rather than trusting the skill.Five were false. A skill that misdescribes the gate is worse than no skill: it is what an
agent reaches for before touching the gate.
auto-mergeworkflow that merges (squash) and CalVer-tags"auto-mergeworkflow.pr-validator.ymlcallsenablePullRequestAutoMergeinline — GitHub's own native auto-merge. The tag and CHANGELOG come from the separatetag-on-mergeworkflow the merge triggers. The skill's own body already said this correctly, so it contradicted itself.enforce_admins) block it in every repo"branch-protection.shdeletes legacy protection where it survives, because it has no bypass slot for the app that writes the CHANGELOG.pre-push-gate… is NOT wired under Claude Code".claude/settings.jsonPreToolUse hooks. It blocked a push tomainduring this session.charly/pr-validatorvalidate / validate.plugins/marketplace/now.The evidence
1 — no auto-merge workflow:
2 — no legacy protection anywhere:
and
scripts/branch-protection.shcarries# the legacy protection blocks the app's changelog write (no bypass) — remove it, withverifyasserting it is absent.3 — the hook is wired here:
4 — the check name, measured off a real run:
This one is load-bearing, not cosmetic: it is the string a ruleset must require, and getting it
wrong deadlocks a repo. It also turned out to be a live defect in the templates —
opencharly/.github#78fixes a dispatcher template whose job naming would producecharly/pr-validator / validateand thus never satisfy the required check.5 — the corpus moved. 37 path corrections across three candies, each verified to resolve:
The runtime plugin directory
/usr/lib/charly/plugins/is a different thing and isdeliberately untouched (a regex with a negative lookbehind, not a blanket replace):
Plus four skill
Source:paths the candy de-submodule invalidated(
candy/plugin-vm/…→plugin-vm/candy/plugin-vm/…, all four verified to exist) and two stalefamily names (
charly-core/charly-build→core/build).No skill was removed
I checked whether any of the 303 skills is obsolete by testing the
Source:paths each onedeclares. Only two failed, and both were de-submodule path drift, not dead subjects — now fixed.
Every skill has a live subject, so deleting any of them would have destroyed working
documentation to satisfy a tidy-up instinct.
How tested
Identical to the control — those are the standalone-scan artifacts, not something this diff adds.
Diff audit — every changed line accounted for, no collateral:
Rulebook compliance
/charly-internals:git-workflowloaded first; this change is that skill.check-context rule was measured off a real check run rather than inferred from YAML.
.githubtemplate defect this audit surfaced is its own PR(
opencharly/.github#78) because it is a different repo, and it is opened, not parked.regenerated corpus is
opencharly/marketplace(paired PR).plugins/→marketplace/sweep; the runtime dir is excluded by constructionand every rewritten path is verified to resolve.
git statuschecked; branch off freshmain; no force-push, no bypass.shows it, and nothing beyond these corrections moved.
"does every claim hold against the live system", which is what is pasted.
Change classification
skill:entity content (documentation source)..github+ live repos + live checkruns,
charly box validateagainst a control, the skill guards, and a diff audit.analysed on a live system— every corrected claim was checked againstthe running system with retained output; no bed applies to a docs-source change.
Paired PRs
opencharly/marketplace— the regenerated corpus (this change's projection).opencharly/.github#78— the dispatcher-template deadlock this audit found.Assisted-by: Claude Code Anthropic Opus 5 (analysed on a live system)