vscode-sidebar-terminal: Skill for Claude Code

.claude/skills/pr-guardian/SKILL.md

pr-guardian is a skill for Claude Code from s-hiraoku/vscode-sidebar-terminal. It costs 157 tokens per session (1,856 once invoked), scanned A, original, MIT.

A watcher for GitHub pull requests, which are proposed code changes shared for review. It repeatedly checks merge conflicts, automated checks, and review comments, then runs fixes until the checks pass or it reaches its limit.

In plain words
What is it for?
Use it after opening or updating a pull request to monitor CI, detect conflicts, and respond to CodeRabbit review comments.
Why use it?
It removes the need to keep checking a pull request manually and handling each CI or review problem separately.

Skill for Claude Code

Written for Claude Code: PostToolUse hook event.

This is s-hiraoku/vscode-sidebar-terminal's own configuration. It tells Claude Code how to work on vscode-sidebar-terminal itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vscode-sidebar-terminal configures →

Reuse

Borrowing it

Nothing to install: this file belongs to s-hiraoku/vscode-sidebar-terminal. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/s-hiraoku/vscode-sidebar-terminal/main/.claude/skills/pr-guardian/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/s-hiraoku/vscode-sidebar-terminal

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-guardian

README.md
[![agentmods](https://agentmods.dev/badge/skills/s-hiraoku/vscode-sidebar-terminal/pr-guardian/github.svg)](https://agentmods.dev/skills/s-hiraoku/vscode-sidebar-terminal/pr-guardian)
Your own site
<a href="https://agentmods.dev/skills/s-hiraoku/vscode-sidebar-terminal/pr-guardian"><img src="https://agentmods.dev/badge/skills/s-hiraoku/vscode-sidebar-terminal/pr-guardian/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-guardian

Your own site · 80×15
<a href="https://agentmods.dev/skills/s-hiraoku/vscode-sidebar-terminal/pr-guardian"><img src="https://agentmods.dev/badge/skills/s-hiraoku/vscode-sidebar-terminal/pr-guardian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,856 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00157 $0.01856
Opus 5 $0.00078 $0.00928
Sonnet 5 $0.00031 $0.00371
Haiku 4.5 $0.00016 $0.00186

Measured 10d ago against content hash ba6ebbf18fc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

pr-guardian scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/poll_pr_status.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/pr-guardian/SKILL.md · 213 lines

How it starts

The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PR Guardian

Watch a PR, detect problems, fix them, repeat — until everything is green.

Why this exists

After pushing a PR you typically wait for CI, check for merge conflicts, and respond to CodeRabbit review comments. Each issue requires a separate manual step. PR Guardian automates the entire feedback loop: it polls the PR status at a fixed interval, dispatches the appropriate fix skill when a problem is found, and exits only when all checks pass (or the iteration limit is reached).

Quick start

/pr-guardian                     # Default: 5 min interval, 20 max iterations
/pr-guardian --interval 3        # Poll every 3 minutes
/pr-guardian --max-iterations 10 # Give up after 10 cycles

Workflow

Step 0: Validate preconditions

Before starting the loop, verify:

  1. gh CLI is installed and authenticated
  2. Current branch has an open PR (gh pr view)
  3. Display the PR number and URL

If any check fails, report the error and stop.

Step 1: Poll PR status

Run the bundled status script:

bash <skill-path>/scripts/poll_pr_status.sh

This returns a JSON object with these fields:

Field Type Meaning
branch string Current branch name
pr_number int PR number
checks_total int Total CI checks (excludes CodeRabbit)
checks_passed int CI checks that passed
checks_failed int CI checks that failed
checks_running int CI checks still in progress
has_conflict bool Merge conflicts detected
coderabbit_check string CodeRabbit check status: none/pending/pass/fail
coderabbit_comments int Number of CodeRabbit inline comments
all_green bool True when everything passes (including CodeRabbit)

Read the full file on GitHub · 213 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 213 lines · 157 tokens per session scan A ba6ebbf18fc7

Subscribe to this mod's changes

pr-guardian is a skill published in the GitHub repository s-hiraoku/vscode-sidebar-terminal (21 stars, last pushed 2d ago), licensed MIT. It adds 157 tokens to every session and 1,856 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.