Skip to content
Back to skills

Python Script

ASecurity

Create robust Python automation with full logging and safety checks. Use when tasks need complex data processing, authenticated API work, conditional file operations, or error handling beyond simple shell commands.

  • 1,689 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added June 3, 2026
toolspythonshellapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 3, 2026

npx -y skills add Dicklesworthstone/pi_agent_rust --skill python-script --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Script?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python Script
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dicklesworthstone-python-script/badge)](https://www.skillsdirectory.com/skills/dicklesworthstone-python-script)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: python-script
description: Create robust Python automation with full logging and safety checks. Use when tasks need complex data processing, authenticated API work, conditional file operations, or error handling beyond simple shell commands.
---

# Python Scripter

## Overview

Design and run Python scripts with clear requirements, safety checks, and reproducible logging.

## Workflow

1. Confirm inputs, outputs, constraints, and preferred libraries.
2. Identify risky operations and secure explicit approval.
3. Scaffold a script with PEP 723 metadata and structured logging.
4. Lint with `uvx ruff check --fix .agents/scripts/{script_name}.py`.
5. Run with `uv run --script .agents/scripts/{script_name}.py` and monitor logs.
6. Report results, risks encountered, and any follow-up steps.

## Logging requirements

- Log to `.agents/logs/{script_name}.log` and stream to console
- Capture start/end timestamps, parameters, file operations, and errors
- Add `RotatingFileHandler` if logs may grow large

## Template

Read `references/script-template.md` for the full script template.

## Safety practices

- Provide dry-run or rollback paths
- Validate external inputs and API responses
- Use temporary directories for intermediates
- Never run destructive steps without confirmation

Files in this skill

  • SKILL.md1.3 KB
  • references/script-template.md1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…