Home / kunolu / 640-skills · sbtd-workflow-onboard/templates/skills/book-refactoring-pass/SKILL.md · GitHub

book-refactoring-pass skillA

book-refactoring-pass is agent-read markdown (skill) from kunolu/640-skills: Guides behavior-preserving refactoring with small, reversible steps. In strict tasks, mandatory before the first implementation edit to existing production code; in default/lite tasks, use on demand when structural friction, duplication, long functions, tangled responsibilities, unsafe cleanup, or explicit delivery requirements affect the change..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Book Refactoring Pass

Use this Skill as a focused refactoring check before or during implementation.

It is derived from the `mini` rule style of `agent-rules-books`. It is a strict development gate for existing-production-code edits and an on-demand engineering lens in other structural-risk scenarios; it does not replace project rules, tests, task artifacts, source/LSP/contract impact analysis, or code review.

## Strict Development Gate

Whenever a strict task will modify existing production code, run this Skill before the first implementation edit to existing production code, even when the expected result is that no refactoring is needed.

Emit a separate visible review:

```text
Refactoring Review
Status: proceed | refactor-first | blocked
Review mode: normal | safety-seam-only
Existing-code scope: ...
Behavior that must remain unchanged: ...
Structural friction: ...
Decision and smallest safe step: ...
Safety net and validation: ...
Deferred refactors: ...
```

- `proceed`: in normal mode, the existing structure is safe enough for the requested edit; `no refactor needed` is a valid explicit conclusion.
…

Read the whole file at its exact version.

How to install

Latest version
mdr add kunolu/640-skills/book-refactoring-pass@git:20260920.f9bbb90
Exact content
mdr add kunolu/640-skills/book-refactoring-pass@sha256:bf220f8c85438b4b

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

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

0 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260920.f9bbb90 latest2026-09-20 f9bbb90 4,504 BA view · diff
git:20260719.63495402026-07-19 6349540 4,334 BA view · diff
git:20260718.951ea5b2026-07-18 951ea5b 2,032 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, 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 (4504 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

kunolu/640-skills · 113 stars · license Apache-2.0 · pushed 2026-09-25 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_o7b6276iccusomla
GET https://markdownregistry.com/api/v1/resolve?ref=kunolu/640-skills/book-refactoring-pass
GET https://markdownregistry.com/api/v1/blob/bf220f8c85438b4b3faecddb13d95189142fe78b7c00219eae3cdefcceec8ac8

Your agent 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.

More from kunolu/640-skills

sbtd-workflow-onboard skill
kunolu/640-skills · sbtd-workflow-onboard/SKILL.md · Checks, installs, or resets SBTD workflow tools, global Skills, AGENTS templates, and project configuration; explicitly…
git:20260921.563abb9 · audit A · 113 stars
codebase-design skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
git:20260827.561ec6a · audit A · 113 stars
diagnosing-bugs skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/diagnosing-bugs/SKILL.md · Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports…
git:20260827.561ec6a · audit A · 113 stars
domain-modeling skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/domain-modeling/SKILL.md · Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a CONTEXT.md…
git:20260827.561ec6a · audit A · 113 stars
grill-me skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/grill-me/SKILL.md · A relentless interview to sharpen a plan or design.
git:20260827.561ec6a · audit B · 113 stars
grill-with-docs skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/grill-with-docs/SKILL.md · A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
git:20260827.561ec6a · audit A · 113 stars
grilling skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/grilling/SKILL.md · Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or…
git:20260827.561ec6a · audit A · 113 stars
handoff skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/handoff/SKILL.md · Compact the current conversation into a handoff document for another agent to pick up.
git:20260827.561ec6a · audit A · 113 stars
i-have-adhd skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/i-have-adhd/SKILL.md · Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns…
git:20260916.cb06e4d · audit A · 113 stars
impeccable skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/impeccable/SKILL.md · Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt…
v4.3.1 · audit A · 113 stars
ponytail-audit skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/ponytail-audit/SKILL.md · Whole-repo audit for over-engineering. Like ponytail-review, but scans the entire codebase instead of a diff: a ranked…
git:20260826.2c5e330 · audit A · 113 stars
ponytail-debt skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/ponytail-debt/SKILL.md · Harvest every `ponytail:` comment in the codebase into a debt ledger, so the deliberate shortcuts and deferrals…
git:20260826.2c5e330 · audit A · 113 stars

Every file in kunolu/640-skills

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