From tiny-brain
Create a new PRD (Product Requirements Document). Use when user wants to plan a new feature, product, or initiative.
npx claudepluginhub magic-ingredients/tiny-brain-releases --plugin tiny-brainThis skill is limited to using the following tools:
Create a PRD when the user describes:
Generates a structured Product Requirements Document (PRD) from feature descriptions. Analyzes codebase (package.json, configs, README), processes references, asks clarifying questions, saves to .plans/. Use for new feature planning.
Creates and manages PRDs in agents/prd.json with user stories, acceptance criteria, priorities, progress tracking, and git branch naming for feature planning across schema, backend, and UI.
Synthesizes conversation context and codebase into a PRD artifact as markdown file or GitHub issue. Use when requesting PRD, requirements doc, feature spec, or crystallizing discussions before planning.
Share bugs, ideas, or general feedback.
Create a PRD when the user describes:
Work iteratively with the user to understand:
Ask clarifying questions. Don't jump straight to creating files.
mkdir -p docs/prd/{prd-id}/features
Use the template at templates/prd-template.md and save to docs/prd/{prd-id}/prd.md.
YAML Frontmatter:
---
id: descriptive-kebab-case-id
title: "Clear, User-Focused Title"
version: 1.0.0
status: not_started
created: YYYY-MM-DD
updated: YYYY-MM-DD
author: Claude Code
---
For each feature identified, create a file at docs/prd/{prd-id}/features/{feature-id}.md.
Use the template at templates/feature-template.md.
Feature Numbering (Critical for Sync):
Each feature MUST have a unique number field in its YAML frontmatter, starting at 1 and incrementing sequentially. This number determines task ID prefixes (task-{number}-{n}) and feature ordering in the dashboard.
---
id: feature-kebab-case-id
prd_id: parent-prd-id
number: 1 # Increment for each feature: 1, 2, 3...
title: Feature Title
status: defined
created: YYYY-MM-DD
updated: YYYY-MM-DD
---
Task Format (Critical for Sync): Tasks MUST use this format for automatic extraction:
## Tasks
### 1. First task title
Description of task...
**Files to modify/create:**
- file1.ts
- file2.ts
### 2. Second task title
Description...
Task Granularity Guidance:
Task: header in the commit message for trackingTask: headers in one commit will all be tracked with the same commit SHAExample multi-task commit:
feat(api): add user endpoints
PRD: user-management
Feature: user-api
Task: Create user service
Task: Add user endpoints
Task: Add validation middleware
Implements user management API...
Progress syncing happens automatically when you:
sync-progress.sh) detects PRD/feature file changes and syncs themWhat auto-sync does:
prd.md and all features/*.md files### N. Task pattern.tiny-brain/progress/{prd-id}.jsonNo manual action required - just write your markdown files and the sync happens automatically.
After creating and syncing, commit the PRD files so they're tracked in git:
git add docs/prd/{prd-id}/ .tiny-brain/progress/{prd-id}.json
git commit -m "chore: add PRD {prd-id}"
Tell the user:
"I've created PRD '{title}' with {N} features at
docs/prd/{prd-id}/"
Offer to add more features using the /feature skill.
Before finalizing:
### N. Task Name formattemplates/prd-template.mdtemplates/feature-template.mdIf you modify markdown files using Claude's Write or Edit tools, progress.json is automatically updated by the sync-progress hook.
For manual re-sync (e.g., after external edits), use the CLI:
npx tiny-brain sync-file docs/prd/your-prd-id/prd.md
This preserves existing commit tracking while updating tasks from markdown.
User: "We need to add code quality analysis to tiny-brain"
Claude:
1. Ask: "What aspects of quality? Linting? Metrics? Reports?"
2. Ask: "Should it integrate with existing workflows?"
3. Once clarified, create:
- docs/prd/code-quality-analysis/prd.md
- docs/prd/code-quality-analysis/features/quality-service.md
- docs/prd/code-quality-analysis/features/quality-cli.md
4. After writing the feature files, progress.json is automatically synced
5. Confirm creation - PRD now visible in dashboard