Pr create test plan
Skill MAHDTech/agent-skills/skills/review/pr-create-test-plan
Generate a manual test plan for a branch's changes β hands-on verification of real user flows and integration behaviour, not unit-test edge cases. Use when you want a copy-paste test plan a reviewer can run by hand before merging a PR.From its SKILL.md
npx -y skills add MAHDTech/agent-skills --skill pr-create-test-planAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.3 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it
PR Test Plan
Generate a manual test plan for the changes in the current branch. The plan should focus on what a developer/reviewer needs to manually verify β real user flows, integration behavior, and observable outcomes. Leave input validation, error branches, and edge cases to unit tests.
Instructions
Step 1: Detect base branch
Try these methods in order:
BASE_BRANCH=$(gh repo view --json defaultBranchRef -q '.defaultBranchRef.name' 2>/dev/null)
BASE_BRANCH=$(git remote show origin 2>/dev/null | grep "HEAD branch" | cut -d: -f2 | xargs)
If both fail, ask the user.
Step 2: Gather change context
Run all of these and capture the results:
git diff $BASE_BRANCH...HEAD --name-only
git diff $BASE_BRANCH...HEAD --stat
git log $BASE_BRANCH..HEAD --oneline
Step 3: Detect project tooling
Check what's available in the project so you can reference real commands (not generic guesses):
- Makefile targets:
make help 2>/dev/null || grep -E '^[a-z_-]+:.*##' Makefile makefiles/*.mk 2>/dev/null - Package manager: Look for
pyproject.toml(uv/pip),package.json(npm/pnpm),Cargo.toml(cargo),go.mod(go) - Test runners: Look for
pytest.ini,pyproject.toml [tool.pytest],jest.config.*,.mocharc.* - Project docs: Read
AGENTS.md,CONTRIBUTING.md, orREADME.mdfor project-specific test/build instructions - CI config: Check
.github/workflows/,Makefile, orTaskfile.ymlfor existing test commands
Prefer project Makefile targets and documented commands over raw tool invocations. If the project has make test_unit, use that instead of uv run pytest tests/unit/.
Step 4: Categorize changes and confirm with user
Group changed files into categories. Common categories (adapt based on actual changes):
- Feature code -- new commands, API routes, services, UI components
- Configuration / docs -- config files, markdown, schemas, manifests
- Tests -- new or modified test files
- Build / deploy -- Makefiles, CI, Dockerfiles, scripts
- Deletions -- removed files or deprecated code
Present the detected categories to the user with a summary of what changed in each. Ask them to confirm or adjust before generating the full plan.
Example confirmation format:
I found 3 change areas in this branch:
1. CLI agent mode -- new --agent flag on setup command (cli/commands/setup.py, cli/cli.py)
2. Skills restructuring -- SKILL.md rewrite, new reference docs, deleted shell scripts
3. Test fixes -- E2E test stability improvements (4 test files)
Should I generate the test plan for all 3, or would you like to adjust?
Step 5: Generate the test plan
For each confirmed category, generate a test section following these rules:
Severity & importance markers
Tag every test step with one of these emojis in the step title:
| Emoji | Meaning | When to use |
|---|---|---|
| π΄ | Critical | Core functionality β if this fails, the feature is broken |
| π’ | Expected | Standard behavior that should work β moderate confidence but worth verifying |
| π΅ | Nice-to-have | Polish, UX, non-blocking β skip if short on time |
Example: 1a. π΄ **Pre-register a profile end-to-end**
Formatting rules
- Numbered sections with separator lines (
---) between them - Numbered sub-steps within each section (1a, 1b, 1c...)
- Each sub-step has an emoji tag + bold title describing what to test
- Each sub-step has a copy-paste command in a fenced code block (or manual UI steps if applicable)
- Each sub-step has a "Verify:" line stating what success looks like
- One command per code block -- never stack multiple commands in one block with comments between them
- Use Makefile targets when available instead of raw tool commands
- For commands requiring env vars, put them inline:
GROVE_API_URL=http://localhost:8000 make test_e2e_suite
What to focus on (and what to skip)
DO include β things you must verify manually:
- Happy-path user flows end-to-end (the main thing the feature does)
- Integration points β does component A actually talk to component B correctly?
- State transitions β does data persist, propagate, and display correctly across the system?
- Resumption / retry behavior β if a multi-step process fails midway, does retry work?
- UI rendering β does the new section/field/page show up and look right?
- API response shape β do new fields appear in real responses?
- Existing behavior preserved β does the change break anything that was already working?
DO NOT include β leave these for unit tests:
- Invalid input validation (wrong types, missing fields, malformed data)
- Boundary values and off-by-one checks
- Error message wording verification
- Permission/auth edge cases (401/403 responses)
- Schema validation failures
Quick smoke test section
Always end with a "Quick Smoke Test" section -- the 2-3 commands a reviewer would run if they only have 60 seconds. Tag each with the appropriate emoji.
Step 6: Write output
- Write the plan to
TEST_PLAN.mdin the repo root - Print a summary to the terminal showing the section count and a one-liner per section
Terminal summary format:
Wrote TEST_PLAN.md with 4 sections:
1. CLI Agent Mode -- 4 test steps (π΄Γ2, π’Γ1, π΅Γ1)
2. Skills Restructuring -- 3 test steps (π΄Γ1, π’Γ2)
3. Automated Tests -- 2 test steps (π’Γ2)
4. Quick Smoke Test -- 3 commands
Run `cat TEST_PLAN.md` to view the full plan.
Style Reference
Follow the same style used in /gh-create-pr:
- Bold the what, plain text the how
- No fluff -- every step must verify something real that a human needs to see
- Copy-paste ready -- a reviewer should never need to edit a command
- Separate code blocks -- one command per block, bold header above it
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.