From pkgq
Generate a PACKAGE.md file for a Python project. Analyzes the project structure, extracts key components, patterns, and creates agent-ready documentation. Use when creating documentation for your own packages.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pkgq:createThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Creates PACKAGE.md files for Python packages, following the PACKAGE.md specification.
Creates PACKAGE.md files for Python packages, following the PACKAGE.md specification.
| Parameter | Required | Description |
|---|---|---|
| path | No | Project path (defaults to current directory) |
| output | No | Output path (defaults to PACKAGE.md in project root) |
Read project configuration:
pyproject.toml
├── [project]
│ ├── name
│ ├── version
│ ├── description
│ ├── dependencies
│ └── urls
├── [project.optional-dependencies]
└── [project.readme]
If pyproject.toml missing, check:
setup.py (legacy)setup.cfg (legacy)requirements.txt (minimal)Scan the package source:
src/{package}/
├── __init__.py # Exports, version
├── {module}.py # Key functions, classes
└── {submodule}/ # Nested modules
Or:
{package}/
├── __init__.py
├── {module}.py
└── ...
Extract:
__init__.py or pyproject.tomlclass definitions)def at module level)__all__, __main__.py)Scan test files for usage patterns:
tests/
├── test_{module}.py
└── ...
Extract:
Read for context:
README.md - Human documentationAGENTS.md / CLAUDE.md - Development instructionsdocs/ - Full documentation (if exists)Extract:
Look for version history:
CHANGELOG.mdHISTORY.mdNEWS.mdCreate the documentation file:
# {Package Name}
> {One-line description from pyproject.toml or README}
## Overview
{Extended description from README}
## Installation
\`\`\`
pip install {package}
\`\`\`
## Quick Start
{Minimal example from tests or README}
## Key Components
{Extracted from source analysis}
### Classes
#### `{ClassName}`
{Purpose inferred from docstring or usage}
\`\`\`python
{Usage example from tests}
\`\`\`
## Common Patterns
{Extracted from tests}
## Dependencies
{From pyproject.toml}
## Version Notes
{Current version from pyproject.toml}
## References
{Links from pyproject.toml project.urls}
If changelog information available:
# {Package} Version History
## {Current Version} ({Date})
### New Features
- {From changelog}
### Breaking Changes
- {From changelog}
---
{Previous versions}
Creates two files:
# Generate for current project
/pkgq:create
# Generate for specific project
/pkgq:create path=~/projects/my-package
# Specify output location
/pkgq:create output=docs/PACKAGE.md
After generation, verify:
The generated PACKAGE.md may need manual refinement:
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Applies a firm's KYC/AML rules grid to parsed onboarding records: assigns risk rating, checks required documents, outputs rule outcomes with citations, and routes for escalation.
Generates daily or weekly digests of activity from connected sources (chat, email, docs, tasks, CRM), highlighting action items, decisions, mentions, and project updates.
npx claudepluginhub christophevg/pkgq