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

  • Battle — Head-to-head graded battle card between two sites — eight dimensions, bar-by-bar, verdict line 3.6k ★
  • Dive — Dive is an open-source MCP Host Desktop Application that seamlessly integrates with any LLMs supporting functi 1.8k ★
  • Claude Code Sub Agent Collective — 🧠 Context Engineering Research - Not just another agent collection, but using research and context engineerin 523 ★

Full documentation available on GitHub

View Source Repository