/test-plan:test-plan-resolve-feedback <PR_URL>from test-plan
Assess PR review comments on a published test plan, let the user decide what to apply, make changes, and push updates to the same branch. Use when receiving PR review feedback to efficiently apply approved changes with human control over what gets updated.
Ships in test-plan. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read review comments from a GitHub PR, assess each one against the existing test plan, let the user decide which to apply, make the changes, and push updates to the same branch.
/test-plan-resolve-feedback <PR_URL>
Examples:
/test-plan-resolve-feedback https://github.com/org/test-plans-repo/pull/42Parse $ARGUMENTS to extract:
https://github.com/<owner>/<repo>/pull/<number>)Parse the URL to extract owner, repo, and PR_NUMBER.
If no PR URL is provided, ask the user for it via AskUserQuestion.
Install the test-plan package (makes all scripts importable):
bash "${CLAUDE_SKILL_DIR}/../../scripts/bootstrap.sh" --layout "${CLAUDE_SKILL_DIR}" || exit 1
(cd "$(cd -P "${CLAUDE_SKILL_DIR}/../.." && pwd -P)" && uv sync --extra dev)
If installation fails, inform the user and do NOT proceed. Once installed, all Python scripts will work from any directory.
Run gh auth status via Bash. If it fails, inform the user that gh CLI must be installed and authenticated. Do NOT proceed until this succeeds.
Fetch PR metadata:
gh pr view <PR_NUMBER> --repo <owner>/<repo> --json number,title,state,headRefName,body
If the PR does not exist or is closed/merged, inform the user and stop.
Parse repo name from <owner>/<repo>.
Check if repo exists locally:
repo_path=$(cd "$(cd -P "${CLAUDE_SKILL_DIR}/../.." && pwd -P)" && uv run python scripts/repo.py find "<repo_name>")
If found (exit code 0, prints path):
(cd "$(cd -P "${CLAUDE_SKILL_DIR}/../.." && pwd -P)" && uv run python scripts/repo.py safe-checkout "$repo_path" "<head_branch>")
repo_path to the outputIf NOT found (exit code 1, empty output):
repo_path=$(cd "$(cd -P "${CLAUDE_SKILL_DIR}/../.." && pwd -P)" && uv run python scripts/repo.py clone "<repo_url>" "~/Code/<repo_name>")
cd "$repo_path"
git checkout <head_branch>
repo_path to ~/Code/<repo_name>Find the feature directory by looking for TestPlan.md on the branch:
find . -name "TestPlan.md" -not -path "./.claude/*"
If multiple feature directories are found, ask the user which one to use via AskUserQuestion.
Validate the TestPlan.md frontmatter. If validation fails, show the errors — these will need to be fixed as part of the feedback resolution.
(cd "$(cd -P "${CLAUDE_SKILL_DIR}/../.." && pwd -P)" && uv run python scripts/frontmatter.py validate <feature_dir>/TestPlan.md)
Fetch all review comments (conversation + inline, bots filtered):
comments_json=$(cd "$(cd -P "${CLAUDE_SKILL_DIR}/../.." && pwd -P)" && uv run python scripts/repo.py pr-comments "<owner>/<repo>" <PR_NUMBER>)
The script returns a JSON array of comments, each with author, body, type (conversation/review/inline), and optional path/line for inline comments. Bot comments are already filtered.
From the returned comments, filter out:
If no actionable comments remain, inform the user and stop.
Read <feature_dir>/TestPlan.md using the Read tool. This is needed to assess each comment against what the plan currently says.
If TestPlanGaps.md exists, read it too — some feedback may relate to known gaps.
For each actionable comment, assess it against the existing test plan content and present your assessment to the user. Process comments one at a time (or in small related groups) via AskUserQuestion.
For each comment, present:
Feedback # — @ File: (line , if inline)
Assessment:
Explain whether the feedback:
- Aligns with the strategy and test plan — the reviewer is pointing out a genuine gap or issue
- Conflicts with existing content — the reviewer may be suggesting something that contradicts the strategy scope or is explicitly out-of-scope
- Needs clarification — the comment is ambiguous and you cannot determine the right change without more context
- Is already covered — what the reviewer is asking for already exists in the plan (point to the specific section)
If the feedback aligns, describe the concrete change you would make (which file, which section, what edit).
Action?
- Apply — make the suggested change
- Skip — do not apply this feedback
- Discuss — you want to provide more context before deciding
If the user chooses Discuss, engage in conversation about the feedback item, then re-present the action choice.
Keep a running tally of applied vs skipped items.
For each accepted feedback item, apply the change:
TestPlan.md, TestPlanGaps.md, or test_cases/TC-*.md(cd "$(cd -P "${CLAUDE_SKILL_DIR}/../.." && pwd -P)" && uv run python scripts/frontmatter.py set <feature_dir>/TestPlan.md <field>=<value>)
TC-*.md files to reflect the feedbacktest_cases/INDEX.md atomically if test cases were added, removed, or re-prioritized:
After all changes are applied:
Bump the version patch number (e.g., 1.0.0 → 1.0.1):
(cd "$(cd -P "${CLAUDE_SKILL_DIR}/../.." && pwd -P)" && uv run python scripts/version.py bump <feature_dir>/TestPlan.md patch)
The script outputs JSON with old_version and new_version.
Keep status as In Review
If gaps were resolved by the feedback, update TestPlanGaps.md:
(cd "$(cd -P "${CLAUDE_SKILL_DIR}/../.." && pwd -P)" && uv run python scripts/frontmatter.py set <feature_dir>/TestPlanGaps.md gap_count=<new_count>)
If all gaps resolved, set status=Resolved.
Run unified validation on all artifacts:
(cd "$(cd -P "${CLAUDE_SKILL_DIR}/../.." && pwd -P)" && uv run python scripts/validate.py all <feature_dir>)
If any validation fails, fix the issue before proceeding.
Present the final summary of changes to the user via AskUserQuestion before committing:
Ready to push changes
- Applied: of feedback items
- Skipped: items
- Version:
<old_version>→<new_version>- Files modified:
Push to branch
<head_branch>? (yes/no)
If the user declines, leave the changes uncommitted and stop.
Stage, check for changes, and commit in one call:
feature_name=$(basename "$feature_dir")
repo_root=$(git -C "$feature_dir" rev-parse --show-toplevel)
if ! publish_result=$(cd "$(cd -P "${CLAUDE_SKILL_DIR}/../.." && pwd -P)" && uv run python scripts/repo.py publish-artifacts "$repo_root" "$feature_name" "test-plan(<source_key>): <short summary of changes> (PR #<PR_NUMBER>)"); then
echo "ERROR: publish-artifacts failed"; exit 1
fi
Generate the commit summary from the list of applied feedback items. Keep it concise — highlight the 2-3 most significant changes. See skills/commit-examples.md for examples.
Push to the same branch:
git push origin <head_branch>
Display a summary:
Feedback resolved successfully
- PR: #<PR_NUMBER>
- Branch:
<head_branch>- Version:
<old_version>→<new_version>- Applied: feedback items
- Skipped: feedback items
The PR has been updated. Reviewers will be notified of the new commits.
Switch back to the previous branch:
git checkout -
See skills/scope-boundaries.md for the full list of what this skill explicitly excludes and which skills to use instead.
$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
claude-sonnet-4-6Other plugins' skills for the same job
16 skills in this plugin
/test-plan-analyze-endpointsAnalyzes strategy, optional ADR, and optional design spec to extract feature scope, AC-traced test objectives, and interfaces under test. Use for extracting technical scope and e2e/UI test surface from requirements documents./test-plan-analyze-infraAnalyzes strategy, optional ADR, and optional design spec to identify test environment configuration, test data, test users, infrastructure, and tooling requirements. Use for determining test execution prerequisites and infrastructure setup needs./test-plan-analyze-risksAnalyzes strategy, optional ADR, and optional design spec to determine test levels, test types, priority definitions, non-functional requirements, and risks with mitigations. Use for identifying what needs testing, how to prioritize test coverage, and what risks to mitigate.test-plan@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin test-plan