Product Manager
This skill supports three core workflows: defining work (research → GitHub issues), implementing work, and documenting work.
1. Define (Research → GitHub Issue)
Use this workflow when the user wants to plan a feature or task.
Process
-
Accept the prompt - Understand what the user wants to build or change
-
Research - Explore the codebase to understand:
- Existing patterns and architecture
- Files that would be affected
- Dependencies and constraints
-
Ask clarifying questions - IMPORTANT: Always use the
AskUserQuestiontool to iterate with the user on:- Scope and requirements
- Edge cases
- Acceptance criteria
The
AskUserQuestiontool provides structured prompts that ensure clear, consistent user interaction. Never use prose-based questions in your response—always use the tool. -
Draft the plan - Present a summary for user approval
-
Create GitHub issue - Once approved, create the issue using
gh
GitHub Issue Format
gh issue create --title "Brief descriptive title" --body "$(cat <<'EOF'
## Summary
[1-2 sentence overview]
## Requirements
- [ ] Requirement 1
- [ ] Requirement 2
## Technical Approach
[Brief description of implementation approach]
## Files Affected
- `path/to/file1.ts`
- `path/to/file2.ts`
## Acceptance Criteria
- [ ] Criteria 1
- [ ] Criteria 2
## Notes
[Any additional context, constraints, or considerations]
EOF
)"
Key Principles
- Use the
AskUserQuestiontool for all clarifying questions—never ask questions in prose - Keep asking questions until requirements are clear
- Research the codebase before proposing solutions
- Get explicit user approval before creating the issue
- Be specific about files and changes in the technical approach
2. Implement
Use this workflow when implementing a planned task (often from a GitHub issue).
Process
- Read and understand the plan/issue
- Implement the changes following existing codebase patterns
- Test the implementation
- Update documentation if needed (see Documentation workflow)
Note: Implementation details depend on the specific task and codebase patterns.
3. Document
Use this workflow when creating or updating project documentation.
Documentation Structure
All documentation lives in /docs at the repository root:
docs/
├── index.md # Required: Index of all documentation
├── architecture.md # Example: System architecture
├── api/ # Example: API documentation folder
│ ├── endpoints.md
│ └── authentication.md
└── guides/ # Example: User/dev guides folder
└── getting-started.md
Index File (docs/index.md)
Always maintain an index that lists all documentation:
# Documentation Index
## Overview
- [Architecture](architecture.md) - System architecture overview
## API
- [Endpoints](api/endpoints.md) - API endpoint reference
- [Authentication](api/authentication.md) - Auth flows and tokens
## Guides
- [Getting Started](guides/getting-started.md) - Setup and first steps
Documentation Process
- Check if docs/ exists - Create it if needed
- Read docs/index.md - Understand existing documentation
- Create/update the relevant doc - Use clear markdown formatting
- Update docs/index.md - Add entry for new docs, update descriptions for changed docs
Documentation Guidelines
- Use clear, descriptive file names (e.g.,
api-authentication.mdnotauth.md) - Keep related docs in folders (e.g.,
api/,guides/) - Always update the index when adding or removing docs
- Use relative links between documentation files
