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/cmdr-chara/codex-toolkit/review-and-refactor-codenpx skills add cmdr-chara/codex-toolkit --skill review-and-refactor-codegit clone --depth 1 https://github.com/cmdr-chara/codex-toolkitWrote 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/cmdr-chara/codex-toolkit/review-and-refactor-code)<a href="https://agentmods.dev/skills/cmdr-chara/codex-toolkit/review-and-refactor-code"><img src="https://agentmods.dev/badge/skills/cmdr-chara/codex-toolkit/review-and-refactor-code.svg" alt="Measured on agentmods" 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 | $0.00097 | $0.01841 |
| Opus 5 | $0.00048 | $0.00920 |
| Sonnet 5 | $0.00019 | $0.00368 |
| Haiku 4.5 | $0.00010 | $0.00184 |
Grade A, and why
review-and-refactor-code 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 3d 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 — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Review and Refactor Code
Find defects that matter, distinguish them from optional design improvements, and change structure only after an approved proposal.
Trigger boundary
Use this skill for:
- reviewing a branch, commit, pull request, working-tree diff, or bounded code area;
- identifying defects introduced by a change and tracing affected consumers;
- assessing whether a structural refactor is justified and feasible;
- planning or performing behavior-preserving decomposition, deduplication, or boundary cleanup.
Do not trigger for:
- broad architecture, ownership, or blast-radius mapping without a defined review/refactor decision - use repository-intelligence;
- a concrete failure whose cause is unknown - use debugging-investigator;
- dependency, framework, runtime, schema, or public API transitions - use codebase-evolution-controller;
- security as the primary review decision - use the applicable security review workflow;
- a platform-wide web or mobile production audit - use the relevant builder;
- deciding whether an integrated candidate can ship - use verification-and-release.
Required inputs
Obtain or state:
- repository root and current working-tree state;
- review or refactor scope, including base/head refs when diff-driven;
- intended behavior, contracts, and acceptance criteria;
- generated, vendored, migration, or lockfile boundaries;
- relevant tests, build commands, and known baseline failures;
- compatibility, performance, security, and operational constraints;
- whether the user has approved a previously proposed edit batch.
If scope is too broad to support file-level evidence, select a bounded slice and explain the coverage limit.
Safety baseline
- Inspect repository state before analysis. Preserve uncommitted and unrelated user work.
- Do not checkout, reset, clean, stash, regenerate, reformat broadly, or install dependencies during review.
- Treat review, refactor, cleanup, and improvement requests as analysis authorization only at first.
- Do not edit repository files until the user separately approves a concrete proposal produced by this skill.
- Limit approval to the named files, invariants, slices, and verification plan. Re-propose materially different work.
- Never label style preference, hypothetical risk, or missing proof as a defect.
- Do not remove pre-existing dead code unless it is inside the approved scope and its replacement is verified.
What ships with it
3 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.
- 3d ago First seen · 185 lines · 97 tokens per session scan A 95ae1907b4fb
review-and-refactor-code is a skill published in the GitHub repository cmdr-chara/codex-toolkit (2 stars, last pushed 5d ago), licensed MIT. It adds 97 tokens to every session and 1,841 once invoked, about $0.0005 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
boss-advanced
Advanced Boss orchestration patterns — Agent Teams leadership, 6-section delegation template, Skill vs Agent conflict resolution, Guardian pattern, and AI-slop detection.
gstack-sprint
3-Phase Sprint workflow — design → execute → review with user interaction at decision points.
boss-briefing
Vault health check — workflow pattern analysis, profile sync, session gap recovery, persona rule proposals.
agent-orchestrator-v2
Agent Orchestrator workflow skill. Use this skill when the user needs Meta-skill que orquestra todos os agentes do ecossistema. Scan automatico de skills, match por capacidades, coordenacao de workflows multi-skill e registry management and the operator should preserve the upstream workflow, copied support files, and…
agent-orchestration-multi-agent-optimize-v2
Multi-Agent Optimization Toolkit workflow skill. Use this skill when the user needs Optimize multi-agent systems with coordinated profiling, workload distribution, and cost-aware orchestration. Use when improving agent performance, throughput, or reliability and the operator should preserve the upstream workflow…
briefing-vault
Initialize, manage, and search the per-project .briefing/ vault. Obsidian-compatible persistent knowledge base.