AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Refactoring Assistant

skill-sourav15mukherjee-skillforge-free-skills-refactoring-assistant · by sourav15mukherjee

>-

No reviews yet
0 installs
32 views
0.0% view→install

Install

$ agentstack add skill-sourav15mukherjee-skillforge-free-skills-refactoring-assistant

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-sourav15mukherjee-skillforge-free-skills-refactoring-assistant)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
5mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Refactoring Assistant? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Refactoring Assistant

Identify code smells and apply systematic refactoring patterns to improve quality without changing behavior.

Workflow

  1. Read and understand the code

Read the target file(s). Before refactoring, understand what the code does and identify its tests.

  1. Run existing tests

Ensure tests pass BEFORE any changes. If no tests exist, warn the user.

  1. Identify code smells

Look for:

  • Long Method: Functions over 30 lines → Extract Method
  • Deep Nesting: More than 3 levels → Early Return, Extract Method
  • Duplicated Code: Similar blocks in 2+ places → Extract and share
  • Large Class: Class with too many responsibilities → Extract Class
  • Feature Envy: Method uses another class's data more than its own → Move Method
  • Primitive Obsession: Using strings/numbers where objects fit → Replace with Value Object
  • Switch Statements: Complex conditionals → Replace with Polymorphism or Map
  • Dead Code: Unused functions, unreachable branches → Remove
  • Magic Numbers: Unexplained literals → Extract Constant
  1. Prioritize

Rank smells by impact:

  1. Bugs/correctness risks
  2. Readability blockers
  3. Maintainability issues
  4. Style preferences
  1. Apply refactorings one at a time

Make each change independently. Run tests after each step.

  1. Verify

Run the full test suite. Behavior must be identical.

Rules

  • NEVER change behavior — refactoring is structure-only
  • Always run tests before AND after
  • Make one refactoring at a time, not all at once
  • Explain each refactoring: what pattern, why it helps
  • If tests don't exist, suggest writing them first
  • Don't refactor code that's about to be deleted or rewritten
  • Prefer small, reversible changes over large restructurings

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.