agentleFS
Docat0209Docat0209/SoloForge/skills/post-merge/SKILL.md

post-merge

Skill1 starsChanged 7 months agoMITView on GitHub

Post-merge verification checklist. Triggers ONLY when: a PR has just been merged via gh pr merge. Do NOT trigger when: discussing merge strategy or planning future merges.

  • Commits and pushes

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 14 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After every PR merge, execute ALL FIVE steps.

    line 8
  2. Distinctive:

    After merging to main and deployment is live, run dual-track testing:

    line 13
  3. Distinctive:

    Use Playwright MCP to test the deployed production site.

    line 17
  4. Distinctive:

    After agent testing completes, invite the user to test:

    line 35
  5. Distinctive:

    After both rounds of testing:

    line 43
  6. Very specific:

    Update the issue body: replace - [ ] with - [x] for all completed criteria

    line 51
  7. Distinctive:

    Use the GitHub API to update:

    line 52
  8. Distinctive:

    If any acceptance criteria are NOT met, do not close the issue — go back and fix

    line 56
  9. Distinctive:

    Only close after Steps 1 and 2 are complete

    line 63
  10. Distinctive:

    After closing the issue, check if the milestone is now complete:

    line 66
  11. Very specific:

    If a milestone exists, check for remaining open issues: gh issue list --milestone "MILESTONE_NAME" --state open

    line 68
  12. Very specific:

    If 0 open issues remain → this milestone is complete.

    line 69
  13. Very specific:

    Delete IMMEDIATELY after merge — do not defer: If the PR was squash-merged, git loses merge tracking.

    line 76
  14. Distinctive:

    Verify deletion: git branch -a should no longer show the branch

    line 77
  15. Very specific:

    If no prior tag exists, start at v0.1.0

    line 88
  16. Very specific:

    Run gh release view vX.Y.Z to confirm it was created

    line 98
  17. Distinctive:

    Verify the tag: git tag -l vX.Y.Z

    line 99
  18. Distinctive:

    All five steps. Every merge.

    line 103
  19. Distinctive:

    If release: "v[X.Y.Z] released.

    line 107
  20. Distinctive:

    All issues done → "Run staging-verify, then release"

    line 111

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Post-Merge Verification Checklist

After every PR merge, execute ALL FIVE steps. Every time. No exceptions. Skipping any step is a process failure, not a shortcut.

Step 1: Production Functional Testing (after deployment)

After merging to main and deployment is live, run dual-track testing:

Agent Testing (Playwright on production URL)

Use Playwright MCP to test the deployed production site. This is where functional testing happens — NOT in staging-verify.

  • Walk the complete user journey: landing page → signup/login → main feature → key action → result
  • Test every feature in the delta: for each issue merged, exercise the feature on production
  • Test at multiple viewports: desktop (1280px) + mobile (375px)
  • Click every button: "button exists" ≠ "button works." Test the FUNCTION, not the EXISTENCE
  • Screenshot everything: take screenshots as evidence of each verification
  • Check for regressions: navigate 3-5 core pages/flows beyond the delta

Report format:

## Production Test Report
| Feature | User Journey | Desktop | Mobile | Status |
|---------|-------------|---------|--------|--------|

User Testing

After agent testing completes, invite the user to test:

  • Tell the user: "Production is deployed at [URL]. Please test the new features and report any issues."
  • User tests at their own pace — this is NOT a blocker for the current merge
  • When user provides feedback: create issues immediately for each bug/improvement
  • Do NOT argue "technically correct" — if the user says it doesn't work, it doesn't work

Consolidate Bugs

After both rounds of testing:

  • Combine agent-found and user-found issues into a prioritized list
  • Create GitHub issues for each bug using issue-create skill
  • These issues enter the NEXT development cycle — they do not block the current release

Step 2: Check Acceptance Criteria Boxes

  • Go to the linked GitHub issue
  • Update the issue body: replace - [ ] with - [x] for all completed criteria
  • Use the GitHub API to update:
    gh api repos/OWNER/REPO/issues/NUMBER -X PATCH -f body="..."
  • If any acceptance criteria are NOT met, do not close the issue — go back and fix

Step 3: Close the Issue

  • Run: gh issue close NUMBER
  • Important: Closes #X in the PR body only auto-closes issues when merging to the default branch (main), not dev
  • Since we merge to dev first, you must close issues manually
  • Only close after Steps 1 and 2 are complete

Milestone Completion Check: After closing the issue, check if the milestone is now complete:

  1. Get the issue's milestone: gh issue view NUMBER --json milestone --jq '.milestone.title'
  2. If a milestone exists, check for remaining open issues: gh issue list --milestone "MILESTONE_NAME" --state open
  3. If 0 open issues remain → this milestone is complete. Immediately invoke retro — do not wait for the user to ask.
  4. This check is mandatory, not optional. Every closed issue could be the last one in a milestone.

Step 4: Delete the Branch

  • Remote: use --delete-branch flag when merging PR, or git push origin --delete <branch-name>
  • Local: git branch -d <branch-name>
  • Delete IMMEDIATELY after merge — do not defer. If the PR was squash-merged, git loses merge tracking. The longer you wait, the harder it is to delete with -d (safe delete). Deleting right after merge avoids this entirely.
  • Verify deletion: git branch -a should no longer show the branch

Step 5: Create GitHub Release (main merges only)

This step applies ONLY when the merged PR was dev → main (a release merge). Skip for feature → dev merges.

Determine version bump by analyzing commits since the last release tag:

  • Run: git log $(git describe --tags --abbrev=0 2>/dev/null || echo HEAD~50)..HEAD --oneline
  • Contains feat: or feat( → minor bump (new functionality)
  • Contains only fix: or fix( → patch bump (bug fixes only)
  • Contains BREAKING CHANGE or !: → major bump
  • If no prior tag exists, start at v0.1.0

Create the release:

gh release create vX.Y.Z --title "vX.Y.Z" --generate-notes --latest
  • --generate-notes auto-generates release notes from merged PR titles
  • Tags the current main HEAD

Verify the release:

  • Run gh release view vX.Y.Z to confirm it was created
  • Verify the tag: git tag -l vX.Y.Z

Reminder

All five steps. Every merge. No shortcuts. If you skip branch cleanup today, you will have 50 stale branches next month. If you skip verification, you will ship broken features. The process exists because it works.

Next Steps

Report to user: "Issue #[N] merged. [N/total] complete. AC: [all checked / gaps]. Branch: [deleted]" If release: "v[X.Y.Z] released. Production test: [N bugs found]. Please test [URL]."

Suggested next steps (user decides):

  • More issues remain → "Continue with next issue"
  • All issues done → "Run staging-verify, then release"
  • Release done → "Test the product, then run retro"

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.