writing-python

Manage Python scripts and projects with uv, ruff, pyright, and pytest.

6|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/archibate/archibate-skills --skill writing-python-archibate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-python
Source: https://github.com/archibate/archibate-skills/tree/main/old-skills/marginal-skills/writing-python
Command: npx skills add https://github.com/archibate/archibate-skills --skill writing-python-archibate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provide a consistent, modern workflow for creating, running, testing, and maintaining Python scripts and small projects while avoiding ad-hoc pip usage and inconsistent tooling across environments.

Core Features & Use Cases

  • PEP 723 single-file script recommendations for fast, self-contained utilities that declare their dependencies inline and run with a single command.
  • Project workflows for multi-file development including Python version pinning, virtual environments, dependency pinning, and running tools through uv.
  • Integrated guidance for testing, linting, and type checking using pytest, ruff, and pyright to keep code quality high during iterative development.
  • Use case: quickly scaffold a CLI utility that declares dependencies inline, run it in an isolated environment, add tests, and enforce formatting and type checks before release.

Quick Start

Create a PEP 723 single-file script that declares its dependencies and run it with uv run python script.py.

Frequently Asked Questions about writing-python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a Python script with inline dependencies using PEP 723?

PEP 723 allows you to declare dependencies inline in a single-file Python script. You can run it directly in an isolated environment using uv run python script.py without manual environment setup.

What is the best way to manage Python environments and dependencies for small projects?

Using uv for Python package and environment management provides a consistent workflow. It handles Python version pinning, virtual environments, and dependency pinning for multi-file projects.

How do I run a PEP 723 script without installing dependencies globally?

You can run a PEP 723 script without global installations using uv run python script.py. It reads the inline dependency declarations and executes the script in an isolated environment.

Can I use uv for both single-file scripts and multi-file Python projects?

Yes, uv supports both single-file PEP 723 scripts and multi-file projects. It manages isolated environments for scripts and handles dependency pinning for project workflows.

Why should I use uv instead of pip for Python dependency management?

Using uv instead of ad-hoc pip usage provides a consistent modern workflow. It avoids inconsistent tooling across environments by streamlining environment creation and dependency resolution.