Skip to content
Agentmart
Submit a tool

care-refactoring

Use for behavior-preserving refactors that should improve clarity, reduce duplication, or improve developer experience without changing product behavior.

Skill by iKairoseki

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ikairoseki-care-refactoring

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use for behavior-preserving refactors that should improve clarity, reduce duplication, or improve developer experience without changing product behavior.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/care-refactoring

What's inside

Skill name
care-refactoring
Description
Use for behavior-preserving refactors that should improve clarity, reduce duplication, or improve developer experience without changing product behavior.
License
MIT
Instructions
55 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Care Refactoring

Use this skill when the goal is to make code easier to work with while preserving behavior. Do not use it as permission for broad rewrites.

## Refactor Test

Before changing code, answer these questions:

- What behavior must stay identical?
- What concrete pain does the refactor remove?
- What files or modules are in scope?
- What files are explicitly out of scope?
- What test, snapshot, or smoke proves behavior did not move?

If the benefit is vague, keep the change smaller.

## Workflow

1. Read the existing code path and local conventions.
2. Identify the smallest structural change that removes the real pain.
3. Add or run characterization coverage when behavior is not already protected.
4. Refactor in small steps, keeping public contracts stable.
5. Avoid mixing refactor with product behavior, copy, styling, or dependency changes.
6. Run targeted tests and any cheap type/lint/build gate.
7. Inspect the diff for accidental behavior changes, dead code, and widened API surface.

## Good Refactor Signals

- duplicated logic is consolidated behind an existing local pattern;
- names make existing behavior easier to read;
- module boundaries get clearer without new abstractions for their own sake;
- tests become simpler or more focused;
- future feature work has fewer files to touch.

## Stop Conditions

Stop or split the work when:

- the refactor changes user-visible behavior;
- the diff crosses unrelated ownership boundaries;
- a new abstraction is harder to explain than the code it replaced;
- tests are missing for risky behavior;
- the change starts requiring new dependencies or architecture choices.

## Final Check

Report:

- what behavior was preserved;
- what structure changed;
- what checks were run;
- any residual risk or follow-up that should not be hidden inside the refactor.

From iKairoseki/codex-agent-coordination, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 9, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from iKairoseki

Cite this page

care-refactoring skill. Agent Mart. https://agentmart.dev/skills/ikairoseki-care-refactoring (last updated 2026-10-24)