python-skill

A tool for running Python code to perform calculations, process data, automate tasks, and work with formats such as JSON.

In plain words
What is it for?
Use it for mathematical work, date handling, counting and grouping data, regular-expression processing, JSON manipulation, and automation.
Why use it?
It removes the need to do repetitive calculations or data transformations by hand.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/zeenie-ai/opencompany/python-skill
Any agent
npx skills add zeenie-ai/OpenCompany --skill python-skill
Clone the repo
git clone --depth 1 https://github.com/zeenie-ai/OpenCompany

Made for: Claude Code, Codex.

Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,381 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00029 $0.01381
Opus 5 $0.00015 $0.00691
Sonnet 5 $0.00006 $0.00276
Haiku 4.5 $0.00003 $0.00138

Measured 3d ago against content hash 4224aa4fa278, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

python-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

server/skills/coding_agent/python-skill/SKILL.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Code Execution Tool

Execute Python code for calculations, data processing, and automation tasks.

How It Works

This skill provides instructions for the Python Executor tool node. Connect the Python Executor node to Zeenie's input-tools handle to enable Python code execution.

python_code Tool

Execute Python code and return results.

Schema Fields

Field Type Required Description
code string Yes Python code to execute

Available Libraries

All modules below are pre-injected as names in the sandbox. Do not use import statements — they will fail (ImportError: __import__ not found). Reference each name directly.

Name Reference Style Description
math math.sqrt(2) Mathematical functions
json json.loads(s) / json.dumps(d) JSON encoding/decoding
datetime datetime.datetime.now() (the module) Date/time module
timedelta timedelta(days=30) Duration class (already unwrapped)
re re.findall(pat, text) Regular expressions
random random.randint(1, 10) Random number generation
Counter Counter(items) Count hashable objects (already unwrapped)
defaultdict defaultdict(list) Dictionary with defaults (already unwrapped)

Built-in Variables

Variable Description
input_data Data from connected workflow nodes (dict)
output Set this to return a result

Output Methods

  1. Set output variable: Returns structured data to the workflow
  2. Use print(): Captured as console output

Examples

Basic calculation:

{
  "code": "result = 25 * 4 + 10\nprint(f'Result: {result}')\noutput = result"
}

Calculate tip:

{
  "code": "bill = 85.50\ntip_percent = 15\ntip = bill * (tip_percent / 100)\ntotal = bill + tip\nprint(f'Tip: ${tip:.2f}')\nprint(f'Total: ${total:.2f}')\noutput = {'tip': tip, 'total': total}"
}

Read the full file on GitHub · 167 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 167 lines · 29 tokens per session scan A 4224aa4fa278

Subscribe to this mod's changes

python-skill is a skill published in the GitHub repository zeenie-ai/OpenCompany (797 stars, last pushed 9d ago), licensed MIT. It adds 29 tokens to every session and 1,381 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.