refactor SKILL.md skillA

refactor from tibursocampos/agent-dev-toolkit is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add tibursocampos/agent-dev-toolkit/refactor@git:20260731.8534eac

Pins git:20260731.8534eac in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
tibursocampos/agent-dev-toolkit
Path
scripts/validation/fixtures/antigravity-install-root/config/skills/refactor/SKILL.md
Versions recorded
1
Latest version
git:20260731.8534eac, committed Jul 31, 2026
Size
5,853 bytes
Repository stars
6
License
MIT

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 `{{GUARDRAILS_PATH}}`
2. Read `{{TOOLKIT_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
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add tibursocampos/agent-dev-toolkit/refactor@sha256:f0a8d211cd1c8666

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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_22fq7j2x7hlicts6.svg)](https://markdownregistry.com/a/art_22fq7j2x7hlicts6)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Jul 31, 2026.

versioncommittedcommitsizeaudit
git:20260731.8534eac latest2026-07-31 8534eac 5,853 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5853 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

tibursocampos/agent-dev-toolkit · 6 stars · license MIT · pushed 2026-10-21 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_22fq7j2x7hlicts6
GET https://markdownregistry.com/api/v1/resolve?ref=tibursocampos/agent-dev-toolkit/refactor
GET https://markdownregistry.com/api/v1/blob/f0a8d211cd1c86660d231d07a389223fcae86c537287609db86a845b9f2ff08e

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.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from tibursocampos/agent-dev-toolkit

AGENTS.md@core/router AGENTS.md file
tibursocampos/agent-dev-toolkit · core/router/AGENTS.md
git:20261012.c159b3f · audit A · 6 stars
angular-developer SKILL.md skill
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…
git:20261012.c159b3f · audit A · 6 stars
api-integrate SKILL.md skill
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.
git:20261012.c159b3f · audit A · 6 stars
api-standards SKILL.md skill
tibursocampos/agent-dev-toolkit · core/skills/api-standards/SKILL.md · Apply agnostic HTTP/API design standards (REST shape, versioning, errors, naming) without company contracts. Use when…
git:20261012.c159b3f · audit A · 6 stars
arduino-developer SKILL.md skill
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…
git:20261012.c159b3f · audit A · 6 stars
blazor-developer SKILL.md skill
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…
git:20261012.c159b3f · audit A · 6 stars
blip-plugin-developer SKILL.md skill
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…
git:20261012.c159b3f · audit A · 6 stars
code-review SKILL.md skill
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…
git:20261012.c159b3f · audit A · 6 stars
commit SKILL.md skill
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…
git:20261012.c159b3f · audit A · 6 stars
containerize SKILL.md skill
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…
git:20261012.c159b3f · audit A · 6 stars
developer SKILL.md skill
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…
git:20261012.c159b3f · audit A · 6 stars
document-implement SKILL.md skill
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…
git:20261012.c159b3f · audit A · 6 stars

Every file in tibursocampos/agent-dev-toolkit

Other files named refactor

refactor SKILL.md skill
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…
git:20260929.9a41ccb · audit A · 70,277 stars
refactor SKILL.md skill
codeaholicguy/ai-devkit · skills/refactor/SKILL.md · AI DevKit · Systematic structural or multi-file refactors across any stack while preserving behavior and public…
git:20260826.c1f5930 · audit A · 1,648 stars
refactor SKILL.md skill
sethgammon/citadel · skills/refactor/SKILL.md · Safe multi-file refactoring with automatic rollback. Establishes a type/test baseline, plans all changes, executes…
git:20260611.0f3f8e7 · audit A · 925 stars
refactor SKILL.md skill
dcouple/pane · main/src/services/paneChatBundle/skills/refactor/SKILL.md · Post-PR refactor pass. Sizes the diff against the remote default branch, fans out refactor-simple (and refactor-deep on…
git:20260924.c3bd4b5 · audit A · 562 stars
refactor SKILL.md skill
greenfield-inc/pane · main/src/services/paneChatBundle/skills/refactor/SKILL.md · Post-PR refactor pass. Sizes the diff against the remote default branch, fans out refactor-simple (and refactor-deep on…
git:20260924.c3bd4b5 · audit A · 575 stars
refactor SKILL.md skill
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…
git:20261005.4fda294 · audit A · 450 stars
refactor SKILL.md skill
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…
git:20261010.407c70b · audit A · 450 stars
refactor SKILL.md skill
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…
git:20260915.ec2cb7c · audit A · 319 stars

Browse by kind, by grade A, or by owner.