code-smells/bloaters

Detect and refactor bloated TypeScript code structures with Extract Method and Extract Class patterns.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/johnnystefan/test-saas-business --skill code-smells-bloaters
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-smells/bloaters
Source: https://github.com/johnnystefan/test-saas-business/tree/main/skills/code-smells/bloaters
Command: npx skills add https://github.com/johnnystefan/test-saas-business --skill code-smells-bloaters

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams spot and dismantle bloated code structures that cause maintenance headaches, covering overlong methods, oversized classes, primitive obsession, long parameter lists, and data clumps so systems stay agile.

Core Features & Use Cases

  • Detect Bloaters: Audit methods and classes that exceed maintainability thresholds, flagging long methods, large classes, and repetitive primitive patterns.
  • Guided Refactor Paths: Recommend Extract Method, Extract Class, Introduce Parameter Object, and other patterns tailored to each bloater type.
  • Use Case: When a TypeScript service class grows unwieldy, use the Skill to locate problematic sections and restructure them into focused domain components.

Quick Start

Ask the agent to review a large class or method to detect Long Methods, Large Classes, Primitive Obsession, Long Parameter Lists, or Data Clumps and suggest refactors.

Frequently Asked Questions about code-smells/bloaters

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

FAQPage Schema
How do I refactor long methods and large classes in TypeScript?

To identify code bloaters, audit methods and classes that exceed maintainability thresholds, flagging long methods, oversized classes, primitive obsession, long parameter lists, and data clumps.

How do I fix primitive obsession and long parameter lists in my codebase?

Fix primitive obsession and long parameter lists by applying the Introduce Parameter Object pattern, grouping repetitive primitive data into cohesive domain objects to simplify method signatures.

What are code bloaters and when do they require refactoring?

Code bloaters are oversized structures like long methods and large classes that cause maintenance headaches. They require refactoring when they exceed maintainability thresholds and hinder system agility.

Can I use this refactoring approach for TypeScript service classes?

Yes, you can use this approach for TypeScript service classes to locate problematic bloated sections and restructure them into focused domain components for improved maintainability.

What's the best way to detect data clumps during code review?

The best way to detect data clumps during code review is to look for repetitive primitive patterns across multiple method signatures, then apply targeted refactor patterns to consolidate them.