agentleFS
andreaswasitaandreaswasita/copilot-agents-dojo/skills/pr-workflow/SKILL.md

pr-workflow

Skill54 starsChanged 6 months agoMITView on GitHub

Prepares branches and PRs for clean, reviewable merges.

  • Commits and pushes

10 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

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run via the powershell tool:

    line 58
  2. Distinctive:

    If anything fails, fix it before proceeding.

    line 66
  3. Distinctive:

    Before requesting a human reviewer:

    line 118
  4. Very specific:

    Run the code-review skill on your own change.

    line 121
  5. Very specific:

    Check for debug artifacts: console.log, print(), TODO, commented-out code.

    line 122
  6. Distinctive:

    DO NOT: leave WIP PRs open. Either it is ready for review or it is a draft you actively work on.

    line 137

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

PR Workflow Skill

Takes a working branch from "the code works" to "this is ready for a human reviewer": pre-flight checks, clean commits, a real description, self-review, and disciplined handling of feedback. Does NOT create draft "WIP" PRs that sit open for days.

When to Use

  • Preparing a feature branch for review.
  • Opening a pull request.
  • Writing or rewriting a PR description.
  • Restructuring commits before review.
  • The user says "submit this" or "get this ready for review".

Prerequisites

  • git configured with author identity.
  • gh CLI authenticated for PR creation (or web access to the host).
  • The powershell tool to run git, the test suite, and scripts/verify.sh.
  • A green test suite on the branch.

How to Run

1. Pre-flight: tests green, working tree clean, scope reviewed.
2. Clean up commits with interactive rebase if needed.
3. Push the branch.
4. Open the PR with a structured description.
5. Self-review the diff (use the `code-review` skill).
6. Address feedback in new commits — do not force-push during active review.

Quick Reference

StepCommand (run via powershell)Notes
Pre-flight testsnpm test / pytest / go test ./...Must exit 0
Dojo gatebash scripts/verify.sh --checkMust exit 0
Clean treegit status --porcelainEmpty
Review scopegit diff main --statMatches plan
Tidy historygit rebase -i mainOptional, before push
Pushgit push -u origin <branch>First push of branch
Open PRgh pr create --fill then edit bodyOr use the GitHub UI

Procedure

Step 1: Pre-Flight

Run via the powershell tool:

bash scripts/verify.sh --check
git status --porcelain
git diff main --stat

If anything fails, fix it before proceeding. A PR opened on a red branch wastes reviewer time.

Step 2: Clean Up Commits

Interactive rebase if the history is noisy:

git rebase -i main

Squash fixups. Reword unclear messages. Aim for a sequence that reads like a story:

feat: add rate limiting middleware
test: cover rate limit burst traffic
docs: document rate limit configuration

Commit message format:

<type>: <short description>

<body — what and why, not how>

Types: feat, fix, refactor, test, docs, chore

Step 3: Write the PR Description

## What
<Brief description.>

## Why
<Problem solved. Link the issue.>

## How
<High-level approach. Key design decisions.>

## Testing
<How was this tested? What should the reviewer verify?>

## Checklist
- [ ] Tests pass
- [ ] No regressions
- [ ] Docs updated (if applicable)
- [ ] `tasks/todo.md` reflects completion

Step 4: Self-Review

Before requesting a human reviewer:

  1. Open the PR on GitHub and read the diff in the web UI (different lens than local).
  2. Run the code-review skill on your own change.
  3. Check for debug artifacts: console.log, print(), TODO, commented-out code.
  4. Confirm the file list matches the stated scope.

Step 5: Handle Review Feedback

  • Address every comment (use the receiving-code-review skill).
  • Push fixes as new commits during active review.
  • Squash fixup commits just before merge.

Pitfalls

  • DO NOT open mega PRs (>400 lines changed across many files). Split them.
  • DO NOT force-push during active review — reviewers lose context.
  • DO NOT mix refactoring and feature work in one PR — separate them.
  • DO NOT omit the description. Reviewers should not have to reverse-engineer intent.
  • DO NOT leave WIP PRs open. Either it is ready for review or it is a draft you actively work on.

Verification

  • scripts/verify.sh --check exits 0 locally before push.
  • PR description has What / Why / How / Testing sections.
  • Commit history is readable (no wip, no fix stuff).
  • Diff scope matches the stated intent.
  • Self-review was run via the code-review skill before requesting human review.

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.