Skip to content
Agentmart
Submit a tool

pyproject-toml

Use when creating or modifying pyproject.toml configuration for Python projects.

Skill by hugobatista

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/hugobatista-pyproject-toml

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when creating or modifying pyproject.toml configuration for Python projects. Covers hatchling build, uv dependency management, and tool configuration for pytest, coverage, mypy, and ruff.

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pyproject-toml

What's inside

Skill name
pyproject-toml
Description
Use when creating or modifying pyproject.toml configuration for Python projects. Covers hatchling build, uv dependency management, and tool configuration for pytest, coverage, mypy, and ruff.
License
MIT
Instructions
36 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • config.toml.example · assets/
  • pyproject.toml.tmpl · assets/

SKILL.md (first lines)

## pyproject.toml (mandatory template)

Read `config.toml` from this directory. If it exists, use it for defaults. If not, ask the user for their author info and write it to `config.toml` (one-time setup — future runs are faster).

Ask the user to confirm the author. Do not try to parse the name and email, just show the string as-is and ask for confirmation or correction.

Read `assets/pyproject.toml.tmpl`. Replace `AUTHOR_PLACEHOLDER` with the confirmed author, replace `projectname` with your project name, and write it to the project root.

- Set `required-version` in `[tool.uv]` to the latest stable uv release that's been available for > 30 days (check https://github.com/astral-sh/uv/releases)  - but minimum 0.11.18
- Add `[[tool.uv.index]]` with `explicit = true` to declare the package index explicitly. This documents the trust boundary and prevents accidental cross-resolution if multiple indexes are configured.
  ```toml
  [[tool.uv.index]]
  name = "pypi"
  url = "https://pypi.org/simple"
  explicit = true
  ```

### Required sections — verify each exists after substitution

Read the written file back and confirm every section below is present. The `.tmpl` file is the authoritative source — do not skip, merge, or drop any section.

- `[project]` (name, version, description, authors, requires-python, dependencies)
- `[project.scripts]` (CLI entry point)
- `[build-system]` (hatchling)
- `[tool.uv]` (required-version, exclude-newer)
- `[[tool.uv.index]]` (pypi with explicit = true)
- `[tool.hatch.build.targets.wheel]` (packages = ["src/..."])
- `[dependency-groups]` (lint, test, dev with include-group)
- `[tool.hatch.envs.default]` (type = "virtual", path = ".venv")
- `[tool.hatch.envs.default.scripts]` (lint, format, test, typecheck, validate, check, check-fast)
- `[tool.pytest.ini_options]`
- `[tool.coverage.run]` and `[tool.coverage.report]`
- `[tool.mypy]`
- `[tool.ruff]`, `[tool.ruff.lint]`, `[tool.ruff.format]`

From hugobatista/agent-skills, MIT.

More from hugobatista/agent-skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Sep 20, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from hugobatista

Cite this page

pyproject-toml skill. Agent Mart. https://agentmart.dev/skills/hugobatista-pyproject-toml (last updated 2026-10-24)