/jongio-skills:repo-maintainfrom jongio-skills
Orchestrates an end-to-end repository maintenance pass across governance, dependencies, security, refactoring, coverage, docs, skills, and evals on a single rolling branch. Outputs a 0-100 Repo Health Score.
Ships in jongio-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Orchestrate a repository-centric maintenance pass on rolling branch repo-maintain/automated. Consolidate specialist doctor passes into one verified pull request with a deterministic 0-100 Repo Health Score. Use node <skill-dir>/scripts/repo-maintain.mjs for deterministic config resolution, Phase 0 skip checks, Stealth Public Mode validation, companion-sync classification, and health score calculation.
Never hardcode an account name, reviewer login, or static repository list. Resolve configuration and the repository maintainer dynamically (scripts/repo-maintain.mjs resolve-config) in this exact precedence order:
.github/repo-maintain.json (with .github/maintain.json / .maintain.json / --policy / CLI flags fallback):
maintainer: primary maintainer login for PR assignment and escalation.trustedAuthors: array of trusted logins/bots exempt from external quarantine.escalationLabel: label applied to Tier 2 external PRs (default: needs-maintainer-review).cooldownDays: minimum dependency release age in days (default: 7, i.e., 10080 minutes).coverageThreshold: minimum line and branch coverage percentage on touched files (default: 80).autoMerge: automatically create, watch, and squash-merge verified maintenance and companion-synced Dependabot/Renovate PRs once local tests and GitHub Actions CI pass (MERGEABLE/CLEAN) without manual prompts (default: true, passing --merge=auto to pr; set false for manual approval).copilotReview: request @copilot review on automated maintenance PRs (default: false, passing --no-copilot to pr so zero Copilot Code Review Actions minutes are billed; set true to enable).repos: optional fleet repository list (or MAINTAIN_REPOS workflow input/variable)..github/CODEOWNERS: default global * owner entry.gh repo view --json owner --jq '.owner.login'.gh api user --jq '.login'.| Invocation | Behavior |
|---|---|
repo-maintain [status|audit] | Read-only Phase 0 triage, CI diagnosis, and 0-100 Repo Health Score without creating branches, receipts, or file edits. |
repo-maintain [run|fix] | Full Phases 0-6 pass in an isolated worktree on repo-maintain/automated, atomic commits per phase, and 1 consolidated PR via pr. |
repo-maintain --all [--visibility all|public|private] | Local fleet mode across configured and discovered repositories (gh repo list), enforcing Public Repo Stealth Mode and fleet isolation whenever visibility == "PUBLIC". |
repo-maintain --stages <csv> | Run a subset of phases (governance,deps,secops,refactor,coverage,docs,skills,evals,release). |
repo-maintain --dry-run | Execute audits and validations locally without pushing branches, applying labels, syncing companion PRs, opening/editing/merging PRs, filing issues, writing receipts, or cutting releases. |
Follow phase playbooks and worktree lifecycle and Public Repo Stealth Mode and fleet isolation:
gh repo view --json visibility,defaultBranchRef before any action. Enable Stealth Public Mode whenever visibility == "PUBLIC" or visibility cannot be verified. In fleet mode (--visibility all), never log private repository names into public repository artifacts. In a public GitHub Actions workflow context, abort immediately if visibility != "PUBLIC".scripts/repo-maintain.mjs skip-check): Read ~/.copilot/repo-maintain/<owner>__<repo>.json (lastMaintainSha). If lastMaintainSha == HEAD on the default branch, 0 new security advisories exist, 0 default-branch CI runs are failing, 0 untriaged inbound issues/PRs arrived since the receipt timestamp, and neither --force nor --stages was passed, report fast no-op: HEAD unchanged and healthy and exit without creating a worktree or PR.backlog-groom triage: Run the Maintainer Triage Agent across open issues and external PRs (author != maintainer and not in trustedAuthors):
needs-maintainer-review (or configured escalationLabel) + maintainer brief.maintainer assignment and review.>24h, "ball in maintainer's court" PRs, and stale items >14d; compute the conflict-minimizing PR merge order.ci-doctor diagnosis: Check default-branch workflow health, runner cost efficiency, caching, concurrency groups, 40-char SHA pinning, script-injection sinks, and least-privilege permissions.Create or reuse a single external worktree on rolling branch repo-maintain/automated off origin/<defaultBranch>. Before resetting or rebasing any existing local or remote repo-maintain/automated branch (whether or not a PR is open), inspect its unmerged commits: if unknown manual commits exist on the branch, do not overwrite and escalate to Needs My Attention; otherwise rebase automated maintenance commits and reuse any open repo-maintain/automated PR. On a reused PR, check autoMergeRequest before phase work and again before pushing: in --dry-run or read-only mode report it without changing remote settings; in write-enabled runs disable GitHub auto-merge (--disable-auto) and confirm it is off, or escalate to Needs My Attention without pushing. Record one atomic conventional commit per phase that produces verified changes. If a phase fails verification after 2 bounded repair attempts, reset the worktree to the previous phase's verified commit (git reset --hard <pre-phase-sha> && git clean -fd), record the blocker under Needs My Attention, and continue subsequent independent phases:
repo-ready + ci-doctor):
read default token permissions), workflow hardening, and Runtime Version Parity across .nvmrc, .node-version, package.json#engines, go.mod, Dockerfile, .devcontainer, and .github/workflows/*.yml.chore(repo-maintain): align repo governance, workflows, and runtime parity.deps-doctor):
cooldownDays (min-release-age=7 days / 10080 minutes by default), CISA KEV active-exploitation bypass when no older patched version exists outside the window, and License Compatibility Screening (blocking copyleft GPL/AGPL/SSPL additions in permissive MIT/Apache-2.0 repos).scripts/repo-maintain.mjs classify-dep-pr): Inspect open Dependabot and Renovate PRs. When a dependency PR fails only on mechanical companion syncs (RequiredAzdVersion version constants, Go toolchain floors in go.mod/workflows for stdlib govulncheck, or lockstep GitHub Action SHA pins across codeql-action/*), apply the companion sync or rebase, verify local tests and GitHub Actions CI pass (MERGEABLE/CLEAN), and deliver via pr using the resolved prDeliveryArgs (pr --merge=auto --no-copilot by default when autoMerge: true and copilotReview: false) without manual intervention. Before pushing a companion sync or rebase on a dependency PR, apply the same GitHub auto-merge disable-and-confirm check (or escalate to Needs My Attention without pushing).chore(deps): apply vetted dependency updates.secops-doctor):
scripts/repo-maintain.mjs stealth-check): When visibility == "PUBLIC" (or unknown), never write CWE-*, CVE-*, GHSA-*, CVSS scores, vulnerability labels, or exploit details in commit messages, branch names, PR bodies, test names, or public issues. Save sensitive details to a local gitignored report outside Git and use neutral commit messages (fix(repo-maintain): harden input validation and configuration defaults).refactor):
O(n^2) / N+1 / sync-I/O performance fixes).[Refactor L3] issue instead.refactor(repo-maintain): apply verified level 1-2 cleanups.test-doctor):
v8/istanbul, --experimental-test-coverage, pytest-cov, go test -coverprofile, cargo llvm-cov, XPlat Code Coverage).>80% line / <50% branch), Diff Coverage Gate (>= coverageThreshold% line and branch coverage on touched files), Untested Critical Entrypoint Detection, and optional Playwright Runtime Console Gate (0 console.error, 0 pageerror, 0 HTTP 500s). Write missing branch and edge-case tests for touched files.test(repo-maintain): close branch and diff coverage gaps.doc-doctor + skill-doctor + eval-doctor):
doc-doctor to fix stale README/CLI/API/config docs and broken links.skills/ is present, run skill-doctor (npx @microsoft/vally skill lint, cross-host plugin manifest parity, and bloat trimming).evals/, .vally.yaml, prompts, or skills are present, run eval-doctor (vally lint, deterministic/rubric grader audits, github/evals authoring/comparison, and safe github/evals-action CI workflow verification).docs(repo-maintain): sync documentation, skills, and eval suites.A+ to F)Compute both Before and After scores using 0-100 Repo Health Score rubric (scripts/repo-maintain.mjs score):
| Dimension | Weight | Criteria |
|---|---|---|
CI & Workflow Hygiene (ci-doctor) | 20 | Default branch green, 40-char SHA pins, least-privilege permissions, caching/concurrency |
Test & Branch Coverage (test-doctor) | 20 | Overall + diff coverage >=80%, no high-line/low-branch gaps, 0 untested entrypoints |
Dependency & License Health (deps-doctor) | 15 | 0 unpatched KEV/Critical advisories, 7-day cooldown enforced, 0 copyleft license conflicts |
Security Posture (secops-doctor) | 15 | 0 leaked secrets, OWASP/STRIDE checks clean, repo security settings enabled |
Documentation Accuracy (doc-doctor) | 10 | 0 broken links or stale CLI/config flags |
Skill & Eval Quality (skill-doctor + eval-doctor) | 10 | vally skill lint + vally lint clean, deterministic graders, safe CI eval workflow (N/A -> 10/10 if absent) |
Backlog SLA (backlog-groom) | 10 | 0 unresponded items >24h, external PRs triaged into Tier 1/2/3 queues |
Grade scale: A+ (97-100), A (90-96), B (80-89), C (70-79), D (60-69), F (<60).
scripts/repo-maintain.mjs write-receipt with phasesRun and skillsEvalsApplicable), report the 0-100 Repo Health Score, and exit without pushing a branch or opening a PR. If any phase failed and was rolled back, mark failedPhases in the receipt so the next run does not skip it as a fast no-op.pr --merge=auto --no-copilot (repo-maintain/automated): By default ("autoMerge": true and "copilotReview": false in .github/repo-maintain.json, or resolved prDeliveryArgs), when Phases 1-6 produce verified changes and all local tests pass, do not pause to ask the user before pushing, creating the PR, or merging:
code-review, doc-doctor, test-doctor, security, lint, and build) under the pr identity rule.ready on the whole proposed PR (every phase commit against origin/<defaultBranch>) with that evidence. Only READY passes. Fix confirmed in-scope gaps and rerun it; otherwise escalate under Needs My Attention without pushing. If ready is not installed, stop before pushing and suggest installing it. If the maintenance PR introduces or materially updates ready itself, do not use it to assess itself; require focused ready contract tests plus scoped review, security, lint, and build checks instead, pass that bootstrap exception and evidence to pr, and escalate under Needs My Attention without pushing if any required check fails or is unverified. Phase commits stay local in the isolated worktree until then, and any later commit reruns ready (or its bootstrap checks) before the next push.READY (or passing bootstrap checks when ready itself changed), push repo-maintain/automated and create or update the single consolidated PR (gh pr create --body-file / gh pr edit --body-file or gh-post.mjs pr-body via --body-file / single-quoted @'...'@ piped to --body-stdin; never inline PowerShell double-quoted --body "...") with the phase summary table and before/after 0-100 Repo Health Score.pr --merge=auto --no-copilot (or resolved prDeliveryArgs): monitor checks via pr-watch-daemon.mjs watch --no-copilot (cancelling any auto-triggered Copilot Code Review workflow run so zero Actions minutes are billed), remediate auto-fixable CI failures, and once GitHub Actions CI passes (MERGEABLE/CLEAN) execute the head-pinned squash merge (gh pr merge <number> -R <owner/repo> --squash --match-head-commit <full-head-OID>, never gh pr merge --auto), verify merged state on GitHub, perform atomic expected-OID branch cleanup (git push --force-with-lease=refs/heads/repo-maintain/automated:<merged-head-OID> <verified-head-remote> :refs/heads/repo-maintain/automated), and write the merged default-branch SHA receipt (scripts/repo-maintain.mjs write-receipt).Needs My Attention): Only pause or escalate to the user (Needs My Attention) when:
ready reports gaps that cannot be fixed within scope,repo-maintain/automated requires a human decision, or[Refactor L3]) cross-module architectural design question or Tier 2 external PR (needs-maintainer-review) requires maintainer direction.release-doctor): Once pr confirms repo-maintain/automated is merged and cleaned up on the default branch (or when no changes were needed on main), invoke release-doctor to evaluate unreleased shippable commits, verify cross-manifest version parity, and recommend or trigger the next semver release when default-branch CI is green.Prefer running repo-maintain locally across repositories so shared skill catalogs do not ship personal fleet workflows to downstream forks. If an adopter wires repo-maintain into a target repository's .github/workflows/repo-maintain.yml, guard every job with if: github.event.repository.fork == false, pin actions to full 40-char SHAs, and resolve the repository dynamically from github.repository:
on:
workflow_dispatch:
inputs:
dry_run:
type: boolean
default: true
permissions:
contents: read
jobs:
repo-maintain:
if: github.event.repository.fork == false
runs-on: ubuntu-latest
timeout-minutes: 60
CWE-*, CVE-*, GHSA-*, exploit recipes, or private fleet repository names in commits, PRs, or public logs."autoMerge": true, "copilotReview": false by default) runs ready on the whole proposed PR first, then automatically pushes, opens, watches (pr --merge=auto --no-copilot), and squash-merges repo-maintain/automated and companion-synced Dependabot/Renovate PRs when CI is green (MERGEABLE/CLEAN), escalating to Needs My Attention only on unresolvable CI failures, unresolved readiness gaps, semver-major/license blockers, or L3 architectural design questions.Needs My Attention.A+ to F) is reported with per-dimension evidence.repo-maintain/automated PR is opened or updated (or a clean no-op receipt is recorded), followed by release-doctor readiness reporting.LICENSE (opens in a new tab)README.md (opens in a new tab)evals/repo-maintain/eval.yaml (opens in a new tab)evals/repo-maintain/fixtures/companion-sync-and-escalation.md (opens in a new tab)evals/repo-maintain/fixtures/phase-isolation-and-health-score.md (opens in a new tab)evals/repo-maintain/fixtures/public-stealth-redaction.md (opens in a new tab)evals/repo-maintain/fixtures/sha-receipt-fast-noop.md (opens in a new tab)package-lock.json (opens in a new tab)package.json (opens in a new tab)references/health-score-rubric.md (opens in a new tab)references/phase-playbooks.md (opens in a new tab)references/stealth-and-fleet.md (opens in a new tab)scripts/repo-maintain.mjs (opens in a new tab)test/fixtures.test.mjs (opens in a new tab)test/repo-maintain-script.test.mjs (opens in a new tab)test/skill.test.mjs (opens in a new tab)thumbnail.png (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jongio/skills --plugin jongio-skills28 skills in this plugin
/backlog-groom**WORKFLOW SKILL** - Groom GitHub backlogs across issue and source repositories, with or without Projects, using scoped evidence and approved changes. USE FOR: backlog-groom, groom backlog, triage GitHub issues, reconcile backlog, organize GitHub Project, audit delivery readiness. DO NOT USE FOR: implementing issues (use go), PR delivery (use pr), creating skills (use create-skill), dependency maintenance (use deps-doctor), Git cleanup (use git-tidy)./ci-doctor**WORKFLOW SKILL** - Diagnose, check, and optimize GitHub Actions workflows with stateless ETag-cached checkups, main failure root-cause repair in isolated worktrees, and workflow cost/security hardening. USE FOR: ci-doctor, ci health check, diagnose main CI failures, repair broken GitHub Actions builds, profile slow CI steps, harvest workflow flakes, harden and optimize GitHub Actions workflows. DO NOT USE FOR: single pull request delivery without workflow diagnosis (use pr), implementing a feature issue end to end (use go), standalone test suite audits without GitHub Actions checks (use test-doctor)./create-canvas-appBuild a GitHub Copilot App canvas extension the right way, fast. Use when the user wants to create, scaffold, or improve an interactive canvas (a side-panel UI the agent can open and drive) - dashboards, editors, trackers, boards, document/preview surfaces. Provides a no-build Preact + htm kit with live SSE state, durable per-user storage, Primer theming, and the official GitHub Lucide icon set, plus a generator that stamps a working canvas in one command. Do NOT use for non-canvas extensions (plain agent tools) or for shipping web apps unrelated to Copilot canvases.Other plugins' skills for the same job