Agent skill
python-scratchpad
Use the existing Python execution tools as a scratchpad for calculations, data transformation, and quick script-based validation.
Install this agent skill to your Project
npx add-skill https://github.com/OpenBMB/ChatDev/tree/main/.agents/skills/python-scratchpad
SKILL.md
Python Scratchpad
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_fileforreferences/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_codeis 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.
Expected behavior:
- Explain the result briefly after using the script.
- Include the computed value or transformed output in the final answer.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
rest-api-caller
Call REST APIs from Python, parse JSON responses, and report the useful fields back to the user.
greeting-demo
Greet the user in a distinctive, easy-to-verify format for skill activation demos.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
scaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
Didn't find tool you were looking for?