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.
npx agentmods add skills/wellkilo/repopilot/safe-patch-authoringnpx skills add wellkilo/RepoPilot --skill safe-patch-authoringgit clone --depth 1 https://github.com/wellkilo/RepoPilotWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00041 | $0.00490 |
| Opus 5 | $0.00020 | $0.00245 |
| Sonnet 5 | $0.00008 | $0.00098 |
| Haiku 4.5 | $0.00004 | $0.00049 |
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 2d 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.
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_requestrepopilot_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.
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.
- 2d ago First seen · 65 lines · 41 tokens per session scan A de3bfac528b9
safe-patch-authoring is a skill published in the GitHub repository wellkilo/RepoPilot (2 stars, last pushed 9d ago), licensed Apache-2.0. It adds 41 tokens to every session and 490 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.
Other skills, from other repositories
analyze-action-request
Normalize an ambiguous external-action proposal into a versioned request while preserving uncertainty and granting no authority.
execute-github-action
Execute one experimental GitHub provider invocation bound to an exact live ALLOW and retain the attempt receipt.
prepare-release-decision
Assemble post-execution evidence and request a new deterministic merge, tag, or release decision without granting it.
use-action-gate
Submit versioned gate inputs, relay the deterministic outcome, and stop on BLOCK or REQUIREAPPROVAL without model override.
verify-agent-evidence
Invoke the pinned agent-evidence verifier and return its immutable structured result without turning verification into authorization.
speckit-checklist
Generate a custom checklist for the current feature based on user requirements.