EliBaumgardner

Decapsulate — Development skill for Claude Code

Development community

Dissolve the selected function into its call sites.

How to install Decapsulate

Installs to ~/.claude/commands/elibaumgardner-refactor-tools-decapsulate.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/EliBaumgardner/refactor-tools/HEAD/.claude/commands/decapsulate.md -o ~/.claude/commands/elibaumgardner-refactor-tools-decapsulate.md

Restart Claude Code, or start a new session, for it to be picked up.

What Decapsulate does


description: Dissolve the selected function into its call sites argument-hint: [Class::function] allowed-tools: Bash(refactor.decap:*), Read, Grep

Dissolve a function into its call sites.

If `$ARGUMENTS` names a function, qualify it as `Class::function` and pass it:

refactor.decap 

Otherwise run it bare and let it read the editor selection:

refactor.decap

`refactor.decap` resolves the selection itself, so do not work the name out first and do not pass a ran

Alternatives in Development

  • Mcporter — Call MCPs via TypeScript, masquerading as simple TypeScript API 4.1k ★
  • Battle — Head-to-head graded battle card between two sites — eight dimensions, bar-by-bar, verdict line 3.6k ★
  • Call Me — Minimal plugin that lets Claude Code call you on the phone 2.5k ★

Full documentation available on GitHub

View Source Repository