Add /pr agent skill and refresh PR template - #779
Merged
Merged
Conversation
.claude/skills/pr/SKILL.md guides agents through opening a PR to PyPSA/pypsa-usa: base develop (never master, integration branches excepted), push-permission-aware remote choice, pre-commit + Tier A gauntlet, Tier B prompt for larger changes, equivalence/deltas-ledger evidence in the body, draft-when-evidence-missing, and fast-tests CI watch. Refresh .github/pull_request_template.md paths that had gone stale (envs/, config.default.yaml, doc/configtables -> workflow/envs/, workflow/repo_data/config/, docs/source/configtables/) and add a Testing section for tier evidence. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes proposed in this Pull Request
Adds a repo-committed Claude Code skill,
.claude/skills/pr/SKILL.md, invoked as/pr, that guides agents through opening a PR to this repository:developalways (nevermaster), with an exception for branches cut from an active integration branch (e.g.v1-epic), detected via merge-bases.upstreamwhen the invoking user has push permission, otherwise their fork with a cross-repo PR — so the same skill serves maintainers and external contributors.pre-commit, and Tier A (pytest -m fast, mirroring CI'sfast-testsjob). For changes that can alter network artifacts, the agent prompts the user to run Tier B (pytest -m integration) — encouraged, not required.fast-testscheck after opening.Also refreshes
.github/pull_request_template.md: checklist paths had gone stale (envs/environment.yaml,config.default.yaml,doc/configtables/*.csv→workflow/envs/environment.yaml,workflow/repo_data/config/config.default.yaml,docs/source/configtables/*.csv) and adds a Testing section the skill fills in.Note: the skill references the tiered pytest markers (
fast/integration) that land ondevelopwith #775; until then Tier A resolves against the existing unit suite once that merges.Testing
pre-commit run --files <changed files>: all hooks passed.pytest -m fast): not run — the tier markers/pytest config arrive with v1-epic: simplify-early pipeline with results-equivalence guarantee #775; this PR is docs/skill-only (no Python or workflow changes).Checklist
pre-commitandpytest -m fastpass locally.workflow/envs/environment.yaml. (n/a)workflow/repo_data/config/config.default.yaml. (n/a)docs/source/configtables/*.csv. (n/a)🤖 Generated with Claude Code