safe-patch-authoring

safe-patch-authoring is a skill for Claude Code, Codex from wellkilo/RepoPilot. It costs 41 tokens per session (490 once invoked), scanned A, original, Apache-2.0.

A set of instructions for repairing a software repository after the cause of a failure has been confirmed. It guides an agent to make a small code change, add a regression test, and record the work in Git.

In plain words
What is it for?
Use it to implement a confirmed bug fix, write a test that fails before the fix and passes after it, create a dedicated Git branch and commit, and prepare a pull request.
Why use it?
It helps prevent speculative fixes and keeps repairs limited to evidence-supported changes. It also leaves a reviewable branch, commit, risk note, and optionally a pull request.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to implement a confirmed bug fix, write a test that fails before the fix and passes after it, create a dedicated Git branch and commit, and prepare a pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wellkilo/repopilot/safe-patch-authoring
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wellkilo/RepoPilot --skill safe-patch-authoring
Clone the repo
git clone --depth 1 https://github.com/wellkilo/RepoPilot

Made for: Claude Code, Codex.

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 safe-patch-authoring

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wellkilo/repopilot/safe-patch-authoring"><img src="https://agentmods.dev/badge/skills/wellkilo/repopilot/safe-patch-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 490 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.00041 $0.00490
Opus 5.5 $0.00016 $0.00196
Sonnet 5.5 $0.00008 $0.00098
Haiku 4.5 $0.00004 $0.00049

Measured 3mo ago against content hash de3bfac528b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

safe-patch-authoring 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 3mo 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.

skills/safe-patch-authoring/SKILL.md · 65 lines

How it starts

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

Safe Patch Authoring

You are the Fixer Worker. Implement the smallest evidence-supported repair without exceeding RepoPilot's pull-request-only authority.

Inputs

  • RepoPilot runId
  • Immutable base revision
  • Locator conclusion and evidence
  • Acceptance criteria
  • Repository contribution and test instructions

Outputs

  • Focused source change.
  • Regression test that fails before and passes after the repair.
  • Branch name and commit SHA.
  • Change summary, risk assessment, and rollback point.
  • Pull request URL when the branch has been pushed.

Record git references and pull request details using RepoPilot evidence tools.

Invocation Conditions

Use only after Locator has confirmed a root cause. Do not invoke for unsupported speculation.

Call repopilot_start_step before execution with a stable attempt-specific idempotencyKey. Call repopilot_finish_step exactly once with the final succeeded, failed, blocked, skipped, or cancelled outcome.

Dependencies

  • Repository-local build and test tools
  • AgentTeams git-delegation
  • github_create_pull_request
  • repopilot_append_evidence

Failure Handling

  • If a focused test fails for unrelated reasons, report the pre-existing failure separately.
  • If the patch expands beyond the located impact surface, stop and request replanning.
  • If push or pull request creation fails, preserve the local commit and error evidence.
  • Do not retry an external write more than once without checking whether it already succeeded.

Permission and Safety Boundary

  • You may create a branch, commit, push, and create a pull request.
  • You must not merge, delete branches, change permissions, change secrets, publish releases, or force-push.
  • Do not modify generated dependency lockfiles unless the task requires a dependency change.
  • Never include credentials or private repository content in pull request text.

Reuse Value

The policy and output contract apply across programming languages and Git hosting workflows while keeping merge authority outside the coding Agent.

Read the full file on GitHub · 65 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. 3mo ago First seen · 65 lines · 41 tokens per session scan A de3bfac528b9

Subscribe to this mod's changes

safe-patch-authoring is a skill published in the GitHub repository wellkilo/RepoPilot (3 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 41 tokens to every session and 490 once invoked, about $0.0002 per session on Opus 5.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

safe-patch-authoring compared with skills from other repositories

safe-patch-authoring next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
safe-patch-authoringwellkilo/RepoPilotSkill33mo agoApache-2.0A41Claude Code, Codex
backtest-diagnoseHKUDS/Vibe-TradingSkill39kyesterdayMITA25Claude Code, Codex
graphjin-evaldosco/graphjinSkill3.2k3d agoApache-2.0A27Claude Code, Codex
node-inspect-debuggermateaix/mateclawSkill1.2ktodayApache-2.0A19Claude Code, Codex
issuejeremylongshore/tons-of-skills-marketplaceSkill3.0kyesterdayMITA115Claude Code
browser_cdpmateaix/mateclawSkill1.2ktodayApache-2.0A44Claude Code, Codex
oma-debugfirst-fluke/oh-my-agentSkill1.5kyesterdayMITA30Claude Code