code-helper

Analyze codebases to detect anti-patterns and generate refactoring scenarios.

2|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/fwdslsh/crosstrain --skill code-helper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-helper
Source: https://github.com/fwdslsh/crosstrain/tree/main/src/tests/fixtures/skills/code-helper
Command: npx skills add https://github.com/fwdslsh/crosstrain --skill code-helper

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps with code analysis and refactoring tasks, identifying anti-patterns and suggesting improvements.

Core Features & Use Cases

  • Analyze code for patterns and anti-patterns
  • Suggest refactoring improvements
  • Identify code smells and best practices
  • Provide rationale and backward-compatibility considerations

Quick Start

Provide a snippet or project example to analyze, then run the skill to receive refactoring suggestions.

Frequently Asked Questions about code-helper

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify code smells and anti-patterns in my codebase?

Code smells are patterns indicating deeper design problems—like God classes, spaghetti code, and magic numbers. This skill analyzes your code to detect these anti-patterns across large codebases and diverse languages, then suggests actionable refactoring improvements with rationale for each change.

What refactoring opportunities can be found in existing code?

Refactoring analysis identifies structural issues such as God classes, excessive complexity, and magic numbers, then generates incremental improvement tasks. Each suggestion includes backwards-compatibility considerations and reasoning to guide safe, prioritized changes.

Can I analyze code across different programming languages?

Yes, this skill applies to large codebases written in diverse languages. It detects common anti-patterns and code smells regardless of language, making it suitable for polyglot projects and multi-language organizations.

How do I start refactoring a large codebase without breaking things?

Provide a code snippet or project example to analyze. The skill identifies refactoring opportunities with backwards-compatibility considerations built in, prioritizing small, incremental improvements over large rewrites to minimize risk.

What's the difference between code analysis and refactoring best practices?

Code analysis detects existing problems—smells, anti-patterns, and structural issues. Best practices are preventive guidelines for future code. This skill combines both: it analyzes current code against best-practice patterns and suggests refactoring aligned with those standards.