managing-temp-scripts

Create and execute temporary scripts in /tmp/workflow-scripts with automatic cleanup.

218|6|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/mbruhler/claude-orchestration --skill managing-temp-scripts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: managing-temp-scripts
Source: https://github.com/mbruhler/claude-orchestration/tree/main/skills/managing-temp-scripts
Command: npx skills add https://github.com/mbruhler/claude-orchestration --skill managing-temp-scripts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, json, sys, os, dotenv, praw, pandas, numpy, axios, cheerio, psycopg2-binary, PyYAML, and includes references (resource) components.

What problem does it solve?

AI agents often need to interact with external APIs, process data with specialized libraries, or execute custom logic beyond their built-in capabilities. This skill enables you to seamlessly create, execute, and manage temporary scripts (Python, Node.js, Shell) within your workflows, extending automation possibilities.

Core Features & Use Cases

  • Dynamic Script Creation & Execution: Generate and run Python, Node.js, or Shell scripts on-the-fly for tasks like API integration, web scraping, or complex data processing.
  • Dependency Management: Supports installing script-specific dependencies (e.g., pip install for Python, npm install for Node.js) within isolated environments.
  • Secure Credential Handling: Guides on best practices for securely passing API keys and sensitive data to scripts via arguments or environment variables, ensuring automatic cleanup.
  • Use Case: You need to fetch data from a proprietary API that requires a specific Python library. This skill helps you create a temporary Python script, install the necessary library, execute the script with your API key, and process the returned data, all within your workflow.

Quick Start

Create a temporary Python script to fetch 10 hot posts from the 'programming' subreddit using a provided API key.

Frequently Asked Questions about managing-temp-scripts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I execute Python or Node.js scripts dynamically within a workflow?

Create and execute temporary scripts on-the-fly by generating script files, installing dependencies, running them via Bash, and capturing output. The skill handles script lifecycle management—creation, permission setup, execution, and automatic cleanup—supporting Python, Node.js, Shell, Ruby, Go, and other languages within isolated /tmp environments.

Can I integrate external APIs and process data using custom code in my automation?

Yes. Generate temporary scripts that call external APIs, install specialized libraries like requests or axios, and process returned data. Pass API keys securely via environment variables or arguments, execute the script, and return results directly to your workflow without manual setup.

What's the best way to handle dependencies like pandas, requests, or cheerio in temporary scripts?

The skill manages dependency installation automatically within each script's execution environment. Specify required packages (pip install for Python, npm install for Node.js) and they're installed before script execution, ensuring isolated, reproducible environments without polluting your main system.

How do I securely pass API keys and credentials to scripts during execution?

Pass sensitive data via environment variables or command arguments rather than hardcoding them in script files. The skill enforces credential handling best practices and ensures automatic cleanup after execution, preventing accidental exposure or persistence of secrets.

Can I use web scraping or data extraction with temporary scripts in workflows?

Yes. Create scripts using libraries like cheerio for Node.js or BeautifulSoup-compatible approaches in Python to scrape web content. Generate, execute, and return extracted data within your workflow, with automatic cleanup of temporary files and credentials.

What happens to temporary scripts and their output after execution completes?

Scripts are created in /tmp/workflow-scripts, executed with captured stdout/stderr output returned to your workflow, then automatically cleaned up. This ensures no residual files or credentials remain, maintaining workflow hygiene and security across multiple executions.