prd-to-cli

Generate a Python Click CLI project from a PRD.md file.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/miguelfg/api-to-cli-skillset --skill prd-to-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prd-to-cli
Source: https://github.com/miguelfg/api-to-cli-skillset/tree/main/skills/prd-to-cli
Command: npx skills add https://github.com/miguelfg/api-to-cli-skillset --skill prd-to-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires click, python-dotenv, pandas, openpyxl, httpx, aiohttp, urllib3, requests, pytest, ruff, black, isort, and includes scripts (resource) and assets (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of production-ready Python CLI applications from API documentation, significantly reducing the manual effort and time required to build command-line interfaces for APIs.

Core Features & Use Cases

  • Automated Project Scaffolding: Generates a complete Python Click CLI project structure, including pyproject.toml, Makefile, source code (src/), tests, and configuration files.
  • Resource-Based Commands: Creates one Click subcommand group for each API resource defined in the PRD.
  • Batch Processing: Supports processing requests from CSV or TXT (JSON Lines) files for bulk operations.
  • Configurable Output: Allows outputting results in JSON, CSV, or XLSX formats, with options for timestamps.
  • HTTP Library Flexibility: Supports requests, httpx, aiohttp, and urllib3 based on PRD decisions.
  • Use Case: You have a PRD for a new API. Use this Skill to instantly generate a robust Python CLI tool that developers can use to interact with the API, complete with documentation, testing, and batch processing capabilities.

Quick Start

Use the prd-to-cli skill to generate a Python CLI project from the file 'api_spec.prd.md' and save it to the directory './my-cli-project'.

Frequently Asked Questions about prd-to-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Python Click CLI from an API PRD?

You can generate a Python Click CLI from an API PRD by providing a PRD.md file. The tool scaffolds a complete project structure and creates Click commands for each API resource automatically.

What is the best way to automate code scaffolding for an API client?

Automating code scaffolding for an API client is best achieved by parsing API documentation into a PRD.md file. This generates a production-ready Python project with source code, tests, and configuration files.

Can I use httpx or aiohttp for the generated Python CLI project?

Yes, you can use httpx or aiohttp for the generated Python CLI. The skill supports requests, httpx, aiohttp, and urllib3, inferring the HTTP library choice directly from the PRD.

Does the generated CLI support batch processing from CSV files?

Yes, the generated CLI supports batch processing from CSV or TXT files. It handles bulk operations by reading JSON Lines or CSV inputs and can output results in JSON, CSV, or XLSX formats.

Do I need to manually configure pyproject.toml and Makefile for the CLI project?

No, you do not need to manually configure pyproject.toml or a Makefile. Automated project scaffolding generates these configuration files alongside the source code and tests.