Analyze complexity and smells, draft a safe refactor plan, and execute step-by-step with tests. Use when refactoring code or invoking /refactor.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
## STOP - Read before ANY tool call
1. Read `E:/Source/Repos/agent-dev-toolkit/scripts/validation/fixtures/install-root/.grok/rules/guardrails.md`
2. Read `E:/Source/Repos/agent-dev-toolkit/scripts/validation/fixtures/install-root/skills/_shared/sdd-artifacts/SESSION.md`; load session-state for `$Cwd`
3. If the relevant gate is not approved: **STOP** - ask user **(pt-BR)** - do **NOT** Write/Shell
4. SDD/develop skills: after **ONE** step/task, **STOP** session - handoff only
5. This skill body is **English**; user-facing prompts may be **(pt-BR)**
### Step -1 - Gate check (report in chat before continuing)
```
Gate check:
[ ] guardrails.mdc read
[ ] SESSION.md read; session-state loaded
[ ] PIPELINE.md read (SDD skills only)
[ ] User confirmed current action (sim)
-> If any unchecked: STOP
```
---
# Skill: refactor
## Trigger
Invoke when the user requests: `/refactor`, `refactor code`, `/refactor`, or when code reviews indicate high complexity.
**Arguments (optional):**
| Input | Meaning |
|-------|---------|
| File path | Target file to analyze and refactor |
| Method name | Target specific routine or component within a file |
## Outcome
…
The line at the top of this page pins the label git:20260731.8534eac, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_ny2dl6flfuym7lxi
GET https://markdownregistry.com/api/v1/resolve?ref=tibursocampos/agent-dev-toolkit/refactor
GET https://markdownregistry.com/api/v1/blob/e6a7fcaff594750ffa0601e8c588706132a8bc42ead27dbc8ec2778c1875fb86
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
tibursocampos/agent-dev-toolkit · core/skills/angular-developer/SKILL.md · Implement or fix small-to-medium Angular features without full SDD (components, services, RxJS, DI). Use for isolated…
tibursocampos/agent-dev-toolkit · core/skills/api-integrate/SKILL.md · Generate typed API clients and DTOs from OpenAPI/Swagger. Use when integrating an API or invoking /api-integrate.
tibursocampos/agent-dev-toolkit · core/skills/arduino-developer/SKILL.md · Implement or fix Arduino sketches and libraries using the project-declared board, Arduino Core, version, and tooling…
tibursocampos/agent-dev-toolkit · core/skills/blazor-developer/SKILL.md · Implement or fix small-to-medium Blazor UI (WASM, Server, Hybrid) without full SDD. Use for isolated Blazor work or…
tibursocampos/agent-dev-toolkit · core/skills/blip-plugin-developer/SKILL.md · Scaffold a new Blip React plugin (create-blip-extension), config:plugin, and SDD handoff to react-developer. Use for…
tibursocampos/agent-dev-toolkit · core/skills/code-review/SKILL.md · Review a branch or diff against PRD/PLAN and project standards. Asks single vs multi-angle when omitted. Use when…
tibursocampos/agent-dev-toolkit · core/skills/commit/SKILL.md · Draft a Conventional Commits message, confirm it, and commit on a valid feature branch. Push or a pull request only…
tibursocampos/agent-dev-toolkit · core/skills/containerize/SKILL.md · Write multi-stage Dockerfiles, .dockerignore, and docker-compose for local dev. Use when dockerizing a project or…
tibursocampos/agent-dev-toolkit · core/skills/developer/SKILL.md · Smart router for stack skills, or senior fullstack for ad-hoc scripts/HTML/automation. Use for generic development or…
tibursocampos/agent-dev-toolkit · core/skills/document-implement/SKILL.md · Execute the next pending step from docs/documentation-plan/plan.md and write domain docs for RAG. Use when documenting…
code-yeongyu/oh-my-openagent · packages/shared-skills/skills/refactor/SKILL.md · Guides a refactor, cleanup, or restructure with the right decomposition. Use when the user asks to refactor, simplify…
codeaholicguy/ai-devkit · skills/refactor/SKILL.md · AI DevKit · Systematic structural or multi-file refactors across any stack while preserving behavior and public…
boshu2/agentops · skills/refactor/SKILL.md · Restructure or clean up code with no behavior change, proved by before-and-after checks. Use when: asked to clean up…
boshu2/agentops · plugin/skills/refactor/SKILL.md · Restructure or clean up code with no behavior change, proved by before-and-after checks. Use when: asked to clean up…
testdouble/han · han-coding/skills/refactor/SKILL.md · Restructure existing code without changing its behavior, through a test-gated refactoring loop: a named target, a green…