Code Execution (bulk-operation token saver)
Runs a local Python runtime to handle bulk file operations and return only summaries, cutting token use by 90%+.
What it does
Instead of pulling whole source files into the conversation, this skill calls a local Python runtime (execution_runtime) to do the work and returns summaries only.
fs: copy/paste line ranges, search & replace, batch copycode: find functions/classes, analyze dependencies and complexity (metadata only, never full source)transform: project-wide identifier rename, debug-statement removal, batch refactorgit: status / add / commit / push
It includes a savings table: ~90% for 10 files, ~99% for 100 files.
Who it's for
- Python developers doing frequent large-scale refactors
- Anyone who keeps hitting context limits on multi-file tasks
- Teams wanting automated repo-wide complexity audits
Examples
- Rename across 50 files:
transform.rename_identifier('.', 'oldName', 'newName', '**/*.py')→ returns{files_modified: 50, total_replacements: 247} - Extract utility functions: locate
.*_util$functions withcode.find_functions, then move them viafs.copy_lines+fs.paste_codeintoutils.py - Audit 100 files: use
code.analyze_dependenciesto list only files with complexity above 15
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/mhattingpete/claude-skills-marketplace/HEAD/code-operations-plugin/skills/code-execution/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the code-operations-plugin/skills/code-execution folder from the GitHub repo mhattingpete/claude-skills-marketplace into my ~/.claude/skills/code-execution/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/mhattingpete/claude-skills-marketplace.git && mkdir -p ~/.claude/skills && cp -r claude-skills-marketplace/code-operations-plugin/skills/code-execution ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/mhattingpete/claude-skills-marketplace.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r claude-skills-marketplace/code-operations-plugin/skills/code-execution ~/.claude/skills/ - Install the Python runtime: if installed as a plugin, run
~/.claude/plugins/marketplaces/mhattingpete-claude-skills/execution-runtime/setup.sh; if you cloned manually, runexecution-runtime/setup.shinside the cloned folder. - Restart Claude Code, then try a request like "rename oldName to newName across every .py file in this repo" to trigger the skill.
- Commit your work with
gitfirst — the transform functions edit files in place.