team-refactor SKILL.md skillA

team-refactor from plasminds/team-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add plasminds/team-skills/team-refactor@git:20261102.fbc852e

Pins git:20261102.fbc852e in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
plasminds/team-skills
Path
skills/team-refactor/SKILL.md
Versions recorded
9
Latest version
git:20261102.fbc852e, committed Nov 2, 2026
First version recorded
Oct 10, 2026
Size
13,218 bytes
Repository stars
3
License
MIT

Use when code needs refactoring or cleanup, or its structure judged — god functions, tangled responsibilities, duplication, over-engineering, legacy code without tests, or code that resists the next change. Also when the user invokes Uncle Bob, Fowler, Beck, Feathers, Ousterhout, SOLID, KISS, YAGNI or clean code on existing code. Not for bugs, security or whether a change can merge: team-review.

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

# team-refactor

A panel of refactoring lenses reviews a scoped piece of code in **isolated contexts**, a KISS/YAGNI gate kills speculative work, the human (CEO) approves a backlog, then execution happens in tiny behavior-preserving steps. Same family as `team-council`: evidence-backed, attributed, recorded under `.council/`.

**Core principle:** refactoring changes structure, never behavior. Everything else in this skill protects that line or keeps the refactoring from becoming its own over-engineering.

**REQUIRED BACKGROUND:** follow `team-protocol` for dispatch, writers, the run folder, the agent contract, counting positions, code scope, lane hand-offs, structural choices, the handoff, execution, weakened checks, the sweep and auto-accept.

## Iron Laws

1. **Behavior-preserving only.** Any observable change — outputs, rounding, error types, side effects, call order, emails, logs relied on — is a *For team-review* item. It is never a backlog step, even if the user said "fix it while you're there" or "whatever, make it clean".
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add plasminds/team-skills/team-refactor@sha256:bc6a2d0e61030da6

The line at the top of this page pins the label git:20261102.fbc852e, 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_5fe22kpoat43ioob.svg)](https://markdownregistry.com/a/art_5fe22kpoat43ioob)

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

Versions

The registry has recorded 9 versions of this file, between Oct 10, 2026 and Nov 2, 2026, about one every 3 days.

versioncommittedcommitsizeaudit
git:20261102.fbc852e latest2026-11-02 fbc852e 13,218 BA view · diff
git:20261028.521b4b82026-10-28 521b4b8 13,545 BA view · diff
git:20261023.7e02d772026-10-23 7e02d77 13,208 BA view · diff
git:20261020.a58ef772026-10-20 a58ef77 13,116 BA view · diff
git:20261016.70d35e92026-10-16 70d35e9 13,114 BA view · diff
git:20261014.cbf55e82026-10-14 cbf55e8 10,790 BA view · diff
git:20261014.6b2cbc82026-10-14 6b2cbc8 10,770 BA view · diff
git:20261014.de0e5972026-10-14 de0e597 11,412 BA view · diff
git:20261010.3cc5e542026-10-10 3cc5e54 11,324 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 (13218 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

plasminds/team-skills · 3 stars · license MIT · pushed 2026-11-03 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_5fe22kpoat43ioob
GET https://markdownregistry.com/api/v1/resolve?ref=plasminds/team-skills/team-refactor
GET https://markdownregistry.com/api/v1/blob/bc6a2d0e61030da6bf9483da4e7e3cbdb3de130659a065ffdec62ec551e08001

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 plasminds/team-skills

DESIGN.md DESIGN.md file
plasminds/team-skills · DESIGN.md · A calm decision console. Three panes and one cursor, dark only.
git:20261023.f3adaa5 · audit A · 3 stars
team-ceo-view SKILL.md skill
plasminds/team-skills · skills/team-ceo-view/SKILL.md · Use when a team-* skill (team-refactor, team-council, team-council-plan, team-kickoff, team-review) reaches a CEO gate…
git:20261021.f92cfdc · audit A · 3 stars
team-council-plan SKILL.md skill
plasminds/team-skills · skills/team-council-plan/SKILL.md · Use when a council decision is recorded under `.council/decisions/` and the next step is planning how to carry it out…
git:20261103.9fc52ec · audit A · 3 stars
team-council SKILL.md skill
plasminds/team-skills · skills/team-council/SKILL.md · Use before the code exists, at a decision point that deserves more than one perspective: choosing between approaches…
git:20261103.9fc52ec · audit A · 3 stars
team-kickoff SKILL.md skill
plasminds/team-skills · skills/team-kickoff/SKILL.md · Use when starting a brand-new project or an empty directory, and the user wants several perspectives on its vision…
git:20261020.a58ef77 · audit A · 3 stars
team-protocol SKILL.md skill
plasminds/team-skills · skills/team-protocol/SKILL.md · Use when running any team-* skill (team-council, team-council-plan, team-kickoff, team-refactor, team-review) —…
git:20261103.9fc52ec · audit A · 3 stars
team-review SKILL.md skill
plasminds/team-skills · skills/team-review/SKILL.md · Use when a change needs reviewing before it merges — a merge or pull request, a branch (yours or a colleague's), or an…
git:20261102.ae98855 · audit A · 3 stars
team-scan SKILL.md skill
plasminds/team-skills · skills/team-scan/SKILL.md · Use before the first team-council, team-council-plan, team-kickoff, team-refactor or team-review run in a project, when…
git:20261103.31b4c9b · audit A · 3 stars

Every file in plasminds/team-skills

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