Use this skill when the task benefits from a short Python script instead of pure reasoning.
This skill is especially useful for:
- arithmetic and unit conversions
- validating regexes or parsing logic
- transforming JSON, CSV, or small text payloads
- checking assumptions with a small reproducible script
Requirements:
- The agent should have access to
execute_code.
Workflow:
- If the task needs computation or a repeatable transformation, activate this skill.
- If you need examples, call
read_skill_file for references/examples.md.
- Write a short Python script for the exact task.
- Prefer
execute_code.
- Use the script output in the final answer.
- Keep scripts small and task-specific.
Rules:
- Prefer standard library Python.
- Print only the values you need.
- Do not invent outputs without running the script.
- If
execute_code is not available, say exactly: No Python execution tool is configured for this agent.
- Do not claim there is a generic execution-environment problem unless a tool call actually returned such an error.