用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Olshansk/personal-agent-skills --skill cmd-pr-test-plan命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Review protocol code for chain halt risks, non-determinism, and onchain behavior bugs
Improve code readability without altering functionality using idiomatic best practices
Remove dead code and duplication pragmatically with a 5-phase systematic approach
基于 SOC 职业分类
正在显示 SKILL.md
| name | cmd-pr-test-plan |
| description | Generate manual test plans for PR changes with verified commands and pass/fail criteria |
| disable-model-invocation | true |
| context | fork |
| agent | general-purpose |
Generate a manual test plan for the changes in the current branch. The plan should give a reviewer everything they need to verify the PR -- copy-paste commands, clear pass/fail criteria, and logical grouping by change area.
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.
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
Check what's available in the project so you can reference real commands (not generic guesses):
make help 2>/dev/null || grep -E '^[a-z_-]+:.*##' Makefile makefiles/*.mk 2>/dev/nullpyproject.toml (uv/pip), package.json (npm/pnpm), Cargo.toml (cargo), go.mod (go)pytest.ini, pyproject.toml [tool.pytest], jest.config.*, .mocharc.*AGENTS.md, CLAUDE.md, CONTRIBUTING.md, or README.md for project-specific test/build instructions.github/workflows/, Makefile, or Taskfile.yml for existing test commandsPrefer 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/.
Group changed files into categories. Common categories (adapt based on actual changes):
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?
For each confirmed category, generate a test section following these rules:
---) between themGROVE_API_URL=http://localhost:8000 make test_e2e_suiteFeature code:
--help output shows new flags/optionsConfiguration / docs:
Tests:
Build / deploy:
Deletions:
Always end with a "Quick Smoke Test" section -- the 2-3 commands a reviewer would run if they only have 60 seconds.
TEST_PLAN.md in the repo rootTerminal summary format:
Wrote TEST_PLAN.md with 4 sections:
1. CLI Agent Mode -- 7 test steps (happy path, errors, help text)
2. Skills Restructuring -- 6 test steps (validation, file checks, local serve)
3. Automated Tests -- 4 test steps (unit, CLI, SDK, E2E suite)
4. Quick Smoke Test -- 3 commands
Run `cat TEST_PLAN.md` to view the full plan.
Follow the same style used in cmd-pr-description: