arch-cleanup SKILL.md skillA

arch-cleanup from motleyai/living-architecture is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add motleyai/living-architecture/arch-cleanup@git:20261109.ade696f

Pins git:20261109.ade696f in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
motleyai/living-architecture
Path
plugin/skills/arch-cleanup/SKILL.md
Versions recorded
5
Latest version
git:20261109.ade696f, committed Nov 9, 2026
First version recorded
Oct 5, 2026
Size
5,524 bytes
Repository stars
14
License
MIT

Use to carve or tighten ONE architecture boundary in a repo with the living-architecture setup — take a coherent batch of grandfathered `#legacy` arrows (or extract a new node), refactor them away with verified moves (deterministic-refactor), and shrink the legacy-arrow baseline monotonically. Behaviour-preserving by definition; one slice = one branch/PR.

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

**Preflight:** run `la-doctor --plugin <this skill's base directory> --require-config` once per session before using any `la-*` or `dr-*` command. If it reports the missing-config finding (the one naming `/la:init`), run the fast path of the `la:init` skill, then re-run this preflight; stop and show the user its output on anything it still reports, or on any other failure.

# Carve one boundary slice

A slice moves code until a batch of grandfathered edges dies, with a
deterministic gate proving nothing dangles. It is behaviour-preserving: no new
behaviour, no new tests, no OpenSpec spec deltas. The legacy-arrow ratchet plus
the green suite ARE the spec, so the /la:pr stage flow does not apply — but
each slice still gets its own branch and PR, and its own issue when the repo has a tracker.

## Procedure

1. **Pick the slice.** List the model's `#legacy` arrows (their count is
   `legacy_arrows.baseline` in `index.yaml`); propose a coherent batch — one
   importer module, one edge family (e.g. `python.core -> python.sql.render`),
   or one node extraction. Arrows live inside their language root, so a slice
   stays within one language.
…

Read the whole file at its exact version.

How to install

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_u2qkc55qjuu44xrj/07b4408ebf1b0fe2b3aefcfa165cac242c8ff0841dd2b15844240d8c91862f9f.json

Then /plugin install arch-cleanup@markdownregistry-u2qkc55qjuu44xrj in Claude Code. It installs git:20261109.ade696f, the one graded A here, pinned to the commit it was graded at, and leaves it there.

The exact contents, by fingerprint
mdr add motleyai/living-architecture/arch-cleanup@sha256:07b4408ebf1b0fe2

The line at the top of this page pins the label git:20261109.ade696f, 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_u2qkc55qjuu44xrj.svg)](https://markdownregistry.com/a/art_u2qkc55qjuu44xrj)

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

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: what changed in motleyai/living-architecture/arch-cleanup since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of arch-cleanup from somewhere else? Ask it: where did my arch-cleanup come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

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

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
git:20261109.ade696f latest2026-11-09 ade696f 5,524 BA view · diff
git:20261024.e8450c22026-10-24 e8450c2 5,485 BA view · diff
git:20261005.4057a532026-10-05 4057a53 5,356 BA view · diff
git:20261005.633cc9a2026-10-05 633cc9a 5,329 BA view · diff
git:20261005.0cd68f52026-10-05 0cd68f5 5,305 BA view
Keep it current by itself, install once

Committed this skill to a repository? Install the markdownregistry skill updates app on it, or on all of them. When the registry saves a newer version, a pull request brings your copy to it within minutes, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

Install on GitHub

It asks to read and write contents and pull requests, and to read metadata. No workflow file, no Actions setting, nothing runs on your runners. Uninstall it and everything the registry kept about your repository is deleted.

Keep it current by itself

Committed this skill to a repository? Add one workflow file, and when a newer version is saved, a pull request brings your copy to it, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

mkdir -p .github/workflows && curl -fsSL https://markdownregistry.com/ci/skill-updates.yml -o .github/workflows/skill-updates.yml

It runs daily on GitHub Actions, no key and no account. Read the workflow before you add it.

Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

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 (5524 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

motleyai/living-architecture · 14 stars · license MIT · pushed 2026-11-17 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_u2qkc55qjuu44xrj
GET https://markdownregistry.com/api/v1/resolve?ref=motleyai/living-architecture/arch-cleanup
GET https://markdownregistry.com/api/v1/blob/07b4408ebf1b0fe2b3aefcfa165cac242c8ff0841dd2b15844240d8c91862f9f

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 motleyai/living-architecture

AGENTS.md AGENTS.md file
motleyai/living-architecture · AGENTS.md
git:20261113.1daeeef · audit A · 14 stars
CLAUDE.md CLAUDE.md file
motleyai/living-architecture · CLAUDE.md
git:20261001.5723e5d · audit B · 14 stars
arch-init SKILL.md skill
motleyai/living-architecture · plugin/skills/arch-init/SKILL.md · Build a repo's first living-architecture model — write the language sections of architecture/index.yaml, scaffold the…
git:20261116.1f99fe6 · audit A · 14 stars
codex-review SKILL.md skill
motleyai/living-architecture · plugin/skills/codex-review/SKILL.md · Use the codex MCP server to review the current git diff. Focus on correctness, regressions, security issues, tests, and…
git:20261005.633cc9a · audit A · 14 stars
concise-comments SKILL.md skill
motleyai/living-architecture · plugin/skills/concise-comments/SKILL.md · Rules for concise code comments/docstrings, plus a pass to trim verbose ones. Use when writing or reviewing code, or…
git:20261005.4057a53 · audit A · 14 stars
deterministic-refactor SKILL.md skill
motleyai/living-architecture · plugin/skills/deterministic-refactor/SKILL.md · Use to rename or move a module/class/function/method/attribute (Python or TypeScript) and update all…
git:20261117.dfb8d44 · audit A · 14 stars
fetch-coderabbit-threads SKILL.md skill
motleyai/living-architecture · plugin/skills/fetch-coderabbit-threads/SKILL.md · Use when the user asks to fetch / list / read / show unresolved CodeRabbit review threads on a GitHub PR. Pulls thread…
git:20261005.1d349d3 · audit A · 14 stars
fetch-failed-pr-checks SKILL.md skill
motleyai/living-architecture · plugin/skills/fetch-failed-pr-checks/SKILL.md · Use when the user asks to check / fetch / list / show failed CI checks (GitHub Actions, external CI) on a GitHub PR —…
git:20261109.1aa4181 · audit A · 14 stars
init SKILL.md skill
motleyai/living-architecture · plugin/skills/init/SKILL.md · Onboard a repo to the la plugin — detect its tracker, test/lint/type-check commands, Codex, Sonar and any existing…
git:20261116.1f99fe6 · audit A · 14 stars
living-architecture SKILL.md skill
motleyai/living-architecture · plugin/skills/living-architecture/SKILL.md · Reference for the living-architecture layer (LikeC4 structure model + arc42 principles + model-truth import enforcement…
git:20261109.a70fad3 · audit A · 14 stars
make-diff-compliant SKILL.md skill
motleyai/living-architecture · plugin/skills/make-diff-compliant/SKILL.md · Use to bring exactly the source files a PR/branch touches up to the deterministic-refactor compliance conditions…
git:20261005.4057a53 · audit A · 14 stars
make-refactor-target-compliant SKILL.md skill
motleyai/living-architecture · plugin/skills/make-refactor-target-compliant/SKILL.md · Use BEFORE renaming a symbol/attribute (Python or TypeScript) to make its blast radius verifiable — type the code that…
git:20261114.e35ca3e · audit A · 14 stars

Every file in motleyai/living-architecture

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