pb-health-weekly
Installation
SKILL.md
Weekly ecosystem health
What you get: a health report (full HTML report with git and npm drift when the health skill is installed, else a plain markdown report with git drift and CI status) for every repo, red repos handed to pb-ci-fix, and a one-line status. Availability: needs bdb-ecosystem-health (not shipped, aos-internal-staging) for the full report; without it only a plain markdown report, and only when repo_list is given.
Inputs
- repo_list (optional) — the repos to check; default is the list the bdb-ecosystem-health skill carries
Steps
- Preflight — bdb-ecosystem-health listed in the harness skill list or its SKILL.md under the harness skills dir (
~/.claude/skills,~/.agents/skills,~/.codex/skills,~/.config/opencode/skills),gh auth status→ run log header — skill absent → log "health skill not installed" and fallback mode: repo_list empty → stop with "Availability: needs bdb-ecosystem-health (not shipped, aos-internal-staging) for the full report"; else build a plain markdown report fromgit/ghfacts only (version, tags, CI conclusion per repo; no HTML, no npm drift); gh missing or unauthenticated → log it, give thegh auth loginhint, stop - bdb-ecosystem-health (external; skipped when absent, step 3 then builds the report) — repo_list → HTML report with auto-remediation OFF (the report only proposes remediation) → report path in the run log — report exists; no remediation command was run
- github — report → table of every repo with version drift and CI conclusion in the run log (
gh run list -R <owner/repo> --limit 1 --json conclusion,headShaper repo) — every repo listed; stops for approval (the human confirms which red repos to fix and which to defer) - pb-ci-fix — per approved red repo → one pb-ci-fix run, with its own GO for the push — each red repo names its run log or "deferred: "
- [GO] remediation — per step the skill proposes in its report, except version bumps, tags, changelog edits and publishes, which are never run here: npm or git version drift is routed to pb-release-aos (or the repo's own release PR) and logged as a proposal; the exact command shown in the WAITING FOR GO line with the repo and what it changes. The run stops here until the human types GO. One GO = one remediation step. The playbook cannot know in advance whether the go-gate hook covers a proposed command (Claude Code, OpenCode, agy only): a
git push,npm publishornpm versionis covered by the go-gate hook where it runs (Claude Code, OpenCode, agy), any other command (annpm install -g, aghwrite, anrsync) is not, and for those, and in every harness without the hook, this GO is the only guard. No proposed steps → step skipped - quick-recap — run log → final line
🟢|🟡|🔴with green, red-fixed, red-deferred and drift counts (n/ain fallback mode) — line written
Run log: production_artifacts/pb-health-weekly-<date>.md in the start directory, never committed; the full HTML report (when the health skill is installed) stays where the skill writes it and is not staged; in fallback mode the report is the run log's markdown table