aid-refactor

aid-refactor is a skill for Claude Code from AndreVianna/aid-methodology. It costs 84 tokens per session (374 once invoked), scanned A, a copy of aid-create-api, MIT.

A code-restructuring tool for changing how code is organised or improving its performance while keeping its behaviour the same.

In plain words
What is it for?
Use it for renaming, restructuring, and performance-improvement work.
Why use it?
It helps turn a known refactoring goal into specified, reviewable tasks before any code is changed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it for renaming, restructuring, and performance-improvement work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andrevianna/aid-methodology/aid-refactor
Install

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.

Any agent
npx skills add AndreVianna/aid-methodology --skill aid-refactor
Clone the repo
git clone --depth 1 https://github.com/AndreVianna/aid-methodology

Made for: Claude Code.

Wrote 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.

agentmods badge for aid-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/andrevianna/aid-methodology/aid-refactor/github.svg)](https://agentmods.dev/skills/andrevianna/aid-methodology/aid-refactor)
Your own site
<a href="https://agentmods.dev/skills/andrevianna/aid-methodology/aid-refactor"><img src="https://agentmods.dev/badge/skills/andrevianna/aid-methodology/aid-refactor/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.

agentmods 80×15 button for aid-refactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/andrevianna/aid-methodology/aid-refactor"><img src="https://agentmods.dev/badge/skills/andrevianna/aid-methodology/aid-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 81% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.00374
Opus 5.5 $0.00034 $0.00150
Sonnet 5.5 $0.00017 $0.00075
Haiku 4.5 $0.00008 $0.00037

Measured 26d ago against content hash d2ddcd66fb81, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aid-refactor 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 26d 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.

Origin

This is a copy

81% identical to aid-create-api — 18 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/aid-refactor/SKILL.md · 18 lines

What it actually says

Shortcut: refactor

Bind VERB=refactor, ARTIFACT="" (bare verb), then run the shared engine at .aid/runtime/templates/shortcut-engine.md. The engine scaffolds the flattened Lite work (feature-001 structure) and authors exactly two documents: REQUIREMENTS.md, whose § 11 feature section carries the technical specification and whose § 9 carries the gate criteria, and the task DETAIL.md files -- with reduced capture. One feature and one delivery means there is nothing to sequence, so no plan is written and the execution graph is derived from each task's **Depends on:** field. It runs the per-document Grading Gates (feature-004) and halts at the FR-10 approval gate. It never executes. This shortcut's default_type/group are its row in .aid/runtime/templates/shortcut-catalog.yml.

Changes

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.

  1. 26d ago Changed d2ddcd66fb81
  2. 2mo ago First seen · 18 lines · 84 tokens per session scan A bd1e1622a52e

Subscribe to this mod's changes

aid-refactor is a skill published in the GitHub repository AndreVianna/aid-methodology (6 stars, last pushed 11d ago), licensed MIT. It adds 84 tokens to every session and 374 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 81% identical to aid-create-api, differing in 18 lines, and is treated as a copy.

Related

aid-refactor compared with skills from other repositories

aid-refactor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aid-refactorAndreVianna/aid-methodologySkill611d agoMITA84Claude Code
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79kyesterdayMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill314k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code