Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .claude/skills/pr/SKILL.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/agent-docs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const EXTENSION = /\/[^/]*\.[a-z\d]+$/i;
const VERSION = /(?<![\d.])v?\d+\.\d+\.\d+(?!\.?\d)/g;
const STANDARD_PACKAGE = "node_modules/@mapringg/standard";
const AGENT_SKILLS = [
{ name: "pr", label: "PR writing", use: "writing pull requests" },
{ name: "pr", label: "PR writing", use: "starting a change and writing pull requests" },
{ name: "review-standard", label: "Standard review", use: "branch and pull request reviews" },
{ name: "test-audit", label: "Test audit", use: "migrations and broad refactors" },
];
Expand Down
4 changes: 2 additions & 2 deletions test/agent-docs.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,15 @@ const skillLinks = `# Adopter

test("adopters with no root agent instructions are told where to add the standard skills", (t) => {
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.`,
]);
});

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.`,
]);
Expand Down
Loading