agentleFS
stijnvanhullestijnvanhulle/agents/.agents/skills/pr/SKILL.md

pr

Skill1 starsChanged 2 months agoMITView on GitHub

Prepare, open, update, or assess a pull request, including checks, changesets, title, template, and CI.

  • Commits and pushes

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Never commit to main. Check where you are, and branch from an up-to-date main when still on it:

    line 12
  2. Very specific:

    Use the branch skill's <category>/<ISSUE-REF>_<slug> shape.

    line 22
  3. Very specific:

    Run the format, lint, typecheck, and test scripts the repo defines in package.json, for example:

    line 27
  4. Very specific:

    Run the changeset skill for versioned package changes.

    line 39
  5. Distinctive:

    Use one imperative Conventional Commit per logical change, under 72 characters, no period.

    line 43
  6. Very specific:

    When .github/pull_request_template.md exists, fill it without deleting sections.

    line 52
  7. Distinctive:

    Checklist: check only what ran; explain unchecked items.

    line 58
  8. Distinctive:

    Read a few recently merged PRs first and match their format.

    line 62
  9. Very specific:

    Keep every section short. When the body runs long, cut background, not sections.

    line 66
  10. Distinctive:

    Never push to main. On stop, leave the commits local and say so.

    line 73
  11. Very specific:

    Use gh, open ready for review, and use only existing labels.

    line 87
  12. Distinctive:

    Keep the diff scoped. No drive-by refactors or force-pushes.

    line 96
  13. Very specific:

    Run deslop on generated code before push.

    line 97

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

Take a branch to merge-ready. Work in order; disclose any unfinished step in the PR body.

1. Branch

Never commit to main. Check where you are, and branch from an up-to-date main when still on it:

git status
git branch --show-current
git fetch origin main
git switch -c <category>/<ISSUE-REF>_<branch-name> origin/main

Use the branch skill's <category>/<ISSUE-REF>_<slug> shape. Omit the reference when none exists.

2. Checks

Run the format, lint, typecheck, and test scripts the repo defines in package.json, for example:

pnpm format && pnpm lint:fix && pnpm typecheck && pnpm test

Also run the build after package-source changes. Skip a script the repo does not define. Fix failures at the source; never weaken a type or rule, or skip a test.

3. Changeset

Run the changeset skill for versioned package changes. Docs, CI, and tests alone need none.

4. Commit

Use one imperative Conventional Commit per logical change, under 72 characters, no period. Review git diff --cached. Never commit secrets or generated output; generate lockfiles with pnpm.

5. Title and body

Title: imperative Conventional Commit, under 72 characters, no period. Derive the type from the change or issue label, not feature/hotfix. Put Closes #123 in the body.

When .github/pull_request_template.md exists, fill it without deleting sections. Without one, use these sections:

  • Changes: what changed and why, in 1 to 3 sentences.
  • How to test: three clean-checkout steps ending in the expected result. If the diff cannot supply them, use the ask skill. Add screenshots for visible changes.
  • Checklist: check only what ran; explain unchecked items.
  • Release impact: changeset, docs-only, and breaking boxes must match the diff.
  • Impact: who is affected and any migration.

Read a few recently merged PRs first and match their format. Name each referent, such as a PR number or file, and copy every number from its source. Leave out what you tried along the way, since the reader wants the current state.

Keep every section short. When the body runs long, cut background, not sections. Run humanizer over user-facing prose.

6. Push and open

Pushing publishes commits, so confirm first. Follow the ask skill: name the branch and offer push and open the PR, push only, or stop. Wait for the answer. A yes covers that branch only. Never push to main. On stop, leave the commits local and say so.

git fetch origin main
git pull --ff-only
git push -u origin <branch>

gh pr create \
  --base main \
  --title "<conventional commit title>" \
  --body-file <body>.md \
  --assignee @me

Use gh, open ready for review, and use only existing labels. One PR does one thing.

7. CI and review

Fix red CI before handoff. Re-run only infrastructure failures. Reply to every review comment with what changed and how to verify it; propose before making a large requested change.

Guardrails

  • Keep the diff scoped. No drive-by refactors or force-pushes.
  • Run deslop on generated code before push.

Related skills

SkillUse for
branchNaming and cutting the branch this PR comes from
changesetThe changeset layout, bump, and wording
issueOpening the issue this PR closes

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.