agentleFS
mkalkeremkalkere/agent-coordinator/skills/development/pr-complete/SKILL.md

pr-complete

Skill4 starsChanged 9 months agoMITView on GitHub

Finish a PR - address reviews, merge, close issues, cleanup

  • Sends data out
  • Commits and pushes

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After creating a PR and receiving reviews.

    line 15
  2. Distinctive:

    Wait for approval/CI

    line 19
  3. Very specific:

    Run tests: py -m pytest -q or equivalent

    line 44
  4. Very specific:

    Run formatter: black . or equivalent

    line 45
  5. Distinctive:

    All CI checks pass

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

PR Complete

When to Use

After creating a PR and receiving reviews. This skill handles the full cycle:

  • Review feedback received
  • Address comments
  • Re-request review
  • Wait for approval/CI
  • Merge
  • Cleanup

Steps

1. Check PR Status

gh pr view <PR_NUMBER> --json state,reviews,mergeable,checks
gh pr checks <PR_NUMBER>

2. Check Review Comments

gh api repos/<owner>/<repo>/pulls/<PR_NUMBER>/comments
gh pr view <PR_NUMBER> --comments

3. Address Review Feedback

For each comment:

  1. Read the suggestion
  2. Make the fix in code
  3. Run tests: py -m pytest -q or equivalent
  4. Run formatter: black . or equivalent

4. Commit Fixes

git add <changed-files>
git commit -m "refactor: address PR review feedback

<describe changes>

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>"
git push

5. Re-request Review

# For Gemini
gh pr comment <PR_NUMBER> --body "/gemini review"

# For Copilot (use structured prompt from project guidelines)
gh pr comment <PR_NUMBER> --body "@copilot review"

6. Wait for CI

gh pr checks <PR_NUMBER> --watch

7. Merge When Ready

Conditions:

  • All CI checks pass
  • Reviews are positive (no blocking issues)
  • PR is mergeable
gh pr merge <PR_NUMBER> --squash --delete-branch --body "Closes #<ISSUE>

## Summary
<brief description>"

8. Verify Issues Closed

gh issue view <ISSUE_NUMBER> --json state

9. Update Local

git checkout main
git pull

10. Update Coordinator

# Find task ID and mark complete
curl -X POST "http://localhost:9889/tasks/<TASK_ID>/complete?agent_id=<AGENT_ID>&pr_number=<PR_NUMBER>"

Completion Checklist

  • All review comments addressed
  • CI passes
  • PR merged
  • Linked issues closed
  • Local on main branch
  • Coordinator task marked complete

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.