Skills for Real Engineers. Straight from my .agents directory.
dev-refactor
Agent skill fromcodeaholicguy/ai-devkit
AI DevKit · Systematic structural or multi-file refactors across any stack while preserving behavior and public contracts. Use for reorganizing modules, boundaries, naming, APIs/contracts, staged refactor plans, or refactor risk review.
How to install dev-refactor
npx skills add codeaholicguy/ai-devkit# or add only this skill to Claude Code: copy the folder
skills/dev-refactor/
# into
~/.claude/skills/dev-refactor/ (all projects)
.claude/skills/dev-refactor/ (one project)
1# Refactor23Use for structural refactors. Use `dev-simplify` for local readability, dead code, or small logic cleanup.45## Rules67- Preserve behavior and public contracts unless changes are explicit.8- Classify first: small = local/no public movement; medium = multi-file/extraction/boundary/export touch; large = package/cross-package/staged migration/broad consumers.9- For medium/large refactors, write a brief before editing: evidence, pressure, remaining delta, do/defer/avoid ranking, non-goals, contracts, target shape, validation, compatibility.10- Do not propose target trees without current-code evidence: tree, file size/mixed concerns, imports/exports, consumers, validation commands.11- Separate moves/renames from logic changes and design/API behavior questions.12- Prefer existing conventions, provider locality, and the smallest structure that solves observed pressure.13- Subtract before adding: remove dead wrappers, redundant validators, stale exports, and unused paths before introducing new structure.14- Avoid taste refactors, premature abstractions, and thin one-file directories unless staged or conventional.15- Validate with fresh command output.1617## Workflow18191. Discover stack, configs, entry points, exact validation commands, and prior decisions when available.202. Map contracts: exports, APIs, routes, CLI, config, schemas, events, files, docs, examples, consumers.21…
Excerpt shown under the repository's Apache-2.0 license.
More skills in ai-devkit
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
