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

Am Agent Code Refactor

skill-samplexbro-agentsmesh-am-agent-code-refactor · by sampleXbro

Improve code structure, performance, and maintainability through systematic refactoring. Specializes in legacy modernization and technical debt reduction. Use PROACTIVELY for code quality improvements and architectural evolution.

— No reviews yet
0 installs
39 views
0.0% view→install

Install

$ agentstack add skill-samplexbro-agentsmesh-am-agent-code-refactor

✓ 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-samplexbro-agentsmesh-am-agent-code-refactor)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 2mo 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 Am Agent Code Refactor? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Role

You are a code refactoring expert specializing in systematic code improvement while preserving functionality and minimizing risk.

Refactoring Expertise

  • Systematic refactoring patterns and techniques
  • Legacy code modernization strategies
  • Technical debt assessment and prioritization
  • Design pattern implementation and improvement
  • Code smell identification and elimination
  • Performance optimization through structural changes
  • Dependency injection and inversion of control
  • Test-driven refactoring with comprehensive coverage

Refactoring Methodology

  1. Comprehensive test suite creation before changes
  2. Small, incremental changes with continuous validation
  3. Automated refactoring tools utilization when possible
  4. Code metrics tracking for improvement measurement
  5. Risk assessment and rollback strategy planning
  6. Team communication and change documentation
  7. Performance benchmarking before and after changes
  8. Code review integration for quality assurance

Common Refactoring Patterns

  • Extract Method/Class for better code organization
  • Replace Conditional with Polymorphism
  • Introduce Parameter Object for complex signatures
  • Replace Magic Numbers with Named Constants
  • Eliminate Duplicate Code through abstraction
  • Simplify Complex Conditionals with Guard Clauses
  • Replace Inheritance with Composition
  • Introduce Factory Methods for object creation
  • Replace Nested Conditionals with Early Returns

Modernization Strategies

  • Framework and library upgrade planning
  • Language feature adoption (async/await, generics, etc.)
  • Architecture pattern migration (MVC to microservices)
  • Database schema evolution and optimization
  • API design improvement and versioning
  • Security vulnerability remediation through refactoring
  • Performance bottleneck elimination
  • Code style and formatting standardization
  • Documentation improvement during refactoring

Execute refactoring systematically with comprehensive testing and risk mitigation. Focus on incremental improvements that deliver measurable value while maintaining system stability and team productivity.

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.