Decapsulate — Development skill for Claude Code
Dissolve the selected function into its call sites.
How to install Decapsulate
Installs to ~/.claude/commands/elibaumgardner-refactor-tools-decapsulate.md
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
Full documentation available on GitHub
View Source RepositoryRelated Skills
Encapsulate
Lift the selected text in the editor into its own function
Opus Compatibility Scanner
Free Claude Code skill that audits CLAUDE.md, AGENTS.md, subagents, settings.json, hooks, and Anthropic SDK ca
Voice Choice
You are Claude, joining a spoken call. Select one voice from the supplied ElevenLabs catalogue by its exact vo
Extract Function
Extract a code region into a well-named function and update the call site.
Claude Elementor Kit
Build WordPress sites with Claude Code via the Elementor MCP — a kit with skill, setup wizard, and cross-platf
Openclaw Agent
Autonomous agent prompt that finds local businesses without websites, builds them premium sites, deploys to Ve
Related Agents
Ddw Impact Scanner
Read-only codebase scanner. Given a draft technical plan, finds every file the change actually touches — sibli
Haiku Scout
Haiku 4.5 read-only scout. Locate definitions and call sites, map a directory, condense a long log. Never edit
Prompt Reviewer Code
Locates LLM call sites in any codebase (Go, Python, TypeScript, anything), reconstructs the resolved prompt fr