diff --git a/.claude/skills/pr/SKILL.md b/.claude/skills/pr/SKILL.md index 2b4f1d7..a28c09c 100644 --- a/.claude/skills/pr/SKILL.md +++ b/.claude/skills/pr/SKILL.md @@ -1,6 +1,6 @@ --- name: pr -description: "Use when writing a PR body." +description: "Use when starting work on a request, pushing to a branch or writing a PR body." metadata: credits: skill: show-me @@ -9,6 +9,15 @@ metadata: url: "https://github.com/humanlayer/skills/blob/main/plugins/show-me/skills/show-me/SKILL.md" --- +## One change per PR + +- Give each new request its own branch from the latest base and its own PR, even while another PR is open. +- Push to an open PR only to fix that PR's own change or answer its review. +- When a request needs an unmerged PR, branch from that PR and name it in the new PR. +- When unsure whether a request belongs to an open PR, open a new one. + +## PR body + Write the PR body with this template. Skip preambles, keep prose brief and use the project's domain words. ```markdown diff --git a/AGENTS.md b/AGENTS.md index 01bb06e..28b9fd2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -19,4 +19,4 @@ - Follow the [test audit skill](.claude/skills/test-audit/SKILL.md) before a migration or broad refactor. - Use the [standard review skill](.claude/skills/review-standard/SKILL.md) when reviewing a diff for simplifications. -- Use the [PR writing skill](.claude/skills/pr/SKILL.md) when writing a pull request. +- Use the [PR writing skill](.claude/skills/pr/SKILL.md) when starting a change and when writing a pull request. diff --git a/package.json b/package.json index c93f56c..f0e088d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mapringg/standard", - "version": "1.3.1", + "version": "1.4.0", "description": "One oxlint config and plugin for every repository.", "license": "MIT", "repository": "github:mapringg/standard", diff --git a/src/plugin/agent-docs.mjs b/src/plugin/agent-docs.mjs index 98e0fb0..a7b41a5 100644 --- a/src/plugin/agent-docs.mjs +++ b/src/plugin/agent-docs.mjs @@ -21,7 +21,7 @@ const EXTENSION = /\/[^/]*\.[a-z\d]+$/i; const VERSION = /(? { deepEqual(findings(t, standardInstall), [ - `AGENTS.md: Add [PR writing](${prSkill}) under ## Sources for writing pull requests.`, + `AGENTS.md: Add [PR writing](${prSkill}) under ## Sources for starting a change and writing pull requests.`, `AGENTS.md: Add [Standard review](${reviewSkill}) under ## Sources for branch and pull request reviews.`, `AGENTS.md: Add [Test audit](${auditSkill}) under ## Sources for migrations and broad refactors.`, ]); @@ -198,7 +198,7 @@ test("adopters with no root agent instructions are told where to add the standar test("adopters put the skill references in agent instructions even when README links to them", (t) => { deepEqual(findings(t, { ...standardInstall, "AGENTS.md": "# Adopter\n", "README.md": skillLinks }), [ - `AGENTS.md: Add [PR writing](${prSkill}) under ## Sources for writing pull requests.`, + `AGENTS.md: Add [PR writing](${prSkill}) under ## Sources for starting a change and writing pull requests.`, `AGENTS.md: Add [Standard review](${reviewSkill}) under ## Sources for branch and pull request reviews.`, `AGENTS.md: Add [Test audit](${auditSkill}) under ## Sources for migrations and broad refactors.`, ]);