refactor
Skill1.6k starsChanged 3 months agoApache-2.0View on GitHub
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.
111 other projects use a version of this.
Trending
More talk lately.thin dataabout the whole repository
Most recently taken up by
- AllThingsSmitty/proven-skillstheir own version, first seen Oct 6, 2026
- GUOJIE-HONG/skillstheir own version, first seen Oct 5, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- gilsmt/skillstheir own version, first seen Oct 4, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- AlvaroVFon/skillstheir own version, first seen Oct 3, 2026
Who's talking about codeaholicguy/ai-devkit
- A Hacker News story“I collected all valuable AI Skills repositories”Hacker News · Feb 3, 2026 · 2 points
- A Hacker News story“AI-Devkit”Hacker News · Oct 16, 2025 · 1 points
- sudosubin/agents.nix“codex-plugins.github.codeaholicguy.ai-devkit: init at 0-unstable-2026-10-04”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.codeaholicguy.ai-devkit: 0-unstable-2026-09-27 → 0-unstable-2026-10-04”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.codeaholicguy.ai-devkit: 0.61.0-unstable-2026-09-20 → 0-unstable-2026-09-27”GitHub · Oct 3, 2026
The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 11
Talked about on GitHub and Hacker News (11 times).
On GitHub · 9
- Oct 4, 2026codex-plugins.github.codeaholicguy.ai-devkit: init at 0-unstable-2026-10-04 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-skills.github.codeaholicguy.ai-devkit: 0-unstable-2026-09-27 → 0-unstable-2026-10-04 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.codeaholicguy.ai-devkit: 0.61.0-unstable-2026-09-20 → 0-unstable-2026-09-27 — sudosubin/agents.nix0 reactions
- Sep 26, 2026[Candidate] codeaholicguy/ai-devkit/skills/agent-orchestration - agent-orchestration — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] codeaholicguy/ai-devkit/skills/agent-management - agent-management — ProSkillsMD/proskills0 reactions · 2 comments
4 more on GitHub
- Sep 26, 2026[Candidate] codeaholicguy/ai-devkit/skills/agent-communication - agent-communication — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026agent-skills.github.codeaholicguy.ai-devkit: init at 0.61.0-unstable-2026-09-20 — sudosubin/agents.nix0 reactions
- Aug 27, 2026[Resource]: AI DevKit — hesreallyhim/awesome-claude-code0 reactions · 1 comment
- Apr 18, 2026Audit candidate: codeaholicguy/ai-devkit — xiaolai/nlpm0 reactions · 4 comments
On Hacker News · 2
- Feb 3, 2026I collected all valuable AI Skills repositories2 points
- Oct 16, 2025AI-Devkit1 point
Used with
Projects with it also use modern-go, to-design and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
jidechaoSkillmodern-go
Modernize Go code by applying version-appropriate idioms and APIs (gofix-style transformations). Scans go.mod for the Go version, then transforms Go source files to use modern patterns—from Go 1.0 through 1.26+. Use when the user says "现代化","现代Go语言", "地道的", "idiomatic", "modernize", "modern-go", "update Go code", "gofix", or wants to upgrade Go idioms.
Also in 3 projects that use this
jidechaoSkillto-design
Generate a design document (design proposal) from a PRD, in the style of Go's official design proposals — Abstract / Background / Design / Rationale / Compatibility / Implementation, heavy on the 'why' and tradeoffs. Triggers on: to-design, prd-to-design, prd转设计文档, 生成设计文档, 写设计文档, design doc, design proposal, 设计提案, 技术设计文档.
Also in 3 projects that use this
chidekinaSkilltest-gen
Generate test cases from type constraints and specs. Creates boundary tests, edge cases, and fixtures automatically. Pact-lang inspired. Triggers on: generate tests, test from spec, create fixtures, boundary tests.
Also in 5 projects that use this
pvnarpSkillincident
Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.
Also in 6 projects that use this
platformplatformSkilldb-query
Query the local Postgres database of the active Aspire worktree via psql.
Also in 3 projects that use this
JetBrainsSkillfix-bug
End-to-end bug fix workflow for the Exposed project. Accepts a GitHub issue (#NUMBER), YouTrack issue (EXPOSED-NUMBER), or YouTrack URL (https://youtrack.jetbrains.com/issue/EXPOSED-NUMBER). Fetches the issue, creates a failing reproducer test, commits on a new branch, implements the fix, validates, and opens a PR. Use this skill whenever the user wants to fix a bug from an issue tracker, mentions a EXPOSED issue number, or references a GitHub issue to fix.
Also in 6 projects that use this
- +2 more from jidechao
Other versions111 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 111
- github/awesome-copilot★ 40ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- SethGammon/Citadel★ 922same name
- solatis/claude-config★ 909same name
- boshu2/agentops★ 447same name
- nwiizo/tfmcp★ 373same name
- smallnest/goal-workflow★ 287same name
- oasm-platform/open-asm★ 204same name
- sd0xdev/sd0x-harness★ 191same name
- devantler-tech/ksail★ 166same name
101 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- agent-communicationSkill
- agent-managementSkill
- agent-orchestrationSkill
- ai-devkit-setupSkill
- brainstormSkill
- changelogSkill
- dev-commitSkill
- dev-designSkill
- dev-implementationSkill
- dev-lifecycleSkill
- dev-planningSkill
- dev-prSkill
- dev-requirementsSkill
- dev-reviewSkill
- dev-testingSkill
- dev-worktreeSkill
- document-codeSkill
- memorySkill
- remote-from-slackSkill
- remote-from-telegramSkill
- security-reviewSkill
- session-compactSkill
- simplify-implementationSkill
- structured-debugSkill
- taskSkill
- tddSkill
- technical-writerSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 94 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use for structural refactors.
- Distinctive: line 15
Do not propose target trees without current-code evidence: tree, file size/mixed concerns, imports/exports, consumers, validation commands.
- Distinctive: line 17
Prefer existing conventions, provider locality, and the smallest structure that solves observed pressure.
- Distinctive: line 19
Avoid taste refactors, premature abstractions, and thin one-file directories unless staged or conventional.
- Distinctive: line 27
Check reader load: can a new reader find where key state comes from and what can change it quickly?
- Distinctive: line 28
If continuing work, compare current state and list only remaining delta.
- Very specific: line 33
Check boundary discipline: validate at CLI/config/network/external API edges.
- Distinctive: line 34
Prefer domain structure over repeated conditionals: state machine, typed model, registry/map, reducer, or ownership-focused module when it …
“Common” is measured: kept by at least 6 in 10 of the 94 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Refactor
Use for structural refactors. Use simplify-implementation for local readability, dead code, or small logic cleanup.
Rules
- Preserve behavior and public contracts unless changes are explicit.
- Classify first: small = local/no public movement; medium = multi-file/extraction/boundary/export touch; large = package/cross-package/staged migration/broad consumers.
- For medium/large refactors, write a brief before editing: evidence, pressure, remaining delta, do/defer/avoid ranking, non-goals, contracts, target shape, validation, compatibility.
- Do not propose target trees without current-code evidence: tree, file size/mixed concerns, imports/exports, consumers, validation commands.
- Separate moves/renames from logic changes and design/API behavior questions.
- Prefer existing conventions, provider locality, and the smallest structure that solves observed pressure.
- Subtract before adding: remove dead wrappers, redundant validators, stale exports, and unused paths before introducing new structure.
- Avoid taste refactors, premature abstractions, and thin one-file directories unless staged or conventional.
- Validate with fresh command output.
Workflow
- Discover stack, configs, entry points, exact validation commands, and prior decisions when available.
- Map contracts: exports, APIs, routes, CLI, config, schemas, events, files, docs, examples, consumers.
- Map structure: directories, naming, boundaries, dependency direction, cycles, mixed concerns, duplication.
- Check reader load: can a new reader find where key state comes from and what can change it quickly? Collapse pass-through layers that do not hide policy, adaptation, or real complexity.
- If continuing work, compare current state and list only remaining delta.
- Choose refactor type and shape:
- extraction, reorganization, or design refactor
- flat/internal, feature-first, domain-first, layer-first, core/adapters/entrypoints, service/repository
- adapter-heavy: provider-specific stays provider-local; shared pure logic -> shared/core/formatting; SDK/client code -> adapter/entrypoint/delivery
- Check boundary discipline: validate at CLI/config/network/external API edges; keep internal logic typed, domain-shaped, and pure where practical.
- Prefer domain structure over repeated conditionals: state machine, typed model, registry/map, reducer, or ownership-focused module when it deletes branches or invalid states.
- Rank moves as do now, defer, or avoid.
- Stage: baseline -> delete dead paths -> move/rename -> imports/call sites -> split/merge -> simplify -> exports/docs/tests.
- For internal API changes, inventory callers, migrate them, and delete the legacy API in the same wave when no external contract requires compatibility.
- Preserve or explain compatibility re-exports/wrappers/barrels like
types.tsplustypes/. - Validate: tests, compile/typecheck, lint, build, public/downstream smoke checks, diff review.
Stop
Pause when contracts are unclear, baseline cannot be checked and no narrower validation exists, breaking changes need migration decisions, ownership/product decisions are required, or the work is becoming a rewrite.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

