Skip to content
Back to skills

Refactor

ASecurity

Propose or implement Rust refactors for specific coupling findings, with behavior and analysis verification.

  • 109 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 12, 2026
code-qualityrustgogit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 23, 2026

npx -y skills add nwiizo/cargo-coupling --skill refactor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Refactor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Refactor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nwiizo-refactor/badge)](https://www.skillsdirectory.com/skills/nwiizo-refactor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: refactor
description: Propose or implement Rust refactors for specific coupling findings, with behavior and analysis verification.
argument-hint: "[path] [issue type or requested change]"
---

# Refactor Coupling

Use the user's finding or a current analysis to identify the change in scope.
If analysis is needed, follow [analyze](../analyze/SKILL.md). Treat issue-type labels
as review filters, not CLI arguments.

Confirm the problem in the implementation and callers. Prefer the smallest change
that reduces shared knowledge or change impact while preserving behavior. Existing
entrypoints, re-export facades, and stable hubs may be appropriate. Use
[patterns.md](patterns.md) only for a relevant example, not as a required design.

For proposal requests, explain the problem, recommendation, and validation plan;
include before/after code or migration steps when they help assess the change.
For implementation requests, carry out the authorized change and verification
without stopping after the proposal. Resolve only material unanswered choices.

Apply the repository's Rust structural-analysis guidance, including `similarity-rs`
and `cargo-coupling`, and inspect tool findings before extracting abstractions.
Compare the affected behavior and analysis with the same settings and Git history.
Preserve input validation and error handling. Run relevant tests and required
repository checks; repeat passing checks only after a relevant change or failure.

Complete with the actual change, verification results, and remaining limitations.
Commit or push when requested; a refactor request alone does not authorize either.

Files in this skill

  • SKILL.md1.3 KB
  • patterns.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…