This executes example scripts using uv with custom configurations and provides tools to monitor, manage, and rerun tasks.
Install
mkdir -p .claude/skills/examples-auto-run && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2591" && unzip -o skill.zip -d .claude/skills/examples-auto-run && rm skill.zipInstalls to .claude/skills/examples-auto-run
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Run python examples in auto mode with logging, rerun helpers, and background control.Key capabilities
- →Execute Python examples in automated mode
- →Manage background test processes with pidfiles
- →Tail and collect logs from example runs
- →Generate and rerun failed test cases
- →Configure dependency extras for example execution
How it works
The skill wraps the uv runner to execute examples with specific environment overrides, logging configurations, and automated rerun capabilities.
Inputs & outputs
When to use examples-auto-run
- →Run automated Python examples
- →Manage background test processes
- →Tail logs for debugging example failures
- →Rerun failed Python test cases
About this skill
examples-auto-run
What it does
- Runs
uv run examples/run_examples.pywith:- Optional dependency extras enabled by default:
litellm,any-llm,sqlalchemy,redis,blaxel,modal,runloop, andtemporal. EXAMPLES_INTERACTIVE_MODE=auto(auto-input/auto-approve).- Per-example logs under
.tmp/examples-start-logs/. - Main summary log path passed via
--main-log(also under.tmp/examples-start-logs/). - Generates a rerun list of failures at
.tmp/examples-rerun.txtwhen--write-rerunis set.
- Optional dependency extras enabled by default:
- Provides start/stop/status/logs/tail/collect/rerun helpers via
run.sh. - Background option keeps the process running with a pidfile;
stopcleans it up.
Usage
# Start (auto mode; interactive included by default)
.agents/skills/examples-auto-run/scripts/run.sh start [extra args to run_examples.py]
# Examples:
.agents/skills/examples-auto-run/scripts/run.sh start --filter basic
.agents/skills/examples-auto-run/scripts/run.sh start --include-server --include-audio
# Check status
.agents/skills/examples-auto-run/scripts/run.sh status
# Stop running job
.agents/skills/examples-auto-run/scripts/run.sh stop
# List logs
.agents/skills/examples-auto-run/scripts/run.sh logs
# Tail latest log (or specify one)
.agents/skills/examples-auto-run/scripts/run.sh tail
.agents/skills/examples-auto-run/scripts/run.sh tail main_20260113-123000.log
# Collect rerun list from a main log (defaults to latest main_*.log)
.agents/skills/examples-auto-run/scripts/run.sh collect
# Rerun only failed entries from rerun file (auto mode)
.agents/skills/examples-auto-run/scripts/run.sh rerun
Codex execution environment
- When Codex invokes
startorrerun, run the command outside the Codex sandbox by default (sandbox_permissions=require_escalated). Many examples start nested sandboxes, browsers, npm helpers, or cloud/local service processes; running from inside the Codex sandbox can produce environment-only failures such assandbox-exec: sandbox_apply: Operation not permitted, Playwright cache permission errors, or npm cache permission errors. - Use sandboxed execution only when the user explicitly asks for it or when running a narrow dry-run / log inspection command that does not execute examples.
Defaults (overridable via env)
EXAMPLES_INTERACTIVE_MODE=autoEXAMPLES_INCLUDE_INTERACTIVE=1EXAMPLES_INCLUDE_SERVER=0EXAMPLES_INCLUDE_AUDIO=0EXAMPLES_INCLUDE_EXTERNAL=0EXAMPLES_UV_EXTRAS="litellm any-llm sqlalchemy redis blaxel modal runloop temporal"(set to an empty string to disable extras)- Auto-approvals in auto mode:
APPLY_PATCH_AUTO_APPROVE=1,SHELL_AUTO_APPROVE=1,AUTO_APPROVE_MCP=1
Log locations
- Main logs:
.tmp/examples-start-logs/main_*.log - Per-example logs (from
run_examples.py):.tmp/examples-start-logs/<module_path>.log - Rerun list:
.tmp/examples-rerun.txt - Stdout logs:
.tmp/examples-start-logs/stdout_*.log
Notes
- The runner delegates to
uv run --extra ... examples/run_examples.py, which already writes per-example logs and supports--collect,--rerun-file, and--print-auto-skip. examples/sandbox/extensions/vercel_runner.pyis temporarily excluded from auto runs due to credential issues. Do not force-run it until the credential setup is fixed.startuses--write-rerunso failures are captured automatically.- If
.tmp/examples-rerun.txtexists and is non-empty, invoking the skill with no args runsrerunby default.
Behavioral validation (Codex/LLM responsibility)
The runner does not perform any automated behavioral validation. After every foreground start or rerun, Codex must manually validate all exit-0 entries:
- Read the example source (and comments) to infer intended flow, tools used, and expected key outputs.
- Open the matching per-example log under
.tmp/examples-start-logs/. - Confirm the intended actions/results occurred; flag omissions or divergences.
- Do this for all passed examples, not just a sample.
- Report immediately after the run with concise citations to the exact log lines that justify the validation.
When not to use it
- →Running examples that require manual user interaction
- →Executing sensitive code within the Codex sandbox
Prerequisites
Limitations
- →Requires manual validation of exit-0 results
- →Excludes specific modules like vercel_runner due to credentials
How it compares
It provides a persistent, automated test runner with log management and rerun helpers instead of manual script execution.
Compared to similar skills
examples-auto-run side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| examples-auto-run (this skill) | 2 | 3mo | Review | Intermediate |
| verify-local | 0 | 1mo | Review | Beginner |
| python-testing-patterns | 77 | 2mo | Review | Intermediate |
| python-repl | 6 | 4mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by openai
View all by openai →You might also like
verify-local
minuum
MoNaVLA 로컬 검증 대시보드를 127.0.0.1:9001 에 띄우고 링크 안내. CH57 사진 확인, 반증 테스트 판단, GitHub Pages 배포 확인, 학습 로그 등을 브라우저에서 체크리스트로 검증. "검증 페이지", "verify", "로컬 대시보드" 등의 요청에 사용.
python-testing-patterns
wshobson
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.
python-repl
gptme
Interactive Python REPL automation with common helpers and best practices
python-playground
pydantic
Run and test Python code in a dedicated playground directory. Use when you need to execute Python scripts, test code snippets, investigate CPython behavior, or experiment with Python without affecting the main codebase.
mflux-manual-testing
filipstrand
Manually validate mflux CLIs by exercising the changed paths and reviewing output images/artifacts.
dev
atopile
LLM-focused workflow for working in this repo: compile Zig, run the orchestrated test runner, consume test-report.json/html artifacts, and discover/debug ConfigFlags.