# designing-python-apis

> Design discoverable Python modules with fail-loud errors and clean public exports

- **Publisher**: Will McGinnis (APPROVED)
- **Upstream GitHub Repository**: https://github.com/wdm0006/python-skills/tree/main/skills/python/api-design
- **skills.sh Listing**: https://skills.sh/wdm0006/python-skills/designing-python-apis
- **License**: MIT
- **GitHub Stars**: 117
- **Canonical Web Page**: https://builderthread.dev/skill/wdm0006/python-skills/designing-python-apis
- **Parent Topic**: [python](https://builderthread.dev/skill/for/python.md)
- **Last Audited**: 2026-11-21
- **Supported Coding Agents**: Claude Code, Cursor, Codex, Windsurf

## Overview
Audited MIT-licensed Python engineering skill covering progressive disclosure, naming conventions, fail-loud error handling, clean __all__ exports, and testing public import paths.

Inspect the full upstream `SKILL.md` source and license on GitHub before installing: https://github.com/wdm0006/python-skills/tree/main/skills/python/api-design

## Install Command
```bash
npx skills add wdm0006/python-skills --skill designing-python-apis
```

## When to Use This Skill
- Designing internal Python packages, SDKs, or shared service modules
- Replacing silent None fallbacks with explicit typed exceptions
- Keeping public module imports clean and testable

## Focus Areas
- Public API & __all__ design
- Fail-loud error handling
- Progressive defaults
- Public import path tests

## Upstream Package Files
- `skills/python/api-design/SKILL.md`

---

## Ship With a Private Starter Repo, Living PRD & MCP Tasks

Builderthread pairs verified stack skills with a cited market brief, living PRD, private GitHub starter repo, and ordered MCP tasks for Claude Code, Cursor, and Codex.

- Supported languages: Rust, TypeScript, React Native (Expo), Python
- Starter stacks: Next.js SaaS, Hono API, FastAPI AI, Expo mobile, Tauri Rust desktop, WXT Chrome extension
- Start now: https://builderthread.dev/auth/signup
