agentleFS
sreejithramansreejithraman/SreeStack/skills/merge/SKILL.md

merge

Skill1 starsChanged 16 days agoMITView on GitHub

Use when the user asks to merge a ready PR or stack and finish its issues and cleanup.

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use addskill, apply-firmware and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ryanportfolioSkill

    addskill

    Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.

    Also in 6 projects that use this

  • ryanportfolioSkill

    apply-firmware

    Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.

    Also in 6 projects that use this

  • +10 more from ryanportfolio

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 48 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check readiness: Read current GitHub state and reuse applicable handoff evidence.

    line 22
  2. Distinctive:

    Before local history changes, apply Preserve local files and verify retained files after success or recovery.

    line 33
  3. Very specific:

    Land: Follow repository merge settings, protections, and queues.

    line 37
  4. Distinctive:

    Finish issues: Check linked or task-scoped issues against their acceptance criteria and intended delivery branch.

    line 47
  5. Distinctive:

    Clean up: Use repo-cleanup for confirmed merges, passing merge results, proven merge-time source heads, branches/bases, worktrees, and …

    line 55

“Common” is measured: kept by at least 6 in 10 of the 48 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

Merge

A merge request authorizes landing the scoped work, closing fully resolved issues, and cleanup of task-owned temporary resources. Honor the user's limits. Return readiness blockers to the caller; fixes belong to pr or the caller.

  1. Scope. Identify the repository, target PRs, landing branch, and readiness evidence. If the scoped work has no PR, invoke pr in preparation-only mode to prepare and publish it, then return here with readiness evidence. This invocation retains the original merge request. For stacks, use gh-stack to resolve the exact merge set and command target; authorization must cover every included layer. Already merged PRs proceed directly to issue completion and cleanup. Register scoped PRs using thread registration's T3 linking rules, even when preparation is already complete.
  2. Check readiness. Read current GitHub state and reuse applicable handoff evidence. Verify head/base commits, checks, approvals, review threads, accepted fixes, and mergeability. Stale or missing verification and unmet requirements block landing. So do closing links that would close unfinished issues; return them to the caller for correction.

    For every PR, including docs-only changes, require current head/base review that includes Show, Don't Tell, plus required verification. Reuse matching evidence. If missing or stale, invoke pr in preparation-only mode and return refreshed evidence here. After repairs or restacking, recheck every affected layer. Before local history changes, apply Preserve local files and verify retained files after success or recovery. Land the original merge set only after all its PRs meet readiness requirements.

  3. Land. Follow repository merge settings, protections, and queues. For a single PR, use gh pr merge with --match-head-commit <verified-head>; leave branch deletion to cleanup. For stacks, use gh-stack and require guards against unverified head changes on every layer: head preconditions or enforced current-head checks and fresh approvals after pushes. If unavailable, report the blocker; see branch protection. Confirm GitHub reports each PR merged; queued work remains pending. After a failed or timed-out submission, check GitHub state before retrying.
  4. Finish issues. Check linked or task-scoped issues against their acceptance criteria and intended delivery branch. Confirm automatic closure or close a fully resolved open issue as completed with the merged PR link. Keep partial issues and those depending on unmerged layers open. Check existing state and comments before posting. An intermediate stack merge does not prove delivery; automatic closing links apply when work reaches the default branch.
  5. Clean up. Use repo-cleanup for confirmed merges, passing merge results, proven merge-time source heads, branches/bases, worktrees, and known task resources, including device installs. Identify resources needed by remaining stack layers. Issue-update failures do not prevent eligible cleanup.

Report merged and pending PRs, issue results, cleanup results, and blockers.

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.