From pm-ai-partner
Audits codebase for product managers: auto-detects structure/framework/architecture, maps capabilities/APIs/data models/gaps, outputs Markdown report with diagrams/tables/implications.
How this command is triggered — by the user, by Claude, or both
Slash command
/pm-ai-partner:audit-codebasepm/This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
Help me understand the codebase for: $ARGUMENTS ## Instructions Conduct a PM-focused codebase exploration. The goal is not to understand every line of code, but to map **what the system can do** and **what that means for the product**. ### Process 1. **Auto-detect structure** — Identify language, framework, repo layout, entry points 2. **Explore architecture** — Map services, components, data flows, and external dependencies 3. **Map capabilities** — What product capabilities does this code enable? 4. **Find the gaps** — What's claimed in docs but missing in code? What exists but isn't ...
Help me understand the codebase for: $ARGUMENTS
Conduct a PM-focused codebase exploration. The goal is not to understand every line of code, but to map what the system can do and what that means for the product.
Start by detecting the repo's characteristics:
## Repo Profile
- **Language(s):** [auto-detect from file extensions and config]
- **Framework:** [detect from package.json, pom.xml, build.gradle, etc.]
- **Architecture:** [monolith / microservice / monorepo / library]
- **Entry points:** [main files, server startup, route definitions]
- **Data stores:** [databases, caches, queues detected from config/code]
- **External deps:** [APIs, services this code calls]
# Codebase Audit: [System/Service Name]
## One-Sentence Summary
What this system does in plain language.
## Repo Profile
| Attribute | Value |
|-----------|-------|
| Language | [detected] |
| Framework | [detected] |
| Architecture | [type] |
| Size | [files/lines estimate] |
## Architecture Overview
[Mermaid diagram showing key components, data flow, and external dependencies]
## Capability Map
| Capability | Status | Evidence | Product Implication |
|------------|--------|----------|---------------------|
| [Feature] | Exists/Partial/Missing | [file/pattern] | [What this means for PM decisions] |
## API Surface
| Endpoint/Interface | Method | Purpose | Notes |
|--------------------|--------|---------|-------|
| [path or function] | [GET/POST/etc] | [what it does] | [rate limits, auth, quirks] |
## Data Model
| Entity | Key Fields | Relationships | PM Relevance |
|--------|-----------|---------------|--------------|
| [model] | [fields] | [links to other models] | [what this means for features] |
## Key Findings
1. **[Finding]** — [Evidence] → [Product implication]
2. **[Finding]** — [Evidence] → [Product implication]
## Gap Inventory
| Expected (from docs) | Reality (from code) | Impact |
|----------------------|---------------------|--------|
## Questions for Engineering
- [Things code can't answer alone]
## Recommendations
1. [Action item with evidence backing]
npx claudepluginhub flight505/skill-forge --plugin pm-ai-partner/audit-codebaseAudits codebase for product managers: auto-detects structure/framework/architecture, maps capabilities/APIs/data models/gaps, outputs Markdown report with diagrams/tables/implications.
/map-codebaseAnalyzes codebase using parallel mapper agents to produce structured .planning/codebase/ documents. Also supports --fast scan and --query intelligence modes.
/hatch3r-codebase-mapReverse-engineers a brownfield codebase into module boundaries, integration-point inventory, tech-debt register, and dependency graph via static analysis. Outputs structured specs and ADRs.
/map-codebasePerforms deep codebase analysis with parallel agents, producing 7 structured documents on tech stack, architecture, structure, conventions, testing, integrations, and concerns.
/scanAnalyzes an existing codebase and maps its structure, architecture, conventions, and concerns.