Repository navigation
feat: Resync standalone skill dirs onto the modular engine - #26
Conversation
clawgenti
left a comment
There was a problem hiding this comment.
Summary
This PR adds a --skills mode to vendor-engine.sh and resyncs the four standalone link-health/dep-bump skill dirs onto the modular engine. I checked every vendored file against rossoctl/automation@c138e5f (on automation main), and all 33 are byte-identical. Every $_LIB_DIR/$SCRIPT_DIR sibling those scripts source exists in its own dir. The SKILL.md claims (no --org, ~/.repoman/repos.json fails loud via repoman_load_enrolled) match the vendored scripts. tests/test-vendor-engine.sh passes on the PR head.
One blocker: the branch conflicts with main. Since this branch's base, main has added a fail-closed non-git-source check and a dirty-source guard (--allow-dirty, repoman#20) to vendor-engine.sh, with tests. Resolving the conflict needs more than keeping both sides: those guards must also cover --skills mode. It stamps the same source HEAD SHA, so a dirty source would leave four _vendor.json files pointing at a commit that does not contain the copied bytes. CLAUDE.md's "per-program copies are known-stale (#5)" bullet on main should also be updated, since this PR closes #5. Two nits and one suggestion are inline. The header comment at line 6-7 ("must never touch a standalone skill's scripts/") now contradicts the new mode. It is outside the diff, so it is noted on the usage line instead.
Author: rubambiza (CONTRIBUTOR — returning external; the script, tests and SKILL.md changes were read in full; vendored files were verified by byte comparison against their source commit)
Areas reviewed: Shell, Docs, Security (vendored-code provenance)
Agent/IDE config (.claude/.vscode): none
Commits: 7 commits, all signed-off: yes
CI status: passing (DCO only; no other checks run on this repo)
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
| [ -n "$SRC" ] || { echo "ERROR: --source is required" >&2; exit 2; } | ||
| if [ -n "$DEST" ] && [ -n "$SKILLS" ]; then | ||
| echo "ERROR: --dest and --skills are mutually exclusive" >&2; exit 2 | ||
| fi |
There was a problem hiding this comment.
must-fix: this conflicts with main, which now has the non-git fail-closed check and the dirty-source guard (--allow-dirty) right after argument parsing. When rebasing, keep both guards ahead of the mode branch so --skills gets them too. As written, --skills would stamp source_sha from a dirty or non-git source. The --skills tests should gain the matching dirty/non-git cases.
There was a problem hiding this comment.
Fixed by rebasing onto current main in 9b7db67. The non-git fail-closed check and the dirty-source guard (--allow-dirty, repoman#20) now sit right after argument parsing, ahead of the mode branch, so --skills is covered by both — a dirty or non-git source is rejected before any skill dir is written. Added matching --skills-path coverage to the test: the existing dirty/non-git cases run before the --skills block (which commits its one added file so $SRC stays clean), and a new case asserts --skills with no value is rejected rather than hanging.
| @@ -9,15 +9,20 @@ set -uo pipefail | |||
| # | |||
| # vendor-engine.sh --source <automation-repo> --dest <repoman-scripts-dir> | |||
There was a problem hiding this comment.
suggestion: the usage line doesn't show --skills <dir>. Also, lines 3-7 still say this "can only ever populate the repoman plugin — it must never touch a standalone skill's scripts/". That is no longer true. Restate the agent-skills#51 intent as "only the dirs/files named in the explicit manifests".
There was a problem hiding this comment.
Fixed in 9b7db67. The header now documents both --dest and --skills usage lines, and the lines 3-7 claim is restated: rather than "can only ever populate the repoman plugin / never touch a standalone skill's scripts/", it now says the explicit manifests mean the run can only write the dirs and files they name (MANIFEST/EXTRA_FILES for plugin, SKILL_SET/SKILL_LIB for standalone) — preserving the agent-skills#51 no-unlisted-path intent now that standalone dirs are a deliberate target.
| case "$1" in | ||
| --source) SRC="${2:-}"; shift 2 ;; | ||
| --dest) DEST="${2:-}"; shift 2 ;; | ||
| --skills) SKILLS="${2:-}"; shift 2 ;; |
There was a problem hiding this comment.
suggestion: if --skills is the last argument with no value, shift 2 fails without shifting, so the while loop never ends. I reproduced this: vendor-engine.sh --source /x --skills hangs. --source/--dest already had this problem, but a new flag is a good time to fix it, e.g. [ $# -ge 2 ] || { echo "ERROR: $1 needs a value" >&2; exit 2; }.
There was a problem hiding this comment.
Fixed in 9b7db67. Added a needs_value guard applied to all three value-taking flags (--source, --dest, --skills): a flag with no following argument now exits 2 with "X needs a value" instead of shift 2 failing and the while loop spinning. A test asserts --skills with no value is rejected (no hang).
| # --- Standalone-skill mode: resync each standalone skill dir. --- | ||
| # Resolve every skill's source file list first, then pre-validate the WHOLE | ||
| # union, so a source missing for any skill fails loud with no dir half-vendored. | ||
| # src_basename() maps a SKILL_SET token to the source basename under scripts/: |
There was a problem hiding this comment.
nit: the comment says src_basename(), but the function defined below is resolve_basename().
There was a problem hiding this comment.
Fixed in de7aa7e. The comment now reads resolve_basename(), matching the function name.
Design for rossoctl#5: extend vendor-engine.sh with a --skills mode that resyncs the four standalone link-health/dep-bump skill dirs onto the modular engine from an automation --source, plus the SKILL.md invocation fix and the ~/.repoman prerequisites note. Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
Add a --skills <dir> flag alongside --dest, make the two mutually exclusive, and require exactly one. The execution branch for --skills lands next; this commit only teaches the parser the flag and the usage rules, with tests asserting exclusivity and that --skills is recognized (repoman#5). Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
--skills <dir> resyncs each standalone link-health/dep-bump skill dir with the six modular lib files plus that skill's own scanner/fixer and its co-located extras, from an automation --source. Driven by an explicit per-skill manifest (never a glob); pre-validates the whole union before copying so a missing source leaves no dir half-vendored; writes a per-dir _vendor.json stamp. Factors the provenance stamp into a shared helper reused by both modes (repoman#5). Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
Regression guard: a source missing for one skill must fail loud with no dir half-vendored. Passes against the existing whole-union pre-validate (no script change needed); locks the invariant so a later refactor that copies before validating would be caught (repoman#5). Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
Run vendor-engine.sh --skills against automation c138e5f to replace each standalone link-health/dep-bump skill dir's monolithic program-lib.sh with the modular aggregator + its five sibling modules, and refresh the scanners/fixers to the canonical engine copies. link-health-scanner also gains extract-broken-links.sh and link-check.py. Each dir carries a _vendor.json provenance stamp. Dogfood: all four source the modular lib and expose the functions their scripts call; shellcheck clean (repoman#5). Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
The four standalone skills documented a removed invocation model: the --org flag (dropped from the engine) and a manual clone-every-org-repo step. Correct every example to the current model (no --org; REPOS_DIR still required for the local clones) and add a prerequisites note that each skill reads the enrolled set from ~/.repoman/repos.json via /repoman setup and fails loud if it is missing, so an agent can flag missing setup to the user (repoman#5). Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
Surface a mkdir failure directly rather than letting it surface only via the following cp (misattributed). Matches the repo's fail-loud convention for the other fallible calls in this branch (repoman#5). Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
This PR closes repoman#5, so the standalone skills/<program>/scripts/ copies are no longer known-stale: they are vendored output refreshed via vendor-engine.sh --skills, like the plugin dir. Update the CLAUDE.md bullet to say so and point at the resync command. Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
3d13847 to
9551c54
Compare
|
The force push was a rebase on main to resolve conflicts. |
clawgenti
left a comment
There was a problem hiding this comment.
Summary
Re-review at 9551c54. All four findings from the previous review are fixed. The branch is rebased onto main. The non-git and dirty-source guards now run before the mode branch, so --skills is covered. needs_value stops the missing-value hang for all three flags. The header and usage text now describe both modes, and the resolve_basename() comment is corrected. CLAUDE.md now treats the standalone dirs as vendored output, replacing the stale #5 bullet.
I re-checked all 30 files listed in the four _vendor.json stamps against rossoctl/automation@c138e5f (on automation main): all are byte-identical, no dir holds an unstamped script, and every $SCRIPT_DIR/$_LIB_DIR sibling those scripts source exists in its own dir. tests/test-vendor-engine.sh passes on the PR head, and so does CI (DCO, shellcheck, PR title). One suggestion is inline. All checks pass. Ready for human review.
Author: rubambiza (CONTRIBUTOR — returning external; script, tests, CLAUDE.md and the four SKILL.md diffs read in full; vendored files verified by byte comparison against their source commit)
Areas reviewed: Shell, Docs, Security (vendored-code provenance)
Agent/IDE config (.claude/.vscode): none
Commits: 8 commits, all signed-off: yes
CI status: passing
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
| echo "FAIL: non-git source accepted with --allow-dirty"; fail=1 | ||
| else echo "PASS: non-git source rejected even with --allow-dirty"; fi | ||
|
|
||
| # --- Standalone --skills mode: each dir gets exactly its manifest set --- |
There was a problem hiding this comment.
suggestion: the reply on the provenance thread says --skills gained matching dirty/non-git coverage. The dirty and non-git cases above still only call --dest, though. --skills is protected today only because the guards sit before the mode branch. A future refactor that moves a guard into the --dest branch would pass this suite. Two short asserts would lock it in: --skills with a dirty $SRC and with $NOGIT are both rejected, and neither writes a _vendor.json.
There was a problem hiding this comment.
Good catch — you're right that my earlier reply overstated it; the dirty/non-git cases only exercised --dest. Added in 0fa3ec7: two --skills asserts that a dirty $SRC and a non-git $NOGIT are both rejected and neither writes anything to the dest. Now a future refactor that moves a guard into the --dest branch would fail this suite instead of silently exposing --skills.
The dirty and non-git guard tests only exercised --dest. --skills is protected only because the guards sit before the mode branch, so a future refactor moving a guard into --dest could expose --skills silently. Add asserts that --skills rejects a dirty and a non-git source and writes nothing in either case (repoman#5). Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
clawgenti
left a comment
There was a problem hiding this comment.
Clawgenti Code Review
Summary
No blocking issues. I checked every vendored file in the four skill dirs against automation@c138e5f, and all 30 are byte-identical. Each _vendor.json files list matches its dir. Each script's runtime siblings (program-lib.sh plus its five modules, link-check.py and extract-broken-links.sh for the link-health scanner) are co-located. The --skills branch in vendor-engine.sh pre-validates the whole union before copying anything, keeps the dirty-source and non-git guards, and writes only the paths in its manifest. Two documentation suggestions are below.
Out-of-diff suggestion — README.md "Vendoring the engine": this section still says the script "cannot touch the standalone skills' own scripts/" and documents only --dest. After this PR that is no longer true, and the updated CLAUDE.md sends contributors to this README section. Consider documenting --skills skills there and dropping the "cannot touch" claim.
Author: rubambiza (CONTRIBUTOR — returning external; elevated scrutiny applied, all hand-written files read in full)
Areas reviewed: Shell, Tests, Docs, Python (vendored, provenance-checked only), Security
Agent/IDE config (.claude/.vscode): none
Commits: 9 commits, all signed-off: yes
CI status: passing (DCO, shellcheck, pr-title-check)
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
| export REPOS_DIR=~/kagenti # directory containing cloned repos | ||
| ``` | ||
|
|
||
| Clone each enrolled repo under `REPOS_DIR` if you don't have them yet. |
There was a problem hiding this comment.
suggestion: Consider stating the clone layout the engine expects. The scripts look for $REPOS_DIR/<owner>/<name> (enrolled_clone_dirs in org.sh checks [ -d "$REPOS_DIR/$full/.git" ]). An enrolled repo that is missing, or cloned flat at $REPOS_DIR/<name> the way the removed instructions did, is skipped silently, so the scan can report zero repos without an error. For example: gh repo clone <owner>/<name> "$REPOS_DIR/<owner>/<name>". The same applies to dep-bump-fixer/SKILL.md (line 58) and link-health-fixer/SKILL.md (line 53).
There was a problem hiding this comment.
Fixed in 7982ca7. You're right — enrolled_clone_dirs checks $REPOS_DIR/<owner>/<name>/.git and silently skips anything else, so a flat $REPOS_DIR/<name> clone (the removed instructions' layout) would make the scan report zero repos with no error. All four standalone SKILL.md files now state the required $REPOS_DIR/<owner>/<name> layout, show gh repo clone <owner>/<name> "$REPOS_DIR/<owner>/<name>", and warn that a flat clone is skipped silently.
| ``` | ||
|
|
||
| This is required. The script will exit with an error if `REPOS_DIR` is not set. | ||
| Clone each enrolled repo under `REPOS_DIR` if you don't have them yet. **Always ask |
There was a problem hiding this comment.
suggestion: Same as on dep-bump-scanner/SKILL.md: say that clones must live at $REPOS_DIR/<owner>/<name>. A flat $REPOS_DIR/<name> clone (the old instructions' layout) is skipped silently by enrolled_clone_dirs.
There was a problem hiding this comment.
Fixed in 7982ca7 — the $REPOS_DIR/<owner>/<name> layout (and the silent-skip warning for a flat $REPOS_DIR/<name> clone) is now stated in all four standalone SKILL.md files, including this one.
The README's 'Vendoring the engine' section only documented --dest and still claimed the script 'cannot touch the standalone skills' scripts/'. CLAUDE.md now points contributors here for the --skills resync, so that claim contradicted it. Document both modes, their mutual exclusivity, and that each writes only the paths its explicit manifest names. Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
clawgenti
left a comment
There was a problem hiding this comment.
Clawgenti Code Review
Summary
No blocking issues. The only change since my last review (0fa3ec7 → 93bf342) is README.md. The "Vendoring the engine" section now documents both --dest and --skills, drops the old "cannot touch the standalone skills" claim, and lists the standalone dirs as generated output. I checked the new text against scripts/vendor-engine.sh at HEAD. Mutual exclusivity, the explicit manifests (MANIFEST/SKILL_SET/SKILL_LIB), pre-validation, the dirty-source/--allow-dirty guard, and the per-dir _vendor.json stamp all match. This resolves my earlier out-of-diff suggestion. One earlier suggestion is still open with no reply: the dep-bump-scanner and link-health-scanner SKILL.md files should say that clones must live at $REPOS_DIR/<owner>/<name>. It is not blocking.
Author: rubambiza (CONTRIBUTOR — returning external; elevated scrutiny applied)
Areas reviewed: Docs, Shell (cross-check), Security
Agent/IDE config (.claude/.vscode): none
Commits: 10 commits, all signed-off: yes
CI status: passing (DCO, shellcheck, pr-title-check)
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
enrolled_clone_dirs (org.sh) checks $REPOS_DIR/<owner>/<name>/.git and silently skips anything else, so a flat $REPOS_DIR/<name> clone — the layout the removed instructions used — makes the scan report zero repos with no error. State the required layout in all four standalone skills (repoman#5). Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
|
On the out-of-diff README suggestion (the "Vendoring the engine" section still said the script "cannot touch the standalone skills' |
clawgenti
left a comment
There was a problem hiding this comment.
Clawgenti Code Review
Summary
No blocking issues. The only change since my last review (93bf342 → 7982ca7) is a docs commit to the four standalone SKILL.md files. It states that clones must live at $REPOS_DIR/<owner>/<name>, which resolves my earlier open suggestion. I checked this against the vendored engine at HEAD. enrolled_clone_dirs (org.sh) only emits entries where $REPOS_DIR/<owner>/<name>/.git exists, so a flat clone really is skipped with no error. Both fixers also build $REPOS_DIR/<owner>/<name> paths (for example link-health-fixer.sh line 263). The gh repo clone example matches that layout. All checks pass. Ready for human review.
Author: rubambiza (CONTRIBUTOR — returning external; elevated scrutiny applied, new commit read in full and cross-checked against the vendored scripts)
Areas reviewed: Docs, Shell (cross-check), Security
Agent/IDE config (.claude/.vscode): none
Commits: 11 commits, all signed-off: yes
CI status: passing (DCO, shellcheck, pr-title-check)
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
jimcadden
left a comment
There was a problem hiding this comment.
Review: resync standalone skill dirs onto the modular engine
Verdict: request changes — one must-fix (documented REPOS_DIR setup is inert), plus a second copy of the same inaccuracy in the design spec.
I re-ran the vendoring rather than trusting the description.
Verified
- All 30 stamped files are byte-identical to
automation@c138e5f(== automationmainHEAD; ancestor-checked). - Re-running
vendor-engine.sh --skillson a scratch copy of this branch reproduces all four dirs exactly (onlyvendored_atdiffers) → the dirs are genuine tool output, not hand-edited. - Each dir's file list matches its
_vendor.jsonexactly; the spec's "15 → 29 functions, superset" claim is literally true (old monolith's 15 functions ⊂ new modular lib's 29). - The vendored scripts source the modular lib and run from their new home;
skill_attribution link-health-scannernow resolves toskills/link-health-scannerin this repo and the footer URL returns HTTP 200. - shellcheck clean on the tooling and all four dirs; test suite 25/25; DCO 11/11; CI 3/3; no
.claude/or.vscode/paths.
Must-fix
export REPOS_DIR= in the four SKILL.md files does not do what it says — see the inline comment. Net risk: someone who follows the doc exactly gets a clean, zero-repo scan.
Suggestions
dep-bump-fixer/SKILL.md:53runs a scanner that is deliberately not co-located in that skill dir.vendor-engine.sh:176— the copy loop never prunes dropped manifest files.tests/test-vendor-engine.shis invoked by no CI workflow, so the 24 new assertions only run by hand.
Out of diff, non-blocking
skills/repoman/scripts/_vendor.json still stamps fa61909, and 10 of its scripts differ from c138e5f (including link-health-scanner.sh, ~170 lines) — after this merge the repo ships two engine versions. Worth re-running --dest here or before 0.1.2, separately from this PR.
Generated by RepoMan github-pr-review@9672454 (https://github.com/rossoctl/agent-skills/blob/96724547c162978f58d845b9a8331a679bf39444/skills/github-pr-review/SKILL.md).
| ``` | ||
|
|
||
| This is required. The script will exit with an error if `REPOS_DIR` is not set. | ||
| Clone each enrolled repo under `REPOS_DIR` at the `<owner>/<name>` path the engine |
There was a problem hiding this comment.
must-fix — export REPOS_DIR=~/my-org is inert, so this prerequisite never does what it says.
All four scripts call repoman_config early, and repoman_config overwrites REPOS_DIR from ~/.repoman/config.json:repos_dir (org.sh:113-122). Measured: config.json with repos_dir=/tmp/x plus REPOS_DIR=/tmp/y in the environment → the scanner prints Repos dir: /tmp/x.
Worse, the ordering undercuts the note below it: with no config.json at all the script exits ERROR: RepoMan config not found before repos.json is ever read, so "fails loud when repos.json is missing" is the second error a new user hits, not the first.
Net effect for a doc-following user: they export REPOS_DIR, clone repos there, run the scanner, and it exits 0 having scanned zero repos (enrolled_clone_dirs skips clones that are not under the configured repos_dir).
Either drop the export line and point at repoman-setup.sh / ~/.repoman/config.json:repos_dir as the single source of truth, or add one sentence that the config file wins over the environment variable. Same text is in the other three SKILL.md files.
There was a problem hiding this comment.
Fixed in 910fb3a. You're right — I confirmed repoman_config (org.sh) unconditionally sets REPOS_DIR from ~/.repoman/config.json:repos_dir, so the export REPOS_DIR= was inert and a doc-follower would get a clean zero-repo scan. All four SKILL.md files now drop the env export and point at ~/.repoman/config.json:repos_dir (set via /repoman setup or repoman-setup.sh init-config --repos-dir) as the source of truth, note that the config value overwrites any REPOS_DIR in the environment, and call out that a missing config.json fails loud with ERROR: RepoMan config not found first. The <repos_dir>/<owner>/<name> clone-layout warning stays.
|
|
||
| ```bash | ||
| REPOS_DIR=~/my-org bash scripts/dep-bump-scanner.sh --org <org> | ||
| REPOS_DIR=~/my-org bash scripts/dep-bump-scanner.sh |
There was a problem hiding this comment.
suggestion — this command cannot run from the position the doc puts it in: scripts/dep-bump-scanner.sh is deliberately not co-located in skills/dep-bump-fixer/scripts/ (it lives in skills/dep-bump-scanner/scripts/), so relative to the fixer's own directory there is no such file.
Point at the scanner skill's path explicitly, e.g. bash ../dep-bump-scanner/scripts/dep-bump-scanner.sh, or note that the scanner must be run from its own skill dir.
There was a problem hiding this comment.
Fixed in 910fb3a. The example now runs the scanner from its own skill dir — bash ../dep-bump-scanner/scripts/dep-bump-scanner.sh — since it's deliberately not co-located here.
| for entry in $SKILL_SET; do | ||
| skill_dir="${entry%%:*}"; csv="${entry#*:}" | ||
| dest="$SKILLS/$skill_dir/scripts" | ||
| if ! mkdir -p "$dest"; then |
There was a problem hiding this comment.
suggestion — the --skills copy loop only ever copies: it creates $dest, copies $SKILL_LIB and the per-skill set, and stamps the manifest, but never removes files that are no longer listed.
If a file is later dropped from SKILL_SET/SKILL_LIB (a rename, or an extra that stops being an extra), the old copy stays behind in $dest, is still sourceable by the remaining scripts, and is not in _vendor.json — so the tree silently drifts from what the tool claims to have produced, and the "re-running reproduces the tree exactly" property this PR demonstrates no longer holds.
One find "$dest" -maxdepth 1 -type f -name '*.sh' diffed against the intended name set before the copy loop would close it (and would also make the byte-identical check self-enforcing).
There was a problem hiding this comment.
Fixed in 71c6db6. After copying, the --skills loop now prunes any *.sh/*.py in the dest not in the manifest's intended set (keeping _vendor.json), so a dropped/renamed file can't linger and drift the tree from _vendor.json. Added a regression test that plants a stale script and a stale extra, re-vendors, and asserts both are removed while a manifest file and _vendor.json remain — which also makes the "re-running reproduces the tree exactly" property self-enforcing.
| echo "FAIL: non-git source accepted with --allow-dirty"; fail=1 | ||
| else echo "PASS: non-git source rejected even with --allow-dirty"; fi | ||
|
|
||
| # --- Standalone --skills mode: each dir gets exactly its manifest set --- |
There was a problem hiding this comment.
suggestion — this suite, including the 24 new --skills assertions added here, is run by no CI workflow: shellcheck.yml only lints it, and repoman has no test-running workflow at all. So the strongest correctness evidence in this PR only executes when someone remembers to type bash tests/test-vendor-engine.sh.
Adding it to a workflow (or to whatever runs the other tests/*.sh) would keep the invariant honest on the next re-vendor.
There was a problem hiding this comment.
Fixed in e2d2114. Added a tests job to the workflow that runs bash tests/test-vendor-engine.sh on every PR and push, so the suite (including the new --skills assertions) actually executes in CI rather than only when run by hand.
| story. The current engine: | ||
|
|
||
| - no longer accepts `--org` (scanners take `--dry-run` and `--issue-limit` only); | ||
| - still requires `REPOS_DIR` (the directory holding the cloned repos); and |
There was a problem hiding this comment.
must-fix (same family as the SKILL.md:59 comment) — "still requires REPOS_DIR" is not accurate as written: the engine reads repos_dir out of ~/.repoman/config.json and overwrites any REPOS_DIR in the environment. Environment-only "set REPOS_DIR" does not work, so the spec documents a setup that scans zero repos.
Phrase it as the config key (~/.repoman/config.json:repos_dir, set by repoman-setup.sh), with the environment variable as an override only if that is actually the intended precedence.
There was a problem hiding this comment.
Fixed in 910fb3a. The spec's "still requires REPOS_DIR" bullet is corrected: the engine reads the repos dir from ~/.repoman/config.json:repos_dir (set by repoman-setup.sh init-config --repos-dir), repoman_config overwrites any environment REPOS_DIR, so an environment-only export REPOS_DIR= is inert, and a missing config.json fails loud. The deliverable bullet is updated to match.
repoman_config overwrites $REPOS_DIR from ~/.repoman/config.json:repos_dir (org.sh), so the documented 'export REPOS_DIR=' is inert — a doc-following user gets a clean zero-repo scan. Across the four SKILL.md files and the design spec, point at ~/.repoman/config.json:repos_dir (set by repoman-setup.sh init-config --repos-dir) as the source of truth, note the config-wins-over-env precedence and the 'config not found' hard failure, and keep the <repos_dir>/<owner>/<name> clone layout. Also fix the dep-bump-fixer scanner example to ../dep-bump-scanner/scripts/ (not co-located). Jim rossoctl#26 must-fix. Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
The --skills copy loop only ever copied, so a file dropped from SKILL_SET/SKILL_LIB (a rename, or an extra that stops being one) would linger in the dest — still sourceable, absent from _vendor.json — and the 're-running reproduces the tree exactly' guarantee would silently break. After copying, prune any *.sh/*.py in the dest not in the manifest's intended set (keeping _vendor.json). Add a regression test planting a stale script and extra and asserting both are removed on re-vendor. Jim rossoctl#26. Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
The suite (including the 24 --skills assertions added here) was only shellcheck-linted, never executed — repoman had no test-running workflow, so the strongest correctness evidence ran only by hand. Add a tests job that runs bash tests/test-vendor-engine.sh on every PR/push. Jim rossoctl#26. Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
|
On the out-of-diff note (plugin |
|
Human Review: the stand-alone skills are a useful feature of RepoMan as they allow LLM chat-based one-off deployments of RM programs. Perhaps even scriptable RM program calls in external programs. This should be reflected as a feature in the RepoMan documentation, and a valid option of installation in the onboarding instructions. |
|
My requested change is to update the docs and installation instructions to include the stand-alone skills |
Jim's human-review request on rossoctl#26: surface the standalone skills in the README. Add an Installation subsection for installing a single program plugin (github-pr-review@rossoctl-repoman etc.) without the full bundle, and reframe the Programs note as a named feature with the rationale he gave — LLM chat-based one-off program runs and scriptable RM program calls from external tooling. Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
|
Done in 21e7068. Added the standalone skills to the docs and onboarding:
Let me know if you'd like this reflected anywhere beyond the README (e.g. a dedicated onboarding doc). |
clawgenti
left a comment
There was a problem hiding this comment.
Summary
Solid resync. All 32 vendored files in the four standalone scripts/ dirs are byte-identical to rossoctl/automation@c138e5f. Each _vendor.json names that SHA and the right file set, and every sibling the scripts source (program-lib.sh, extract-broken-links.sh, link-check.py) is present in its dir. The new --skills mode pre-validates the whole source union, keeps the dirty-source and non-git guards, and is well covered by tests/test-vendor-engine.sh (all cases pass on head; CI tests job is green). There are no blockers. I left two suggestions where the docs say more than the code does.
One more nit sits outside the diff, so it isn't inline: skills/link-health-{scanner,fixer}/SKILL.md:65 still says the REPORTS_DIR default is ./reports. The resynced scripts default to $HOME/reports/link-health.
Author: rubambiza (CONTRIBUTOR — returning external)
Areas reviewed: Shell, CI/GitHub Actions, Docs, vendored engine provenance
Agent/IDE config (.claude/.vscode): none
Commits: 15 commits, all signed-off: yes
CI status: passing (DCO, shellcheck, tests, pr-title-check)
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
| done | ||
| # Trim trailing newline; this is the exact set the manifest produced. | ||
| intended="${files_nl%$'\n'}" | ||
| # Prune any previously-vendored script this manifest no longer lists, so the |
There was a problem hiding this comment.
suggestion: This prune deletes any *.sh/*.py in the skill's scripts/ dir that the manifest doesn't list, not only files a previous vendor run wrote. That contradicts the header (lines 8–10: "can only ever write the dirs and files named in … SKILL_SET/SKILL_LIB") and README.md:152 ("only ever writes the paths its manifests name"). A deletion is a write to an unlisted path. If someone adds a helper script to a standalone skill dir, the next --skills run will remove it silently.
Suggested fix: either limit pruning to the basenames in the existing _vendor.json .files ("previously vendored", which is what the comment already says), or reword the header and README to say the mode also deletes unlisted scripts in the target dirs.
| (for example a one-off PR review) without the full RepoMan setup. Run `/plugin` after | ||
| adding the marketplace to browse the authoritative list. | ||
| Every program also works as a **standalone skill** — usable on its own, without the | ||
| `/repoman` entrypoint or multi-repo enrollment. This supports LLM chat-based one-off |
There was a problem hiding this comment.
suggestion: This says every program works standalone "without the /repoman entrypoint or multi-repo enrollment" (line 52 says the same). But the four SKILL.md files this PR rewrites now say the link-health/dep-bump scanners and fixers fail loud without ~/.repoman/repos.json and ~/.repoman/config.json, and the vendored org.sh (repoman_config, repos.json reader) confirms it. Suggested fix: qualify the claim, e.g. note that link-health and dep-bump still need the enrolled set from /repoman setup (or repoman-setup.sh).
clawgenti
left a comment
There was a problem hiding this comment.
Review-state marker for the review above (left out of it by mistake; no new findings).
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
I like this idea a lot! It's almost like a |
jimcadden
left a comment
There was a problem hiding this comment.
Re-review at 21e7068
I re-ran everything at this head rather than diffing from the last one. The resync itself still holds up: all 32 files named in the four _vendor.json stamps are byte-identical to rossoctl/automation@c138e5f, the dirs equal their stamps exactly, and bash tests/test-vendor-engine.sh is green (now in CI — nice). Last round's two must-fixes (inert REPOS_DIR guidance, dep-bump-fixer scanner path) are fixed and verified.
Two things still block, one of them introduced by the prune commit.
Must-fix
-
--skillsnow deletes files it never wrote. The new prune loop removes every*.sh/*.pyin a skill dir that is not in the current manifest, not just files a previous vendor run wrote. Reproduced: I droppedmy-own-helper.shandlocal-tool.pyintoskills/link-health-scanner/scripts/, ran--skills, and both were deleted with exit 0 and no mention in the output. That contradicts the script's own header (lines 8-10: "no unlisted path is touched") andREADME.md:152. I'd grade this must-fix rather than a suggestion: it is silent destruction of user files in a directory the tool promises to only write manifests into. Fix as clawgenti suggested — read the existing_vendor.json.filesbefore copying and only prune basenames recorded there — or, if the unconditional prune is intended, reword the header and README and print what was pruned. -
repoman-setup.sh init-config --repos-dir <path>cannot succeed as documented.init-configalso requires--fork-owner(repoman-setup.sh:113usage,:153check), so the command the four SKILL.md files and the spec now give the reader exits 1 withERROR: init-config: --fork-owner is required and must be non-empty.and writes nothing — the user is then in the "config not found" state the same paragraph warns about. (It also never creates--repos-dir; it must already exist.) The correct form is already inskills/repoman/SKILL.md:255. Applies atlink-health-scanner:52,link-health-fixer:54,dep-bump-scanner:51,dep-bump-fixer:61andspec:122.
Suggestion
README.md:49says to swapgithub-pr-reviewfor "any program name from the Programs table", but two table names are not marketplace plugin ids:pr-review→github-pr-review,weekly-report→github-weekly-report. The example on the line above already uses a non-table name, which reads as a contradiction. Either say "the plugin name from/plugin" or map the two.
Already covered elsewhere (no duplicate inline)
- I agree with clawgenti's
README.mdfinding: "without the/repomanentrypoint or multi-repo enrollment" (:52,:71) is false for link-health, dep-bump, repo-sync and automation-health. Measured: clean$HOME→ERROR: RepoMan config not found; config present but norepos.json→ERROR: RepoMan repos file not found. Worth folding into the same README pass.
Out of diff (non-blocking)
- Report defaults, unanchorable here:
link-health-scanner:65/link-health-fixer:65say./reports,dep-bump-scanner:63says./reports/dep-bump; the vendored scripts default to$HOME/reports/link-health(scanner:55, fixer:14) and$HOME/reports/dep-bump(scanner:69). skills/repoman/scripts/_vendor.jsonstill pinsfa61909; 10 of its scripts differ fromc138e5f(link-health-scanner.shby 170 lines), so the repo ships two engine versions. Fine as a follow-up, but a--destrun before 0.1.2 keeps the two published plugins on one engine.
Author: rubambiza (MEMBER — maintainer)
Areas reviewed: Shell (vendor tooling + vendored provenance), Tests, CI, Docs, Security
Agent/IDE config (.claude/.vscode): none
Commits: 15, all signed-off: yes
CI status: passing (DCO, shellcheck, tests, pr-title)
Generated by RepoMan github-pr-review@9672454 (https://github.com/rossoctl/agent-skills/blob/96724547c162978f58d845b9a8331a679bf39444/skills/github-pr-review/SKILL.md).
| # dir cannot drift from _vendor.json (a dropped/renamed file would otherwise | ||
| # linger, still sourceable, defeating the "re-running reproduces the tree" | ||
| # guarantee). Only vendored script types are pruned; _vendor.json is kept. | ||
| for existing in "$dest"/*.sh "$dest"/*.py; do |
There was a problem hiding this comment.
must-fix — this prune deletes files the tool never wrote. Reproduced at this head: I planted my-own-helper.sh and local-tool.py in skills/link-health-scanner/scripts/, ran vendor-engine.sh --skills skills, and both were removed with exit 0 and no message.
It contradicts the contract stated at the top of this file (lines 8-10: "the run can only ever write the dirs and files named in … SKILL_SET/SKILL_LIB — … no unlisted path is touched") and README.md:152 ("the script only ever writes the paths its manifests name"). Deleting a file is writing to an unlisted path, and in a directory that may hold hand-written helpers or _meta.* companions a maintainer debugged into place, losing it silently is expensive.
Fix: capture the previous manifest before copying (jq -r '.files[]' "$dest/_vendor.json" when it exists) and prune only names that appear there and are absent from $intended. That keeps the "re-running reproduces the tree" guarantee for vendored files while leaving everything else alone. If unconditional pruning is deliberate, then the header, the README and the run's output all need to say so — and the echo should name what it deleted.
There was a problem hiding this comment.
Fixed in 73d729c. You're right it was silent destruction of unowned files — agreed it's a must-fix. The prune now reads the dir's existing _vendor.json .files before copying and removes only basenames recorded there that the current manifest drops (the files this tool actually wrote); anything never vendored (a hand-added helper) is left alone, so the mode again only removes paths it owns. The regression test now asserts both halves: a dropped previously-vendored file is pruned, and a hand-added file survives. Repro (my-own-helper.sh / local-tool.py) is now preserved.
| ``` | ||
| The scanner reads the local clones from the `repos_dir` configured in | ||
| `~/.repoman/config.json` (set by `/repoman` setup or `repoman-setup.sh init-config | ||
| --repos-dir <path>`). `repoman_config` loads that key and **overwrites any `REPOS_DIR` |
There was a problem hiding this comment.
must-fix — init-config --repos-dir <path> fails as written: --fork-owner is also required (repoman-setup.sh:113 usage, :153 check).
$ repoman-setup.sh init-config --repos-dir ~/repoman/repos
ERROR: init-config: --fork-owner is required and must be non-empty. # rc=1, nothing writtenSo a reader following this line lands in exactly the "config not found" state the previous paragraph warns about. Also worth noting: init-config only mkdir -ps ~/.repoman/ — it never creates --repos-dir, so that path must already exist (see skills/repoman/SKILL.md:255-279, which has the correct invocation and the mkdir -p precondition). Same text at link-health-fixer/SKILL.md:54, dep-bump-scanner/SKILL.md:51, dep-bump-fixer/SKILL.md:61 and docs/specs/2026-11-10-standalone-skill-engine-resync-design.md:122.
There was a problem hiding this comment.
Fixed in 26af612. Good catch — init-config requires --fork-owner too and doesn't create --repos-dir. All four SKILL.md files and the spec now give repoman-setup.sh init-config --repos-dir <path> --fork-owner <owner>, noting both flags are required and that --repos-dir must already exist.
| /plugin install github-pr-review@rossoctl-repoman | ||
| ``` | ||
|
|
||
| Swap `github-pr-review` for any program name from the [Programs](#programs) table |
There was a problem hiding this comment.
suggestion — "any program name from the Programs table" doesn't hold for two rows: the table lists pr-review and weekly-report, but the marketplace plugin ids are github-pr-review and github-weekly-report. The example two lines above uses github-pr-review, which is not a table name, so the section contradicts itself. Suggest "the plugin name as listed by /plugin" (or name the mapping inline).
There was a problem hiding this comment.
Fixed in 26af612. The line no longer says "any program name from the Programs table" — it now says to use the plugin id from /plugin, and spells out that the GitHub-facing ones carry the github- prefix (github-pr-review, github-weekly-report) while the table lists them as pr-review / weekly-report, so the example id no longer contradicts the table.
The prune deleted any unlisted *.sh/*.py in a skill dir, which contradicted the header/README claim that the mode only writes the paths its manifests name — a hand-added helper would be removed silently. Prune only files listed in the dir's existing _vendor.json .files that the current manifest drops (the files this tool actually wrote); leave anything it never vendored. Test now asserts a dropped previously-vendored file is pruned AND a hand-added file is kept. Jim rossoctl#26 / clawgenti. Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
README said every program runs standalone 'without multi-repo enrollment', but link-health/dep-bump/repo-sync/automation-health read the enrolled set from ~/.repoman/ and fail loud without it (org.sh). Qualify the install and feature notes accordingly, and correct the single-program install line: the plugin ids are github-pr-review / github-weekly-report, not the pr-review / weekly-report table names. Fix the repoman-setup.sh init-config form in the four SKILL.md files and the spec: it also requires --fork-owner (exits 1 without it) and does not create --repos-dir. Fix the link-health/dep-bump REPORTS_DIR defaults (./reports -> $HOME/reports/<program>) to match the vendored scripts. Jim rossoctl#26 / clawgenti. Full per-program standalone dissection deferred to 0.1.2. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
|
Addressed the two review-body items that didn't have inline threads, both in 26af612:
The broader per-program standalone-vs-setup dissection stays deferred to 0.1.2 per our Slack thread, and the plugin |
clawgenti
left a comment
There was a problem hiding this comment.
Summary
This adds a --skills mode to vendor-engine.sh and resyncs the four standalone link-health/dep-bump skill dirs onto the modular engine (closes #5). I verified the vendored bytes: every file listed in each of the four new _vendor.json stamps is byte-identical to rossoctl/automation@c138e5f:scripts/<file>, and none of those files changed between c138e5f and automation main (4f284d0), so the stamps are not stale. bash tests/test-vendor-engine.sh passes 30/30 on head, and the four entry scripts pass bash -n. The SKILL.md claims I spot-checked hold against the vendored code: REPORTS_DIR defaults to $HOME/reports/<program>, org.sh overwrites REPOS_DIR from config and fails with RepoMan config not found, clones go at $REPOS_DIR/<owner>/<name>, and init-config requires both flags. No must-fix issues. There is one hardening suggestion inline.
Out of scope, for the record: skills/automation-health-dashboard/scripts/ still has unstamped engine copies, and github-api.sh, repoman-requirements.sh and automation-health-dashboard.sh there differ from c138e5f. That is already tracked in #6, and this PR's README wording correctly limits the "vendored output" claim to the four dirs plus the plugin bundle.
Author: rubambiza (CONTRIBUTOR — returning external)
Areas reviewed: Shell, CI/GitHub Actions, Docs (vendored engine copies verified byte-for-byte against source)
Agent/IDE config (.claude/.vscode): none
Commits: 17 commits, all signed-off: yes
CI status: passing (DCO, shellcheck, tests, pr-title-check)
Recommendation: ready for human review. The inline suggestion is non-blocking.
Verified by: byte-compare of the stamped files against automation c138e5f; git diff c138e5f origin/main on the vendored set (empty); the test suite on head; a throwaway prune probe on a scratch copy, deleted afterwards.
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
| [ -n "$pf" ] || continue | ||
| case "$intended" in | ||
| "$pf"|"$pf"$'\n'*|*$'\n'"$pf"|*$'\n'"$pf"$'\n'*) ;; # still listed -> keep | ||
| *) if [ -e "$dest/$pf" ] && ! rm "$dest/$pf"; then |
There was a problem hiding this comment.
suggestion: the prune trusts each .files entry from the existing _vendor.json as a bare basename, but nothing enforces that. An entry with a path component deletes outside the skill dir. Probe on a scratch copy of head: I appended "../../CANARY" to skills/dep-bump-scanner/scripts/_vendor.json, created skills/CANARY, and ran vendor-engine.sh --source <clean automation> --skills skills. Afterwards skills/CANARY was gone. The stamps are normally tool-written, but they are committed files that any PR can edit, and a maintainer then runs the resync locally. That makes this a small foot-gun for the "only removes paths it owns" guarantee the comment above promises.
Suggested fix: skip, or fail on, any entry that isn't a plain basename before the case, for example:
case "$pf" in */*|.|..|_vendor.json) echo "ERROR: refusing to prune non-basename stamp entry: $pf" >&2; exit 1 ;; esacA matching test case next to the existing prune assertions would lock it in.
There was a problem hiding this comment.
Good catch — fixed in ec4b6a7. The prune now rejects any _vendor.json .files entry that isn't a plain basename (*/*, ., .., or _vendor.json) before the rm, exiting with an error, so a tampered/edited stamp can't make the delete escape the skill dir. Added a regression test that appends a ../../CANARY entry to a stamp and asserts the run fails and the outside file survives.
The prune deletes rm "$dest/$pf" for each prior-stamp .files entry; a tampered/edited _vendor.json with a path component (e.g. ../../CANARY) would escape the skill dir. _vendor.json is a committed file any PR can edit, so refuse any entry that is not a plain basename (reject */*, ., .., _vendor.json) before the delete. Test tampers a stamp with a traversal entry and asserts the run fails and the outside file survives. clawgenti hardening suggestion on rossoctl#26. Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
clawgenti
left a comment
There was a problem hiding this comment.
Clawgenti Code Review
Summary
No blocking issues. The only change since my last review (26af612 → ec4b6a7) is the hardening I suggested for the --skills prune. In scripts/vendor-engine.sh, before any delete, the prune now refuses any prior-stamp .files entry that matches */*, ., .. or _vendor.json, and exits 1. I checked it on a scratch copy of head. I appended "../../CANARY" to skills/link-health-scanner/scripts/_vendor.json and ran --skills against a clean automation@c138e5f. The run failed with ERROR: refusing to prune non-basename stamp entry: ../../CANARY (exit 1), and CANARY survived. The new test case covers this: bash tests/test-vendor-engine.sh passes on head. As a mutation check, I disabled the guard and the two new assertions failed (--skills accepted a non-basename stamp entry, prune deleted a file outside the skill dir). One side effect worth knowing: the guard trips mid-loop, so skill dirs earlier in SKILL_SET are already resynced when it exits. That is acceptable for a tampered stamp and does not block. This resolves my earlier suggestion. All checks pass. Ready for human review.
Author: rubambiza (CONTRIBUTOR — returning external; elevated scrutiny applied, new commit read in full and probed on a scratch copy)
Areas reviewed: Shell, Tests, Security
Agent/IDE config (.claude/.vscode): none
Commits: 18 commits, all signed-off: yes
CI status: passing (DCO, shellcheck, tests, pr-title-check)
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
jimcadden
left a comment
There was a problem hiding this comment.
Re-review at ec4b6a7 — approved
All three items from my last review are fixed, and I re-ran the proofs rather than re-reading them.
- Prune is now scoped to files the tool wrote. I planted
my-own-helper.sh+local-tool.pyinskills/link-health-scanner/scripts/, and simulated a previously-vendored-then-droppedold-vendored.shby adding it to the dir and the stamp's.files. After--skills: the two hand-added files survived,old-vendored.shwas pruned, and the new stamp no longer lists it. That matches the header's "no unlisted path is touched" again. - The basename guard works. Appending
"../../CANARY"to a skill's_vendor.jsonand re-running givesERROR: refusing to prune non-basename stamp entry: ../../CANARY(exit 1) and the canary file survives — so a tampered/committed stamp cannot turn the prune'srminto a path traversal. init-config --repos-dir <path> --fork-owner <owner>now runs as documented (rc=0, writes{repos_dir, fork_owner}), and all four SKILL.md files plus the spec state that both flags are required and that--repos-dirmust already exist.- The README's standalone story is now accurate: plugin ids are distinguished from table names, and the enrollment-fed programs are called out as still needing
~/.repoman/. - Report defaults in three SKILL.md files corrected to
$HOME/reports/....
Still holding: 32 stamped files byte-identical to automation@c138e5f, every dir equal to its own stamp, bash tests/test-vendor-engine.sh PASS (now enforced by the new tests CI job), shellcheck clean, DCO 18/18, CI 4/4, no .claude//.vscode/.
Nits (non-blocking)
README.md:42— "without the fullrepomanbundle or its setup" is exactly what the new paragraph below qualifies: four of the programs still need~/.repoman/config.json+repos.json, which only the setup writes. Dropping "or its setup" (or saying "or the entrypoint") would make the intro consistent with the qualification.docs/specs/…-resync-design.md:122— the spec adds--fork-ownerbut not the other half of the same correction the SKILL.md files now carry:--repos-dirmust already exist (init-configdoes not create it).
Out of diff
skills/repoman/scripts/ is still stamped fa61909 (10 scripts differ from c138e5f), so the repo ships two engine versions. Fine as a follow-up — a --dest run before 0.1.2 would put both published plugins on one engine.
I also agree with clawgenti's note that the guard trips mid-loop, so earlier skills are already resynced when it exits 1. Acceptable for a tampered stamp; not worth restructuring.
Author: rubambiza (MEMBER — maintainer)
Areas reviewed: Shell (vendor tooling + vendored provenance), Tests, CI, Docs, Security
Agent/IDE config (.claude/.vscode): none
Commits: 18, all signed-off: yes
CI status: passing (DCO, shellcheck, tests, pr-title)
Generated by RepoMan github-pr-review@9672454 (https://github.com/rossoctl/agent-skills/blob/96724547c162978f58d845b9a8331a679bf39444/skills/github-pr-review/SKILL.md).
| ### A single program (standalone skill) | ||
|
|
||
| Each program is also published as its own standalone plugin in the same marketplace, so | ||
| you can install just one without the full `repoman` bundle or its setup: |
There was a problem hiding this comment.
nit — "or its setup" is the claim the new paragraph directly below walks back: link-health, dep-bump, repo-sync and automation-health still need ~/.repoman/config.json + repos.json, which only repoman-setup.sh writes (verified at head: clean $HOME → ERROR: RepoMan config not found, exit 1). Suggest dropping "or its setup" — the standalone install skips the entrypoint, not the setup.
There was a problem hiding this comment.
Fixed in 0515d3f. The intro now says "without the full repoman bundle or its /repoman entrypoint" — no longer claiming "or its setup", which the paragraph below correctly qualifies (link-health/dep-bump/repo-sync/automation-health still need the setup-written ~/.repoman/ files).
|
|
||
| - no longer accepts `--org` (scanners take `--dry-run` and `--issue-limit` only); | ||
| - reads the repos directory from `~/.repoman/config.json:repos_dir` (set via | ||
| `repoman-setup.sh init-config --repos-dir <path> --fork-owner <owner>`, both flags |
There was a problem hiding this comment.
nit — the SKILL.md files gained both halves of this correction, but the spec only gained one: init-config also requires that --repos-dir already exist (it mkdir -ps ~/.repoman/, never the repos dir). Worth adding "both flags required, and --repos-dir must already exist" so the design record matches the skill docs.
There was a problem hiding this comment.
Fixed in 0515d3f. The spec's init-config bullet now carries the other half of the correction too: --repos-dir must already exist (init-config does not create it), matching the four SKILL.md files.
1. README single-program intro said 'without the full repoman bundle or its setup', which the paragraph below contradicts (four programs need setup-written ~/.repoman/ files). Say '/repoman entrypoint' instead. 2. Spec init-config bullet carried the --fork-owner fix but not the '--repos-dir must already exist (init-config does not create it)' half the four SKILL.md files already state. Add it. Non-blocking nits from Jim's approval of rossoctl#26. Signed-off-by: Gloire Rubambiza <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]>
…84d0) The standalone dirs were resynced by rossoctl#26 at c138e5f while the plugin dir moved to 4f284d0 in this PR, leaving the repo shipping two engine versions — the exact problem rossoctl#27 describes. Re-run vendor-engine.sh --skills to converge the stamps; the vendored bytes were already identical (the c138e5f..4f284d0 delta touches repoman-setup.sh, which is not in the standalone sets), so only the _vendor.json sha/timestamp fields change. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Jim Cadden <[email protected]>
…84d0) The standalone dirs were resynced by rossoctl#26 at c138e5f while the plugin dir moved to 4f284d0 in this PR, leaving the repo shipping two engine versions — the exact problem rossoctl#27 describes. Re-run vendor-engine.sh --skills to converge the stamps; the vendored bytes were already identical (the c138e5f..4f284d0 delta touches repoman-setup.sh, which is not in the standalone sets), so only the _vendor.json sha/timestamp fields change. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Jim Cadden <[email protected]>
…84d0) The standalone dirs were resynced by rossoctl#26 at c138e5f while the plugin dir moved to 4f284d0 in this PR, leaving the repo shipping two engine versions — the exact problem rossoctl#27 describes. Re-run vendor-engine.sh --skills to converge the stamps; the vendored bytes were already identical (the c138e5f..4f284d0 delta touches repoman-setup.sh, which is not in the standalone sets), so only the _vendor.json sha/timestamp fields change. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Jim Cadden <[email protected]>
…#24) * feat(link-health): vendor stdlib Python link checker as default Vendor the engine from rossoctl/automation (feat/stdlib-link-checker, PR rossoctl/automation#123): link-check.py joins the vendored set (scripts/vendor-engine.sh extras + regression-test coverage), and the scanner, extractor, and automation-health dashboard updates land with it. LINK_CHECKER=python is the default, so link-health needs only python3/gh/jq/bash and runs on a basic agent image; egress-proxy refusals are classified as unchecked and never open or auto-close issues. Rewrite the link-health-scanner SKILL.md for the python-default contract (link checker selection, unchecked bucket, shadow mode, .lychee.toml subset) and note the dashboard's unchecked rows. The vendored repoman-setup.sh header reverts the doc-drift fixer's #22 edit: vendored bytes must track the engine source, and the set-requirements header fix lands at the source in rossoctl/automation#141 instead. Closes #3 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Jim Cadden <[email protected]> * chore(vendor): Refresh engine stamp from automation main (4f284d0) Re-run scripts/vendor-engine.sh against automation@main now that rossoctl/automation#123 and #141 are merged, replacing the pre-merge branch-tip stamp (e1ebdcb) with main's tip. Convergence changes beyond the stamp: repoman-setup.sh header now lists set-requirements (automation#141), plus engine updates to dep-bump, github-api (throttling), link-health, and pr-review scripts that landed on main after the original vendoring branch point. Validation: bash tests/test-vendor-engine.sh (19/19 PASS); vendored bytes verified identical to automation@main. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Jim Cadden <[email protected]> * Update skills/link-health-scanner/SKILL.md Co-authored-by: Gloire Rubambiza <[email protected]> Signed-off-by: Jim Cadden <[email protected]> * Update skills/repoman/scripts/github-api.sh Co-authored-by: Gloire Rubambiza <[email protected]> Signed-off-by: Jim Cadden <[email protected]> * docs: Clarify egress-proxy wording in link-health-scanner SKILL.md Apply rubambiza's review suggestion on PR #24: make the Unchecked (egress refusals) bullet specific about running under an egress proxy, so it's clear the program can also run on a host with no proxy. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Jim Cadden <[email protected]> * chore(vendor): Align standalone skill stamps with the plugin dir (4f284d0) The standalone dirs were resynced by #26 at c138e5f while the plugin dir moved to 4f284d0 in this PR, leaving the repo shipping two engine versions — the exact problem #27 describes. Re-run vendor-engine.sh --skills to converge the stamps; the vendored bytes were already identical (the c138e5f..4f284d0 delta touches repoman-setup.sh, which is not in the standalone sets), so only the _vendor.json sha/timestamp fields change. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Jim Cadden <[email protected]> * feat: Add claims check and opportunistic head-vs-base probes to github-pr-review Mirror of rossoctl/agent-skills#53 for the deployed pr-review program, which is what missed the two must-fix bugs on rossoctl/cortex#1658 and #1659 that motivated the change: - §3.11 Claims Check: verify every fix a PR claims in its exact target case and sibling variants; the new test must assert what the user sees. - §3.12 Behavioral Probes: concrete-case rule (no case, no finding) and opportunistic head-vs-base probes that run only with tooling already on PATH — never installed mid-review. The recipe is self-cleaning (worktree trap) and states its $LOG_DIR precondition. - must-fix is defined positively: the user-visible behavior is wrong. 'Not a regression vs main' does not downgrade it. - The review summary carries an auditable 'Not checked:' list naming what was skipped and why. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Jim Cadden <[email protected]> * chore(vendor): Re-vendor engine from automation ef8a26f Picks up the two follow-ups this PR was waiting on, both now merged to rossoctl/automation main: - automation#142: github-api.sh captures gh stderr and distinguishes refused (permanent) from transient provenance lookups; link-health WARN headers go to stderr. - automation#143: link-check.py classifies plain-http egress refusals as unchecked and excludes public-to-private redirects under --exclude-all-private. One --dest pass and one --skills pass, so the plugin dir and the four standalone skill dirs ship the same engine version. Vendored bytes are identical to automation@ef8a26f per file; tests/test-vendor-engine.sh passes. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Clawgenti <[email protected]> * fix: Finish the github-pr-review mirror at agent-skills #53 head a01ed11 mirrored an earlier revision of rossoctl/agent-skills#53. The merged version reorders the worktree trap before the first `add` and adds the documented-intent exception to the stricter-rejection rule. This brings the deployed copy to agent-skills main (9672454), keeping only the repoman-specific Phase 5 footer sentence as a divergence. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Clawgenti <[email protected]> * docs: Draft next-release changelog for the link checker and review checks Expands [Unreleased] so the next release notes cover everything this PR lands: - Added: the stdlib Python link checker default (existing entry) and the github-pr-review claims check / head-vs-base probes mirrored from agent-skills#53. - Changed: the engine is vendored from automation ef8a26f (automation#123 plus #141-#143), and provenance lookups now separate refused tokens from transient failures. - Fixed: plain-http egress refusals are unchecked, private redirects are excluded under --exclude-all-private, and link-health WARN diagnostics go to stderr. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Clawgenti <[email protected]> --------- Signed-off-by: Jim Cadden <[email protected]> Signed-off-by: Clawgenti <[email protected]> Co-authored-by: Gloire Rubambiza <[email protected]> Co-authored-by: Clawgenti <[email protected]>
Summary
Resync the four standalone link-health/dep-bump skill dirs onto the current modular
engine, and teach
vendor-engine.shhow to do it goingforward.
Each standalone skill dir
(
skills/{link-health,dep-bump}-{scanner,fixer}/scripts/) bundled a 662-linemonolithic
program-lib.shlast meaningfully updated Jun 2026, while the engine inrossoctl/automationlong ago split thatmonolith into a 20-line aggregator plus five modules.
vendor-engine.shpopulatedonly the repoman plugin dir, with a hard guard that it must never touch a standalone
skill's
scripts/(agent-skills#51), so the
standalone dirs drifted.
Since the repoman-native skills were
removed from
rossoctl/agent-skills, repoman is now their single source — so this lands entirelyhere.
What changed
vendor-engine.shgains a--skills <dir>mode (mutually exclusive with--dest; plugin mode unchanged). It resyncs each standalone skill dir with the sixmodular lib files + that skill's own scanner/fixer + its co-located extras, from an
automation
--source, via an explicit per-skill manifest (never a glob — preservesthe agent-skills#51 intent). It pre-validates the whole union before copying, so a
missing source fails loud with no dir half-vendored, and writes a per-dir
_vendor.jsonstamp. The provenance stamp is factored into a shared helper reusedby both modes.
c138e5f:modular lib set + canonical scanner/fixer;
link-health-scanneralso getsextract-broken-links.shandlink-check.py.dep-bump-fixerdoes notco-locate
dep-bump-scanner.sh(its SKILL.md mentions it only as a usage example,not a runtime dep).
--orgflag and the manual"clone every org repo" step are replaced with the current model (no
--org;REPOS_DIRstill required for the local clones), plus a prerequisites note thateach skill reads the enrolled set from
~/.repoman/repos.json(via/repomansetup) and fails loud if it is missing — so an agent can flag missing setup to the
user.
Testing
tests/test-vendor-engine.shextended (not forked) with standalone-mode cases:per-dir manifest/counts, the link-check.py extra, no scanner co-location, per-dir
stamp
source_sha+ skill-specificfiles,--skillsidempotency, missing-sourcefail-loud with no half-vendored dir, and
--dest/--skillsexclusivity.--skillsagainst the real automation checkout; verified all fourresynced dirs source the modular lib and expose the functions their scripts call;
shellcheck --severity=warningclean.Out of scope: the repoman plugin dir (covered by the existing plugin mode) and
automation#140's
link-health-scanner rework (a later
--skillsre-run picks it up).Closes #5.
Assisted-By: Claude Code