ha-mcp: Skill for Claude Code

.claude/skills/contrib-pr-review/SKILL.md

contrib-pr-review is a skill for Claude Code from harry189/ha-mcp. It costs 39 tokens per session (2,684 once invoked), scanned A, original, MIT.

A review checklist and workflow for pull requests from outside contributors. A pull request is a proposed code change, and the workflow checks its safety, quality, tests, size, and fit with the intended change.

In plain words
What is it for?
Reviewing a contribution to the ha-mcp GitHub project, including its files, author history, automated security comments, tests, and readiness for merging.
Why use it?
It helps reviewers avoid missing security problems, weak test coverage, oversized changes, or changes that do not match the request.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is harry189/ha-mcp's own configuration. It tells Claude Code how to work on ha-mcp 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 ha-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to harry189/ha-mcp. 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/harry189/ha-mcp/chore/gate-demo-throwaway/.claude/skills/contrib-pr-review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/harry189/ha-mcp

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 contrib-pr-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/harry189/ha-mcp/contrib-pr-review/github.svg)](https://agentmods.dev/skills/harry189/ha-mcp/contrib-pr-review)
Your own site
<a href="https://agentmods.dev/skills/harry189/ha-mcp/contrib-pr-review"><img src="https://agentmods.dev/badge/skills/harry189/ha-mcp/contrib-pr-review/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 contrib-pr-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/harry189/ha-mcp/contrib-pr-review"><img src="https://agentmods.dev/badge/skills/harry189/ha-mcp/contrib-pr-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,684 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.00039 $0.02684
Opus 5 $0.00019 $0.01342
Sonnet 5 $0.00008 $0.00537
Haiku 4.5 $0.00004 $0.00268

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

Security

Grade A, and why

contrib-pr-review 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.

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/contrib-pr-review/SKILL.md · 293 lines

How it starts

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

Contribution PR Review

Review PR #$ARGUMENTS from external contributor for safety, quality, and readiness.

Context

PR Metadata:

!`gh pr view $ARGUMENTS --repo homeassistant-ai/ha-mcp --json author,additions,deletions,files,commits,closingIssuesReferences,isDraft,reviews,url,title,body`

Contributor Stats:

!`gh api /repos/homeassistant-ai/ha-mcp/pulls/$ARGUMENTS --jq '{author: .user.login, user_id: .user.id}' | jq -r '.author' | xargs -I {} gh api /repos/homeassistant-ai/ha-mcp/contributors --jq '.[] | select(.login == "{}") | {login: .login, contributions: .contributions}'`

Files Changed:

!`gh api /repos/homeassistant-ai/ha-mcp/pulls/$ARGUMENTS/files --jq '.[] | {filename: .filename, status: .status, additions: .additions, deletions: .deletions, changes: .changes, patch: .patch}' | head -50`

Review Protocol

1. Check Gemini's Security Review

Note: Gemini Code Assist now handles security assessment automatically. Check if Gemini flagged any security concerns.

# Check if Gemini posted security-related comments
gh pr view $ARGUMENTS --repo homeassistant-ai/ha-mcp --json comments --jq '.comments[] | select(.author.login == "gemini-code-assist" or .body | contains("security") or contains("Security")) | {author: .author.login, body: .body}'

If Gemini flagged security issues:

  • Review Gemini's findings carefully
  • Verify if concerns are valid
  • Do NOT approve until issues addressed or confirmed false positives

If NO Gemini security flags but you notice concerning patterns:

  • Unusual AGENTS.md/CLAUDE.md changes unrelated to PR purpose
  • .github/ workflow modifications with pull_request_target
  • .claude/ agent/skill changes that could affect behavior
  • Comment immediately with specific concerns

2. Enable Workflows (If Safe)

If security assessment passes and PR has workflow changes or new workflows:

# Check current workflow status
gh api /repos/homeassistant-ai/ha-mcp/pulls/$ARGUMENTS/requested_reviewers

# Enable workflows if not enabled (requires WRITE permission)
# This command may fail if already enabled - that's OK
gh api -X PUT /repos/homeassistant-ai/ha-mcp/actions/workflows/pr.yml/enable 2>/dev/null || echo "Workflows already enabled or no permission"

Read the full file on GitHub · 293 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. 10d ago First seen · 293 lines · 39 tokens per session scan A d9de9b9a519f

Subscribe to this mod's changes

contrib-pr-review is a skill published in the GitHub repository harry189/ha-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 2,684 once invoked, about $0.0002 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-08-31.