Skip to content

Require one change per PR in the shared PR skill - #85

Merged
mapringg merged 1 commit into
mainfrom
mapring/enforce-one-change-per-pr
Nov 23, 2026
Merged

mapringg merged 1 commit into
mainfrom
mapring/enforce-one-change-per-pr

Conversation

@mapringg

Copy link
Copy Markdown
Owner

Why

Agents in adopting repos kept pushing new, unrelated requests onto one open PR. Every adopter must link the shared PR skill from its root AGENTS.md, and lint already enforces that link, so the skill is where the rule binds them.

Summary

 pr/SKILL.md
-description: Use when writing a PR body.
+description: Use when starting work on a request, pushing to a branch or writing a PR body.
+## One change per PR
+- Each new request gets its own branch from the latest base and its own PR.
+- Push to an open PR only to fix its own change or answer its review.
+- A request that needs an unmerged PR branches from it and names it.
+- When unsure, open a new PR.
+## PR body
 agent-docs lint: "Add [PR writing](...) under ## Sources for starting a change and writing pull requests."
 version 1.3.1 -> 1.4.0

There is no CI check. Deciding whether a commit belongs to a PR's change takes judgment. A heuristic such as file count, commit count or touched folders would flag legitimate PRs and still miss a small unrelated copy tweak.

Evidence

  • pnpm lint, pnpm format:check and pnpm knip are clean.
  • pnpm test passes 92 and fails 0. The two agent-docs tests now expect the new Sources message.

Merge Danger

Door: two-way

Blast Radius: adopters

Only adopters that bump to v1.4.0 get the new text. Their existing skill links keep working.

@mapringg
mapringg merged commit 2d1b4cb into main Nov 23, 2026
1 check passed
@mapringg
mapringg deleted the mapring/enforce-one-change-per-pr branch November 23, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant