Skip to main content

CLI to scaffold Product Kit framework for requirement-driven design

Project description

product-kit

CLI to scaffold a new Product Kit project for requirement-driven design.

Command: prod

Installation

Quick Start (Recommended)

We recommend using UV - a fast Python package installer:

# Install UV first (if you don't have it)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install product-kit
uv tool install product-kit

# Use it
prod my-project

Alternative: Using pipx

pipx install product-kit
prod my-project

Alternative: Using pip

pip install product-kit
prod my-project

Usage

Interactive Mode (Recommended)

prod my-project

You'll be prompted for:

  • Product name
  • Product vision (one sentence)
  • North Star metric
  • Primary persona name
  • Persona goal
  • Strategic pillars (comma-separated)
  • Whether to include GitHub Copilot agents
  • Whether to include example content

Non-Interactive Mode

prod my-project --no-prompts

Uses sensible defaults for all options.

Specify Options

prod my-project \
  --product-name "My Awesome Product"

What Gets Created

my-product/
├── constitution.md              # Customized with your product name
├── context/
│   ├── product-vision.md        # Pre-filled with your vision
│   ├── personas.md              # Pre-filled with your persona
│   ├── glossary.md
│   └── market_research.md
├── inventory/
│   ├── feature-catalog.md
│   ├── tech-constraints.md
│   ├── data-model.md
│   └── product-map.md
├── templates/
│   ├── brd_template.md
│   ├── prd_template.md
│   └── epic_template.md
├── .github/
│   ├── copilot-instructions.md
│   └── agents/                  # Copilot agent configurations
├── .gitignore
├── README.md
├── QUICKSTART.md
├── ARCHITECTURE.md
└── LICENSE

Next Steps

After creating your project:

  1. Navigate to your project:

    cd my-product
    
  2. Initialize git (if needed):

    git init
    
  3. Open in VS Code:

    code .
    
  4. Customize your context:

    • Edit constitution.md with your product standards
    • Fill out context/ files with product details
    • Document current state in inventory/
  5. Start using with Copilot:

    /productkit.clarify "your feature idea"
    

Requirements

  • Python 3.8 or higher
  • GitHub Copilot (for AI features)

Development

Setup

# Clone the repo
git clone https://github.com/yourusername/product-kit.git
cd product-kit/cli

# Install with UV
uv pip install -e ".[dev]"

# Or with pip
pip install -e ".[dev]"

Testing

# Run tests
pytest

# Run with coverage
pytest --cov=product_kit

Linting

# Format code
black src/

# Lint code
ruff check src/

Local Testing

# Install locally
uv pip install -e .

# Test the CLI
prod test-project

Publishing

Using UV

# Build the package
uv build

# Publish to PyPI
uv publish

Using Traditional Tools

# Build
python -m build

# Publish
twine upload dist/*

License

MIT

Support

For issues and questions:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

product_kit-1.0.2.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

product_kit-1.0.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file product_kit-1.0.2.tar.gz.

File metadata

  • Download URL: product_kit-1.0.2.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for product_kit-1.0.2.tar.gz
Algorithm Hash digest
SHA256 45474d0f026dff2d9d34b365ad75a16dad92230f3c8a0db50b6ed84ee314491c
MD5 3ca7f6e10f8503eb6e920fe947b17dfe
BLAKE2b-256 d4b656e4a622f59d8195d157619fd4779779144f65b9c2c9ae269f31bb9f7b20

See more details on using hashes here.

File details

Details for the file product_kit-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: product_kit-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for product_kit-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 51c50f2cf8f0242901744a6bcb3bc5eadc34c5c69ffa5f7a082abef7407c40a5
MD5 3d9d20bbd0777b98aefc84b5802db605
BLAKE2b-256 beb3d809bdd304cf3176eb7d016929d71cd0904d1abd5f03b60abe49c23faf0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page