# Cheneeheng Agent Skills Scaffold Python Library

> Scaffold a Python Library

- Skill: `tomevault-io/cheneeheng-agent-skills-scaffold-python-library` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/cheneeheng-agent-skills-scaffold-python-library`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/cheneeheng-agent-skills-scaffold-python-library/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/cheneeheng-agent-skills-scaffold-python-library

---


# Scaffold a Python Library

Use a `src/` layout so tests run against the installed package, not the working tree.

```
your-library/
├── src/
│   └── your_library/
│       ├── __init__.py        # defines the public API (__all__)
│       └── py.typed           # ship type information (PEP 561)
├── tests/
│   ├── unit/
│   └── api/                   # exercise the public API as a consumer
├── pyproject.toml
├── README.md
└── .gitignore
```

## Initial Config

- `pyproject.toml` with an explicit build backend (hatchling), uv, ruff, mypy, pytest config —
  see `ceh-python-library:packaging` and `ceh-python-library:python-library-environment`.
- Keep `dependencies = []` minimal; no web-service deps. Define `__all__` in `__init__.py` from the start.

## .gitignore

```
.venv/
.env
.env.*
!.env.example
__pycache__/
*.pyc
*.egg-info/
.coverage
.pytest_cache/
.mypy_cache/
.ruff_cache/
dist/
build/
.DS_Store
```

---
> Source: [cheneeheng/agent-skills](https://github.com/cheneeheng/agent-skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-15 -->

