Agent skill

Writing Python

by archibate in archibate/dotfiles-opencode

Use this before writing Python code, creating Python scripts, modifying Python files, or when user asks to "write python", "create a python script", "implement in python".

No licenceAuto-check: notesDevelopment

Install Writing Python

skills CLI
$ npx skills add archibate/dotfiles-opencode --skill writing-python -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install archibate/dotfiles-opencode writing-python --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/archibate/dotfiles-opencode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/writing-python .claude/skills/writing-python && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
writing-python
GitHub stars
107
Token cost
~2.3k tokens
SKILL.md length
559 words
Files
4 (incl. references)
Skills in repo
34
Repo updated
First seen
Licence
None found

At a glance

Use this before writing Python code, creating Python scripts, modifying Python files, or when user asks to "write python", "create a python script", "implement in python".

  • Works in 7 steps: Basic structure - Create script with… → Test immediately - Run with uv run… → Add --dry-run - Show what would happen… → …
  • Asks to write python
  • SKILL.md covers Quick Start, Development Tools, Script Development Workflow and UV Commands Reference, plus 4 more sections
  • Calls uv and uvx; needs API_KEY

What it does

Writing Python is an agent skill from archibate/dotfiles-opencode. Use this before writing Python code, creating Python scripts, modifying Python files, or when user asks to "write python", "create a python script", "implement in python". TRIGGER when starting any Python development task.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/pyright.md`, `references/pytest.md` and `references/ruff.md`).

It sits in Development, covering Type safety, Linting and formatting and Test-driven development. It works with Python, Ruff and pytest. The repository describes itself as: Archibate's personal configuration for OpenCode.

When your agent uses it

  • Asks to write python
  • Create a python script
  • Implement in python
  • Starting any Python development task

Example prompts

  • “write python”
  • “create a python script”
  • “implement in python”
  • “/writing-python”

Requirements

  • Python 3
  • A credential in API_KEY

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Basic structure - Create script with --help flag
  2. Test immediately - Run with uv run python3 script.py --help
  3. Add --dry-run - Show what would happen without executing
  4. Test again - Verify dry-run output
  5. Add --verbose - Detailed output for debugging
  6. Test again - Verify verbose mode
  7. Continue incrementally - Add features one at a time, testing each

What it can do on your machine

Read from SKILL.md and the folder at commit 46b6b23. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv
    • uvx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv and uvx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Writing Python loads about 2.3k tokens when it runs, and up to ~6.3k if it reads all its reference files. Until then it costs about 59 tokens; SKILL.md has 559 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~59
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:366
    Store secrets in `.env` files, never in code:
  • NoteMentions a .env fileSKILL.md:369
    # Load from .env file
  • NoteMentions a .env fileSKILL.md:383
    - **Never commit secrets** - Add `.env` to `.gitignore`
  • NoteMentions a .env fileSKILL.md:392
    .env
  • NoteMentions a .env fileSKILL.md:393
    .env.local
  • NoteMentions a .env fileSKILL.md:394
    .env.*.local

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 559 words (~2,330 tokens).

“Modern Python development using uv for package management, PEP 723 for single-file scripts, and best-in-class tooling.”

— opening of SKILL.md by archibate
name
writing-python

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (references) in skills/writing-python of archibate/dotfiles-opencode.

  • SKILL.md
  • references/pyright.md
  • references/pytest.md
  • references/ruff.md

Open the folder on GitHubat commit 46b6b23

Compare with similar skills

Writing Python next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Writing Python compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Writing Python this skillarchibate/dotfiles-opencode107—~2.3kAutomated safety check: NotesNone
Pythonalinaqi/maggy707—~1.1kAutomated safety check: PassMIT
Kedro Babysitkedro-org/kedro11k—~4kAutomated safety check: PassCustom licence
Modern Pythonantoinebou12/uml-mcp105—~1kAutomated safety check: PassMIT
Specx Project Toolingmaksimzayats/specx202—~965Automated safety check: PassMIT
Cb Code QualityBlkLeg/CircuitBreaker201—~1.9kAutomated safety check: PassMIT

Similar skills

  • Python

    alinaqi/maggy

    Python development with ruff, mypy, pytest - TDD and type safety

    707 GitHub stars~1.1k tokensUpdated 13 days ago
    DevelopmentAuto-check passed
  • Kedro Babysit

    kedro-org/kedro

    Run Kedro's local lint / format / type-check / tests on changed files (uses the project's pre-commit hooks, ruff, mypy, pytest, lint-imports, detect-secrets, Make targets — in the right venv), or…

    11k GitHub stars~4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Modern Python

    antoinebou12/uml-mcp

    Modern Python tooling and best practices using uv, ruff, ty, and pytest.

    105 GitHub stars~1k tokensUpdated today
    DevelopmentAuto-check passed
  • Specx Project Tooling

    maksimzayats/specx

    Add strict Python project tooling for a specx service. An agent skill from maksimzayats/specx.

    202 GitHub stars~965 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Cb Code Quality

    BlkLeg/CircuitBreaker

    Circuit Breaker code conventions and the quality gates that actually block a push — ruff, mypy, eslint, the pytest coverage ratchet, and the make verify tiers.

    201 GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Python Pro

    Jeffallan/claude-skills

    Writes type-annotated Python 3.11+ with async patterns, dataclasses and pytest suites, validated with mypy in strict mode, black and ruff.

    12k GitHub stars~1.6k tokensUpdated 4 days ago
    DevelopmentAuto-check passed

More from archibate/dotfiles-opencode

All 34 skills in this repo
  • Glm Vision

    archibate/dotfiles-opencode

    This skill should be used when the user sends an image and asks to "analyze this image", "describe this picture", "what's in this image", or any request requiring visual understanding of images.

    107 GitHub stars~795 tokensUpdated 5 mo ago
    Auto-check passed
  • Pueue

    archibate/dotfiles-opencode

    This skill should be used before running non-interactive long-running tasks, computation intensive tasks, background tasks, or needs guidance on the pueue CLI tool usage.

    107 GitHub stars~637 tokensUpdated 5 mo ago
    Auto-check passed
  • Bilibili API

    archibate/dotfiles-opencode

    This skill should be used when the user asks to "use bilibili API", "download bilibili video", "get bilibili user info", "list bilibili favorites", "send bilibili danmaku", "upload video to…

    107 GitHub stars~2.1k tokensUpdated 5 mo ago
    Auto-check: warnings
  • Show Image

    archibate/dotfiles-opencode

    Show images in terminal using the Kitty image protocol. An agent skill from archibate/dotfiles-opencode.

    107 GitHub stars~596 tokensUpdated 5 mo ago
    Auto-check passed
  • Show Image

    archibate/dotfiles-opencode

    Show images in terminal using the Kitty image protocol. An agent skill from archibate/dotfiles-opencode.

    107 GitHub stars~622 tokensUpdated 5 mo ago
    Auto-check passed
  • Tmux

    archibate/dotfiles-opencode

    Remote control tmux sessions for interactive CLIs (python, gdb, etc.) by sending keystrokes and scraping pane output.

    107 GitHub stars~1.4k tokensUpdated 5 mo ago
    Auto-check passed

Questions about Writing Python

What does Writing Python do?

Use this before writing Python code, creating Python scripts, modifying Python files, or when user asks to "write python", "create a python script", "implement in python". Writing Python is an agent skill from archibate/dotfiles-opencode. Use this before writing Python code, creating Python scripts, modifying Python files, or when user asks to "write python", "create a python script", "implement in python".

When should I use Writing Python?

Writing Python fits situations like: asks to write python; create a python script; implement in python; starting any Python development task.

How do I install Writing Python in Claude Code?

Run `npx skills add archibate/dotfiles-opencode --skill writing-python -a claude-code`. Or copy the skill folder (skills/writing-python in archibate/dotfiles-opencode) into .claude/skills/writing-python in your project. Claude Code loads it when a task matches its description.

How do I install Writing Python in Codex?

Run `npx skills add archibate/dotfiles-opencode --skill writing-python -a codex`. Or copy the skill folder (skills/writing-python in archibate/dotfiles-opencode) into .agents/skills/writing-python in your project. Codex loads it when a task matches its description.

Can I use Writing Python in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add archibate/dotfiles-opencode --skill writing-python -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/writing-python, .gemini/skills/writing-python, .github/skills/writing-python and .opencode/skills/writing-python in your project.

What does Writing Python need to run?

Going by SKILL.md and its folder, Writing Python needs the command-line tools its instructions call (uv and uvx) and credentials named API_KEY. Our summary lists: Python 3; A credential in API_KEY.

Does Writing Python access the network?

SKILL.md contains no URLs. Its commands use uv and uvx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Writing Python safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Writing Python use?

No licence was found for Writing Python or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Writing Python use?

About 2.3k tokens (SKILL.md is roughly 9.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4k tokens, read only when the agent opens those files.

What are the alternatives to Writing Python?

Skills that share tags, products or a category with Writing Python: Python (alinaqi/maggy, 707 stars), Kedro Babysit (kedro-org/kedro, 11k stars), Modern Python (antoinebou12/uml-mcp, 105 stars) and Specx Project Tooling (maksimzayats/specx, 202 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Writing Python?

archibate (a GitHub user) maintains it in archibate/dotfiles-opencode, which has 107 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on April 29, 2026.

Source: archibate/dotfiles-opencode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.