hedgehog: Skill for Claude Code

.claude/skills/hedgehog-bot/SKILL.md

hedgehog-bot is a skill for Claude Code from skyf0xx/hedgehog. It costs 141 tokens per session (1,169 once invoked), scanned A, original, MIT.

A maintainer-only role for handling the Hedgehog repository's incoming GitHub issues and pull requests. It follows the inbound-triage procedure and operates as the hedgehog-bot account rather than the maintainer's personal account.

In plain words
What is it for?
Use it to review the complete inbound queue, assess security and merit, fix or answer items, and close them.
Why use it?
It provides a defined, security-aware way to judge and resolve untrusted public contributions under the intended bot identity.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

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

Part of the hedgehog plugin — 20 skills, 5 agents, 1 hook shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to skyf0xx/hedgehog. 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/skyf0xx/hedgehog/master/.claude/skills/hedgehog-bot/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/skyf0xx/hedgehog

Made for: Claude Code.

Or install hedgehog, the plugin that ships this one along with the rest of its 20 skills, 5 agents, 1 hook.

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 hedgehog-bot

README.md
[![agentmods](https://agentmods.dev/badge/skills/skyf0xx/hedgehog/hedgehog-bot/github.svg)](https://agentmods.dev/skills/skyf0xx/hedgehog/hedgehog-bot)
Your own site
<a href="https://agentmods.dev/skills/skyf0xx/hedgehog/hedgehog-bot"><img src="https://agentmods.dev/badge/skills/skyf0xx/hedgehog/hedgehog-bot/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 hedgehog-bot

Your own site · 80×15
<a href="https://agentmods.dev/skills/skyf0xx/hedgehog/hedgehog-bot"><img src="https://agentmods.dev/badge/skills/skyf0xx/hedgehog/hedgehog-bot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,169 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 22
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Rogue Agent · line 3
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00141 $0.01169
Opus 5 $0.00071 $0.00584
Sonnet 5 $0.00028 $0.00234
Haiku 4.5 $0.00014 $0.00117

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

Security

Grade A, and why

hedgehog-bot scanned grade A with 1 finding 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (mint-token.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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`curl`. Comment and review bodies are written in **concise mode** by
.claude/skills/hedgehog-bot/SKILL.md · 109 lines

How it starts

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

hedgehog-bot

Perform a GitHub write action (PR review, PR comment, or merge) attributed to the hedgehog-bot GitHub App instead of the user's personal account.

When to use this

Only when the user explicitly asks for the bot identity — "as hedgehog-bot", "as the bot", "so it shows up from the bot". Ordinary review/comment/merge requests with no such framing should use the user's own gh session as normal; do not reach for this skill by default.

How it works

mint-token.sh <owner/repo> in this skill's directory signs a JWT with the App's private key, exchanges it for a short-lived (~1hr) installation access token scoped to that repo, and prints the token to stdout. That token authenticates as hedgehog-bot[bot], not the user.

The private key lives at ~/.config/hedgehog-bot/private-key.pem (mode 600) on this machine. Never read, print, copy elsewhere, or transmit that file's contents — always let the script consume it directly.

Procedure

  1. Mint a token, scoped to the target repo:

    TOKEN=$(.claude/skills/hedgehog-bot/mint-token.sh skyf0xx/hedgehog)
    

    If this fails, the likely causes are: the key file is missing or moved, or the App is no longer installed on the repo. Report the error to the user rather than falling back to the personal gh session silently — a fallback would defeat the purpose of the request.

  2. Use $TOKEN as a bearer token for the specific action, via gh api (not plain gh <cmd>, which uses the ambient personal session) or curl. Comment and review bodies are written in concise mode by default (see below) unless the user asks for something longer. Examples:

    Comment on a PR:

    gh api "repos/skyf0xx/hedgehog/issues/<PR_NUMBER>/comments" \
      --method POST -f body="<comment text>" \
      -H "Authorization: Bearer ${TOKEN}"
    

    Submit a review:

    gh api "repos/skyf0xx/hedgehog/pulls/<PR_NUMBER>/reviews" \
      --method POST -f event="COMMENT" -f body="<review summary>" \
      -H "Authorization: Bearer ${TOKEN}"
    

    (event is one of COMMENT, APPROVE, REQUEST_CHANGES.)

Read the full file on GitHub · 109 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. 11d ago First seen · 109 lines · 141 tokens per session scan A 2c70a49ed7db

Subscribe to this mod's changes

hedgehog-bot is a skill published in the GitHub repository skyf0xx/hedgehog (38 stars, last pushed today), licensed MIT. It adds 141 tokens to every session and 1,169 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.