From base
Post review comments to a GitHub PR as a PENDING review using a dedicated workflow script (post-pr-review.sh) and severity tag system. Use after completing code review (pr-review-toolkit:review-pr, code-reviewer, silent-failure-hunter, or any review agent) to submit structured feedback. This skill provides the post-pr-review.sh script for correct PENDING review creation, 6-level severity tags ([critical]/[warning]/[suggestion]/[nit]/[question]/[praise]), diff line validation, and Japanese reporting. Always use this skill when posting, submitting, or sending review comments to a PR — do not attempt to call the GitHub review API directly without this skill's workflow.
npx claudepluginhub kkhys/claude-code-marketplaceThis skill is limited to using the following tools:
Post structured review comments to a GitHub PR as a PENDING review. The review is always created in PENDING state — never APPROVE or REQUEST_CHANGES. This is because submitting immediately would notify the PR author before the user has reviewed and edited the comments on GitHub.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Post structured review comments to a GitHub PR as a PENDING review. The review is always created in PENDING state — never APPROVE or REQUEST_CHANGES. This is because submitting immediately would notify the PR author before the user has reviewed and edited the comments on GitHub.
This skill requires review results from the current session. Acceptable sources:
pr-review-toolkit:review-pr or similar review agent outputIf no review data exists in the current session, prompt the user:
セッション内にレビュー結果が見つかりません。先にレビューを実行するか、レビュー内容を提供してください。
Every comment must start with a severity tag on its own line. This gives the PR author a quick way to scan the comment list and know what action is needed.
| Tag | Meaning |
|---|---|
[critical] | Bugs, security, data loss — must fix before merge |
[warning] | Logic errors, performance, edge cases — should fix |
[suggestion] | Better approaches, readability — consider |
[nit] | Style, naming — optional |
[question] | Unclear intent — reply needed |
[praise] | Good pattern — no action needed |
Format: tag alone on the first line, body starting on the next line (1-3 sentences).
[warning]
This catch block swallows the error silently. Consider logging or re-throwing.
When the fix is a concrete, small change, use a GitHub suggestion block. The PR author can apply it with one click, which significantly speeds up the review cycle.
[warning]
`TECM-**` is shell glob notation, not a regex.
```suggestion
const match = branchName.match(/TECM-[0-9]+/);
```
start_line + line to define the rangeExtract from each finding:
Verify that each comment's line number falls within the PR diff using gh pr diff. The GitHub API rejects comments on lines outside the diff, so this validation is mandatory.
Handling lines outside the diff:
Create a payload JSON and pass it to the script:
bash "${CLAUDE_SKILL_DIR}/scripts/post-pr-review.sh" /path/to/payload.json
Payload:
{
"body": "Review summary (optional)",
"comments": [
{
"path": "src/example.ts",
"line": 42,
"body": "[warning]\nThis catch block swallows errors silently."
},
{
"path": "src/utils.ts",
"start_line": 10,
"line": 15,
"body": "[suggestion]\nExtract this into a helper.\n\n```suggestion\nconst result = extractHelper(input);\n```"
}
]
}
Fields:
path: File path relative to repo root (required)line: Line number within the diff (required)body: Comment starting with severity tag (required)side: RIGHT (default, new code) or LEFT (deleted code)start_line / start_side: For multi-line comments (optional)For findings that reference files not in the diff, post as general PR comments:
gh pr comment --body "[severity]
Comment about non-diff code..."
After posting, report severity counts and the PR URL in Japanese:
PENDING レビューを投稿しました。
- [critical]: 1 件
- [warning]: 3 件
- [suggestion]: 2 件
PR で確認して送信してください: https://github.com/owner/repo/pull/123