mbruhler/claude-orchestration/managing-temp-scripts
Claude Code and agent skill by mbruhler/claude-orchestration
- community
Checking that the SKILL.md file is still in the repository.
Create and execute temporary scripts (Python, Node.js, shell) during workflow execution for API integrations, data processing, and custom tools. Use when user needs to interact with external APIs, process data with specific libraries, or create temporary executable code.
Install
npx vskill@latest install mbruhler/claude-orchestration/managing-temp-scriptsSKILL.md
Managing Temporary Scripts
I help you create and execute temporary scripts during workflow execution. Perfect for API integrations, data processing with specialized libraries, and creating temporary tools that execute and return results.
When I Activate
I automatically activate when you:
- Need to interact with external APIs (Reddit, Twitter, GitHub, etc.)
- Want to use specific libraries not available in Claude Code
- Need to process data with custom code
- Ask "how do I call an API in a workflow?"
- Mention "temporary script", "execute code", "API client"
- Need credentials/API keys for external services
Key Concept
Temporary scripts are code files that:
- Are created during workflow execution
- Execute via Bash tool
- Return results to workflow
- Are automatically cleaned up after workflow completion
Supported Languages:
- Python (with pip packages)
- Node.js/JavaScript (with npm packages)
- Shell/Bash scripts
- Ruby, Go, or any executable language
Quick Example
Script Lifecycle
See script-lifecycle.md for complete details.
Overview:
Common Use Cases
1. API Integration
Reddit API Client:
In workflow:
2. Data Processing
CSV Analysis:
In workflow:
3. Web Scraping
Article Scraper:
In workflow:
Script Templates
See script-templates.md for complete library.
Quick templates:
- API Client (REST, GraphQL)
- Data Processing (CSV, JSON, XML)
- Web Scraping (HTML parsing)
- File Processing (PDF, images, documents)
- Database Access (PostgreSQL, MySQL, MongoDB)
- Message Queues (RabbitMQ, Kafka)
- Cloud Services (AWS S3, GCS, Azure)
Security Best Practices
See security.md for comprehensive guide.
Quick checklist:
✅ Credentials Management:
- Pass via command-line arguments (not hardcoded)
- Use environment variables for sensitive data
- Clean up after execution
✅ File Permissions:
✅ Output Sanitization:
- Validate script output before using
- Escape special characters
- Limit output size
✅ Dependency Management:
- Use virtual environments for Python
- Specify exact package versions
- Avoid running arbitrary code
Integration with Workflows
See integration-patterns.md for detailed patterns.
Pattern 1: Simple Script Execution
Pattern 2: Script with User Input
Pattern 3: Parallel Script Execution
Pattern 4: Iterative Processing
Script Directory Structure
Automatic cleanup after workflow:
Creating Scripts in Workflows
Method 1: Inline Script Creation
import requests import sys
api_key = sys.argv[1] response = requests.get( 'https://api.example.com/data', headers={'Authorization': f'Bearer {api_key}'} ) print(response.text)
Method 2: Template-Based Creation
Method 3: Multi-File Scripts
Dependency Management
Python (pip)
Node.js (npm)
Virtual Environments
Error Handling
Capturing Errors
Retry Logic
Output Formats
Scripts can return data in various formats:
JSON (Recommended)
CSV
Plain Text
Cleanup
Automatic Cleanup
Cleanup happens automatically after workflow completion:
Manual Cleanup
For long-running workflows:
Best Practices
DO:
✅ Use unique workflow IDs for script directories ✅ Pass credentials as arguments, not hardcoded ✅ Validate and sanitize script output ✅ Use virtual environments for Python ✅ Specify exact dependency versions ✅ Return structured data (JSON preferred) ✅ Clean up after workflow completion ✅ Set restrictive file permissions ✅ Use timeouts for script execution ✅ Log script output for debugging
DON'T:
❌ Hardcode API keys in scripts ❌ Execute untrusted code ❌ Store sensitive data in script files ❌ Leave scripts after workflow ❌ Use global Python/Node packages ❌ Ignore script errors ❌ Return massive outputs (>1MB) ❌ Use system-wide directories
Tips for Effective Script Management
- Use Descriptive Names:
reddit_api_client.pynotscript.py
- Return Structured Data: Always use JSON when possible
- Error Messages: Include detailed error messages in output
- Logging: Add logging for debugging:
- Validation: Validate inputs before execution
- Timeouts: Set execution timeouts:
Related Skills
- creating-workflows: Create workflows that use temp scripts
- executing-workflows: Execute workflows with script steps
- managing-agents: Temp agents vs temp scripts
- debugging-workflows: Debug script execution issues
Advanced Topics
See detail files for:
- script-lifecycle.md - Complete lifecycle management
- script-templates.md - 20+ ready-to-use templates
- security.md - Security best practices
- integration-patterns.md - Workflow integration patterns
Ready to use temporary scripts? Just describe what API or processing you need!
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/managing-temp-scripts/SKILL.md
Popularity
- Repository stars
- 201
- Repository forks
- 5
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 3 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mbruhler/claude-orchestration/managing-temp-scripts)