Agent skill

Handsontable Refactoring Rules

by handsontable in handsontable/handsontable

Refactoring rules for Handsontable code: SOLID applied to plugins, Law of Demeter fixes, performance patterns and strict protection of backward compatibility.

Custom licenceAuto-check passedDevelopment

Install Handsontable Refactoring Rules

skills CLI
$ npx skills add handsontable/handsontable --skill refactoring -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install handsontable/handsontable refactoring --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/handsontable/handsontable.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/refactoring .claude/skills/refactoring && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
refactoring
GitHub stars
22k
Token cost
~815 tokens
SKILL.md length
378 words
Files
1
Skills in repo
31
Repo updated
First seen
Licence
Custom licence

At a glance

Refactoring rules for Handsontable code: SOLID applied to plugins, Law of Demeter fixes, performance patterns and strict protection of backward compatibility.

  • Splitting an oversized Handsontable plugin or core module
  • SKILL.md covers Conventions over configuration, Handsontable specifics, Patterns and Breaking changes protection, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Redesigning an API while old names must keep working

What it does

The skill translates design principles into Handsontable terms. Each plugin owns one concern, new logic extends the system through hooks, plugins keep to the `BasePlugin` contract and narrow public APIs, and one plugin reaches another only through `hot.getPlugin()` instead of importing its class. Long call chains such as the one through `this.hot.view.wt.wtTable.holder` are replaced with a method on the intermediate layer. Settings that naming or location conventions already express should not become new options.

Pattern notes cover moving a second concern out of `core.js` into its own plugin, using a `forEach` loop where spreading a huge array into `push` overflows the stack, batching render cycles and scroll work, and modernizing code with `#privateFields` and arrow-function class fields. A table protects compatibility: default setting values, legacy CSS classes and legacy API names stay, deprecated APIs get a one-time warning, and removed hooks go on a removed list. Cognitive complexity is capped at 15 per function.

When your agent uses it

  • Splitting an oversized Handsontable plugin or core module
  • Redesigning an API while old names must keep working
  • Speeding up code that renders or processes very large arrays
  • Modernizing older class code without changing public behavior

Example prompts

  • “Extract the column sorting indicator logic from this plugin into its own plugin that talks through hooks.”
  • “Rename the old setting but keep the legacy name working with a one-time warning.”
  • “Replace the spread-based push call in this renderer with a loop that will not overflow the stack.”

Requirements

  • A checkout of the Handsontable repository

What it can do on your machine

Read from SKILL.md and the folder at commit 68b5e97. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Handsontable Refactoring Rules loads about 815 tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 378 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~815

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 378 words (~815 tokens).

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

— opening of SKILL.md by handsontable, Custom licence
name
refactoring

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/refactoring of handsontable/handsontable.

Open the folder on GitHubat commit 68b5e97

Compare with similar skills

Handsontable Refactoring Rules next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Handsontable Refactoring Rules compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Handsontable Refactoring Rules this skillhandsontable/handsontable22k—~815Automated safety check: PassCustom licence
Architecture Optimizationwondelai/skills2.4k—~7.4kAutomated safety check: PassMIT
Improve Code Qualitywondelai/skills2.4k—~6.2kAutomated safety check: PassMIT
Swiftui View RefactorDimillian/Skills4k5 repos~2kAutomated safety check: PassMIT
RTK Rust Design Patternsrtk-ai/rtk83k—~1.9kAutomated safety check: PassApache-2.0
Code Refactoring Workflowluongnv89/claude-howto42k—~3.1kAutomated safety check: PassMIT

Similar skills

  • Guided journey from a working codebase grown slow and tangled to one measurably fast, cleanly bounded, and readable.

    2.4k GitHub stars~7.4k tokensUpdated 26 days ago
    DevelopmentAuto-check passed
  • Improve Code Quality

    wondelai/skills

    Guided journey from a working-but-untested vibe-coded prototype to a production-ready product with tests, clean structure, a business-rules boundary, and resilience at scale.

    2.4k GitHub stars~6.2k tokensUpdated 26 days ago
    DevelopmentAuto-check passed
  • Swiftui View Refactor

    Dimillian/Skills

    Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage.

    4k GitHub starsUsed in 5 repos~2k tokens
    DevelopmentAuto-check passed
  • Describes seven Rust design patterns for the RTK CLI filter modules, with when to use each, RTK examples, and notes on when a pattern is overkill.

    83k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Refactoring Workflow

    luongnv89/claude-howto

    Guides systematic, test-backed refactoring in the style of Martin Fowler, moving through research, planning and small incremental changes with your approval at each phase.

    42k GitHub stars~3.1k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Svelte5 Best Practices

    SikandarJODD/cnblocks

    Svelte 5 runes, snippets, SvelteKit patterns, and modern best practices for TypeScript and component development.

    430 GitHub starsUsed in 1 repo~810 tokens
    DevelopmentAuto-check passed

More from handsontable/handsontable

All 31 skills in this repo
  • Handsontable Playwright E2E Tests

    handsontable/handsontable

    Guides writing and changing Playwright end-to-end tests for Handsontable using page objects, data-testid hooks and deterministic waits.

    22k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Guides changes to the @handsontable/angular-wrapper package: the HotTableComponent lifecycle, NgZone performance handling, settings services and the ng-packagr build.

    22k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • BrowserStack Live Testing

    handsontable/handsontable

    Opens a live BrowserStack session on a real Android, iOS or desktop browser for a local or public URL, tunneling localhost through Cloudflare when needed.

    22k GitHub stars~950 tokensUpdated today
    Auto-check passed
  • Handsontable Changelog Entry

    handsontable/handsontable

    Decides whether a code change needs a changelog entry and creates the JSON file in .changelogs with the right type, framework and user-facing title.

    22k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Code Review Graph Navigator

    handsontable/handsontable

    Queries a pre-built, Tree-sitter-based code graph of the whole monorepo instead of grepping call chains, for exploring, debugging, refactoring or reviewing code.

    22k GitHub stars~939 tokensUpdated today
    Auto-check passed
  • Handsontable Coordinate Systems

    handsontable/handsontable

    Explains Handsontable's physical, visual and renderable row and column coordinate spaces and how to convert between them with IndexMapper, for debugging misplaced rows or columns.

    22k GitHub stars~721 tokensUpdated today
    Auto-check passed

Categories

Questions about Handsontable Refactoring Rules

What does Handsontable Refactoring Rules do?

Refactoring rules for Handsontable code: SOLID applied to plugins, Law of Demeter fixes, performance patterns and strict protection of backward compatibility. The skill translates design principles into Handsontable terms.getPlugin()` instead of importing its class.

When should I use Handsontable Refactoring Rules?

Handsontable Refactoring Rules fits situations like: splitting an oversized Handsontable plugin or core module; redesigning an API while old names must keep working; speeding up code that renders or processes very large arrays; modernizing older class code without changing public behavior.

How do I install Handsontable Refactoring Rules in Claude Code?

Run `npx skills add handsontable/handsontable --skill refactoring -a claude-code`. Or copy the skill folder (.claude/skills/refactoring in handsontable/handsontable) into .claude/skills/refactoring in your project. Claude Code loads it when a task matches its description.

How do I install Handsontable Refactoring Rules in Codex?

Run `npx skills add handsontable/handsontable --skill refactoring -a codex`. Or copy the skill folder (.claude/skills/refactoring in handsontable/handsontable) into .agents/skills/refactoring in your project. Codex loads it when a task matches its description.

Can I use Handsontable Refactoring Rules in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add handsontable/handsontable --skill refactoring -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/refactoring, .gemini/skills/refactoring, .github/skills/refactoring and .opencode/skills/refactoring in your project.

What does Handsontable Refactoring Rules need to run?

SKILL.md names no scripts, command-line tools or credentials: Handsontable Refactoring Rules is instructions for the agent only. Our summary lists: A checkout of the Handsontable repository.

Does Handsontable Refactoring Rules access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Handsontable Refactoring Rules safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Handsontable Refactoring Rules use?

Handsontable Refactoring Rules has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Handsontable Refactoring Rules use?

About 815 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Handsontable Refactoring Rules?

Skills that share tags, products or a category with Handsontable Refactoring Rules: Architecture Optimization (wondelai/skills, 2.4k stars), Improve Code Quality (wondelai/skills, 2.4k stars), Swiftui View Refactor (Dimillian/Skills, 4k stars) and RTK Rust Design Patterns (rtk-ai/rtk, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Handsontable Refactoring Rules?

handsontable (a GitHub organization) maintains it in handsontable/handsontable, which has 22,059 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 7, 2026.

Source: handsontable/handsontable on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.