graph-it-refactor

graph-it-refactor is a skill for Claude Code from magic5644/Graph-It-Live. It costs 52 tokens per session (1,783 once invoked), scanned A, original, MIT.

A refactoring workflow that maps a codebase before edits and verifies it afterward. Refactoring means changing code structure without intending to change its behavior.

In plain words
What is it for?
Use it when moving or renaming symbols, changing public interfaces, deleting unused code, reorganizing dependencies, or investigating complex regressions.
Why use it?
It helps reveal which files, exported interfaces, symbols, and dependencies may be affected before a broad change. It also keeps editing within the planned scope and requires verification before calling the work finished.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the graph-it-live plugin — 5 skills, 1 MCP server shipped together

Good fit Use it when moving or renaming symbols, changing public interfaces, deleting unused code, reorganizing dependencies, or investigating complex regressions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magic5644/graph-it-live/graph-it-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 magic5644/Graph-It-Live --skill graph-it-refactor
Clone the repo
git clone --depth 1 https://github.com/magic5644/Graph-It-Live

Made for: Claude Code.

Or install graph-it-live, the plugin that ships this one along with the rest of its 5 skills, 1 MCP server.

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 graph-it-refactor

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/magic5644/graph-it-live/graph-it-refactor"><img src="https://agentmods.dev/badge/skills/magic5644/graph-it-live/graph-it-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,783 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 original No closer match found 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.00052 $0.01783
Opus 5.5 $0.00021 $0.00713
Sonnet 5.5 $0.00010 $0.00357
Haiku 4.5 $0.00005 $0.00178

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

Security

Grade A, and why

graph-it-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 9d 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.

plugins/graph-it-live/skills/graph-it-refactor/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Graph-It Refactor

Three phases: map (read-only), edit (sealed scope), verify. No edit before the plan; no "done" before verification.

CLI and Capability Discovery

Prefer the Graph-It CLI. At the first activation of any Graph-It skill in a session, run graph-it --version and graph-it tool --list once when the CLI and a terminal are available; consult graph-it <command> --help only for a flag you need. Share this inventory across Graph-It skills; refresh only when the CLI, version, or workspace changes or a command fails. Do not poll npm and do not install the CLI. If the CLI is unavailable or unsuitable, use only MCP tools the host advertises, with their exact name and inputSchema. graph-it tool <name> calls analysis directly; graph-it serve starts MCP. Never guess a tool name, flag or schema. Use --format toon (CLI) or response_format: "toon" (MCP) only where the command or schema supports it.

If the CLI reports a newer version, interactive use needs explicit positive confirmation before graph-it update; silence, timeout, refusal, non-TTY or generic Agent mode is not consent. When automatic mode is explicitly enabled and pre-authorized, default to yes. After success, re-read version and inventory; a running MCP server needs a host-authorized restart (do not edit MCP configuration). On failure, keep the usable CLI, report once, do not retry.

Requires Graph-It-Live CLI 1.21.0 or later. Compare graph-it --version with it once. If older or unreadable, say so, name the missing commands, offer graph-it update under the policy above, and use only commands listed by --help and tool --list.

Run from the repository root with graph-it -w <repoRoot> ... so every package's consumers are indexed. If stderr warns that imports resolve outside the workspace root, impact outside it is not covered: rerun with the --workspace it names or report the gap.

Phase 1: Map (read-only)

Do not edit source, run formatters or codemods, or use a package manager. Locate targets with read-only search or IDE navigation; search locates, it never proves impact.

Read the full file on GitHub · 96 lines

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. 9d ago First seen · 96 lines · 52 tokens per session scan A 3cf3dc41ca35

Subscribe to this mod's changes

graph-it-refactor is a skill published in the GitHub repository magic5644/Graph-It-Live (63 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 1,783 once invoked, about $0.0002 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-10-28.

Related

graph-it-refactor compared with skills from other repositories

graph-it-refactor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
graph-it-refactormagic5644/Graph-It-LiveSkill63yesterdayMITA52Claude Code
doubt-driven-developmentaddyosmani/agent-skillsSkill114k5d agoMITA96Claude Code
auditoliver-kriska/claude-elixir-phoenixSkill574yesterdayMITA35Claude Code
reviewerkeli-wen/agy-staffSkill817yesterdayMITB94Claude Code
roslyn-queryNikiforovAll/claude-code-rulesSkill1424d agoApache-2.0A44Claude Code
skeptical-triageavelikiy/great_ctoSkill1122d agoMITA49Claude Code
anti-patternsavelikiy/great_ctoSkill1122d agoMITA59Claude Code