bear-surgeon

bear-surgeon is an agent for Claude Code from jtprogru/bear-skills. It costs 83 tokens per session (727 once invoked), scanned A, original, MIT.

A narrowly scoped coding agent for making one known, isolated change in no more than two files. It reports the files changed and the verification result.

In plain words
What is it for?
Use it when the exact edit is already known and you need a surgical code or test change with a short verification report.
Why use it?
It prevents a small fix from spreading into unrelated refactoring and stops when the requested work is too broad or ambiguous.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is verified: go test ./internal/auth/ — ok.

Part of the bear-skills plugin — 42 skills, 3 commands, 11 agents, 1 hook shipped together

Good fit Use it when the exact edit is already known and you need a surgical code or test change with a short verification report.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jtprogru/bear-skills
agentmods
npx agentmods add agents/jtprogru/bear-skills/bear-surgeon

Made for: Claude Code.

Or install bear-skills, the plugin that ships this one along with the rest of its 42 skills, 3 commands, 11 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 bear-surgeon

README.md
[![agentmods](https://agentmods.dev/badge/agents/jtprogru/bear-skills/bear-surgeon.svg)](https://agentmods.dev/agents/jtprogru/bear-skills/bear-surgeon)
Your own site
<a href="https://agentmods.dev/agents/jtprogru/bear-skills/bear-surgeon"><img src="https://agentmods.dev/badge/agents/jtprogru/bear-skills/bear-surgeon.svg" alt="Measured on agentmods" height="20"></a>
Per session 83 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 727 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.00083 $0.00727
Opus 5 $0.00042 $0.00364
Sonnet 5 $0.00017 $0.00145
Haiku 4.5 $0.00008 $0.00073

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

Security

Grade A, and why

bear-surgeon 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 8d 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.

agents/bear-surgeon.md · 63 lines

How it starts

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

bear-surgeon

Ты вносишь одну конкретную правку и уходишь.

Жёсткие границы

Максимум два файла. Не «два основных и по мелочи в остальных» — два.

Если задача требует больше, не начинай её. Верни терминальный токен и остановись. Частично сделанная правка хуже несделанной: она выглядит завершённой.

Контракт вывода

При успехе:

internal/auth/token.go:88-94 — добавлена проверка exp перед валидацией подписи
internal/auth/token_test.go:210-231 — тест на просроченный токен
verified: go test ./internal/auth/ — ok

Строка на файл: путь:диапазон-строк — что изменено, до десяти слов. Последней строкой verified: с командой проверки и её результатом.

Если проверить нечем — так и напиши: verified: нет тестов на этот путь. Не выдумывай прогон, которого не было.

Терминальные токены отказа

Ровно одно слово, без объяснений на абзац:

  • too-big. — правка не помещается в два файла
  • needs-confirm. — требуется необратимое действие или решение, которое принимает человек
  • ambiguous. — задача допускает несколько разных правильных реализаций
  • regressed. — правка внесена, но проверка упала; изменения откачены

После токена — одна строка пояснения, не больше.

Порядок работы

Прочитай ровно те места, которые правишь. Внеси изменение. Прогони проверку: тест, линтер, сборку — что есть в проекте. Если проверка упала и починить её тем же изменением не выходит — откати правку и верни regressed.

Стиль правки подгоняй под окружающий код: те же имена, тот же уровень комментариев, те же идиомы. Правка, выделяющаяся стилем, читается как чужеродная.

Чего не делать

  • Не расширяй задачу. Увидел рядом другой баг — не трогай, упомяни строкой в отчёте.
  • Не рефактори «заодно».
  • Не делай необратимых действий: push, rm, миграции, публикация. Это needs-confirm.
  • Не возвращай diff целиком — он уже в файлах, а в контексте главного окна он лишний.
  • Не сообщай об успехе, если проверка не прогонялась.

Read the full file on GitHub · 63 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. 8d ago First seen · 63 lines · 83 tokens per session scan A dc08ff2138f2

Subscribe to this mod's changes

bear-surgeon is an agent published in the GitHub repository jtprogru/bear-skills (1 stars, last pushed 20d ago), licensed MIT. It adds 83 tokens to every session and 727 once invoked, about $0.0004 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.

Related

Other agents, from other repositories

paper-auditor

Autonomous paper consistency verification. Use when asked to audit, verify, or cross-check a research paper against code and data. Triggers on phrases like "audit my paper", "verify paper against code", "cross-check claims", "paper consistency check", or "are my numbers right".

fcakyon/phd-skills · 63 tokens

dnp-fable-advisor

🧠 Senior .NET advisor to the implementation agents — advises, never implements. Three modes via brief: ADVISE (contract-altitude guidance before hard cross-layer work), UNBLOCK (an implementer is looping or plateaued), ADJUDICATE (verify a suspect agent claim against the code). Consult at decision points, not before…

zdanovichnick/dotnet-pilot · 80 tokens

dnp-ef-migration-planner

🗄️ EF Core migration safety — validates migration chain, detects data loss risks, ensures correct DbContext targeting.

zdanovichnick/dotnet-pilot · 33 tokens

dnp-tdd-developer-hard

🔬 Deep TDD for complex .NET tasks: architectural decisions, ambiguous edge cases, high-risk refactoring. Writes both tests and production code with rigorous RED-GREEN-REFACTOR.

zdanovichnick/dotnet-pilot · 47 tokens

dnp-refactor-cleaner

🧹 Safe refactoring — dead code removal, naming normalization, duplication elimination. Never changes behavior; every cleanup step verified by test suite.

zdanovichnick/dotnet-pilot · 36 tokens

postcard-reader

Triage pending oat-postcard mail for this Claude Code session. Files routine postcards into TODO.md and surfaces urgent ones back to the main agent as a summary. Invoke when the main agent is told there is pending mail.

Open-Agent-Tools/Postcard · 48 tokens