PY

Execute custom Python scripts for mathematical tasks or text file manipulation within the workspace.

Install

mkdir -p .claude/skills/python-math && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8830" && unzip -o skill.zip -d .claude/skills/python-math && rm skill.zip

Installs to .claude/skills/python-math

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.

Small Python utilities for math and text files.
47 charsno explicit “when” trigger
Beginner

Key capabilities

  • Execute Python scripts within a workspace
  • Process text data using custom logic
  • Generate numeric sequences
  • Redirect script output to text files

How it works

The skill executes provided Python code in the workspace and captures standard output. Results can be directed into specific files for storage.

Inputs & outputs

You give it
Python script and optional text data
You get back
Text file or console output

When to use python-math

  • Calculating mathematical values from text data
  • Processing large text files with custom logic
  • Generating numeric sequences

About this skill

Overview

Run short Python scripts inside the skill workspace. Results can be returned as text and saved as output files.

Examples

  1. Print the first N Fibonacci numbers

    Command:

    python3 scripts/fib.py 10 > out/fib.txt

  2. Sum a list of integers

    Command:

    python3 - <<'PY' from sys import stdin nums = [int(x) for x in stdin.read().split()] print(sum(nums)) PY

Output Files

  • out/fib.txt

When not to use it

  • Tasks requiring external Python libraries not present in the environment
  • Complex applications requiring persistent state or database connections

Prerequisites

python3

Limitations

  • Limited to short scripts
  • Requires manual script creation

How it compares

It automates the execution and file redirection of Python scripts directly within the assistant's workspace instead of requiring manual local execution.

Compared to similar skills

python-math side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
python-math (this skill)09moReviewBeginner
streamlit869moNo flagsIntermediate
jupyter-notebook306moReviewIntermediate
backtesting-frameworks172moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

streamlit

sverzijl

When working with Streamlit web apps, data dashboards, ML/AI app UIs, interactive Python visualizations, or building data science applications with Python

86239

jupyter-notebook

davila7

Use when the user asks to create, scaffold, or edit Jupyter notebooks (`.ipynb`) for experiments, explorations, or tutorials; prefer the bundled templates and run the helper script `new_notebook.py` to generate a clean starting notebook.

30158

backtesting-frameworks

wshobson

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.

17126

pdf-processing-pro

davila7

Production-ready PDF processing with forms, tables, OCR, validation, and batch operations. Use when working with complex PDF workflows in production environments, processing large volumes of PDFs, or requiring robust error handling and validation.

17110

llava

zechenzhangAGI

Large Language and Vision Assistant. Enables visual instruction tuning and image-based conversations. Combines CLIP vision encoder with Vicuna/LLaMA language models. Supports multi-turn image chat, visual question answering, and instruction following. Use for vision-language chatbots or image understanding tasks. Best for conversational image analysis.

7117

cocoindex

cocoindex-io

Comprehensive toolkit for developing with the CocoIndex library. Use when users need to create data transformation pipelines (flows), write custom functions, or operate flows via CLI or API. Covers building ETL workflows for AI data processing, including embedding documents into vector databases, building knowledge graphs, creating search indexes, or processing data streams with incremental updates.

6116

Search skills

Search the agent skills registry