agentleFS
imMamdouhaboammarimMamdouhaboammar/mergefy/skills/repo-maintainer/SKILL.md

repo-maintainer

Skill0 starsChanged 3 months agoMITView on GitHub

Use when a repository has multiple branches, pull requests, issues, or maintenance debt that must be inspected, validated, repaired, merged, or closed with evidence.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never claim a plugin, skill, test, review, environment, or command was used unless it was actually invoked and a receipt exists.

    line 19
  2. Distinctive:

    Every candidate finishes the current maintenance round in exactly one state:

    line 37
  3. Very specific:

    Use repo-discovery and record local plus remote inventory if both are available

    line 50
  4. Very specific:

    Use repo-triage to build the candidate ledger and dependency order

    line 51
  5. Distinctive:

    Use isolated worktrees or disposable clones.

    line 53
  6. Very specific:

    If useful work fails, use pr-repair-loop and TDD where code changes are required

    line 55
  7. Very specific:

    Use merge-gate for disposition.

    line 57
  8. Very specific:

    Use issue-disposition and branch-cleanup after dependent work settles

    line 59

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Repo Maintainer

Purpose

Act as the repository maintenance orchestrator. Do not treat an open queue as a list to clear. Build evidence, preserve intended behavior, repair useful work, merge only current-head work that passes its gates, and close only work whose value is demonstrably gone.

REQUIRED SUB-SKILL for code changes: superpowers:test-driven-development when installed REQUIRED BEFORE any completion or merge claim: superpowers:verification-before-completion when installed

Never claim a plugin, skill, test, review, environment, or command was used unless it was actually invoked and a receipt exists.

Route by job

NeedSkill
local or remote repository inventoryrepo-discovery
rank and connect branches, PRs, and issuesrepo-triage
reproduce and aggressively test a candidatepr-validation
fix useful failing workpr-repair-loop
decide whether current head can mergemerge-gate
close, defer, split, or preserve issuesissue-disposition
identify safe stale-branch deletion candidatesbranch-cleanup
auth, RLS, data exposure, role boundariessecurity-boundary-gate
admin or public UI regressions and qualityui-quality-gate

Mandatory state machine

Every candidate finishes the current maintenance round in exactly one state:

  • MERGE: useful, current-head evidence is complete, all required gates pass, no blocker remains
  • REPAIR: useful, but a reproducible defect, conflict, stale gate, incomplete implementation, or policy violation remains
  • CLOSE: duplicate, obsolete, superseded, abandoned with evidence, or irreparable relative to current product intent
  • BLOCKED_EXTERNAL: a required external runtime or service is unavailable; continue every independent check that can still run
  • NEEDS_HUMAN: safe disposition cannot be proven from repository evidence or product intent is ambiguous

A failed test is not proof that useful work should close. CI green is not proof that work should merge.

Operating loop

  1. Load repository instructions, architecture, active plans, branch protection, and matching project profile
  2. Use repo-discovery and record local plus remote inventory if both are available
  3. Use repo-triage to build the candidate ledger and dependency order
  4. Validate high-risk or dependency-blocking candidates first
  5. Use isolated worktrees or disposable clones. Never destructively clean or rewrite the user's existing worktree
  6. Route security-sensitive work through security-boundary-gate, and UI work through ui-quality-gate
  7. If useful work fails, use pr-repair-loop and TDD where code changes are required
  8. Re-run focused and broad verification against the new head SHA
  9. Use merge-gate for disposition. Never reuse stale review or test evidence after a push
  10. Merge through normal protected forge paths, close with an evidence comment, or record the exact blocker
  11. Use issue-disposition and branch-cleanup after dependent work settles

Safety invariants

Load references/default-policy.json. Before shell execution, pass commands through the command guard in pr-validation`` when practical. The default policy forbids Docker, Colima, local containerized Supabase, destructive git cleaning/reset, and force history operations.

Database integration execution is allowed only against an explicitly approved migrated non-production environment. If unavailable, produce a BLOCKED_EXTERNAL DB runtime receipt and continue non-DB verification.

Project profiles add stricter gates. For Teolaa, load profiles/teolaa.json before judging PRs or issues that touch discovery, campaign handoff, pricing, authorization, admin, or public UI.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.