Refactoring

From handsontable/handsontable · View interactive version

Refactoring is an AI agent skill from the GitHub repository handsontable/handsontable. Use when refactoring Handsontable code - applying SOLID principles, Law of Demeter, plugin extraction, performance optimization, code modernization, and API redesign with backward compatibility preservation

How to use this skill

Skill file

Conventions over configuration

Eliminate config that naming, location, or type conventions already express. Use auto-discovery or lifecycle hooks in place of new options or wiring.

Handsontable specifics

Patterns

Breaking changes protection

| Rule | Detail |

|------|--------|

| Default setting values stay unchanged | Defaults in metaSchema.ts. |

| Keep legacy CSS class names | Add new names alongside old ones; old names stay in the DOM. |

| Legacy API names keep working with no console warning | "Legacy", not "deprecated". |

| Deprecated APIs get a one-time warning | deprecatedWarn() from src/helpers/console.ts; works until the next major release. |

| Removed hooks go on the removed list | Users get a clear error instead of silent failure. |

Maintainability

Tests after refactoring

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.