hassio-addons: Command for GitHub Copilot

.github/prompts/pr-coderabbit.md

pr-coderabbit is a command for GitHub Copilot from alexbelgium/hassio-addons. It costs 0 tokens per session (642 once invoked), scanned A, original, MIT.

A command for handling CodeRabbit feedback on a pull request. CodeRabbit is an automated code-review service that leaves general and line-specific comments.

In plain words
What is it for?
It helps inspect review comments, amend the pull request, and explain why a suggestion does not apply.
Why use it?
It gathers the review's actionable comments and ensures each one is either fixed or answered instead of being ignored.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

This is alexbelgium/hassio-addons's own configuration. It tells GitHub Copilot how to work on hassio-addons 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 hassio-addons configures →

About the project

alexbelgium/hassio-addons is a repository of add-ons that extend Home Assistant, the home-automation platform, with additional services and tools. Home Assistant users install these add-ons to expand their systems, and the catalogue entry relates to the repository's own add-on workflow.

alexbelgium/hassio-addons · 2,588 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to alexbelgium/hassio-addons. 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/alexbelgium/hassio-addons/master/.github/prompts/pr-coderabbit.md
Clone the repo
git clone --depth 1 https://github.com/alexbelgium/hassio-addons

Made for: GitHub Copilot.

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-coderabbit

README.md
[![agentmods](https://agentmods.dev/badge/commands/alexbelgium/hassio-addons/pr-coderabbit.svg)](https://agentmods.dev/commands/alexbelgium/hassio-addons/pr-coderabbit)
Your own site
<a href="https://agentmods.dev/commands/alexbelgium/hassio-addons/pr-coderabbit"><img src="https://agentmods.dev/badge/commands/alexbelgium/hassio-addons/pr-coderabbit.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 642 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.
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.00000 $0.00642
Opus 5 $0.00000 $0.00321
Sonnet 5 $0.00000 $0.00128
Haiku 4.5 $0.00000 $0.00064

Measured yesterday against content hash e2e3808c76f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pr-coderabbit 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 yesterday.

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.

.github/prompts/pr-coderabbit.md · 53 lines

How it starts

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

Address CodeRabbit's review — one-shot

CodeRabbit reviewed an AI-authored pull request. You are checked out on that PR's branch (ai-fix/<addon>-<issue>). Your job, in a single pass: read CodeRabbit's feedback and either fix each actionable point or reply saying why it doesn't apply. This runs once — CodeRabbit re-reviewing your pushed fix will not trigger you again.

The PR number is in your prompt. Set PR to it.

Gather the feedback

  • Review summaries and verdicts: gh pr view "$PR" --json reviews,title,body,files
  • Inline (line-level) comments — this is where CodeRabbit's concrete suggestions live: gh api "repos/${GITHUB_REPOSITORY}/pulls/${PR}/comments" --paginate Each has path, line, body, and an id (needed to reply).

Consider only comments authored by coderabbitai[bot]. Ignore its collapsed "nitpick"/"outside diff" noise unless the point is real.

Hard limits (a workflow step enforces the first)

  1. Never modify .github/ or .templates/. Repo-wide infrastructure.
  2. Leave version in config.yaml alone, and never edit updater.json. The rest of config.yaml is fair game. Unlike the fix sweep, you are amending a pull request that has already bumped the local patch counter — one bump covers the whole PR, so incrementing it again here would just churn the diff.
  3. Stay within this PR's scope and branch. Do not open a new PR, do not touch other add-ons, do not merge, do not mark ready/draft.

For each actionable comment

  • Fix it when it's a real correctness, safety, or clarity improvement within scope: make the minimal edit, run shellcheck on any shell you change, and if behaviour changed update the add-on's CHANGELOG.md entry.
  • Decline it when it's wrong, out of scope, or a style nit that fights the add-on's conventions: reply to that specific comment with one sentence of reasoning: gh api "repos/${GITHUB_REPOSITORY}/pulls/${PR}/comments/<id>/replies" -f body='...'

Read the full file on GitHub · 53 lines

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. yesterday First seen · 53 lines · 0 tokens per session scan A e2e3808c76f7

Subscribe to this mod's changes

pr-coderabbit is a command published in the GitHub repository alexbelgium/hassio-addons (2,588 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 642 tokens. 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-07.