원클릭으로
python-skill
Execute Python code for calculations, data processing, and automation. Access to math, json, datetime, collections, and more.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Execute Python code for calculations, data processing, and automation. Access to math, json, datetime, collections, and more.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Drive the user's real Chrome over raw CDP by writing Python against browser-harness helpers - screenshot, coordinate clicks, JS evaluation, form fill, tabs. For tasks needing full freedom or the user's own logins.
Work with GitHub via the gh CLI — clone repositories, create/list/merge pull requests, create/list issues, and run any other gh command (API calls, workflow runs, releases, repo administration). List operations return parsed JSON.
Deploy sites and apps to Vercel, inspect deployments, stream logs, and manage projects/env/domains via the Vercel CLI. Deploy a directory and get back the live deployment URL; everything else the CLI supports is available through the custom command passthrough.
Use this skill to generate well-branded interfaces and assets for MachinaOS (zeenie.ai), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.
Run AI-generated Python in a hard sandbox (Pydantic Monty) with enforced time + memory limits and opt-in capabilities. Use for untrusted code; supports a Python subset.
Interactive browser automation - navigate, click, type, fill forms, take screenshots, get accessibility snapshots. Supports system Chrome/Edge via auto-detection.
| name | python-skill |
| description | Execute Python code for calculations, data processing, and automation. Access to math, json, datetime, collections, and more. |
| allowed-tools | python_executor |
| metadata | {"author":"machina","version":"1.0","category":"code"} |
Execute Python code for calculations, data processing, and automation tasks.
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.
Execute Python code and return results.
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | Python code to execute |
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) |
| Variable | Description |
|---|---|
input_data | Data from connected workflow nodes (dict) |
output | Set this to return a result |
output variable: Returns structured data to the workflowprint(): Captured as console outputBasic 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}"
}
Generate random numbers:
{
"code": "numbers = [random.randint(1, 100) for _ in range(5)]\nprint(f'Random numbers: {numbers}')\noutput = numbers"
}
Date calculations:
{
"code": "today = datetime.datetime.now()\nfuture = today + timedelta(days=30)\nresult = future.strftime('%Y-%m-%d')\nprint(f'30 days from now: {result}')\noutput = result"
}
Process data:
{
"code": "data = input_data.get('numbers', [1, 2, 3, 4, 5])\ntotal = sum(data)\naverage = total / len(data)\nprint(f'Total: {total}, Average: {average}')\noutput = {'total': total, 'average': average}"
}
Parse JSON:
{
"code": "json_str = '{\"name\": \"John\", \"age\": 30}'\ndata = json.loads(json_str)\nprint(f'Name: {data[\"name\"]}')\noutput = data"
}
Count items:
{
"code": "items = ['apple', 'banana', 'apple', 'cherry', 'banana', 'apple']\ncounts = dict(Counter(items))\nprint(f'Counts: {counts}')\noutput = counts"
}
Text processing:
{
"code": "text = 'Contact: john@example.com or jane@test.org'\nemails = re.findall(r'\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Z|a-z]{2,}\\b', text)\nprint(f'Found emails: {emails}')\noutput = emails"
}
Success:
{
"success": true,
"result": {"tip": 12.825, "total": 98.325},
"output": "Tip: $12.83\nTotal: $98.33"
}
Error:
{
"error": "name 'undefined_var' is not defined"
}
| Use Case | Approach |
|---|---|
| Math calculations | Use math library functions |
| Date/time operations | Use datetime and timedelta |
| Data analysis | Use list comprehensions, sum, len |
| Random generation | Use random library |
| Text parsing | Use re regular expressions |
| JSON manipulation | Use json.loads() and json.dumps() |
| Counting | Use Counter from collections |
output: This returns data to the workflowprint() for debugging: Output is captured and returnedinput-tools handle