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 skills add existential-birds/beagle --skill refactor-repogit clone --depth 1 https://github.com/existential-birds/beagleWrote 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.
[](https://agentmods.dev/skills/existential-birds/beagle/refactor-repo)<a href="https://agentmods.dev/skills/existential-birds/beagle/refactor-repo"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/refactor-repo/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.
<a href="https://agentmods.dev/skills/existential-birds/beagle/refactor-repo"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/refactor-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00015 | $0.02546 |
| Opus 5.5 | $0.00006 | $0.01018 |
| Sonnet 5.5 | $0.00003 | $0.00509 |
| Haiku 4.5 | $0.00002 | $0.00255 |
Grade A, and why
refactor-repo 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 4d 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 — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repository Refactoring Proposals
Analyze a large repository and turn verified changeability problems into scoped GitHub issues using Fowler's refactorings and applicable framework-review guidance. This workflow proposes work; it does not edit production code, implement issues, delete artifacts, or start a PR pipeline, and its helper uses Python's standard library plus Git and authenticated GitHub CLI.
When to Use
- "Analyze this repo and create issues for worthwhile refactors."
- "Find architecture and maintainability hotspots across this monorepo."
- "Build a Fowler-based refactoring backlog."
- "Audit this repository for refactoring opportunities, drafts only."
- "Resume the refactoring survey and publish the accepted proposals."
Prerequisites
- Python 3.10+, Git, and
ghon PATH; check throughterminalwithpython --version,git --version, andgh --version. - Authenticate GitHub CLI through its normal setup; use
gh auth status, never read credential files or print tokens. - Explicit local repository and GitHub
OWNER/REPO, verified against the intended remote before publishing. - Load the
fowler-refactoringknowledge base from this repository (see Supporting files); load relevant Fowler chapters before choosing mechanics. - Discover framework reference skills from this repository's skill catalog and read their
SKILL.mdwhen a stack matches. Missing optional framework skills are a recorded limitation, not permission to invent them. - Use a durable campaign workspace outside the inspected source tree. No additional Python dependencies, environment variables, or original PDF are required.
How to Run
Examples of user invocation (invoke by skill name through your agent's skill mechanism):
refactor-repoon/path/to/repo, create GitHub issues forOWNER/REPOrefactor-repoon/path/to/repo, drafts only; focus on services and shared domain code
Tool names in this and related files (terminal, read_file, search_files, patch, write_file) denote capabilities — shell execution, file reading, content search, scoped edits, and file writing — and map to the host agent's native equivalents; they are not a required product.
What ships with it
6 files 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.
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.
- 4d ago First seen · 99 lines · 15 tokens per session scan A f8973b4a01a3
refactor-repo is a skill published in the GitHub repository existential-birds/beagle (91 stars, last pushed 4d ago), licensed Apache-2.0. It adds 15 tokens to every session and 2,546 once invoked, about $0.0001 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-11-26.
refactor-repo compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refactor-repoexistential-birds/beagle | Skill | 91 | 4d ago | Apache-2.0 | A | 15 | Claude Code, Codex |
| autoreviewopenclaw/clawhub | Skill | 9.6k | yesterday | MIT | A | 17 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 18 | Claude Code |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 8d ago | MIT | A | 115 | Claude Code, Codex |
| asplos-writing-stylebrycewang-stanford/Awesome-Journal-Skills | Skill | 1.5k | 2d ago | MIT | A | 65 | Claude Code |
| revdiff-planumputun/revdiff | Skill | 974 | 2d ago | MIT | A | 84 | Claude Code |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | 5d ago | MIT | A | 51 | Claude Code, Codex |