What it does
Run an end-to-end repository maintenance pass across governance, dependencies, security, refactoring, coverage, docs, skills, and evals on a single rolling branch (repo-maintain/automated).
Defaults to Zero-Touch Auto-Create & Auto-Merge ("autoMerge": true and "copilotReview": false in .github/repo-maintain.json): when Phases 1-6 produce verified changes and all local tests plus GitHub Actions CI checks pass (MERGEABLE/CLEAN), repo-maintain automatically pushes repo-maintain/automated, opens/updates the PR, runs pr --merge=auto --no-copilot (pr-watch-daemon.mjs watch --no-copilot), and squash-merges (--match-head-commit) + deletes the branch without asking for manual approval. It also auto-fixes mechanical companion syncs on open Dependabot/Renovate PRs (such as RequiredAzdVersion, Go toolchain floors for govulncheck, or lockstep codeql-action/* SHA pins) and escalates to Needs My Attention only on unresolvable CI failures, semver-major breaking changes, or Level 3 architectural design questions.
- Phase 0 SHA-receipt skip check, deterministic CLI & maintainer triage: uses
scripts/repo-maintain.mjs(resolve-config,skip-check,score,stealth-check,classify-dep-pr) to skip no-op runs whenHEADmatcheslastMaintainShawith green CI and no new advisories, and triages external issues and PRs into Quarantine (Tier 1), Maintainer Direction (Tier 2), and Auto-Assist (Tier 3) queues. - Phases 1-6 in one isolated worktree (
repo-maintain/automated) with phase-scoped rollback: runs governance & runtime parity (repo-ready+ci-doctor), vetted dependency updates & license screening (deps-doctor), fail-closed Stealth Public Mode security hardening (secops-doctor), Level 1-2 idiomatic refactoring (refactor), branch & diff coverage gates (test-doctor), and doc/skill/eval validation (doc-doctor+skill-doctor+eval-doctor). Rolls back any phase failing verification after 2 repair attempts so healthy phases still ship. - 0-100 Repo Health Score (Grade
A+toF) & post-merge release check: computes weighted health evidence across 7 dimensions and invokesrelease-doctoroncerepo-maintain/automatedmerges cleanly.
Use it
/repo-maintain
/repo-maintain status
/repo-maintain run
/repo-maintain --stages deps,secops,coverage
/repo-maintain --all --visibility all