About python-math
python-math runs short Python scripts in a skill workspace. It is intended for simple calculations and scripts whose results can be printed as text or saved to output files.
Key features
- 01Run short Python scripts
- 02Print results as text
- 03Save output files
Use cases
- 01Generate Fibonacci numbers
- 02Sum a list of integers
- 03Save script output to a file
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ trpc-group/ trpc-agent-go --skill python-mathAfter installing, type/python-mathin Claude Code to confirm it loaded.
Bundled filesscripts/fib.py
Details
From the project READMEOverview
Run short Python scripts inside the skill workspace. Results can be returned as text and saved as output files.
Examples
-
Print the first N Fibonacci numbers
Command:
python3 scripts/fib.py 10 > out/fib.txt
-
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
Comments
Markdown supported