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 kivo360/OmoiOS --skill refactor-plannergit clone --depth 1 https://github.com/kivo360/OmoiOSWrote 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/kivo360/omoios/refactor-planner)<a href="https://agentmods.dev/skills/kivo360/omoios/refactor-planner"><img src="https://agentmods.dev/badge/skills/kivo360/omoios/refactor-planner/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/kivo360/omoios/refactor-planner"><img src="https://agentmods.dev/badge/skills/kivo360/omoios/refactor-planner.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.00014 | $0.01428 |
| Opus 5.5 | $0.00006 | $0.00571 |
| Sonnet 5.5 | $0.00003 | $0.00286 |
| Haiku 4.5 | $0.00001 | $0.00143 |
Grade A, and why
refactor-planner 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 1mo 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 — 276 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Refactor Planner
Plan safe, incremental refactoring with proper impact analysis.
Refactoring Workflow
1. Analyze → 2. Plan → 3. Test → 4. Execute → 5. Verify
1. Analyze Current State
- Understand existing code structure
- Map dependencies (what uses this code)
- Identify coupling and cohesion issues
- Document current behavior with tests
2. Plan the Refactoring
- Define target state clearly
- Break into small, reversible steps
- Identify risk points
- Plan rollback strategy
3. Test Coverage First
- Ensure existing tests pass
- Add tests for uncovered behavior
- Create integration tests for dependencies
- Never refactor without tests
4. Execute Incrementally
- One logical change per commit
- Run tests after each step
- Keep the system working throughout
- Commit frequently
5. Verify Results
- All tests still pass
- No new warnings/errors
- Performance unchanged (or improved)
- Dependencies still work
Refactoring Patterns
Extract Function
When: Code block is reused or too complex
# Before
def process_order(order):
# Calculate total
total = 0
for item in order.items:
price = item.price * item.quantity
if item.discount:
price *= (1 - item.discount)
total += price
# ... more code
# After
def calculate_item_price(item) -> float:
"""Calculate price for single item with discount."""
price = item.price * item.quantity
if item.discount:
price *= (1 - item.discount)
return price
def calculate_order_total(order) -> float:
"""Calculate total order price."""
return sum(calculate_item_price(item) for item in order.items)
def process_order(order):
total = calculate_order_total(order)
# ... more code
Extract Class
When: A class has too many responsibilities
# Before: User class doing too much
class User:
def authenticate(self, password): ...
def send_email(self, subject, body): ...
def generate_report(self): ...
# After: Split by responsibility
class User:
def __init__(self):
self.auth = UserAuthenticator(self)
self.notifier = UserNotifier(self)
self.reporter = UserReporter(self)
class UserAuthenticator:
def authenticate(self, password): ...
class UserNotifier:
def send_email(self, subject, body): ...
class UserReporter:
def generate_report(self): ...
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.
- 1mo ago First seen · 276 lines · 14 tokens per session scan A f41ded2725ef
refactor-planner is a skill published in the GitHub repository kivo360/OmoiOS (81 stars, last pushed 14d ago), licensed Apache-2.0. It adds 14 tokens to every session and 1,428 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-08-30.
Other skills, from other repositories
browser-edge-cases
SOP for debugging browser automation failures on complex websites. Use when browser tools fail on specific sites like LinkedIn, Twitter/X, SPAs, or sites with Shadow DOM.
hive.pdf
Read, write, merge, split, rotate, watermark, encrypt, and OCR PDF files using Python (pypdf, pdfplumber, reportlab, pypdfium2) and command-line tools (poppler-utils, qpdf). Use when the user asks to extract text/tables/images from a PDF, create or modify a PDF, combine or split PDFs, OCR a scanned PDF…
hive.note-taking
Maintain a free-form scratchpad of decisions, extracted values, and open questions so context pruning doesn't lose anything you still need.
article
Write a publication-ready article in one of three angles - a trending long-form piece, a watched-repo thesis, or a project-through-a-lens essay. Optional Replicate hero image with --visual.
fork-fleet
Fork divergence monitor - tracks where the fleet's active forks diverge in CODE (unique commits, new/modified skills) and CONFIG (enable/var/model/schedule vs upstream), gated on real change.
fleet-control
Operate managed Aeon instances from memory/instances.json - health-check, dispatch, and status snapshots (control), plus a fleet scorecard of runs, tokens, cost, and reliability (scorecard).