Python API Client Planning
Use this skill when the goal is to recreate a ReZEN-style Python API client
repository from documentation, not to implement every endpoint in one pass.
Read First
- Read
reference.md before creating or updating anything.
- If the target repo already has
docs/planning/ for the initiative, read the
landing README, artifact index, execution docs, and focused trackers before
editing.
- If the repo already has
.cursor/rules/, read the existing rules before
generating new ones so you extend the current contract instead of forking it.
Default Scope
- Python library first.
- Default deliverable: a full planning tree, repo-local rules, and starter
scaffold.
- Default non-goal: full endpoint implementation in the same pass unless the
user explicitly asks for it.
API Source Audit
Use this precedence order:
- Explicit API docs URL from the user.
- Checked-in
docs/api/.
- Checked-in OpenAPI or Swagger files and schema folders.
- Endpoint task docs or similar backlog artifacts.
Before planning or scaffolding, capture one source-of-truth matrix that records:
- authentication and environment rules
- base URLs and versioning
- resource groups and endpoint inventory
- request and response schemas, enums, and uploads
- pagination, rate limits, webhooks, and error models
- contradictions, gaps, or missing examples
If higher-precedence and lower-precedence sources disagree, prefer the
higher-precedence source and record the gap in the planning tree before coding.
Modes
Use the same four modes as the multi-phase planning skill:
scaffold: create or update the full planning root, .cursor/rules/, and
starter repo scaffold.
extend: add or deepen an active plan, tracker, phase proof, or scaffold
slice.
refresh: synchronize planning docs and repo rules after checked-in work
changes the truth.
consolidate: reconcile the shared planning docs after multiple slices land.
If a request includes first-time planning plus scaffold creation, use
scaffold.
If it adds a new phase and also needs status sync, run extend first and
refresh second in the same pass.
Required Workflow
Scaffold
- Derive the initiative slug, package name, and current repo baseline.
- Run the API source audit and create the source-of-truth foundation docs.
- Create the full
docs/planning/<initiative-slug>/ tree.
- Generate or update repo-local
.cursor/rules/ using the templates in
reference.md.
- Scaffold the Python library baseline: package root, tests, docs, examples,
automation, and supporting config files.
- Validate the scaffold and leave endpoint implementation as planned work
unless the user requested more.
Extend
- Read the existing planning root, active plan, current ledger, and relevant
rules.
- Prefer extending the canonical active plan over creating competing siblings.
- Add or update scaffold slices only when the new phase materially changes
package, docs, tests, or automation structure.
Refresh
- Inspect checked-in code, docs, workflows, and rules before changing status
language.
- Update phase proof, focused trackers, readiness overview, execution ledger,
and rule docs in that order.
- Keep the roadmap untouched unless the baseline dependency order changed.
Consolidate
- Reconcile shared planning docs and rules from landed work only.
- Remove stale claims that treat scaffolded files as implemented endpoints.
- Make the landing README and execution README point to the current canonical
active plan.
Guardrails
- Do not silently overwrite existing package metadata, workflows, or rules.
Extend them or record the gap.
- Do not mark API coverage complete until endpoint inventory, tests, docs, and
coverage prove it.
- Do not treat starter scaffold creation as endpoint completion.
- Keep rules, tests, docs, and examples synchronized with the planning tree.
- Use Google-style docstrings and thorough type hints in generated Python.
- Record intentional deviations instead of quietly drifting from the baseline.
Output Requirements
For every run, report:
- the chosen API source inputs and precedence resolution
- the planning root that owns the work
- rules created or updated
- scaffold files created or updated
- what was intentionally deferred to later phases
- tests or validation commands run when files changed
Additional Resources
- For planning templates, rule templates, scaffold contracts, and validation
commands, see reference.md.
- For example invocations, see examples.md.
Source: theperrygroup/rezen — distributed by TomeVault.
1---2name: python-api-client-planning3description: Plans and scaffolds typed Python API client libraries from API docs URLs, local `docs/api/` folders, and OpenAPI or Swagger artifacts. Use when rebuilding or bootstrapping a Python API client repo with multi-phase planning, repo-local Cursor rules, package structure, tests and coverage, MkDocs docs, GitHub Actions, release automation, and examples. Use when this capability is needed.4---5# Python API Client Planning67Use this skill when the goal is to recreate a ReZEN-style Python API client8repository from documentation, not to implement every endpoint in one pass.910## Read First1112- Read `reference.md` before creating or updating anything.13- If the target repo already has `docs/planning/` for the initiative, read the14 landing README, artifact index, execution docs, and focused trackers before15 editing.16- If the repo already has `.cursor/rules/`, read the existing rules before17 generating new ones so you extend the current contract instead of forking it.1819## Default Scope2021- Python library first.22- Default deliverable: a full planning tree, repo-local rules, and starter23 scaffold.24- Default non-goal: full endpoint implementation in the same pass unless the25 user explicitly asks for it.2627## API Source Audit2829Use this precedence order:30311. Explicit API docs URL from the user.322. Checked-in `docs/api/`.333. Checked-in OpenAPI or Swagger files and schema folders.344. Endpoint task docs or similar backlog artifacts.3536Before planning or scaffolding, capture one source-of-truth matrix that records:3738- authentication and environment rules39- base URLs and versioning40- resource groups and endpoint inventory41- request and response schemas, enums, and uploads42- pagination, rate limits, webhooks, and error models43- contradictions, gaps, or missing examples4445If higher-precedence and lower-precedence sources disagree, prefer the46higher-precedence source and record the gap in the planning tree before coding.4748## Modes4950Use the same four modes as the multi-phase planning skill:5152- `scaffold`: create or update the full planning root, `.cursor/rules/`, and53 starter repo scaffold.54- `extend`: add or deepen an active plan, tracker, phase proof, or scaffold55 slice.56- `refresh`: synchronize planning docs and repo rules after checked-in work57 changes the truth.58- `consolidate`: reconcile the shared planning docs after multiple slices land.5960If a request includes first-time planning plus scaffold creation, use61`scaffold`.6263If it adds a new phase and also needs status sync, run `extend` first and64`refresh` second in the same pass.6566## Required Workflow6768### Scaffold69701. Derive the initiative slug, package name, and current repo baseline.712. Run the API source audit and create the source-of-truth foundation docs.723. Create the full `docs/planning/<initiative-slug>/` tree.734. Generate or update repo-local `.cursor/rules/` using the templates in74 `reference.md`.755. Scaffold the Python library baseline: package root, tests, docs, examples,76 automation, and supporting config files.776. Validate the scaffold and leave endpoint implementation as planned work78 unless the user requested more.7980### Extend81821. Read the existing planning root, active plan, current ledger, and relevant83 rules.842. Prefer extending the canonical active plan over creating competing siblings.853. Add or update scaffold slices only when the new phase materially changes86 package, docs, tests, or automation structure.8788### Refresh89901. Inspect checked-in code, docs, workflows, and rules before changing status91 language.922. Update phase proof, focused trackers, readiness overview, execution ledger,93 and rule docs in that order.943. Keep the roadmap untouched unless the baseline dependency order changed.9596### Consolidate97981. Reconcile shared planning docs and rules from landed work only.992. Remove stale claims that treat scaffolded files as implemented endpoints.1003. Make the landing README and execution README point to the current canonical101 active plan.102103## Guardrails104105- Do not silently overwrite existing package metadata, workflows, or rules.106 Extend them or record the gap.107- Do not mark API coverage complete until endpoint inventory, tests, docs, and108 coverage prove it.109- Do not treat starter scaffold creation as endpoint completion.110- Keep rules, tests, docs, and examples synchronized with the planning tree.111- Use Google-style docstrings and thorough type hints in generated Python.112- Record intentional deviations instead of quietly drifting from the baseline.113114## Output Requirements115116For every run, report:117118- the chosen API source inputs and precedence resolution119- the planning root that owns the work120- rules created or updated121- scaffold files created or updated122- what was intentionally deferred to later phases123- tests or validation commands run when files changed124125## Additional Resources126127- For planning templates, rule templates, scaffold contracts, and validation128 commands, see [reference.md](reference.md).129- For example invocations, see [examples.md](examples.md).130131---132> Source: [theperrygroup/rezen](https://github.com/theperrygroup/rezen) — distributed by [TomeVault](https://tomevault.io).133<!-- tomevault:4.0:skill_md:2026-06-16 -->