Skip to content

mhattingpete/claude-skills-marketplace / code-operations-plugin/skills/code-execution

code-execution

Verified

Execute Python code locally with marketplace API access for 90%+ token savings on bulk operations. Activates when user requests bulk operations (10+ files), complex multi-step workflows, iterative processing, or mentions efficiency/performance.

FileKindSize
SKILL.mdskill md3.1 KB
examples/bulk_refactor.pyscript737 B
examples/codebase_audit.pyscript2.2 KB
examples/extract_functions.pyscript1.2 KB

examples/bulk_refactor.py

View on GitHub
"""
Example: Bulk Refactoring Across Entire Codebase

This example shows how to rename an identifier across all Python files
in a project with maximum efficiency.
"""

from api.code_transform import rename_identifier

# Rename function across all Python files
result = rename_identifier(
    pattern='.',  # Current directory
    old_name='getUserData',
    new_name='fetchUserData',
    file_pattern='**/*.py',  # All Python files recursively
    regex=False  # Exact identifier match
)

# Result contains summary only (not all file contents!)
# Token usage: ~500 tokens total
# vs ~25,000 tokens with traditional approach
print(f"Modified {result['files_modified']} files")
print(f"Total replacements: {result['total_replacements']}")
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall