Reuse Or Replace
Re-anchor anti-fragmentation: follow existing pattern or established way we already have (consistent, keep it one way, reuse or openly replace pattern…
от melodic-software★ 34 звезды на GitHub
Установить Reuse Or Replace в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Reuse or replace
A drift corrector for anti-fragmentation discipline: one way to do a thing,
not two. The shared method (re-anchor, audit the work in flight, correct
forward, report) lives in
${CLAUDE_PLUGIN_ROOT}/context/re-anchor-audit-correct.md.
Read it; this file adds only what is specific to reusing or replacing an
established way rather than splitting into a parallel one.
The discipline this re-anchors
When a codebase, structure, or process already has an established way of
doing something, new work must not silently stand up a second, parallel
way beside it. Two coexisting ways of doing the same thing is
fragmentation: it splits the reader's model, doubles the surface that
drifts, and taxes every future change with a "which one?" decision. Resolve
the source of truth per the method doc's ladder: if the consuming project
states a consistency / one-way rule in its own CLAUDE.md /
.claude/rules/, re-anchor that. Otherwise re-anchor this portable baseline.
Facing an established way, new work has exactly two honest options:
- Reuse it. Follow the established way, so the codebase keeps one way.
- Replace it. Openly argue the established way should change, then, if it should, migrate the old uses to the new way and record the decision. Replacement converges the codebase on the new single way.
The sin is neither of those: it is leaving the established way in place and quietly adding a divergent way alongside it, so both now exist.
Misconstrual guard. This is not "always conform" (mandatory)
Reusing is not blind conformity, and this skill never demands straight obedience to the incumbent way. Replacing the established way is a first-class, encouraged move, not a deviation to be suppressed. The established way should be replaced when:
- evidence backs an improvement. Research or measurement shows a better
way (route the evidence-gathering to
/discipline:do-your-research, invoked via the Skill tool); - its rationale is missing. Nobody can say why it is done this way ("I don't know, it just is");
- it rests on incumbency only. "we've always done it this way" is the sole support;
- it is stale or outdated. Newer developments may have superseded it; a challenge on this ground requires fresh research, not recall.
When you replace, do it in the open and carry it through: migrate the old uses.
When you reuse, reuse because the way holds up, not merely because it is there;
that interrogation is /discipline:reason-dont-recite's axis (below).
The burden rule. Divergence is priced by blast radius
Replacing the established way (or otherwise diverging from it) is allowed, but it carries a burden: a stated rationale, recorded proportional to the divergence's blast radius.
- Durable or architectural divergence, a new structural pattern, a different error-handling model, a second workflow. Records its rationale where durable decisions live: the repo's ADR or docs convention.
- Small, local divergence records it where the change is reviewed: the PR description or the commit message.
- No recorded reason at all is the finding. An unexplained second way is fragmentation whether or not it is defensible on its merits, the burden is to say why, not merely to be right.
Where the established way is written down
A project may record its chosen ways as paved paths: a standards index row
whose Surface is paved-path, pointing at one file that names, per concern,
the chosen way and the check that enforces it (the standards convention's
"Paved paths" section, docs/contracts/standards/README.md in the
marketplace repository). Read that file on demand, when the work in flight
touches a concern it might list; do not load it otherwise. The index sits at
docs/standards/README.md unless docs/conventions/standards.yaml sets another
standards_dir. A listed entry is the established way for that concern; a
second way beside it is the finding above, and replacing it means updating
the entry too. With no index or no paved-path row, find the established way
in the codebase.
Writing the paved-path entry
This skill is the only one that writes paved-path entries; every other skill
(the architecture conventions lens, /corrections:codify (if enabled), review) proposes
an entry to it and writes none. When the work establishes a new way for a
recurring concern, or openly replaces a listed one, draft the entry: the
concern, the chosen way as a pointer to the code or template that shows it,
and the enforcing check, or none when nothing enforces it yet. For a
replacement, the draft changes the listed entry rather than adding a second
one for the same concern.
- Ask first. Show the draft and write it only after the user says yes. A no, or no answer, writes nothing.
- No index row or no file. Offer to create both (the
paved-pathindex row, and th
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Reuse Or Replace?
Re-anchor anti-fragmentation: follow existing pattern or established way we already have (consistent, keep it one way, reuse or openly replace pattern, migrate, record why), never diverge from how we do it elsewhere with parallel second way (--repo). Use when 'reuse or replace', 'don't invent a second way', 'you added a parallel way', codebase.
Как установить скилл Reuse Or Replace?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Reuse Or Replace запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…