AGENT SKILL

python-uv-workflow

Apply Python development policy using uv-first execution, test-first behavior validation, and pre-commit quality gates. Use when implementing or refactoring Python code.

License 许可
Apache-2.0
最近更新
2026-07-21
Stars
★ 0
Forks
0

01 前言 Front Matter

name
python-uv-workflow
metadata
{ "owner": "mryfmo", "scope": "personal", "freshness": "90d", "provenance": "repo=mryfmo/dotfiles; license=MIT", "last-verified": 1784592000000 }
description
Apply Python development policy using uv-first execution, test-first behavior validation, and pre-commit quality gates. Use when implementing or refactoring Python code.

02 资源文件 3

03 SKILL.md 正文

Python UV Workflow

Overview

Use this workflow to keep Python implementation and refactoring aligned with repository policy.

Read Acknowledgement

  • After reading this skill, say: 🐍 私は python-uv-workflow を読みました。

Workflow

  1. Use uv as the default toolchain for Python projects.
  2. Run scripts with uv run <script>.
  3. Write tests when behavior changes and verify expected behavior.
  4. Add standard dev dependencies with uv.
  5. Install pre-commit hooks after dependency setup.
  6. Create .pre-commit-config.yaml when missing.
  7. Create Makefile with setup target when missing.
  8. For refactoring from non-uv originals, align dependencies, raise coverage, and verify output parity.

Testing Expectations

  • Add tests before refactoring.
  • Prefer real data over mocks and monkeypatches when feasible.
  • Target coverage expansion toward 90%+ for refactoring tasks.

Use python-uv-rules.md for exact commands and canonical hook configuration.

04 同仓库更多 Skills

mryfmo
mryfmo/herness-self-improvement

shdoc-shell-docs

Write and review shellscript documentation with shdoc annotations. Use when Codex creates, edits, or reviews `.sh` files or shell executables and should add, repair, or normalize `@file`, `@brief`, `@description`, `@arg`, `@option`, and `@example` comments to match shdoc conventions.

★ 0
mryfmo
mryfmo/herness-self-improvement

humanizer-ja

AIくさい日本語を、人が書いたように自然でこなれた日本語へ書き換えるスキル。ブログ記事、メモ、メール、文書、SNS投稿、チャット返信などの日本語を書いたり推敲したりするときに使う。AIっぽい言い回しを消したいとき、日本語を自然にしたいとき、言い換えたいとき、硬さを抜きたいとき、トーンを整えたいとき、人間らしい声や温度を足したいときに使う。

★ 0
mryfmo
mryfmo/herness-self-improvement

gh-first-workflow

Enforce gh-first GitHub investigation, pull request maintenance, and Conventional Commit output rules. Use when investigating GitHub issues or pull requests, creating or updating pull requests, summarizing investigation results, or preparing commit messages.

★ 0
mryfmo
mryfmo/herness-self-improvement

gh-comment-attach-files

Attach local files to a GitHub issue or pull request comment via Playwright CLI and return the hosted attachment URLs without submitting the comment. Use when you need GitHub-hosted image or document URLs on github.com or GitHub Enterprise Server.

★ 0
mryfmo
mryfmo/herness-self-improvement

convert-to-transformers

Use this skill when converting custom PyTorch models to Hugging Face Transformers format. Helps with: (1) Creating PretrainedConfig and PreTrainedModel classes, (2) Writing ImageProcessor/Tokenizer, (3) Compatibility testing, (4) Hub upload preparation. Use when the user wants to make their model compatible with transformers library.

★ 0
mryfmo
mryfmo/herness-self-improvement

agmsg

Cross-agent messaging via SQLite. Send messages between Claude Code, Codex, Gemini CLI, and other agents. No daemon, no network, no dependencies beyond bash and sqlite3.

★ 0