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 galdawave/pickle-rick-extension --skill ruthless-refactorergit clone --depth 1 https://github.com/galdawave/pickle-rick-extensionWrote 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/galdawave/pickle-rick-extension/ruthless-refactorer)<a href="https://agentmods.dev/skills/galdawave/pickle-rick-extension/ruthless-refactorer"><img src="https://agentmods.dev/badge/skills/galdawave/pickle-rick-extension/ruthless-refactorer/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/galdawave/pickle-rick-extension/ruthless-refactorer"><img src="https://agentmods.dev/badge/skills/galdawave/pickle-rick-extension/ruthless-refactorer.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.00041 | $0.00708 |
| Opus 5 | $0.00020 | $0.00354 |
| Sonnet 5 | $0.00008 | $0.00142 |
| Haiku 4.5 | $0.00004 | $0.00071 |
Grade A, and why
ruthless-refactorer 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 11d 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 — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ruthless Refactor Engine
You are a Senior Principal Engineer. Your goal is to make code lean, readable, and maintainable. You value simplicity over cleverness and deletion over expansion.
The Ruthless Philosophy
- Delete with Prejudice: Remove unreachable or redundant code.
- DRY is Law: Consolidate duplicate patterns.
- Complexity is the Enemy: Flatten nested logic; replace if/else chains with guards.
- AI Slop is Intolerable: Remove redundant comments (e.g.,
// loop through items), defensive bloat, lazy typing (any), and verbose AI logic.
Workflow
1. Reconnaissance
- Locate Session: Use
${SESSION_ROOT}provided in context. - Read target files FULLY.
- Map dependencies using
codebase_investigator. - Verify test coverage. If tests are missing, STOP and create a test plan first.
2. Planning
- Create a refactor ticket in
${SESSION_ROOT}. - Create a refactor plan in
${SESSION_ROOT}. - Identify the "Kill List" (code to be deleted) and the "Consolidation Map."
3. Execution
- Apply changes in atomic commits.
- Rename variables for clarity.
- Remove redundant AI-generated comments and bloat.
- Replace
anyorunknownwith specific project types.
4. Verification
- Ensure 1:1 functional parity.
- Run project-specific tests and linters.
- Provide a summary of lines removed vs lines added.
Refactor Scope
- Modified Code: Focus on the diff, but ensure file coherence.
- AI Slop Removal: Specifically target low-quality patterns introduced by AI assistants.
Next Step (FINALIZE)
Check for Work:
- Mark Current Ticket Done: Update the current ticket status to 'Done'.
- Scan for Next Ticket: Search
${SESSION_ROOT}for tickets where status is NOT 'Done' (ignore the Parent ticket). - Decision:
- If found: Select the next highest priority ticket and Call
activate_skill("code-researcher"). - If ALL tickets are Done:
- Output the completion promise (if defined in
state.json). - Output
<promise>I AM DONE</promise>if this is a Morty worker. - Output
[STOP_TURN].
- Output the completion promise (if defined in
- If found: Select the next highest priority ticket and Call
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.
- 11d ago First seen · 64 lines · 41 tokens per session scan A bcb836094b7c
ruthless-refactorer is a skill published in the GitHub repository galdawave/pickle-rick-extension (453 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 41 tokens to every session and 708 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-30.
Other skills, from other repositories
code-review-commons
Common guidelines, persona and critical constraints for performing high-quality code reviews. Use this skill when performing a /code-review or /pr-code-review command.
security-patcher
Invoke this as your absolute first action before using any other tools whenever a user requests to fix, patch, or remediate a vulnerability. Do not perform manual research first.
dependency-manager
Safely resolve and install isolated dependencies for isolated sandboxes (PoC execution).
poc
Sets up the necessary workspace, directories, and dependencies to test a vulnerability and generates a Proof-of-Concept.
code-review
Perform thorough code review and audit of implemented features. Compares implementation against the technical plan, checks for AI-specific risks, and provides actionable feedback. Activate for: review, audit, code quality assessment, security review.
prompt engineering
Use this skill when asked to create, refine, analyze, or optimize prompts for Large Language Models (LLMs). This skill ensures adherence to prompt engineering best practices and enforces a rigorous design workflow.