Initial commit

This commit is contained in:
2025-07-21 14:31:56 +09:00
commit 15b3eaf5cb
89 changed files with 10770 additions and 0 deletions

View File

@ -0,0 +1,227 @@
---
allowed-tools: [Read, Glob, Grep, Write, MultiEdit, LS]
description: Analyzes markdown files in a specified directory, groups related content, and generates a JSON Canvas with nodes and edges.
---
# Create JSON Canvas from Directory
## Context
- Project root: !`pwd`
- User-specified directory: $ARGUMENTS (e.g., path to directory like ".claude/commands/planning")
- Existing canvas example: @.claude/commands/index.canvas
## Goal
Generate a JSON Canvas file that visually represents the structure of markdown files in the given directory, grouping related files into nodes, creating groups for subdirectories or related topics, and connecting them with edges based on logical relationships.
## Process
### 1. Validate Input
- Ensure $ARGUMENTS provides a valid directory path relative to the project root.
- If no directory is provided, ask the user: "Please specify the directory path to analyze (e.g., .claude/commands/planning)."
- Use LS or Glob to verify the directory exists and contains markdown files.
### 2. Analyze Directory Structure
- List all markdown files (*.md) in the directory and subdirectories using Glob or LS.
- For each markdown file, read its content using Read or ReadFile.
- **Think deeply** about the file names, paths, and content to identify relationships:
- Group files by subdirectory (e.g., all files in "1-mrd" under one group).
- Identify thematic relationships (e.g., sequential files like "1-start-session.md" and "2-analyze-research-data.md").
- Use Grep to search for keywords, headers, or references between files to determine edges (e.g., if one file references another).
### 3. Generate Nodes
- Create nodes for each markdown file:
- Type: "file"
- File: the relative path to the markdown file.
- Position (x, y), width, height: Calculate based on structure (e.g., arrange in a grid or hierarchical layout).
- Create group nodes for subdirectories or logical groupings:
- Type: "group"
- Label: the subdirectory name or group theme.
- Position and size to encompass child nodes.
### 4. Generate Edges
- Create edges between related nodes:
- From one file to the next in a sequence (e.g., from "1-start-session.md" to "2-analyze-research-data.md").
- From groups to contained nodes if needed.
- Use sides like "right" to "left" for horizontal connections.
- Add labels if relationships are specific (e.g., "next step").
- Ensure edges follow the JSON Canvas spec (fromNode, toNode, fromSide, toSide, etc.).
### 5. Assemble JSON Canvas
- Compile nodes and edges into a JSON object following the JSON Canvas Spec.
- Nodes in z-index order (background groups first).
- **CRITICAL:** Validate the JSON structure against the spec (e.g., required fields like id, type, x, y, width, height).
### 6. Output the Canvas
- Write the JSON to a new .canvas file in the specified directory or a default location (e.g., "<directory>/index.canvas").
- If the file exists, use MultiEdit to update it carefully.
## Templates & Structures
The output JSON should strictly follow this structure:
```json
{
"nodes": [
// Group node example
{
"type": "group",
"id": "group1",
"x": 0,
"y": 0,
"width": 500,
"height": 300,
"label": "Group Label"
},
// File node example
{
"type": "file",
"id": "file1",
"x": 100,
"y": 100,
"width": 200,
"height": 100,
"file": "path/to/file.md"
}
],
"edges": [
{
"id": "edge1",
"fromNode": "file1",
"fromSide": "right",
"toNode": "file2",
"toSide": "left",
"toEnd": "arrow",
"label": "Connection"
}
]
}
```
## Best Practices / DO & DON'T
### ✅ DO: Maintain Hierarchical Structure
- Reflect directory hierarchy in group nodes.
- **Why:** Preserves the original organization for intuitive visualization.
### ✅ DO: Use Meaningful Layout
- Position nodes logically (e.g., left-to-right for sequences).
- **Why:** Improves readability and understanding of relationships.
### ❌ DON'T: Overlap Nodes
- Ensure calculated positions prevent overlaps.
- **Why:** Avoids visual clutter in the canvas.
### ❌ DON'T: Ignore Spec Requirements
- Always include required fields like id, type, x, y, width, height.
- **Why:** Ensures compatibility with JSON Canvas viewers.
## Output
- **Format:** JSON file conforming to JSON Canvas Spec.
- **Location:** In the analyzed directory (e.g., "<input_dir>/index.canvas") or user-specified.
- **Filename:** "index.canvas" by default, or based on directory name.
## Example Usage
/claude:canvas:create_from_dir .claude/commands/planning
## JSON Canvas Spec
<small>Version 1.0 — 2024-03-11</small>
### Top level
The top level of JSON Canvas contains two arrays:
- `nodes` (optional, array of nodes)
- `edges` (optional, array of edges)
### Nodes
Nodes are objects within the canvas. Nodes may be text, files, links, or groups.
Nodes are placed in the array in ascending order by z-index. The first node in the array should be displayed below all other nodes, and the last node in the array should be displayed on top of all other nodes.
#### Generic node
All nodes include the following attributes:
- `id` (required, string) is a unique ID for the node.
- `type` (required, string) is the node type.
- `text`
- `file`
- `link`
- `group`
- `x` (required, integer) is the `x` position of the node in pixels.
- `y` (required, integer) is the `y` position of the node in pixels.
- `width` (required, integer) is the width of the node in pixels.
- `height` (required, integer) is the height of the node in pixels.
- `color` (optional, `canvasColor`) is the color of the node, see the Color section.
#### Text type nodes
Text type nodes store text. Along with generic node attributes, text nodes include the following attribute:
- `text` (required, string) in plain text with Markdown syntax.
#### File type nodes
File type nodes reference other files or attachments, such as images, videos, etc. Along with generic node attributes, file nodes include the following attributes:
- `file` (required, string) is the path to the file within the system.
- `subpath` (optional, string) is a subpath that may link to a heading or a block. Always starts with a `#`.
#### Link type nodes
Link type nodes reference a URL. Along with generic node attributes, link nodes include the following attribute:
- `url` (required, string)
#### Group type nodes
Group type nodes are used as a visual container for nodes within it. Along with generic node attributes, group nodes include the following attributes:
- `label` (optional, string) is a text label for the group.
- `background` (optional, string) is the path to the background image.
- `backgroundStyle` (optional, string) is the rendering style of the background image. Valid values:
- `cover` fills the entire width and height of the node.
- `ratio` maintains the aspect ratio of the background image.
- `repeat` repeats the image as a pattern in both x/y directions.
### Edges
Edges are lines that connect one node to another.
- `id` (required, string) is a unique ID for the edge.
- `fromNode` (required, string) is the node `id` where the connection starts.
- `fromSide` (optional, string) is the side where this edge starts. Valid values:
- `top`
- `right`
- `bottom`
- `left`
- `fromEnd` (optional, string) is the shape of the endpoint at the edge start. Defaults to `none` if not specified. Valid values:
- `none`
- `arrow`
- `toNode` (required, string) is the node `id` where the connection ends.
- `toSide` (optional, string) is the side where this edge ends. Valid values:
- `top`
- `right`
- `bottom`
- `left`
- `toEnd` (optional, string) is the shape of the endpoint at the edge end. Defaults to `arrow` if not specified. Valid values:
- `none`
- `arrow`
- `color` (optional, `canvasColor`) is the color of the line, see the Color section.
- `label` (optional, string) is a text label for the edge.
### Color
The `canvasColor` type is used to encode color data for nodes and edges. Colors attributes expect a string. Colors can be specified in hex format e.g. `"#FF0000"`, or using one of the preset colors, e.g. `"1"` for red. Six preset colors exist, mapped to the following numbers:
- `"1"` red
- `"2"` orange
- `"3"` yellow
- `"4"` green
- `"5"` cyan
- `"6"` purple
Specific values for the preset colors are intentionally not defined so that applications can tailor the presets to their specific brand colors or color scheme.

View File

@ -0,0 +1,8 @@
1. Reflect on 5-7 different possible sources of the problem
2. Distill those down to 1-2 most likely sources
3. Add additional logs to validate your assumptions and track the transformation of data structures throughout the application control flow before we move onto implementing the actual code fix
4. Use the "getConsoleLogs", "getConsoleErrors", "getNetworkLogs" & "getNetworkErrors" tools to obtain any newly added web browser logs
5. Obtain the server logs as well if accessible - otherwise, ask me to copy/paste them into the chat
6. Deeply reflect on what could be wrong + produce a comprehensive analysis of the issue
7. Suggest additional logs if the issue persists or if the source is not yet clear
8. Once a fix is implemented, ask for approval to remove the previously added logs

View File

@ -0,0 +1,100 @@
---
allowed-tools: [Bash, Read, Write, Glob]
description: Starts a new or updated MRD (Market Requirements Document) research session.
---
# Start MRD Research Session
## Context
- **User Request:** $ARGUMENTS
- **MRD Directory:** `.taskmaster/docs/mrd/`
- **Existing Sessions:** !`ls -ld .taskmaster/docs/mrd/*/ 2>/dev/null || echo "No existing sessions found"`
## Goal
To initialize a new or updated Market Requirements Document (MRD) research session, set up the dedicated workspace, and present the first research task to the user.
## Process
1. **Determine Session Index:**
- Scan the `.taskmaster/docs/mrd/` directory to find the highest existing session index.
- Assign the next sequential number for the new session.
2. **Create Session Directory:**
- Create a new directory named `[index]-[session_name]` inside `.taskmaster/docs/mrd/`.
- Example: `.taskmaster/docs/mrd/001-mvp-launch/`
3. **Handle Update Session (if `--from` is provided):**
- Copy all `0*_*.md` user research files from the base session directory to the new session directory.
- Generate a `_00_update_kickoff_report.md` file. This report will compare the goals of the base session and the new session, highlighting key assumptions that need to be re-validated.
4. **Initialize Session State:**
- Create a `_session-state.json` file in the new session directory.
- Initialize it with session details (index, name, status: 'initialized', etc.).
5. **Interactive Hypothesis Definition:**
- This step is a structured conversation to build the foundational `01_initial_hypothesis.md`.
- **For a new session:**
- The AI will ask a series of clarifying questions to build the hypothesis, such as:
1. "What is the core problem you are trying to solve?"
2. "Who is the primary target audience for this product?"
3. "At a high level, what is your proposed solution?"
4. "What is the unique value proposition? Why will users choose it over alternatives?"
- After gathering the user's answers, the AI will synthesize them into a coherent initial hypothesis.
- The AI saves this synthesized content into the `01_initial_hypothesis.md` file.
- **For an update session (`--from` is used):**
- The AI first presents the key findings from the generated `_00_update_kickoff_report.md`.
- It then asks for the user's input on the re-validation points. For example: "The report suggests we need to re-validate our target audience. Has your understanding of the target customer changed? If so, how?"
- The user's feedback is incorporated to refine the session's starting assumptions, which can be noted in the kickoff report or a new hypothesis file.
6. **Assign First Task and Generate Research Prompt:**
- Based on the session's goal and initial hypothesis, the AI selects the most logical first research task from the examples below.
- It clearly presents this task to the user, specifying the filename for the output.
- **Crucially**, it must also generate a detailed, self-contained research prompt that can be used by any external agent or tool. This prompt should be presented to the user in a structured format.
**Research Prompt Generation Template:**
The AI will use the newly created `01_initial_hypothesis.md` to construct a prompt like this:
```
### Research Prompt: [Objective of the Task]
**1. Project Context:**
- **Product/Idea:** [Synthesized from 01_initial_hypothesis.md - e.g., "A platform connecting eco-friendly suppliers with small businesses."]
- **Core Problem:** [From hypothesis - e.g., "Small businesses struggle to find and verify sustainable suppliers."]
- **Target Audience:** [From hypothesis - e.g., "Owners of small to medium-sized retail businesses."]
- **Proposed Solution:** [From hypothesis - e.g., "A curated, searchable marketplace with a built-in verification system."]
**2. Research Objective:**
- [A clear goal for this specific research task, e.g., "To deeply understand the competitive landscape for our proposed solution."]
**3. Key Research Questions:**
- [A list of 3-5 specific questions. For competitor analysis, it could be:]
- Who are the top 3 direct and indirect competitors?
- What are their pricing models and key features?
- What are their primary strengths and weaknesses (SWOT)?
- What market segment do they primarily target?
**4. Expected Deliverables:**
- A summary of findings.
- Detailed answers to each key research question.
- A concluding analysis of opportunities and threats for our product.
```
**First Research Task Examples:**
- **Task:** "Define the target market size, segments, and create detailed user personas."
- **Filename:** `02_market_and_persona.md`
- **Task:** "Validate the core problem this product aims to solve and outline the proposed solution's unique value proposition."
- **Filename:** `02_problem_and_solution.md`
- **Task:** "Identify the top 3-5 direct and indirect competitors and analyze their strengths, weaknesses, and market positioning."
- **Filename:** `02_competitive_landscape.md`
- **Task:** "Brainstorm a list of potential core features that address the initial hypothesis and align with the target user's needs."
- **Filename:** `02_initial_feature_ideas.md`
- **Task:** "Define the key success metrics and Key Performance Indicators (KPIs) that will be used to measure the product's success."
- **Filename:** `02_success_metrics.md`
- After presenting the task and the detailed prompt, the AI will conclude with: "Once you have completed your research and saved it to the specified file, please run the `/planning/mrd/2-analyze-research-data` command to proceed."
## Example Usage
- **Start a new session:**
`/planning/mrd/1-start-session --name="mvp-launch"`
- **Start a session based on a previous one:**
`/planning/mrd/1-start-session --name="enterprise-expansion" --from="mvp-launch"`

View File

@ -0,0 +1,91 @@
---
allowed-tools: [Read, Write, Glob]
description: Analyzes user-submitted research data, provides insights, and suggests the next research step.
---
# Analyze Research Data
## Context
- **User Request:** $ARGUMENTS
- **Session Name/Index:** Passed via `--name` argument.
- **Session State File:** `_session-state.json` within the specified session directory.
## Goal
To analyze the latest research file(s) submitted by the user within a specific MRD session, generate a summary of insights, and propose the next logical research task to continue the workflow.
## Process
1. **Identify Target Session:**
- Use the `--name` argument to locate the correct session directory (e.g., `.taskmaster/docs/mrd/001-mvp-launch/`).
2. **Read Session State:**
- Read the `_session-state.json` file to understand the current context.
- Identify the `lastAnalyzedFile` to determine which new files need to be processed.
3. **Find and Analyze New Research:**
- Scan the session directory for any `0*_*.md` files created or modified after `lastAnalyzedFile`.
- Read the content of the new research file(s).
4. **Generate AI Summary:**
- Analyze the research content to extract key findings, patterns, opportunities, and threats.
- Create or update a corresponding summary file named `_summary_[topic].md` (e.g., `_summary_market_and_persona.md`). This provides a digestible, AI-driven analysis for the user.
5. **Update Session State with Intelligent Next Action:**
- Update the `_session-state.json` file:
- Set `status` to `analysis_in_progress`.
- Update `lastAnalyzedFile` to the name of the file just analyzed.
- **Formulate the `nextAction`:**
- The AI must first review all existing `0*_*` research files in the session directory to understand which topics from the "Standard Research Topics" list below have already been covered.
- Based on the analysis of the current file and the list of completed topics, the AI will determine the next logical, uncovered research area.
- It will then formulate a clear, actionable `nextAction` string.
**Standard Research Topics (in logical order):**
1. **Initial Hypothesis (`01_initial_hypothesis.md`)**: Core problem, target audience, proposed solution.
2. **Market & Persona Analysis (`02_market_and_persona.md`)**: Market size, segments, user demographics, needs, and pain points.
3. **Competitive Landscape (`03_competitor_analysis.md`)**: Direct/indirect competitors, SWOT analysis, market positioning.
4. **Value Proposition & Solution (`04_value_proposition.md`)**: Detailed breakdown of the solution, unique selling points, feature ideas.
5. **Pricing & Business Model (`05_pricing_analysis.md`)**: Revenue streams, pricing strategies, cost analysis.
6. **Go-to-Market Strategy (`06_go_to_market.md`)**: Marketing channels, sales process, initial customer acquisition plan.
7. **Success Metrics & KPIs (`07_success_metrics.md`)**: How to measure product success.
6. **Report to User with Context and Next Research Prompt:**
- Present a concise summary of the analysis from the current research file.
- Clearly state the next logical research task and the filename for the output.
- **Crucially**, generate a new, updated, self-contained research prompt for this next task. This prompt must synthesize all relevant context from the *entire session* so far (i.e., from `01_...` up to the latest `_summary_...` file).
**Updated Research Prompt Generation Template:**
The AI will use all existing session files (`0*_*` and `_summary_*`) to construct a prompt like this:
```
### Research Prompt: [Objective of the NEXT Task]
**1. Project Context (Updated):**
- **Product/Idea:** [e.g., "A platform connecting eco-friendly suppliers with small businesses."]
- **Key Findings So Far:**
- [Insight from summary_market_and_persona.md: e.g., "Identified a key persona 'Eco-conscious Cafe Owner' who values supply chain transparency."]
- [Insight from summary_competitor_analysis.md: e.g., "Major competitors focus on large enterprises, leaving a gap in the SMB market."]
- [Latest insight...]
**2. Research Objective:**
- [A clear goal for the NEXT research task, e.g., "To define a compelling value proposition and initial feature set based on our market and competitor analysis."]
**3. Key Research Questions:**
- [A list of 3-5 specific questions for the next task. For value proposition, it could be:]
- Based on the key findings, what is our unique value proposition?
- What core features must we build to deliver this value to our target persona?
- How can we differentiate ourselves from the identified competitors?
**4. Expected Deliverables:**
- A clear statement of the value proposition.
- A prioritized list of core features.
- An explanation of the differentiation strategy.
```
- **Conclude with a clear call to action:**
- Instruct the user to run the same `/planning/mrd/2-analyze-research-data` command after creating the next research file.
- **Crucially**, emphasize that they must use the **current session name or index** for the `--name` parameter, as the command always analyzes the latest progress within the *current session*.
- **Example Conclusion:** "Once you have completed this research and saved it to `04_value_proposition.md`, please run `/planning/mrd/2-analyze-research-data --name"` again to analyze the new data."
## Example Usage
- **Analyze the latest research in a session:**
`/planning/mrd/2-analyze-research-data --name="mvp-launch"`
- **Analyze by index:**
`/planning/mrd/2-analyze-research-data --name="1"`

View File

@ -0,0 +1,45 @@
---
allowed-tools: [Read, Write, Glob]
description: Generates the final MRD document by consolidating all research and analysis from a session.
---
# Generate MRD Document
## Context
- **User Request:** $ARGUMENTS
- **Session Name/Index:** Passed via `--name` argument.
- **All Session Files:** All `0*_*.md` (user research) and `_summary_*.md` (AI analysis) files within the target session directory.
## Goal
To synthesize all research findings and AI-generated analyses from a completed MRD session into a single, coherent, and well-structured Market Requirements Document (MRD).
## Process
1. **Identify Target Session:**
- Use the `--name` argument to locate the correct session directory.
2. **Aggregate All Session Data:**
- Read the content of all user research files (`0*_*.md`) within the directory.
- Read the content of all AI-generated summary files (`_summary_*.md`).
3. **Synthesize and Structure Content:**
- Comprehensively analyze the aggregated information.
- Logically map the findings to the standard sections of an MRD template (e.g., Market Problem, Target Audience, Competitive Landscape, Requirements).
- Rewrite and rephrase the content to ensure a consistent tone and narrative flow throughout the document.
4. **Generate Final MRD File:**
- Create the final document named `mrd_[session_name].md`.
- Populate it with the structured, synthesized content.
5. **Finalize Session State:**
- Update the `_session-state.json` file by setting the `status` to `finalized`. This marks the session as complete.
6. **Notify User and Suggest Next Step:**
- Inform the user that the MRD document has been successfully generated and provide the file path.
- Proactively suggest the next logical step in the SDLC, which is to define a product roadmap.
- Example: "Your MRD is complete. Would you like to proceed with defining the product roadmap using `/planning/roadmap/1-define-roadmap`?"
## Example Usage
- **Generate MRD for a session:**
`/planning/mrd/3-generate-mrd-document --name="mvp-launch"`
- **Generate by index:**
`/planning/mrd/3-generate-mrd-document --name="1"`

View File

@ -0,0 +1,46 @@
---
allowed-tools: [Read, Write, Glob]
description: Compares two different MRD versions (sessions) and generates a strategic change report.
---
# Compare MRD Versions
## Context
- **User Request:** $ARGUMENTS
- **Base Session:** Identified by the `--base` argument (name or index).
- **Compare Session:** Identified by the `--compare` argument (name or index).
- **Final MRD Documents:** The `market-requirements-document_*.md` file from each of the two specified session directories.
## Goal
To provide a clear, actionable comparison report that highlights the strategic evolution between two different MRD versions. This helps stakeholders quickly understand changes in market perception, target audience, competitive landscape, and overall strategy over time.
## Process
1. **Identify Target Sessions:**
- Locate the directories for the base and compare sessions using the provided arguments.
2. **Read Final MRD Documents:**
- From each session directory, read the final `market-requirements-document_*.md` file.
3. **Perform Comparative Analysis:**
- Systematically compare the two documents, section by section.
- Identify and extract key differences, such as:
- Changes in target market or user personas.
- Shifts in the competitive landscape.
- Updates to key performance indicators (KPIs) or success metrics.
- Evolution of core product requirements.
- Modifications in pricing or business model assumptions.
4. **Generate Comparison Report:**
- Create a new Markdown file named `mrd_comparison_report_[base]_vs_[compare].md`.
- Structure the report to clearly present the side-by-side comparison and a summary of the most significant strategic changes.
5. **Notify User with Key Insights:**
- Inform the user that the comparison report has been generated and provide the file path.
- Present a high-level summary of the most critical findings.
- Example: "The comparison is complete. The most significant change is the shift in target market from SMBs to Enterprise customers. You can find the detailed report at..."
## Example Usage
- **Compare two sessions by name:**
`/planning/mrd/4-compare-mrd-versions --base="mvp-launch" --compare="enterprise-expansion"`
- **Compare by index:**
`/planning/mrd/4-compare-mrd-versions --base="1" --compare="2"`

View File

@ -0,0 +1,215 @@
---
allowed-tools: [Read, Write, Glob, TodoWrite]
description: Starts a new brainstorming session for creative idea generation and systematic organization.
---
# Start Brainstorming Session
## Context
- **User Request:** $ARGUMENTS
- **Brainstorm Directory:** `.taskmaster/docs/brainstorm/`
- **Existing Sessions:** !`ls -ld .taskmaster/docs/brainstorm/*/ 2>/dev/null || echo "No existing brainstorm sessions found"`
## Goal
To initialize a new brainstorming session, set up the dedicated workspace, and guide the user through a structured creative ideation process that transforms abstract concepts into organized, actionable ideas.
## Process
1. **Determine Session Index:**
- Scan the `.taskmaster/docs/brainstorm/` directory to find the highest existing session index.
- Assign the next sequential number for the new session.
2. **Create Session Directory:**
- Create a new directory named `[index]-[session_name]` inside `.taskmaster/docs/brainstorm/`.
- Example: `.taskmaster/docs/brainstorm/001-product-features/`
3. **Initialize Session State:**
- Create a `_session-state.json` file in the new session directory.
- Initialize it with session details:
```json
{
"index": 1,
"name": "session-name",
"type": "brainstorm",
"status": "initialized",
"created": "2025-01-16T00:00:00Z",
"lastUpdated": "2025-01-16T00:00:00Z",
"currentStep": "ideation_setup",
"completedSteps": [],
"nextAction": "Begin interactive ideation setup",
"brainstormType": "creative|problem-solving|feature-expansion",
"targetDomain": "user-defined",
"ideationResults": {}
}
```
4. **Interactive Brainstorming Setup:**
- Engage the user in a structured conversation to define the brainstorming scope and approach.
- **Ask clarifying questions to build the foundational framework:**
1. **"What type of brainstorming session do you want to conduct?"**
- a) **Creative Ideation** - Generate innovative product concepts, features, or solutions
- b) **Problem-Solving** - Address specific challenges or obstacles
- c) **Feature Expansion** - Explore variations and improvements of existing ideas
- d) **Market Opportunities** - Identify new business or market possibilities
2. **"What is the central topic or challenge you want to explore?"**
- Prompt for a clear, concise problem statement or topic focus
3. **"Who is your target audience or user group?"**
- Define the primary beneficiaries of the ideas being generated
4. **"What constraints or parameters should guide the brainstorming?"**
- Budget limitations, technical constraints, timeline, regulatory requirements, etc.
5. **"What success criteria will you use to evaluate ideas?"**
- Feasibility, impact, innovation level, resource requirements, market potential
6. **"How many ideas are you aiming to generate?"**
- Set a target number to guide the brainstorming intensity (e.g., 20-50 ideas)
5. **Generate Initial Framework Document:**
- Create `01_brainstorm_framework.md` file with the synthesized setup information.
- Include:
- Session objectives and scope
- Target audience and constraints
- Success criteria and evaluation framework
- Ideation methodology to be used
6. **Assign First Ideation Task:**
- Based on the brainstorming type and framework, present the first ideation task.
- Provide structured guidance and creative prompts.
- **Generate a detailed, self-contained ideation prompt:**
**Ideation Prompt Generation Template:**
```
### Ideation Prompt: [Brainstorming Session Name]
**1. Session Context:**
- **Topic/Challenge:** [From framework - e.g., "Improving user onboarding experience"]
- **Target Audience:** [From framework - e.g., "First-time SaaS users aged 25-45"]
- **Brainstorm Type:** [From framework - e.g., "Creative Ideation"]
- **Constraints:** [From framework - e.g., "Mobile-first design, 3-step maximum process"]
**2. Ideation Objective:**
- [Clear goal for this ideation session, e.g., "Generate 30+ innovative ideas for streamlining user onboarding"]
**3. Creative Prompts:**
- [3-5 specific creative triggers, e.g.:]
- "How might we make onboarding feel like a game?"
- "What if users could onboard through storytelling?"
- "How can we reduce cognitive load in the first 60 seconds?"
**4. Ideation Techniques:**
- **Technique 1:** [e.g., "Rapid Fire - Generate 1 idea per minute for 20 minutes"]
- **Technique 2:** [e.g., "SCAMPER Method - Substitute, Combine, Adapt, Modify, Put to other use, Eliminate, Reverse"]
- **Technique 3:** [e.g., "What If Scenarios - Explore extreme possibilities"]
**5. Documentation Format:**
- Record each idea with: Title, Description (2-3 sentences), Potential Impact (1-10), Implementation Difficulty (1-10)
- Group similar ideas into themes as you go
- Note any breakthrough moments or unexpected connections
**6. Success Metrics:**
- [Target number of ideas and quality indicators from framework]
```
7. **Conclude with Clear Next Steps:**
- Instruct the user to document their ideas in `02_idea_generation.md`
- Provide the complete ideation prompt for reference
- **Example conclusion:** "Once you have completed your ideation session and documented your ideas in `02_idea_generation.md`, please run `/planning/brainstorm/2-analyze-ideas --name=[session_name]` to analyze and organize your ideas."
## Templates & Structures
### Brainstorm Framework Template
```markdown
# Brainstorm Framework: [Session Name]
## Session Overview
- **Type:** [Creative Ideation/Problem-Solving/Feature Expansion/Market Opportunities]
- **Central Topic:** [Core challenge or focus area]
- **Target Audience:** [Primary beneficiaries]
- **Session Date:** [Date]
## Constraints & Parameters
- [List of limitations, requirements, or boundaries]
## Success Criteria
- [Evaluation framework for generated ideas]
## Ideation Methodology
- [Specific techniques and approaches to be used]
## Expected Outcomes
- [Target number of ideas and desired quality level]
```
### Session State Structure
```json
{
"index": 1,
"name": "session-name",
"type": "brainstorm",
"status": "initialized|in_progress|completed",
"created": "ISO datetime",
"lastUpdated": "ISO datetime",
"currentStep": "current_step_name",
"completedSteps": ["step1", "step2"],
"nextAction": "specific next action description",
"brainstormType": "creative|problem-solving|feature-expansion|market-opportunities",
"targetDomain": "user-defined domain",
"ideationResults": {
"totalIdeas": 0,
"categorizedIdeas": {},
"topConcepts": []
}
}
```
## Best Practices
### ✅ DO: Encourage Divergent Thinking
- **Create a judgment-free environment** where all ideas are welcomed
- **Use time-boxed sessions** to maintain energy and focus
- **Prompt for quantity over quality** initially - refinement comes later
- **Encourage wild ideas** - they often lead to breakthrough innovations
- **Build on others' ideas** - use "Yes, and..." approach
**Why:** Divergent thinking generates the raw material for innovation. Premature evaluation kills creativity.
### ✅ DO: Provide Structure Within Creativity
- **Use proven ideation techniques** (SCAMPER, Mind Mapping, Six Thinking Hats)
- **Set clear time boundaries** for each ideation round
- **Rotate between different creative approaches** to stimulate varied thinking
- **Document everything** - even "bad" ideas can spark good ones
**Why:** Structure provides a framework that actually enhances creativity rather than constraining it.
### ❌ DON'T: Judge Ideas During Generation
- **No criticism or evaluation** during the ideation phase
- **Don't overthink feasibility** - focus on possibilities
- **Avoid perfectionism** - capture ideas quickly and move on
- **Don't let one person dominate** - ensure equal participation
**Why:** Evaluation and criticism shut down the creative process. Separation of divergent and convergent thinking is crucial.
### ❌ DON'T: Skip the Framework Phase
- **Don't start ideating without clear objectives**
- **Don't ignore constraints** - they actually help focus creativity
- **Don't proceed without success criteria** - how will you know when you're done?
**Why:** A clear framework ensures the brainstorming session produces actionable results rather than random ideas.
## Output
- **Format:** Multiple Markdown files within session directory
- **Location:** `.taskmaster/docs/brainstorm/[index]-[session_name]/`
- **Primary Files:**
- `_session-state.json` - Session tracking and metadata
- `01_brainstorm_framework.md` - Session setup and parameters
- `02_idea_generation.md` - Raw ideation output (user-created)
## Example Usage
- **Start a new creative session:**
`/planning/brainstorm/1-start-brainstorm --name="product-features"`
- **Start a problem-solving session:**
`/planning/brainstorm/1-start-brainstorm --name="user-retention-challenges"`
- **Start a feature expansion session:**
`/planning/brainstorm/1-start-brainstorm --name="dashboard-improvements"`

View File

@ -0,0 +1,260 @@
---
allowed-tools: [Read, Write, Glob]
description: Analyzes generated ideas from brainstorming session, categorizes them, and suggests next steps for refinement.
---
# Analyze Brainstorming Ideas
## Context
- **User Request:** $ARGUMENTS
- **Session Name/Index:** Passed via `--name` argument.
- **Session State File:** `_session-state.json` within the specified brainstorm session directory.
## Goal
To analyze the raw ideas generated during the brainstorming session, organize them systematically, identify patterns and themes, evaluate their potential, and provide actionable recommendations for the next phase of development.
## Process
1. **Identify Target Session:**
- Use the `--name` argument to locate the correct brainstorm session directory (e.g., `.taskmaster/docs/brainstorm/001-product-features/`).
2. **Read Session State and Context:**
- Read the `_session-state.json` file to understand the session context.
- Review the `01_brainstorm_framework.md` file to understand the original objectives and constraints.
- Identify the `lastAnalyzedFile` to determine which new files need to be processed.
3. **Find and Analyze New Ideas:**
- Scan the session directory for any `0*_*.md` files created or modified after `lastAnalyzedFile`.
- Read the content of the new idea files (typically `02_idea_generation.md`).
- Parse and extract individual ideas from the documentation.
4. **Systematic Idea Analysis:**
- **Categorize Ideas:** Group similar ideas into logical themes or categories.
- **Evaluate Feasibility:** Assess implementation difficulty and resource requirements.
- **Assess Impact Potential:** Evaluate the potential value and significance of each idea.
- **Identify Patterns:** Look for recurring themes, innovative approaches, or breakthrough concepts.
- **Spot Combinations:** Identify ideas that could be merged or built upon each other.
5. **Generate Analysis Summary:**
- Create a comprehensive analysis file named `_analysis_[topic].md` (e.g., `_analysis_product_features.md`).
- Include:
- **Executive Summary:** High-level overview of the ideation results
- **Idea Categorization:** Organized themes with grouped ideas
- **Top Concepts:** Highest-potential ideas based on evaluation criteria
- **Feasibility Matrix:** Ideas plotted against impact vs. difficulty
- **Pattern Analysis:** Recurring themes and innovative approaches
- **Combination Opportunities:** Ideas that could be merged or enhanced
- **Quick Wins:** Low-effort, high-impact ideas for immediate implementation
- **Moonshot Ideas:** High-risk, high-reward concepts for future consideration
6. **Update Session State with Intelligent Next Action:**
- Update the `_session-state.json` file:
- Set `status` to `analysis_complete`.
- Update `lastAnalyzedFile` to the name of the file just analyzed.
- Update `ideationResults` with quantitative summary.
- Formulate the `nextAction` based on the analysis results.
**Standard Next Actions (contextual selection):**
- **If many high-quality ideas generated:** "Create refined concept selection with priority ranking"
- **If ideas need validation:** "Conduct concept validation with target users"
- **If ideas are too broad:** "Focus and refine top 3-5 concepts"
- **If ready for development:** "Generate final brainstorm summary and transition to PRD"
7. **Report Analysis Results with Actionable Recommendations:**
- Present a concise summary of the analysis findings.
- Highlight the most promising ideas and their potential impact.
- Provide specific recommendations for next steps.
- **Generate a refined ideation prompt if additional brainstorming is needed:**
**Refined Ideation Prompt Template:**
```
### Refined Ideation Prompt: [Focus Area from Analysis]
**1. Analysis Context:**
- **Total Ideas Generated:** [Number]
- **Key Themes Identified:** [List of main categories]
- **Top Concepts:** [2-3 highest-potential ideas]
- **Gaps Identified:** [Areas needing more exploration]
**2. Refinement Objective:**
- [Specific goal for additional ideation, e.g., "Deepen the top 3 concepts with detailed implementation approaches"]
**3. Focused Prompts:**
- [3-5 specific questions to guide refinement]
- [Based on gaps or promising areas from analysis]
**4. Success Criteria:**
- [Updated criteria based on analysis results]
```
8. **Conclude with Clear Next Steps:**
- Instruct the user on the recommended next action.
- Provide the filename for any additional work needed.
- **Example conclusion:** "Based on the analysis, I recommend focusing on the top 5 concepts. Please create `03_concept_refinement.md` with detailed development of these ideas, then run `/planning/brainstorm/2-analyze-ideas --name=[session_name]` again to analyze the refined concepts."
## Templates & Structures
### Analysis Summary Template
```markdown
# Brainstorm Analysis: [Session Name]
## Executive Summary
- **Total Ideas Generated:** [Number]
- **Analysis Date:** [Date]
- **Key Insight:** [One-sentence summary of main finding]
## Idea Categorization
### Category 1: [Theme Name]
- **Description:** [What this category represents]
- **Ideas:** [List of related ideas]
- **Potential Impact:** [Assessment]
### Category 2: [Theme Name]
- **Description:** [What this category represents]
- **Ideas:** [List of related ideas]
- **Potential Impact:** [Assessment]
## Top Concepts (Prioritized)
### 1. [Concept Name]
- **Description:** [Detailed explanation]
- **Impact Score:** [1-10]
- **Feasibility Score:** [1-10]
- **Why it's promising:** [Reasoning]
### 2. [Concept Name]
- **Description:** [Detailed explanation]
- **Impact Score:** [1-10]
- **Feasibility Score:** [1-10]
- **Why it's promising:** [Reasoning]
## Feasibility Matrix
### Quick Wins (High Impact, Low Effort)
- [List of ideas]
### Major Projects (High Impact, High Effort)
- [List of ideas]
### Fill-ins (Low Impact, Low Effort)
- [List of ideas]
### Questionable (Low Impact, High Effort)
- [List of ideas]
## Pattern Analysis
- **Recurring Themes:** [Common patterns across ideas]
- **Innovative Approaches:** [Unique or breakthrough concepts]
- **User-Centric Focus:** [Ideas that strongly address user needs]
## Combination Opportunities
- **Idea A + Idea B:** [Potential synergies]
- **Theme-based Combinations:** [Ways to merge related concepts]
## Recommendations
### Immediate Next Steps
1. [Specific action recommendation]
2. [Specific action recommendation]
3. [Specific action recommendation]
### Future Considerations
- [Longer-term opportunities]
- [Areas for additional brainstorming]
## Gaps and Missing Elements
- [Areas that need more exploration]
- [Stakeholder perspectives not yet considered]
```
### Updated Session State Structure
```json
{
"index": 1,
"name": "session-name",
"type": "brainstorm",
"status": "analysis_complete",
"created": "ISO datetime",
"lastUpdated": "ISO datetime",
"currentStep": "idea_analysis",
"completedSteps": ["ideation_setup", "idea_generation"],
"nextAction": "specific recommendation based on analysis",
"brainstormType": "creative|problem-solving|feature-expansion|market-opportunities",
"targetDomain": "user-defined domain",
"ideationResults": {
"totalIdeas": 42,
"categorizedIdeas": {
"user-experience": 12,
"technical-innovation": 8,
"business-model": 6
},
"topConcepts": [
{
"name": "concept-name",
"impactScore": 9,
"feasibilityScore": 7,
"category": "user-experience"
}
],
"analysisDate": "ISO datetime"
}
}
```
## Best Practices
### ✅ DO: Systematic Categorization
- **Use consistent criteria** for grouping ideas into themes
- **Look for natural clusters** rather than forcing artificial categories
- **Consider multiple perspectives** (user, business, technical) when categorizing
- **Document rationale** for categorization decisions
**Why:** Systematic organization makes patterns visible and helps identify the most promising areas for development.
### ✅ DO: Balanced Evaluation
- **Assess both impact and feasibility** for each idea
- **Consider short-term and long-term potential** separately
- **Factor in resource constraints** from the original framework
- **Use consistent scoring criteria** across all ideas
**Why:** Balanced evaluation ensures that both ambitious and practical ideas receive appropriate consideration.
### ✅ DO: Identify Synergies
- **Look for complementary ideas** that could be combined
- **Consider sequential implementation** where one idea enables another
- **Explore theme-based combinations** that address multiple user needs
- **Document potential integration points** between related concepts
**Why:** Combinations often produce more powerful solutions than individual ideas in isolation.
### ❌ DON'T: Dismiss Ideas Too Quickly
- **Don't eliminate ideas based on initial impressions** - analyze them systematically
- **Don't ignore "wild" ideas** - they often contain valuable insights
- **Don't let feasibility bias** overshadow potentially transformative concepts
- **Don't assume resource constraints** are permanent - they may change
**Why:** Premature dismissal can eliminate breakthrough opportunities that might be valuable with different approaches or timing.
### ❌ DON'T: Over-Analyze
- **Don't spend excessive time** on obviously weak ideas
- **Don't get stuck in analysis paralysis** - aim for actionable insights
- **Don't perfect the analysis** - focus on identifying clear next steps
- **Don't analyze in isolation** - consider the original framework and constraints
**Why:** Over-analysis can delay progress and obscure the most important insights needed for decision-making.
## Output
- **Format:** Markdown analysis file
- **Location:** `.taskmaster/docs/brainstorm/[index]-[session_name]/`
- **Primary Files:**
- `_analysis_[topic].md` - Comprehensive idea analysis
- `_session-state.json` - Updated session state
- Optional: `03_concept_refinement.md` - Additional refinement (user-created)
## Example Usage
- **Analyze ideas from a session:**
`/planning/brainstorm/2-analyze-ideas --name="product-features"`
- **Analyze by index:**
`/planning/brainstorm/2-analyze-ideas --name="1"`
- **Re-analyze after refinement:**
`/planning/brainstorm/2-analyze-ideas --name="product-features"` (automatically detects new files)

View File

@ -0,0 +1,321 @@
---
allowed-tools: [Read, Write, Glob]
description: Generates the final brainstorm summary document by consolidating all ideation and analysis from a session.
---
# Generate Brainstorm Summary
## Context
- **User Request:** $ARGUMENTS
- **Session Name/Index:** Passed via `--name` argument.
- **All Session Files:** All `0*_*.md` (user ideation) and `_analysis_*.md` (AI analysis) files within the target brainstorm session directory.
## Goal
To synthesize all ideation activities and analytical insights from a completed brainstorming session into a single, coherent, and actionable Brainstorm Summary Document that can serve as input for product development, PRD creation, or further strategic planning.
## Process
1. **Identify Target Session:**
- Use the `--name` argument to locate the correct brainstorm session directory.
2. **Aggregate All Session Data:**
- Read the content of the brainstorm framework file (`01_brainstorm_framework.md`).
- Read the content of all user ideation files (`02_idea_generation.md`, `03_concept_refinement.md`, etc.).
- Read the content of all AI analysis files (`_analysis_*.md`).
- Read the session state file (`_session-state.json`) for metadata and context.
3. **Synthesize and Structure Content:**
- Comprehensively analyze the aggregated information.
- Identify the most valuable insights and breakthrough concepts.
- Create a coherent narrative that connects the ideation process to actionable outcomes.
- Organize content into a logical structure that supports decision-making.
4. **Generate Executive Summary:**
- Create a high-level overview that captures:
- Session objectives and approach
- Key quantitative results (total ideas, categories, etc.)
- Most significant insights and breakthrough concepts
- Recommended next steps and implementation priorities
5. **Develop Concept Portfolio:**
- **Tier 1 Concepts:** Highest-priority ideas ready for immediate development
- **Tier 2 Concepts:** Promising ideas requiring further validation or refinement
- **Tier 3 Concepts:** Innovative ideas for future consideration
- **Quick Wins:** Low-effort, high-impact ideas for immediate implementation
6. **Create Implementation Roadmap:**
- Prioritize concepts based on impact, feasibility, and strategic alignment
- Suggest logical sequencing for development
- Identify resource requirements and dependencies
- Provide transition guidance to next phase (PRD, development, etc.)
7. **Generate Final Summary Document:**
- Create the final document named `brainstorm-summary_[session_name].md`.
- Structure the content according to the template below.
- Ensure the document is actionable and ready for stakeholder review.
8. **Finalize Session State:**
- Update the `_session-state.json` file by setting the `status` to `completed`.
- Record final metrics and outcomes.
- This marks the brainstorming session as complete.
9. **Notify User and Suggest Next Steps:**
- Inform the user that the brainstorm summary has been successfully generated.
- Provide the file path and key highlights.
- Proactively suggest logical next steps based on the session outcomes.
- **Example suggestions:**
- "Your brainstorm summary is complete. Based on the results, I recommend creating a PRD using `/planning/prd/2-create-from-brainstorm --name=[session_name]`"
- "Consider validating the top 3 concepts with target users before proceeding to development"
- "The technical concepts suggest creating a roadmap with `/planning/roadmap/1-define-roadmap --from-brainstorm=[session_name]`"
## Templates & Structures
### Brainstorm Summary Document Template
```markdown
# Brainstorm Summary: [Session Name]
**Session Date:** [Date]
**Session Type:** [Creative Ideation/Problem-Solving/Feature Expansion/Market Opportunities]
**Facilitator:** AI-Guided Brainstorming System
---
## Executive Summary
### Session Overview
- **Objective:** [Original brainstorming objective]
- **Target Domain:** [Area of focus]
- **Constraints:** [Key limitations and parameters]
- **Duration:** [Time span of session]
### Key Results
- **Total Ideas Generated:** [Number]
- **Major Categories:** [List of main themes]
- **Breakthrough Concepts:** [Number of innovative ideas]
- **Implementation-Ready Ideas:** [Number of actionable concepts]
### Strategic Insights
- **Primary Finding:** [Most significant insight]
- **Market Opportunity:** [Key opportunities identified]
- **Innovation Potential:** [Assessment of creative breakthrough]
---
## Concept Portfolio
### Tier 1: Priority Concepts (Ready for Development)
#### 1. [Concept Name]
- **Description:** [Detailed explanation]
- **Impact Potential:** [High/Medium/Low] - [Reasoning]
- **Feasibility:** [High/Medium/Low] - [Assessment]
- **Resource Requirements:** [Estimated effort]
- **Success Criteria:** [How to measure success]
- **Next Steps:** [Specific actions needed]
#### 2. [Concept Name]
- **Description:** [Detailed explanation]
- **Impact Potential:** [High/Medium/Low] - [Reasoning]
- **Feasibility:** [High/Medium/Low] - [Assessment]
- **Resource Requirements:** [Estimated effort]
- **Success Criteria:** [How to measure success]
- **Next Steps:** [Specific actions needed]
### Tier 2: Promising Concepts (Require Validation)
#### [Concept Name]
- **Description:** [Brief explanation]
- **Why Promising:** [Potential value]
- **Validation Needed:** [What needs to be tested/confirmed]
- **Timeline:** [When to revisit]
### Tier 3: Future Innovations (Long-term Potential)
#### [Concept Name]
- **Description:** [Brief explanation]
- **Innovation Factor:** [What makes it unique]
- **Barriers:** [Current limitations]
- **Future Triggers:** [Conditions that would make it viable]
---
## Implementation Roadmap
### Phase 1: Quick Wins (0-3 months)
- **[Concept Name]:** [Brief description and rationale]
- **[Concept Name]:** [Brief description and rationale]
- **Success Metrics:** [How to measure progress]
### Phase 2: Core Development (3-12 months)
- **[Concept Name]:** [Brief description and rationale]
- **[Concept Name]:** [Brief description and rationale]
- **Dependencies:** [What needs to be in place]
### Phase 3: Innovation Projects (12+ months)
- **[Concept Name]:** [Brief description and rationale]
- **[Concept Name]:** [Brief description and rationale]
- **Research Requirements:** [Additional investigation needed]
---
## Category Analysis
### [Category Name]
- **Theme:** [What this category represents]
- **Ideas Count:** [Number of ideas in this category]
- **Top Concepts:** [Best ideas from this category]
- **Implementation Notes:** [Special considerations]
### [Category Name]
- **Theme:** [What this category represents]
- **Ideas Count:** [Number of ideas in this category]
- **Top Concepts:** [Best ideas from this category]
- **Implementation Notes:** [Special considerations]
---
## Process Insights
### What Worked Well
- [Effective ideation techniques]
- [Productive creative approaches]
- [Successful breakthrough moments]
### Lessons Learned
- [Key insights about the creative process]
- [Unexpected discoveries]
- [Process improvements for future sessions]
### Recommended Improvements
- [Suggestions for future brainstorming sessions]
- [Areas for deeper exploration]
- [Stakeholder input needed]
---
## Next Steps & Recommendations
### Immediate Actions (Next 2 weeks)
1. [Specific action with owner and timeline]
2. [Specific action with owner and timeline]
3. [Specific action with owner and timeline]
### Medium-term Priorities (Next 3 months)
1. [Strategic action with requirements]
2. [Strategic action with requirements]
3. [Strategic action with requirements]
### Long-term Vision (6-12 months)
1. [Vision-level action with success criteria]
2. [Vision-level action with success criteria]
### Suggested Transition
- **If moving to PRD:** [Specific concepts to focus on]
- **If moving to Roadmap:** [Technical considerations identified]
- **If additional brainstorming needed:** [Areas requiring deeper exploration]
---
## Appendices
### A. Full Idea Inventory
[Complete list of all ideas generated, organized by category]
### B. Evaluation Criteria
[Detailed scoring methodology used for concept evaluation]
### C. Session Artifacts
- Original framework document
- Raw ideation outputs
- Analysis summaries
```
### Final Session State Structure
```json
{
"index": 1,
"name": "session-name",
"type": "brainstorm",
"status": "completed",
"created": "ISO datetime",
"lastUpdated": "ISO datetime",
"currentStep": "summary_complete",
"completedSteps": ["ideation_setup", "idea_generation", "idea_analysis", "summary_creation"],
"nextAction": "Session complete - ready for PRD/Roadmap transition",
"brainstormType": "creative|problem-solving|feature-expansion|market-opportunities",
"targetDomain": "user-defined domain",
"ideationResults": {
"totalIdeas": 42,
"categorizedIdeas": {
"user-experience": 12,
"technical-innovation": 8,
"business-model": 6
},
"topConcepts": [
{
"name": "concept-name",
"impactScore": 9,
"feasibilityScore": 7,
"category": "user-experience",
"tier": 1
}
],
"analysisDate": "ISO datetime",
"summaryGenerated": "ISO datetime"
}
}
```
## Best Practices
### ✅ DO: Create Actionable Outcomes
- **Focus on implementation-ready concepts** rather than abstract ideas
- **Provide specific next steps** for each priority concept
- **Include success criteria** and measurable outcomes
- **Consider resource requirements** realistically
**Why:** A brainstorm summary should bridge creative thinking with practical execution.
### ✅ DO: Maintain Strategic Perspective
- **Align concepts with original objectives** and constraints
- **Consider business impact** alongside creative merit
- **Evaluate concepts within competitive context** if relevant
- **Think about scalability** and long-term potential
**Why:** Strategic alignment ensures that creative outputs serve business objectives.
### ✅ DO: Preserve Creative Insights
- **Document breakthrough moments** and innovative approaches
- **Capture unexpected connections** between ideas
- **Preserve minority opinions** and unconventional thinking
- **Note process insights** for future brainstorming sessions
**Why:** Creative insights often contain valuable intelligence that extends beyond specific ideas.
### ❌ DON'T: Oversimplify Complex Ideas
- **Don't reduce innovative concepts** to simple feature requests
- **Don't ignore implementation complexity** when it's relevant
- **Don't dismiss ideas** that don't fit current priorities
- **Don't lose nuance** in the synthesis process
**Why:** Oversimplification can destroy the value of creative insights and innovative thinking.
### ❌ DON'T: Skip Prioritization
- **Don't present all ideas as equally important** - provide clear hierarchy
- **Don't ignore feasibility constraints** when prioritizing
- **Don't forget about resource limitations** in implementation planning
- **Don't avoid making recommendations** - stakeholders need guidance
**Why:** Unprioritized outputs create decision paralysis and reduce the value of the brainstorming investment.
## Output
- **Format:** Comprehensive Markdown document
- **Location:** `.taskmaster/docs/brainstorm/[index]-[session_name]/`
- **Primary Files:**
- `brainstorm-summary_[session_name].md` - Final comprehensive summary
- `_session-state.json` - Updated to completed status
## Example Usage
- **Generate summary for a session:**
`/planning/brainstorm/3-generate-brainstorm-summary --name="product-features"`
- **Generate by index:**
`/planning/brainstorm/3-generate-brainstorm-summary --name="1"`

View File

@ -0,0 +1,113 @@
---
allowed-tools: [Read, Write]
description: Creates a PRD direction roadmap from an existing MRD, suggesting phased PRD development for key features with improvement directions.
---
# Create PRD Direction Roadmap from MRD
## Context
- User Request: $ARGUMENTS
- MRD Session: Identified by --name argument (session name or index).
- Source MRD: Final market-requirements-document_*.md file from the specified MRD session directory.
- Roadmap Directory: .taskmaster/docs/roadmap/
## Goal
To transform market requirements from an MRD into a focused roadmap that suggests phased PRD development for key features, providing directions for iterative improvements without timelines or session states.
## Process
1. **Identify Source MRD:**
- Use the --name argument to locate the correct MRD session directory (e.g., .taskmaster/docs/mrd/001-enterprise-expansion/).
- Read the final MRD document (market-requirements-document_*.md) to extract key market insights, user requirements, and feature ideas.
2. **Extract Key Elements from MRD:**
- **Market and User Insights:** Identify target segments, pain points, and opportunities.
- **Feature Opportunities:** Map MRD requirements to potential features, prioritizing based on business impact and feasibility.
- **Improvement Directions:** For each feature, suggest iterative refinement paths (e.g., from basic MVP to advanced versions).
3. **Generate PRD Direction Roadmap:**
- Create a single comprehensive document outlining phased PRD suggestions for features.
- Structure the content using the PRD Direction Roadmap Template, focusing on iterative PRD development and improvement suggestions.
- Ensure the roadmap emphasizes directions for PRD creation, such as starting with core features and evolving through user feedback.
4. **Notify User with Key Insights:**
- Inform the user that the PRD direction roadmap has been generated.
- Provide the file path and highlight top feature suggestions.
- Suggest next steps: "Proceed to create detailed PRDs for suggested features using /planning/prd/1-create-from-roadmap --name=[roadmap_name] --feature=[feature_id]"
## Templates & Structures
### PRD Direction Roadmap Template
```markdown
# PRD Direction Roadmap: [MRD Session Name]
**Created:** [Date]
**Source:** MRD Session: [MRD Session Name]
**Focus:** Phased PRD Development and Improvement Directions
---
## Executive Summary
- **Overview:** High-level suggestions for PRD development based on MRD insights.
- **Key Features:** [Number] prioritized features with phased PRD directions.
- **Improvement Approach:** Iterative refinement from core to advanced implementations.
---
## Feature Suggestions
### Feature 1: [Feature Name]
- **MRD Basis:** [Relevant insights from MRD, e.g., user pain points].
- **Phased PRD Directions:**
- **Phase 1 (Core):** Basic PRD focusing on MVP functionality.
- **Phase 2 (Improvement):** Add user feedback loops and refinements.
- **Phase 3 (Advanced):** Integrate scalability and edge cases.
- **Improvement Suggestions:** [e.g., Start with user testing, evolve based on metrics like adoption rate].
### Feature 2: [Feature Name]
- **MRD Basis:** [Relevant insights].
- **Phased PRD Directions:** [Similar phased structure].
- **Improvement Suggestions:** [Specific directions].
---
## Overall Improvement Strategy
- **Iteration Model:** Use user feedback to refine PRDs iteratively.
- **Prioritization Criteria:** Based on MRD impact and feasibility.
- **Success Indicators:** [e.g., Alignment with market needs, measurable user value].
---
## Next Steps
- Create PRD for Feature 1 using suggested directions.
- Validate improvements through prototypes or user tests.
```
## Best Practices / DO & DON'T
### ✅ DO: Focus on Iterative PRD Directions
- Emphasize phased approaches that guide PRD evolution from basic to advanced.
- Suggest specific improvement ideas tied to MRD insights.
**Why:** This ensures the roadmap drives actionable, evolving PRD creation.
### ✅ DO: Prioritize Based on MRD Insights
- Rank features by market impact and user needs from the MRD.
- Include rationale for each suggestion.
**Why:** Maintains alignment with original market requirements.
### ❌ DON'T: Include Timelines or Deadlines
- Avoid any time-based planning or horizons.
**Why:** Focus solely on directional guidance for PRD development.
### ❌ DON'T: Add Unnecessary Complexity
- Keep suggestions concise and directly tied to PRD phases.
**Why:** The goal is to provide clear directions, not over-engineer the roadmap.
## Output
- **Format:** Markdown document.
- **Location:** .taskmaster/docs/roadmap/
- **Filename:** roadmap-prd-directions_[mrd_session_name].md
## Example Usage
- Create PRD direction roadmap from MRD session: /planning/roadmap/1-create-from-mrd --name="enterprise-expansion"
- Create by MRD index: /planning/roadmap/1-create-from-mrd --name="1"

View File

@ -0,0 +1,113 @@
---
allowed-tools: [Read, Write]
description: Creates a PRD direction roadmap from a brainstorming session, suggesting phased PRD development for key features with improvement directions.
---
# Create PRD Direction Roadmap from Brainstorm
## Context
- User Request: $ARGUMENTS
- Brainstorm Session: Identified by --name argument (session name or index).
- Source Brainstorm: Final brainstorm-summary_*.md file from the specified brainstorm session directory.
- Roadmap Directory: .taskmaster/docs/roadmap/
## Goal
To transform creative ideas from a brainstorming session into a focused roadmap that suggests phased PRD development for key features, providing directions for iterative improvements without timelines or session states.
## Process
1. **Identify Source Brainstorm:**
- Use the --name argument to locate the correct brainstorm session directory (e.g., .taskmaster/docs/brainstorm/001-product-features/).
- Read the final brainstorm summary document (brainstorm-summary_*.md) to extract key concepts and ideas.
2. **Extract Key Elements from Brainstorm:**
- **Creative Insights:** Identify high-priority ideas and themes.
- **Feature Opportunities:** Map brainstorm concepts to potential features, prioritizing by innovation potential.
- **Improvement Directions:** For each feature, suggest iterative refinement paths (e.g., from initial idea to refined implementation).
3. **Generate PRD Direction Roadmap:**
- Create a single comprehensive document outlining phased PRD suggestions for features.
- Structure the content using the PRD Direction Roadmap Template, focusing on iterative PRD development and improvement suggestions.
- Ensure the roadmap emphasizes directions for PRD creation, such as evolving ideas through validation and refinement.
4. **Notify User with Key Insights:**
- Inform the user that the PRD direction roadmap has been generated.
- Provide the file path and highlight top feature suggestions.
- Suggest next steps: "Proceed to create detailed PRDs for suggested features using /planning/prd/2-create-from-brainstorm --name=[brainstorm_session_name] --feature=[feature_id]"
## Templates & Structures
### PRD Direction Roadmap Template
```markdown
# PRD Direction Roadmap: [Brainstorm Session Name]
**Created:** [Date]
**Source:** Brainstorm Session: [Brainstorm Session Name]
**Focus:** Phased PRD Development and Improvement Directions
---
## Executive Summary
- **Overview:** High-level suggestions for PRD development based on brainstorm ideas.
- **Key Features:** [Number] prioritized features with phased PRD directions.
- **Improvement Approach:** Iterative refinement from concepts to advanced implementations.
---
## Feature Suggestions
### Feature 1: [Feature Name]
- **Brainstorm Basis:** [Relevant ideas from brainstorm, e.g., innovative concepts].
- **Phased PRD Directions:**
- **Phase 1 (Core):** Basic PRD focusing on initial idea validation.
- **Phase 2 (Improvement):** Incorporate feedback for refinements.
- **Phase 3 (Advanced):** Add scalability and integration ideas.
- **Improvement Suggestions:** [e.g., Prototype testing, evolve based on user engagement metrics].
### Feature 2: [Feature Name]
- **Brainstorm Basis:** [Relevant ideas].
- **Phased PRD Directions:** [Similar phased structure].
- **Improvement Suggestions:** [Specific directions].
---
## Overall Improvement Strategy
- **Iteration Model:** Use brainstorm feedback to refine PRDs iteratively.
- **Prioritization Criteria:** Based on innovation impact and feasibility.
- **Success Indicators:** [e.g., Alignment with creative goals, measurable improvements].
---
## Next Steps
- Create PRD for Feature 1 using suggested directions.
- Validate improvements through prototypes or user tests.
```
## Best Practices / DO & DON'T
### ✅ DO: Focus on Iterative PRD Directions
- Emphasize phased approaches that guide PRD evolution from ideas to refinements.
- Suggest specific improvement ideas tied to brainstorm concepts.
**Why:** This ensures the roadmap drives actionable, evolving PRD creation.
### ✅ DO: Prioritize Based on Brainstorm Insights
- Rank features by creative impact and feasibility from the brainstorm.
- Include rationale for each suggestion.
**Why:** Maintains alignment with original innovative ideas.
### ❌ DON'T: Include Timelines or Deadlines
- Avoid any time-based planning or horizons.
**Why:** Focus solely on directional guidance for PRD development.
### ❌ DON'T: Add Unnecessary Complexity
- Keep suggestions concise and directly tied to PRD phases.
**Why:** The goal is to provide clear directions, not over-engineer the roadmap.
## Output
- **Format:** Markdown document.
- **Location:** .taskmaster/docs/roadmap/
- **Filename:** roadmap-prd-directions_[brainstorm_session_name].md
## Example Usage
- Create PRD direction roadmap from brainstorm session: /planning/roadmap/2-create-from-brainstorm --name="product-features"
- Create by brainstorm index: /planning/roadmap/2-create-from-brainstorm --name="1"

View File

@ -0,0 +1,282 @@
---
allowed-tools: Read, Glob, Grep, Write, MultiEdit, TodoWrite
description: Generate comprehensive app design document with project stage assessment
---
# Generate Application Design Document
**User Request:** $ARGUMENTS
## Context
- Project root: !`pwd`
- Package.json: @package.json
- Existing design docs: !`ls -la .taskmaster/docs/ 2>/dev/null || echo "No .taskmaster/docs directory yet"`
## Goal
Create a comprehensive Application Design Document based on deep codebase analysis and user input. The document provides a high-level overview of the application's architecture, core features, user experience, and business logic while remaining technology-agnostic and focused on the "what" rather than the "how".
## Process
### 1. Initial Analysis
- Analyze project structure and existing codebase
- Review package.json for project name and dependencies
- Check for existing documentation in .taskmaster/docs/
- Identify key application features and patterns
- **Think deeply** about the application's purpose and architecture
### 2. Codebase Deep Dive
**Think harder about the application's architecture and business logic.**
Analyze the codebase to understand:
- **Application Structure:** Main modules, features, and components
- **User Flows:** Authentication, navigation, key user journeys
- **Data Models:** Conceptual relationships and entities
- **Business Logic:** Core rules, workflows, and processes
- **Integrations:** External services and APIs
- **Security Patterns:** Authentication and authorization approaches
_Extended thinking helps identify non-obvious patterns, understand complex business rules from code, and make strategic decisions about what aspects are most important to document._
### 3. Interactive Q&A Session
**CRITICAL:** Ask project stage question FIRST, then 4-7 additional questions:
- Use lettered/numbered options for easy response
- Focus on business goals and user needs
- Gather context for proper documentation
### 4. Update Project Configuration
Based on project stage response:
- Update `CLAUDE.md` "Project Status" section
- Set appropriate DO/DON'T priorities for the stage
- Document stage-specific development guidelines
### 5. Generate Document
Create comprehensive app design document following the standard structure
### 6. Save and Organize
- Create `.taskmaster/docs/` directory if needed
- Save as `app-design-document.md`
- Suggest next steps (tech stack doc, PRD, etc.)
## Required Questions Template
### 🎯 CRITICAL: Project Stage Assessment (Ask First!)
**1. What stage is your application currently in?**
a) **Pre-MVP** - Building initial version, not deployed to production yet
b) **MVP** - Basic version deployed and live with early users
c) **Production** - Mature application with established user base
d) **Enterprise** - Large scale deployment, multiple teams involved
**2. Based on your selected stage, here are the development priorities:**
- **Pre-MVP Priorities:**
- ✅ DO: Core functionality, security basics, input validation, working features
- ❌ DON'T: Unit tests, performance optimization, accessibility polish, perfect code
- 🚀 Focus: Ship fast with security, iterate based on feedback
- **MVP Priorities:**
- ✅ DO: Critical path testing, basic monitoring, user feedback loops
- ❌ DON'T: Comprehensive test coverage, advanced patterns, premature optimization
- 🚀 Focus: Stability for early users, rapid iteration
- **Production Priorities:**
- ✅ DO: Testing, monitoring, performance, accessibility, documentation
- ❌ DON'T: Skip security reviews, ignore technical debt
- 🚀 Focus: Reliability, scalability, user experience
- **Enterprise Priorities:**
- ✅ DO: Comprehensive testing, security audits, team coordination, compliance
- ❌ DON'T: Skip documentation, ignore code standards
- 🚀 Focus: Team efficiency, maintainability, compliance
### 📋 Context-Specific Questions (Ask 4-7 based on analysis)
**3. Application Purpose & Users**
- What is the primary problem your application solves?
- Who are your target users and what are their main goals?
**4. Unique Value Proposition**
- What makes your application unique compared to existing solutions?
- What's your competitive advantage?
**5. User Roles & Permissions**
- What different types of users interact with your system?
- Examples: end users, admins, moderators, content creators, viewers
**6. Core User Journeys**
- What are the 2-3 most critical user flows?
- Example: Sign up → Create content → Share → Get feedback
**7. Business Model & Growth**
- How does this application generate value?
- Options: SaaS subscription, marketplace, freemium, advertising, one-time purchase
**8. Integration Ecosystem**
- What external services must you integrate with?
- Examples: payment processors, email services, analytics, social platforms
**9. Scale & Performance Goals**
- What scale are you planning for in the next 12 months?
- Users: dozens, hundreds, thousands, millions?
- Geographic: local, national, global?
**10. Success Metrics**
- How will you measure if your application is successful?
- Examples: user retention, revenue, engagement, conversion rates
## Document Structure
The generated document must follow this high-level structure:
### **Introduction**
- Application overview and purpose
- Target audience and user base
- Core value proposition
- Business context and goals
### **Core Features**
- **Feature Category 1:** (e.g., User Management)
- Purpose and user benefit
- Key functionalities
- User experience considerations
- **Feature Category 2:** (e.g., Content Creation)
- Purpose and user benefit
- Key functionalities
- User experience considerations
- **[Additional feature categories as needed]**
### **User Experience**
- User personas and roles
- Key user journeys and flows
- Interface design principles
- Accessibility and usability considerations
### **System Architecture**
- High-level system components
- Data flow and relationships
- Integration points and external services
- Security and privacy approach
### **Business Logic**
- Core business rules and processes
- Data models and relationships (conceptual)
- Workflow and state management
- Validation and business constraints
### **Future Considerations**
- Planned enhancements and features
- Scalability considerations
- Potential integrations
- Long-term vision and roadmap
## Target Audience
The document should be accessible to:
- **Business stakeholders** who need to understand the application's purpose and capabilities
- **Product managers** planning features and roadmaps
- **Designers** creating user interfaces and experiences
- **New developers** joining the project who need a high-level understanding
- **Technical leaders** making architectural decisions
The language should be clear, business-focused, and avoid technical implementation details.
## Writing Principles
### DO:
- **Business Focus:** Describe WHAT the application does, not HOW
- **User Value:** Emphasize benefits and outcomes for users
- **Clear Language:** Write for non-technical stakeholders
- **Visual Thinking:** Use diagrams and flows where helpful
- **Future Ready:** Consider growth and evolution paths
### DON'T:
- **Technical Details:** No code snippets or implementation specifics
- **Technology Stack:** Save for tech-stack.md document
- **Database Schemas:** Keep data models conceptual
- **API Specifications:** Focus on capabilities, not endpoints
- **Performance Metrics:** Describe goals, not technical benchmarks
## Output
- **Format:** Markdown (`.md`)
- **Location:** `.taskmaster/docs/`
- **Filename:** `app-design-document.md`
## Execution Steps
### 1. Start with Analysis
- Use Read, Glob, and Grep to explore the codebase
- Identify key features and patterns
- Look for existing documentation
- **Use extended thinking:** "Think deeply about this codebase's architecture, business purpose, and how different components work together to serve users"
### 2. Interactive Q&A
- **MUST ASK PROJECT STAGE FIRST**
- Present questions with numbered/lettered options
- Wait for user responses before proceeding
### 3. Update Project Status
```markdown
## Project Status
**Current Stage**: [Stage from user response]
### DO Care About (Production-Ready Foundation)
[Stage-specific priorities]
### DO NOT Care About (Skip for Velocity)
[Stage-specific items to skip]
### Development Approach
[Stage-specific development focus]
```
### 4. Generate Document
- Follow the standard structure
- Tailor content to project stage
- Keep language accessible
### 5. Save and Next Steps
- Create directory: `mkdir -p .taskmaster/docs`
- Save document: `.taskmaster/docs/app-design-document.md`
- Suggest: "Would you like me to create a technical stack document next?"

View File

@ -0,0 +1,51 @@
# Feature Documentation Generator
When asked to enter "Documentation Mode" for a specific feature, I will:
1. **Analyze the feature scope**: First, I'll ask 3-5 clarifying questions to understand exactly what feature needs to be documented and its boundaries.
2. **Review existing documentation**: Before generating new documentation, I'll check and reference these existing guides:
- Authentication patterns → @.cursor/rules/2106-auth.mdc
- CRUD implementation → @.cursor/rules/2105-crud.mdc
- Router implementation → @.cursor/rules/2102-router.mdc
- Schema definition → @.cursor/rules/2101-schema-prisma.mdc
- End-to-end feature specs → @.cursor/rules/2100-spec.mdc
- tRPC React Query integration → @.cursor/rules/2103-trpc-react-query.mdc
3. **Conduct comprehensive codebase exploration**: I'll systematically search for and identify all relevant files and components that contribute to the feature, including:
- Entry points and main components
- State management
- API interactions
- Utility functions
- Types and interfaces
- Configuration files
4. **Generate a structured documentation** with these sections:
- **Feature Overview**: High-level description of the feature's purpose and functionality
- **Core Files Map**: List of essential files with their paths and a brief description of their role
- **Data Flow**: How data moves through the system for this feature
- **Key Dependencies**: External libraries or internal services the feature relies on
- **Configuration Options**: Any configurable aspects of the feature
- **Extension Points**: How the feature can be extended or customized
- **Implementation References**: Links to relevant sections in existing documentation that were used or should be followed
5. **Include code snippets** for critical sections with line numbers and file paths in the format:
```startLine:endLine:filepath
// Code snippet here
```
6. **Create a visual representation** of the component hierarchy or data flow if applicable (described in text format that can be converted to a diagram).
7. **Summarize implementation patterns** used in the feature that should be followed when extending it, referencing existing documentation where applicable:
- Authentication patterns if the feature requires protection
- CRUD patterns if the feature involves data operations
- Error handling patterns
- Router implementation patterns
- Schema patterns
- React Query patterns
The final documentation will be comprehensive enough that someone could continue development on this feature with minimal additional context beyond the generated document and the referenced existing documentation.

View File

@ -0,0 +1,116 @@
---
allowed-tools: Bash, Read, Write, Glob, Grep, Task, TodoWrite, mcp__taskmaster-ai__parse_prd
description: Generate a PRD interactively with clarifying questions for complex features
---
# Generate a Product Requirements Document (PRD)
## Context
- **User Request:** $ARGUMENTS
- **Project Root:** !`pwd`
- **Existing PRDs:** !`ls -la .taskmaster/docs/prd-*.md 2>/dev/null || echo "No existing PRDs found"`
- **Project Status:** @CLAUDE.md#project-status
- **Tech Stack:** @.taskmaster/docs/tech-stack.md
- **Project Structure:** !`bash .claude/scripts/tree.sh`
- **PRD Template:** @.taskmaster/templates/example_prd.md
## Goal
To create a detailed Product Requirements Document (PRD) in Markdown format. The PRD should be clear, actionable, and suitable for a junior developer to understand and implement.
## Process
1. **Analyze Feature Request:** Think deeply about the user's feature request and its implications for the codebase.
2. **Codebase Analysis:**
- Search for relevant existing code patterns
- Review components that might be affected
- Identify potential integration points
- Consider architectural impacts
3. **Ask Clarifying Questions:**
- Ask 4-6 targeted questions based on codebase analysis
- Provide lettered/numbered options for easy response
- Focus on understanding the "what" and "why", not the "how"
4. **Generate PRD:**
- Follow the example PRD structure exactly
- Include all required sections from the template
- Ensure clarity for junior developers
5. **Save and Next Steps:**
- Save as `prd-[feature-name].md` in `.taskmaster/docs/`
- Suggest running Task Master parse command
## Clarifying Questions Framework
Adapt questions based on the specific feature request provided above. Consider these areas:
- **Problem/Goal:** "What problem does this feature solve for the user?" or "What is the main goal we want to achieve with this feature?"
- **Target User:** "Who is the primary user of this feature?"
- **Core Functionality:** "Can you describe the key actions a user should be able to perform with this feature?"
- **User Stories:** "Could you provide a few user stories? (e.g., As a [type of user], I want to [perform an action] so that [benefit].)"
- **User Experience:** "Describe the user journey and key user flows for this feature"
- **Scope/Boundaries:** "Are there any specific things this feature _should not_ do (non-goals)?"
- **Technical Integration:** "What existing systems or components should this integrate with?"
- **Data Requirements:** "What kind of data does this feature need to display or manipulate?"
- **Design/UI:** "Are there any existing design patterns or UI guidelines to follow?" or "Can you describe the desired look and feel?"
- **Development Phases:** "Should this be built in phases? What's the MVP vs future enhancements?"
- **Dependencies:** "What needs to be built first? Are there logical dependencies?"
- **Success Criteria:** "How will we know when this feature is successfully implemented?"
- **Edge Cases:** "Are there any potential risks or technical challenges we should consider?"
## PRD Structure Requirements
The PRD must follow the exact structure from @.taskmaster/templates/example_prd.md:
### `<context>` Section
1. **Overview:** High-level overview of the product/feature, what problem it solves, who it's for, and why it's valuable
2. **Project Context:** Include the standard project status information. CRITICIAL: DO NOT forget this section. Read the mentioned files if needed.
3. **Core Features:** List and describe the main features, including what each does, why it's important, and how it works at a high level
4. **User Experience:** Describe user personas, key user flows, and UI/UX considerations
### `<PRD>` Section
1. **Technical Architecture:** System components, data models, APIs and integrations, infrastructure requirements
2. **Development Roadmap:** Break down into phases (MVP requirements, future enhancements) focusing on scope and detailing exactly what needs to be built
3. **Logical Dependency Chain:** Define the logical order of development, which features need to be built first, getting quickly to something usable/visible, properly pacing and scoping each feature
4. **Risks and Mitigations:** Technical challenges, figuring out the MVP that can be built upon, resource constraints
5. **Appendix:** Research findings, technical specifications, additional information
## Target Audience
Assume the primary reader of the PRD is a **junior developer**. Therefore, requirements should be explicit, unambiguous, and avoid jargon where possible. Provide enough detail for them to understand the feature's purpose and core logic.
## Output
- **Format:** Markdown (`.md`)
- **Location:** `.taskmaster/docs/`
- **Filename:** `prd-[feature-name].md`
## Final Instructions
1. **Think deeply** about the feature request and its architectural implications
2. **Do NOT start implementing** - only create the PRD document
3. **Ask clarifying questions** with lettered/numbered options
4. **Generate complete PRD** following the template structure exactly
5. **Save the PRD** to `.taskmaster/docs/prd-[feature-name].md`
6. **Suggest next step:** "Use `/parse` or `task-master parse-prd .taskmaster/docs/prd-[feature-name].md` to convert this PRD into Task Master tasks"
## Example Usage
```
/project:prd user authentication system
```
This will:
1. Analyze the codebase for existing auth patterns
2. Ask questions about auth requirements
3. Generate a comprehensive PRD
4. Save it as `prd-user-authentication.md`

View File

@ -0,0 +1,230 @@
---
allowed-tools: [Read, Write, Glob, Grep, Bash, Task, TodoWrite]
description: Creates a PRD document compatible with Task Master's parse-prd command, with quick and interactive modes
---
# Create PRD for Task Master
## Context
- **User Request:** $ARGUMENTS
- **Mode:** Extract from arguments using `--quick` flag (default: interactive)
- **Source Type (optional):** Extract from arguments using `--source=[mrd|brainstorm|roadmap|scratch]`
- **Source Name (optional):** Extract from arguments using `--name=[session-name]`
- **Project Root:** !`pwd`
- **Existing PRDs:** !`ls -la .taskmaster/docs/prd-*.md 2>/dev/null || echo "No existing PRDs found"`
- **Project Status:** @CLAUDE.md#project-status
- **Project Structure:** !`bash .claude/scripts/tree.sh`
- **Tech Stack:** @.taskmaster/docs/tech-stack.md
- **PRD Template:** @.taskmaster/templates/example_prd.md
- **PRD Directory:** `.taskmaster/docs/`
## Goal
Create a concise, focused Product Requirements Document (PRD) that Task Master can parse to generate tasks.json. Supports two modes:
- **Quick Mode (`--quick`)**: Generate PRD immediately without questions, making intelligent assumptions
- **Interactive Mode (default)**: Ask clarifying questions for more accurate requirements gathering
## Process
### 1. Parse Arguments and Determine Mode
- Extract `--quick`, `--source`, and `--name` from user arguments
- Determine mode: Quick (no questions) or Interactive (with questions)
- If source specified, validate it exists
### 2. Codebase Analysis (Both Modes)
**Think deeply** about the project context:
- Search for relevant existing code patterns
- Review components that might be affected
- Identify potential integration points
- Consider architectural impacts
- Analyze tech stack and project structure
### 3A. Quick Mode Process (`--quick`)
If quick mode is enabled:
- **Make intelligent assumptions** based on common patterns and codebase analysis
- **Load source content** if specified (MRD, Brainstorm, Roadmap)
- **Generate PRD immediately** without asking questions
- **Document all assumptions** in a dedicated section
- **Skip to step 4** (Generate PRD Document)
### 3B. Interactive Mode Process (Default)
If interactive mode (no `--quick` flag):
- **Load source content** if specified:
- **MRD**: Load from `.taskmaster/docs/mrd/[name]/` - focus on market requirements
- **Brainstorm**: Load from `.taskmaster/docs/brainstorm/[name]/` - focus on creative ideas
- **Roadmap**: Load from `.taskmaster/docs/roadmap/[name]/` - focus on timeline, priorities
- **Scratch**: Start fresh with Q&A
- **Ask focused questions** to gather essential information:
- **Project Status**: Pre-MVP, MVP, Production, or Enterprise?
- **Core Problem**: What problem does this solve?
- **Target Users**: Who will use this?
- **Key Features**: What are the 3-5 core features?
- **Technical Approach**: High-level architecture approach?
- **MVP Scope**: What's the minimum viable version?
### 4. Generate PRD Document
Create PRD following Task Master template structure exactly:
**Important:** Follow the exact structure from @.taskmaster/templates/example_prd.md
#### PRD Structure:
```markdown
<context>
# Overview
[High-level overview of the product/feature, what problem it solves, who it's for, and why it's valuable]
# Project Context
**Project Status: [Stage]**
- Read this file: `.taskmaster/docs/app-design-document.md` - App design document
- Read this file: `.taskmaster/docs/tech-stack.md` - Tech stack, architecture
[Stage-appropriate DO/DON'T guidelines based on project status]
# Core Features
[List and describe main features - what each does, why it's important, how it works at high level]
# User Experience
[User personas, key user flows, UI/UX considerations]
</context>
<PRD>
# Technical Architecture
[System components, data models, APIs and integrations, infrastructure requirements]
# Development Roadmap
## MVP Phase
[Essential features for first usable version]
## Enhancement Phase
[Additional features and improvements]
## Scale Phase
[Performance, security, and scale features]
# Logical Dependency Chain
[Development order - what needs to be built first, getting quickly to something usable/visible, properly pacing and scoping each feature]
# Risks and Mitigations
[Technical challenges, figuring out MVP that can be built upon, resource constraints]
# Appendix
[Research findings, technical specifications, additional information]
</PRD>
```
#### For Quick Mode Only:
Include an "Assumptions" section immediately after the `<context>` opening tag:
```markdown
<context>
# Assumptions
[Document key assumptions made about requirements, default choices for ambiguous features, suggested areas that may need refinement]
# Overview
[Continue with normal structure...]
```
### 5. Save PRD and Guide Next Steps
- Save to `.taskmaster/docs/prd-[name].md`
- Suggest next steps:
```
PRD created successfully! Next steps:
1. Review: `.taskmaster/docs/prd-[name].md`
2. Generate tasks: `task-master parse-prd .taskmaster/docs/prd-[name].md`
3. Or use tagged workflow:
- `task-master add-tag [feature-name] --description="[description]"`
- `task-master use-tag [feature-name]`
- `task-master parse-prd .taskmaster/docs/prd-[name].md`
```
## Mode Selection Guide
### ✅ Use Quick Mode (`--quick`) for:
- **Simple CRUD features** - Standard create/read/update/delete operations
- **Standard UI components** - Common interface elements with clear patterns
- **Well-defined integrations** - Integrations with clear API specifications
- **Features with precedent** - Similar features already exist in the codebase
- **Time-sensitive requests** - When you need a PRD quickly to start development
### ✅ Use Interactive Mode (default) for:
- **Complex architectural changes** - Features affecting system design
- **Features with unknowns** - Requirements that need clarification
- **Security-critical features** - Features requiring detailed security analysis
- **Multi-system features** - Features affecting multiple systems or teams
- **First-time implementations** - New types of features without existing patterns
## Best Practices
### ✅ DO: Keep It Focused
- **Write concise, actionable content** that translates directly to development tasks
- **Focus on what to build**, not extensive market analysis or business justification
- **Use clear feature descriptions** that developers can implement
- **Define logical dependencies** to guide development order
**Why:** Task Master needs clear, implementable requirements to generate meaningful tasks.
### ✅ DO: Think in Development Phases
- **Start with true MVP** - the minimum that provides value
- **Build incrementally** - each phase should be independently valuable
- **Consider dependencies** - what needs to be built first?
- **Keep phases balanced** - avoid too much in one phase
**Why:** Phased development ensures continuous delivery and reduces risk.
### ❌ DON'T: Over-Document
- **Don't write lengthy market analysis** - keep context brief
- **Don't create complex user journeys** - focus on core flows
- **Don't specify implementation details** - that's for tasks
- **Don't include project management details** - timelines, resources, etc.
**Why:** PRDs should be requirements documents, not project plans or technical specifications.
### ❌ DON'T: Create Without Purpose
- **Don't generate PRDs for trivial features** - just create tasks directly
- **Don't duplicate existing PRDs** - update instead
- **Don't create multiple PRDs for one feature** - keep it consolidated
- **Don't forget the parse step** - PRDs need to be parsed to be useful
**Why:** PRDs are for substantial features that need structured planning.
## Output
- **Format:** Markdown (.md) following Task Master template
- **Location:** `.taskmaster/docs/`
- **Filename:** `prd-[descriptive-name].md`
## Example Usage
### Interactive Mode (Default)
```bash
# Create PRD from scratch with questions
/planning/prd/create new payment system
# Create PRD from MRD with questions
/planning/prd/create --source=mrd --name=mvp-launch payment features
# Create PRD from brainstorm with questions
/planning/prd/create --source=brainstorm --name=feature-ideas user dashboard
# Create PRD from roadmap with questions
/planning/prd/create --source=roadmap --name=q1-2024 phase 1 features
```
### Quick Mode
```bash
# Create PRD immediately without questions
/planning/prd/create --quick user profile page with avatar upload
# Quick PRD from MRD
/planning/prd/create --quick --source=mrd --name=mvp-launch payment features
# Quick PRD from brainstorm
/planning/prd/create --quick --source=brainstorm --name=feature-ideas dashboard
# Quick PRD from roadmap
/planning/prd/create --quick --source=roadmap --name=q1-2024 auth system
```
## Quick Mode Benefits
- **Immediate Results**: No waiting for Q&A session
- **Intelligent Assumptions**: Based on codebase analysis and common patterns
- **Documented Assumptions**: Clear record of what was assumed for later refinement
- **Codebase-Informed**: Leverages existing patterns and architectural decisions
- **Fast Iteration**: Quickly generate PRDs for multiple features

View File

@ -0,0 +1,260 @@
---
allowed-tools: Read, Glob, Grep, Write, MultiEdit, TodoWrite, Bash
description: Create a new Cursor rule file with proper structure and conventions
---
# Create Cursor Rule
**User Request:** $ARGUMENTS
## Context
- Rules directory: !`ls -la .cursor/rules/*.mdc 2>/dev/null | wc -l | xargs -I {} echo "{} existing rules"`
- Existing rules: !`ls -1 .cursor/rules/*.mdc 2>/dev/null | sed 's/.*\///' | head -10 || echo "No rules yet"`
- Rule guidelines: @.cursor/rules/cursor-rules.mdc
## Goal
Create a new Cursor rule file that follows the established conventions and structure. The rule should be actionable, well-documented, and reference actual code patterns from the codebase.
## Process
### 1. Analyze Rule Request
**Think deeply about what patterns or conventions this rule should enforce.**
Consider:
- What problem does this rule solve?
- What patterns should it enforce?
- What anti-patterns should it prevent?
- Which files or areas of code does it apply to?
- Are there existing examples in the codebase?
### 2. Search for Patterns
Search the codebase for:
- Existing implementations to reference
- Common patterns that need standardization
- Anti-patterns to discourage
- Related code that demonstrates the rule
### 3. Interactive Rule Design
Ask clarifying questions about:
- Specific file patterns (globs)
- When the rule should apply
- Exceptions or edge cases
- Related existing rules
### 4. Generate Rule File
Create comprehensive rule following the standard structure:
- YAML frontmatter
- Clear description
- Actionable requirements
- Code examples
- File references
### 5. Save and Cross-Reference
- Save to `.cursor/rules/[rule-name].mdc`
- Update related rules if needed
- Update CLAUDE.md to reference new rule in Core Rules section
- Suggest next steps
## Rule Creation Questions
### 📋 Rule Definition
**1. What is the primary purpose of this rule?**
Please describe what convention, pattern, or standard this rule should enforce.
**2. Which files should this rule apply to?**
a) **Specific file types** - `*.ts`, `*.tsx`, etc.
b) **Directory patterns** - `src/components/**/*`, `app/**/*`
c) **Framework files** - Route handlers, API endpoints, etc.
d) **Configuration files** - `*.config.ts`, setup files
e) **All files** - Universal convention
**3. Should this rule always apply or conditionally?**
a) **Always apply** - Enforced on every matching file
b) **Conditional** - Only when certain patterns exist
c) **Opt-in** - Developers choose when to apply
### 🔍 Pattern Examples
**4. Can you provide examples of GOOD patterns to follow?**
Share code snippets or describe the correct implementation.
**5. What are BAD patterns to avoid?**
Share anti-patterns or common mistakes this rule should prevent.
**6. Are there existing files that demonstrate this pattern well?**
List files that already follow this convention correctly.
### 🔗 Related Rules
**7. Does this rule relate to any existing conventions?**
a) **Extends existing rule** - Builds on another rule
b) **Complements rule** - Works alongside another
c) **Replaces rule** - Supersedes an outdated rule
d) **Standalone** - Independent convention
## Rule Structure Template
````markdown
---
description: [Clear, one-line description of what the rule enforces]
globs: [path/to/files/*.ext, other/path/**/*]
alwaysApply: [true/false]
---
# [Rule Title]
## Overview
[Brief explanation of why this rule exists and what problem it solves]
## Requirements
- **[Requirement Category]:**
- [Specific requirement]
- [Another requirement]
- [Edge cases or exceptions]
## Examples
### ✅ DO: [Good Pattern Name]
```[language]
// Example of correct implementation
[code example]
```
````
**Why:** [Explanation of why this is the right approach]
### ❌ DON'T: [Anti-pattern Name]
```[language]
// Example of what to avoid
[code example]
```
**Why:** [Explanation of why this should be avoided]
## File References
- Good examples: [component.tsx](mdc:src/components/example/component.tsx)
- Pattern usage: [api-handler.ts](mdc:app/api/example/route.ts)
## Related Rules
- [other-rule.mdc](mdc:.cursor/rules/other-rule.mdc) - [How it relates]
- [another-rule.mdc](mdc:.cursor/rules/another-rule.mdc) - [How it relates]
## Migration Guide
[If applicable, how to migrate existing code to follow this rule]
1. [Step 1]
2. [Step 2]
3. [Step 3]
````
## Execution Steps
### 1. Initial Analysis
```bash
# Search for relevant patterns
rg -t ts -t tsx "[pattern]" --glob "!node_modules"
# Find files that might need this rule
find . -name "*.tsx" -path "*/components/*" | head -20
````
**Think deeply about:** "What patterns in the codebase would benefit from standardization? What mistakes do developers commonly make that this rule could prevent?"
### 2. Pattern Discovery
- Use Grep to find existing patterns
- Use Read to examine good examples
- Identify variations that need standardization
### 3. Interactive Design
- Ask clarifying questions
- Get specific examples
- Understand edge cases
### 4. Rule Generation
- Follow the template structure
- Include real code examples
- Reference actual files
- Connect to related rules
### 5. Save and Integrate
```bash
# Create rule file
# Save to .cursor/rules/[rule-name].mdc
# Show related rules
ls -la .cursor/rules/*.mdc | grep -E "(related|similar)"
```
## Best Practices
### DO:
- **Real Examples:** Use actual code from the project
- **Clear Globs:** Specific file patterns, not overly broad
- **Actionable:** Developers should know exactly what to do
- **Justification:** Explain WHY not just WHAT
- **Cross-Reference:** Link to related rules and examples
### DON'T:
- **Theoretical:** Avoid hypothetical examples
- **Vague:** Don't use unclear descriptions
- **Overly Broad:** Don't apply to all files unless necessary
- **Redundant:** Don't duplicate existing rules
- **Complex:** Keep rules focused on one concept
## Output
- **Format:** Markdown with `.mdc` extension
- **Location:** `.cursor/rules/`
- **Filename:** `[descriptive-name].mdc`
## Example Usage
```
/project:rules:create component naming conventions
/project:rules:create API error handling patterns
```
## Next Steps
After creating the rule:
1. Review existing code for compliance
2. Update non-compliant code if needed
3. Add to code review checklist
4. Update CLAUDE.md Core Rules section to reference the new rule
5. Share with team

View File

@ -0,0 +1,346 @@
---
allowed-tools: Read, Glob, Grep, Write, MultiEdit, TodoWrite, Bash
description: Generate comprehensive technical stack documentation from codebase analysis
---
# Generate Tech Stack Documentation
**User Request:** $ARGUMENTS
## Context
- Project root: !`pwd`
- Package.json: @package.json
- Node version: !`node --version 2>/dev/null || echo "Node.js not found"`
- TypeScript config: @tsconfig.json
- Database schema: !`ls -la prisma/schema.prisma 2>/dev/null || echo "No Prisma schema found"`
- Existing docs: !`ls -la .taskmaster/docs/*.md 2>/dev/null || echo "No docs yet"`
## Goal
Create comprehensive Tech Stack Documentation based on deep codebase analysis. Document all technologies, frameworks, libraries, development tools, deployment strategies, and implementation patterns with specific versions and configurations.
## Process
### 1. Automated Technical Discovery
- Parse package.json for all dependencies
- Analyze configuration files (tsconfig, vite.config, next.config, etc.)
- Detect database setup (Prisma, Drizzle, TypeORM, etc.)
- Identify testing frameworks and tools
- Scan for CI/CD configurations
- Check deployment configurations
### 2. Deep Code Analysis
Examine codebase for:
- **Architecture Patterns:** Monorepo structure, module organization
- **Framework Usage:** Next.js app router vs pages, API routes
- **State Management:** Zustand, Redux, Context API patterns
- **Styling Approach:** Tailwind, CSS modules, styled-components
- **Type Safety:** TypeScript strictness, validation libraries
- **API Design:** REST, GraphQL, tRPC implementation
- **Authentication:** Auth libraries and session management
- **Testing Strategy:** Unit, integration, E2E test patterns
### 3. Interactive Technical Q&A
Ask 4-6 deployment and infrastructure questions:
- Use numbered/lettered options
- Focus on non-discoverable information
- Gather hosting, monitoring, and workflow details
### 4. Generate Comprehensive Documentation
Create detailed tech stack document with:
- Specific version numbers
- Configuration examples
- Command references
- Architecture diagrams (when applicable)
### 5. Save and Organize
- Create `.taskmaster/docs/` if needed
- Save as `tech-stack.md`
- Update CLAUDE.md commands section
## Technical Questions Template
### 🚀 Deployment & Infrastructure
**1. Where is your application currently deployed?**
a) **Vercel** - Next.js optimized hosting
b) **AWS** - EC2, Lambda, or containerized
c) **Railway/Render** - Modern PaaS providers
d) **Self-hosted** - VPS or on-premise
e) **Other** - Please specify
f) **Not deployed yet** - Still in development
**2. How is your database hosted?**
a) **Managed service** (Supabase, PlanetScale, Neon, etc.)
b) **Cloud provider** (AWS RDS, Google Cloud SQL, etc.)
c) **Self-hosted** (Docker, VPS, etc.)
d) **Local only** - No production database yet
### 📊 Monitoring & Operations
**3. What observability tools do you use?**
a) **Error tracking:** Sentry, Rollbar, Bugsnag
b) **Analytics:** Vercel Analytics, Google Analytics, Plausible
c) **Monitoring:** Datadog, New Relic, custom solution
d) **Logging:** CloudWatch, LogTail, custom logs
e) **None yet** - Planning to add later
### 👥 Development Workflow
**4. What's your Git workflow?**
a) **Feature branches** with PR reviews
b) **Trunk-based** development
c) **GitFlow** with release branches
d) **Direct to main** (solo project)
**5. How do you manage environments?**
a) **Multiple deployments** (dev, staging, prod)
b) **Preview deployments** for PRs
c) **Single production** environment
d) **Local development** only
### 🔐 Additional Services
**6. Which external services do you integrate with?**
- [ ] Payment processing (Stripe, PayPal)
- [ ] Email service (SendGrid, Resend, AWS SES)
- [ ] File storage (S3, Cloudinary, UploadThing)
- [ ] Authentication (Auth0, Clerk, Supabase Auth)
- [ ] Search (Algolia, Elasticsearch)
- [ ] Other APIs (please specify)
## Document Structure
The generated document must follow this technical structure:
### **Overview**
- Brief description of the application's technical nature
- Technology stack summary
- Architecture approach (monolith, microservices, etc.)
### **Programming Language & Runtime**
- Primary programming language and version
- Runtime environment and version
- Type system and language features used
### **Frontend**
- UI Framework/Library and version
- Styling approach and frameworks
- Component libraries and design systems
- State management solutions
- Build tools and bundlers
- Browser support and compatibility
### **Backend**
- Backend framework and architecture
- API design (REST, GraphQL, tRPC, etc.)
- Authentication and authorization
- Middleware and security
- File handling and uploads
### **Database & Storage**
- Database type and version
- ORM/Query builder
- Schema management and migrations
- Caching solutions
- File storage solutions
- Data backup and recovery
### **Development Tools & Workflow**
- Package manager
- Code formatting and linting
- Type checking and compilation
- Testing frameworks and strategies
- Development server and hot reload
- Version control workflow
### **Deployment & Infrastructure**
- Hosting platform and services
- Build and deployment pipeline
- Environment configuration
- Domain and DNS management
- SSL/TLS and security
- Monitoring and logging
### **External Integrations**
- Third-party APIs and services
- Payment processing
- Email services
- Analytics and tracking
- Error monitoring
- Performance monitoring
### **Quality Assurance & Testing**
- Testing strategy and frameworks
- Code coverage tools
- End-to-end testing
- Performance testing
- Security testing
- Code review process
### **Schemas & Data Models**
- Database schema (if applicable)
- API schemas and validation
- Type definitions and interfaces
- Data relationships and constraints
## Target Audience
The document should serve:
- **Developers** joining the project who need technical onboarding
- **DevOps engineers** setting up infrastructure and deployment
- **Technical architects** evaluating or improving the tech stack
- **Security teams** understanding the technical landscape
- **Future maintainers** who need to understand technical decisions
The language should be technical, precise, and include specific version numbers and configuration details.
## Documentation Principles
### DO Include:
- **Exact Versions:** Lock file versions, not just ranges
- **Configuration Examples:** Actual config snippets from the project
- **Command Reference:** All npm scripts and their purposes
- **Setup Instructions:** Step-by-step for new developers
- **Architecture Decisions:** Why specific technologies were chosen
- **Integration Details:** How services connect and communicate
### DON'T Include:
- **Generic Descriptions:** Avoid Wikipedia-style explanations
- **Outdated Information:** Only document what's actually used
- **Wishful Thinking:** Document current state, not future plans
- **Sensitive Data:** No API keys, secrets, or credentials
- **Redundant Info:** Link to official docs instead of copying
## Output
- **Format:** Markdown (`.md`)
- **Location:** `.taskmaster/docs/`
- **Filename:** `tech-stack.md`
## Execution Steps
### 1. Automated Analysis Phase
```bash
# Extract key technical information
- Read package.json and lock files
- Scan for configuration files
- Detect framework patterns
- Identify database setup
- Find test configurations
```
### 2. Manual Discovery Phase
- Read key source files to understand architecture
- Check for API route patterns
- Analyze authentication implementation
- Review deployment configurations
### 3. Interactive Q&A
- Present deployment and infrastructure questions
- Use checkboxes for multi-select options
- Wait for user responses
### 4. Document Generation
- Start with discovered information
- Incorporate user responses
- Add specific configuration examples
- Include all npm scripts with descriptions
### 5. Save and Update
```bash
# Create directory and save
mkdir -p .taskmaster/docs
# Save to .taskmaster/docs/tech-stack.md
```
### 6. Update CLAUDE.md
Add discovered commands to the Commands section:
```markdown
### Development
- `pnpm dev` - Start development server
- `pnpm build` - Build for production
- `pnpm typecheck` - Run TypeScript type checking
# ... other discovered commands
```
### 7. Next Steps
- Suggest: "Would you like me to update CLAUDE.md with the discovered commands?"
- Recommend: "Should I create an app design document to complement this technical documentation?"
## Example Usage
```bash
# Basic usage
/project:create-tech-stack
# With specific focus
/project:create-tech-stack Focus on deployment and CI/CD setup
```
## Sample Output Structure
```markdown
# Tech Stack Documentation
## Overview
- **Framework:** Next.js 14.2.5 (App Router)
- **Language:** TypeScript 5.5.3
- **Database:** PostgreSQL with Prisma ORM
- **Deployment:** Vercel with preview deployments
## Commands Reference
### Development
- `pnpm dev` - Start Next.js dev server on port 3000
- `pnpm build` - Build production bundle
- `pnpm typecheck` - Run tsc --noEmit
### Database
- `pnpm db:generate` - Generate Prisma client
- `pnpm db:push` - Push schema changes to database
# ... continue with full documentation
```

View File

@ -0,0 +1,181 @@
---
allowed-tools: TodoWrite, mcp__taskmaster-ai__parse_prd, mcp__taskmaster-ai__add_tag, mcp__taskmaster-ai__use_tag, mcp__taskmaster-ai__list_tags, mcp__taskmaster-ai__get_tasks
description: Parse a PRD into Task Master tasks with optional tag creation
---
# Parse PRD into Task Master Tasks
## Context
- **User Request:** $ARGUMENTS
- Current directory: !`pwd`
- Task Master state: !`cat .taskmaster/state.json 2>/dev/null || echo "No state file yet"`
- Current tag: !`jq -r '.currentTag // "master"' .taskmaster/state.json 2>/dev/null || echo "master"`
- Available tags: !`jq -r '.tags | keys | join(", ")' .taskmaster/tasks/tasks.json 2>/dev/null || echo "No tags yet"`
- PRD files: !`ls -la .taskmaster/docs/prd*.md 2>/dev/null | tail -5 || echo "No PRD files found"`
## Goal
Parse a Product Requirements Document (PRD) into structured Task Master tasks. This command handles tag creation, context switching, and PRD parsing in a streamlined workflow.
## Process
### 1. Determine PRD Location
**Think about which PRD file the user wants to parse.**
Check for:
- Explicit PRD path in
- Default PRD location: `.taskmaster/docs/prd.txt` or `.taskmaster/docs/prd.md`
- Tag-specific PRD: `.taskmaster/docs/prd-[tag-name].md`
### 2. Tag Context Decision
Determine if we need a new tag:
- If PRD is for a specific feature → Create new tag
- If updating existing work → Use current tag
- If starting fresh → Consider new tag
### 3. Execute Parse Workflow
Based on context:
1. Create new tag if needed
2. Switch to appropriate tag
3. Parse the PRD
4. Generate tasks with proper numbering
5. Suggest next steps
## Execution Steps
### Scenario 1: Parse with New Tag Creation
If the user wants to parse a feature-specific PRD:
```markdown
1. **Create a new tag** for this feature:
Using: add_tag with name and description
2. **Switch to the new tag**:
Using: use_tag to set context
3. **Parse the PRD**:
Using: parse_prd with the PRD path
4. **Confirm success**:
Show task count and suggest next steps
```
### Scenario 2: Parse in Current Context
If parsing into the current tag:
```markdown
1. **Confirm current tag** is appropriate
Show current tag context
2. **Parse the PRD directly**:
Using: parse_prd with the PRD path
3. **Show results**:
Display generated tasks summary
```
### Scenario 3: Parse Default PRD
If no specific PRD mentioned:
```markdown
1. **Check for default PRD**:
Look for .taskmaster/docs/prd.txt or prd.md
2. **Confirm with user** if found
3. **Parse the default PRD**:
Using: parse_prd
```
## Interactive Flow
Based on User Request, determine the appropriate flow:
### If arguments include a tag name:
1. Create the tag
2. Switch to it
3. Parse the corresponding PRD
### If arguments include a PRD path:
1. Ask if a new tag is needed
2. Parse the specified PRD
### If no arguments:
1. Check current tag context
2. Look for default PRD
3. Proceed with parsing
## Best Practices
### DO:
- **Check tag context** before parsing
- **Use descriptive tag names** for features
- **Keep PRDs organized** by feature/tag
- **Verify PRD exists** before parsing
- **Show task summary** after parsing
### DON'T:
- **Parse into master tag** for feature work
- **Overwrite existing tasks** without confirmation
- **Mix unrelated features** in one tag
- **Skip tag creation** for new features
## Example Usage
```bash
# Parse default PRD in current context
/project:parse
# Parse specific PRD with new tag
/project:parse user-auth feature
# Parse existing PRD file
/project:parse .taskmaster/docs/prd-payments.md
```
## Natural Language Examples
Since MCP supports natural language:
```
"Please parse my PRD for the user authentication feature"
"Create tasks from the payments PRD and put them in a new tag"
"Parse the default PRD into the current tag context"
```
## Next Steps
After parsing, suggest:
1. **View generated tasks**: Use `/next` to see the first task
2. **Analyze complexity**: Run complexity analysis if many tasks
3. **Expand tasks**: Break down complex tasks into subtasks
4. **Start implementation**: Begin with the highest priority task
## Task Tracking
Add parsed PRD to todo list for tracking:
```typescript
{
content: "Parse PRD: [filename]",
status: "completed",
priority: "high"
}
```
This helps track which PRDs have been processed and when.

View File

@ -0,0 +1,303 @@
---
allowed-tools: Read, Glob, Grep, Write, MultiEdit, TodoWrite, Bash
description: Update existing app design document based on codebase changes and project evolution
---
# Sync Application Design Document
**User Request:** $ARGUMENTS
## Context
- Project root: !`pwd`
- Package.json: @package.json
- Current design doc: @.taskmaster/docs/app-design-document.md
- Last modified: !`stat -f "%Sm" .taskmaster/docs/app-design-document.md 2>/dev/null || echo "No existing document"`
- Project status: @CLAUDE.md#project-status
## Goal
Update the existing Application Design Document to reflect current codebase state, new features, changed priorities, and project evolution. Maintain consistency with the original document while incorporating new information.
## Process
### 1. Document Analysis
- Read and understand the existing app-design-document.md
- Establish baseline understanding of documented features
- Note the document's structure and tone
- Identify areas that may need updates
### 2. Codebase Change Detection
**Think deeply about what has changed in the codebase since the document was last updated.**
Analyze for:
- **New Features:** Components, modules, or capabilities added
- **Modified Flows:** Changes to user journeys or business logic
- **Removed Features:** Deprecated or deleted functionality
- **Architecture Evolution:** New patterns, services, or integrations
- **Scale Changes:** Growth in complexity or user base
- **Security Updates:** New authentication/authorization patterns
_Extended thinking helps identify subtle changes, understand how new features integrate with existing ones, and recognize patterns that indicate architectural evolution._
### 3. Interactive Update Session
**CRITICAL:** Ask project stage question FIRST to assess if priorities have changed:
- Use lettered/numbered options for easy response
- Focus on what has changed and why
- Gather context for accurate updates
### 4. Update Project Configuration
If project stage or priorities have changed:
- Update `CLAUDE.md` "Project Status" section
- Adjust DO/DON'T lists for new priorities
- Document any stage transitions
### 5. Sync Document
Update the document incrementally:
- Preserve accurate existing content
- Add new sections only when necessary
- Update outdated information
- Maintain consistent tone and structure
### 6. Save Updated Document
- Backup suggestion if major changes
- Overwrite existing app-design-document.md
- Note what was updated
## Required Questions Template
### 🎯 CRITICAL: Project Evolution Assessment (Ask First!)
**1. Has your project stage evolved since the last update?**
a) **Same Stage** - Still in [current stage], just adding features
b) **Stage Evolution** - Moved from [current] to next stage
c) **Major Pivot** - Significant change in direction or purpose
d) **Help Me Assess** - Let's review current state together
**2. Have your development priorities changed?**
Based on your current stage, are these still your priorities?
[Show current DO/DON'T lists from CLAUDE.md]
a) **Same Priorities** - These still reflect our focus
b) **Adjusted Priorities** - Some changes needed (please specify)
c) **New Focus Areas** - Different priorities based on learnings
d) **Stage-Based Change** - Priorities changed due to stage evolution
### 📊 Change Identification Questions
**3. What major features have been added?**
Please describe any significant new capabilities, modules, or user-facing features added since the last update.
**4. Have any core user flows changed?**
a) **Authentication/Authorization** - Login, permissions, security
b) **Main User Journey** - Primary application workflow
c) **Data Management** - How users create/edit/delete data
d) **Integration Points** - External service connections
e) **None/Minor Only** - No significant flow changes
**5. What has been removed or deprecated?**
List any features, integrations, or capabilities that have been removed or are being phased out.
**6. Have you integrated new external services?**
a) **Payment Processing** - Stripe, PayPal, etc.
b) **Communication** - Email, SMS, notifications
c) **Analytics/Monitoring** - Tracking, logging services
d) **AI/ML Services** - LLMs, image processing, etc.
e) **Other** - Please specify
f) **None** - No new integrations
### 🚀 Future Direction Questions
**7. How has user feedback influenced changes?**
Describe any significant pivots or adjustments made based on user feedback or usage patterns.
**8. What are your updated success metrics?**
Have your KPIs or success measurements changed? Current focus:
- User growth targets?
- Revenue goals?
- Engagement metrics?
- Performance benchmarks?
**9. What's the next major milestone?**
a) **Feature Release** - Specific new capability
b) **Scale Milestone** - User/revenue target
c) **Technical Goal** - Performance, security, architecture
d) **Business Goal** - Partnerships, funding, market expansion
## Update Strategy
### Incremental Updates
- **Preserve:** Keep accurate existing content
- **Enhance:** Add new information to existing sections
- **Replace:** Update outdated or incorrect information
- **Remove:** Mark deprecated features appropriately
### Change Documentation
- **New Features:** Add to relevant feature categories
- **Modified Flows:** Update user journey descriptions
- **Architecture Changes:** Reflect in system architecture section
- **Business Evolution:** Update goals and success metrics
### Consistency Maintenance
- Keep the same professional, accessible tone
- Maintain technology-agnostic descriptions
- Focus on WHAT not HOW
- Preserve document structure
## Document Update Areas
### Always Review:
1. **Introduction**
- Update if purpose or audience has shifted
- Reflect any pivot in value proposition
2. **Core Features**
- Add new feature categories if needed
- Update existing features with enhancements
- Mark removed features as deprecated
3. **User Experience**
- Update user journeys with new flows
- Add new user personas if applicable
- Reflect UI/UX improvements
4. **System Architecture**
- Add new integrations
- Update data flow diagrams
- Reflect new security patterns
5. **Business Logic**
- Update rules and workflows
- Reflect new validation requirements
- Document new business constraints
6. **Future Considerations**
- Update roadmap based on progress
- Add new planned features
- Reflect lessons learned
## Execution Steps
### 1. Start with Analysis
```bash
# Check when document was last updated
stat -f "%Sm" .taskmaster/docs/app-design-document.md
# Review recent commits for feature changes
git log --oneline --since="30 days ago" | head -20
```
**Think deeply about:** "What has fundamentally changed in this application? How have new features altered the original vision? What patterns indicate architectural evolution?"
### 2. Interactive Q&A
- **MUST ASK PROJECT STAGE FIRST**
- Present all questions clearly
- Wait for complete responses
### 3. Update Project Status (if needed)
If stage or priorities changed, update both:
```markdown
# In CLAUDE.md
## Project Status
**Current Stage**: [New Stage]
### DO Care About (Production-Ready Foundation)
[Updated priorities]
### DO NOT Care About (Skip for Velocity)
[Updated items to skip]
```
### 4. Sync Document
- Make targeted updates
- Preserve document quality
- Add version note if helpful:
```markdown
<!-- Last updated: [date] - Major changes: [summary] -->
```
### 5. Save and Backup
```bash
# Optional: Create backup
cp .taskmaster/docs/app-design-document.md .taskmaster/docs/app-design-document.backup.md
# Save updated document
# Overwrite .taskmaster/docs/app-design-document.md
```
## Key Principles
### DO:
- **Preserve Quality:** Maintain document's professional tone
- **Incremental Updates:** Don't rewrite unnecessarily
- **Clear Changes:** Make updates obvious and well-integrated
- **User Focus:** Keep emphasis on user value
- **Stage Awareness:** Align with current project maturity
### DON'T:
- **Complete Rewrite:** Unless fundamentally pivoted
- **Technical Details:** Maintain high-level focus
- **Break Structure:** Keep established organization
- **Lose History:** Preserve context of major decisions
- **Skip Analysis:** Always understand current state first
## Output
- **Format:** Markdown (`.md`)
- **Location:** `.taskmaster/docs/`
- **Filename:** `app-design-document.md` (overwrites)
- **Backup:** Suggest if major changes
## Final Checklist
1. ✅ Read existing document completely
2. ✅ Analyze codebase changes thoroughly
3. ✅ Ask project stage question FIRST
4. ✅ Update CLAUDE.md if stage/priorities changed
5. ✅ Make incremental, targeted updates
6. ✅ Preserve document quality and tone
7. ✅ Suggest backup for major changes
8. ✅ Consider tech-stack.md updates if needed

View File

@ -0,0 +1,14 @@
---
allowed-tools: Bash
description: Update project structure documentation by running tree script
---
# Update Project Structure
Run the tree script to update project structure documentation:
```bash
bash .claude/scripts/tree.sh
```
Do not do anything else.

View File

@ -0,0 +1,313 @@
---
allowed-tools: Read, Glob, Grep, Write, MultiEdit, TodoWrite, Bash
description: Update existing Cursor rules based on new patterns or codebase evolution
---
# Update Cursor Rule
## Context
- **User Request:** $ARGUMENTS
- Rules directory: !`ls -la .cursor/rules/*.mdc | wc -l | xargs -I {} echo "{} total rules"`
- Rule guidelines: @.cursor/rules/cursor-rules.mdc
## Goal
Update an existing Cursor rule to reflect new patterns, codebase changes, or improved conventions. Maintain consistency with the rule structure while incorporating new learnings and examples.
## Process
### 1. Rule Analysis
- Read the existing rule thoroughly
- Understand current requirements
- Note the file patterns (globs)
- Review existing examples
### 2. Pattern Evolution Detection
**Think deeply about how code patterns have evolved since this rule was created.**
Analyze for:
- **New Patterns:** Better ways to implement the same concept
- **Framework Updates:** Changes due to library/framework evolution
- **Anti-patterns:** New problematic patterns discovered
- **Edge Cases:** Scenarios not covered by current rule
- **Related Changes:** Impact from other rule updates
### 3. Codebase Scanning
Search for:
- Current implementations of the pattern
- Violations of the existing rule
- New good examples to reference
- Emerging patterns that should be included
### 4. Interactive Update Session
Ask about:
- Specific patterns that need updating
- New edge cases discovered
- Framework or library changes
- Team feedback on the rule
### 5. Update Rule
Make targeted updates:
- Preserve valid existing content
- Update examples with current code
- Add new patterns or exceptions
- Update file references
- Revise related rules section
### 6. Save and Communicate
- Save updated rule
- Note what changed
- Update CLAUDE.md if rule significance changed
- Suggest reviewing affected code
## Update Questions Template
### 🔍 Pattern Evolution
**1. What prompted this rule update?**
a) **New patterns emerged** - Better ways to do things
b) **Framework changes** - Library updates require new approach
c) **Problems discovered** - Current rule has issues
d) **Team feedback** - Developers suggested improvements
e) **Codebase evolution** - Patterns have naturally changed
**2. Are there new GOOD patterns to add?**
Please describe or provide examples of patterns that should be encouraged.
**3. Have you discovered new ANTI-patterns?**
What problematic patterns have emerged that the rule should discourage?
### 📁 Scope Changes
**4. Should the rule apply to different files now?**
Current globs: [show from existing rule]
a) **Same scope** - No change to file patterns
b) **Expand scope** - Apply to more files
c) **Narrow scope** - Apply to fewer files
d) **Different patterns** - Change glob patterns entirely
**5. Should alwaysApply setting change?**
Currently: [show from existing rule]
a) **Keep current setting**
b) **Change to always apply**
c) **Change to conditional**
### 🔗 Related Updates
**6. Have related rules changed?**
Review if updates to other rules affect this one.
**7. Are there new related rules to reference?**
List any newly created rules that relate to this one.
## Update Strategy
### Incremental Updates
````markdown
## Examples
### ✅ DO: [Good Pattern Name]
<!-- Existing example - still valid -->
```typescript
// Original good example
```
````
<!-- NEW: Added based on recent patterns -->
```typescript
// New pattern discovered in [file]
```
### ❌ DON'T: [Anti-pattern Name]
<!-- UPDATED: Better example -->
```typescript
// More relevant anti-pattern
```
````
### Version Notes
When framework/library updates affect rules:
```markdown
## Framework Compatibility
**React 18+**: Use the new pattern
**React 17**: Legacy pattern still acceptable
<!-- Show migration path -->
````
### Edge Case Documentation
```markdown
## Edge Cases
**NEW:** [Scenario discovered since last update]
- How to handle: [Approach]
- Example: [Code snippet]
```
## Execution Steps
### 1. Start with Analysis
```bash
# Find current implementations
rg -t ts -t tsx "[pattern from rule]" --glob "!node_modules"
# Check for violations
# Search for anti-patterns mentioned in rule
# Find new examples
# Look for files modified recently that might have new patterns
```
**Think deeply about:** "How has our understanding of this pattern evolved? What have we learned from using this rule? Are there better ways to achieve the same goal?"
### 2. Current State Review
- Read existing rule completely
- Check all file references still exist
- Verify examples are still current
- Test if globs match intended files
### 3. Interactive Q&A
- Present current rule state
- Ask about specific changes needed
- Gather new examples
### 4. Update Rule
Follow incremental approach:
- Mark sections that are updated
- Preserve good existing content
- Add new examples from current code
- Update stale file references
### 5. Save and Document
```markdown
<!-- At top of rule file -->
<!-- Last updated: [date] - [summary of changes] -->
```
## Key Principles
### DO:
- **Preserve Value:** Keep good existing examples
- **Real Updates:** Use actual current code
- **Clear Changes:** Note what's new or updated
- **Maintain Structure:** Follow established format
- **Test Globs:** Verify patterns still match correctly
### DON'T:
- **Complete Rewrite:** Unless fundamentally wrong
- **Break References:** Ensure linked files exist
- **Lose History:** Keep record of why changes were made
- **Theoretical Updates:** Use real examples
- **Overcomplicate:** Keep rule focused
## Common Update Scenarios
### Framework Version Updates
```markdown
## Requirements
- **React 18+:**
- Use `useId()` for unique IDs
- Prefer `startTransition` for non-urgent updates
- **React 17 (legacy):**
- Continue using previous patterns
- Plan migration to new patterns
```
### New Tool Adoption
```markdown
## Tools
**Previous:** ESLint + Prettier
**Current:** Biome (replaced both)
<!-- Update all configuration examples -->
```
### Pattern Evolution
````markdown
## Examples
### ✅ DO: Modern Async Pattern
```typescript
// NEW: Using async/await with proper error boundaries
const MyComponent = () => {
const { data, error } = useSWR("/api/data", fetcher);
if (error) return <ErrorBoundary error={error} />;
if (!data) return <Skeleton />;
return <DataDisplay data={data} />;
};
```
````
<!-- Replaced: useEffect + setState pattern -->
```
## Output
- **Format:** Markdown with `.mdc` extension
- **Location:** `.cursor/rules/`
- **Filename:** Same as existing rule
- **Backup:** Consider keeping version history
## Final Checklist
1. ✅ Read existing rule completely
2. ✅ Search for current pattern usage
3. ✅ Find new good examples
4. ✅ Identify new anti-patterns
5. ✅ Update with real code examples
6. ✅ Verify all file references exist
7. ✅ Test glob patterns still work
8. ✅ Update related rules section
9. ✅ Document what changed
10. ✅ Update CLAUDE.md if needed
11. ✅ Consider impact on existing code
```

View File

@ -0,0 +1,327 @@
---
allowed-tools: Read, Glob, Grep, Write, MultiEdit, TodoWrite, Bash
description: Update tech stack documentation based on dependency changes and technical evolution
---
# Update Tech Stack Documentation
**User Request:** $ARGUMENTS
## Context
- Project root: !`pwd`
- Package.json: @package.json
- Current tech doc: @.taskmaster/docs/tech-stack.md
- **Project Structure:** !`bash .claude/scripts/tree.sh`
- Last modified: !`stat -f "%Sm" .taskmaster/docs/tech-stack.md 2>/dev/null || echo "No existing document"`
- Recent package changes: !`git diff HEAD~10 HEAD -- package.json 2>/dev/null | grep -E "^[+-]" | head -20 || echo "No recent changes"`
## Goal
Update the existing Tech Stack Documentation to reflect current technical state, dependency changes, new tools adoption, and infrastructure evolution. Maintain technical accuracy while documenting all changes.
## Process
### 1. Document Analysis
- Read existing tech-stack.md thoroughly
- Note documented versions and configurations
- Understand current technical baseline
- Identify sections that may need updates
### 2. Technical Change Detection
**Think deeply about technical evolution in the codebase.**
Analyze for:
- **Dependency Changes:** New packages, version updates, removals
- **Framework Evolution:** Major version upgrades, breaking changes
- **Tool Adoption:** New dev tools, linters, formatters, testing frameworks
- **Infrastructure Shifts:** Deployment, hosting, monitoring changes
- **Database Evolution:** Schema changes, new ORMs, migrations
- **Integration Updates:** New APIs, services, authentication providers
_Extended thinking helps identify cascading dependency updates, understand version compatibility issues, and recognize architectural implications of technical changes._
### 3. Automated Comparison
```bash
# Compare current vs documented dependencies
# Check for version mismatches
# Identify new configuration files
# Detect new tool configurations
```
### 4. Interactive Technical Q&A
Ask targeted questions about:
- Non-discoverable infrastructure changes
- Deployment and hosting updates
- New external service integrations
- Workflow and process changes
### 5. Update Documentation
Update incrementally:
- Preserve accurate technical information
- Update version numbers precisely
- Add new sections for major additions
- Mark deprecated technologies
### 6. Save and Verify
- Suggest backup for major changes
- Update CLAUDE.md commands if needed
- Verify all versions are accurate
## Technical Questions Template
### 🔄 Version Updates & Dependencies
**1. Which major dependencies have been updated?**
Review your recent dependency changes:
a) **Framework upgrades** (Next.js, React, etc.) with breaking changes
b) **Tool updates** (TypeScript, ESLint, etc.) requiring config changes
c) **New dependencies** added for features or development
d) **Removed packages** that are no longer needed
e) **All of the above** - Major technical overhaul
**2. Have you changed your package manager or Node version?**
a) **Same setup** - No changes to tooling
b) **Node upgrade** - Updated Node.js version
c) **Package manager switch** - Changed from npm/yarn/pnpm
d) **Monorepo adoption** - Moved to workspace setup
### 🏗️ Infrastructure Evolution
**3. Have your deployment or hosting arrangements changed?**
Current deployment is documented as: [show from existing doc]
a) **Same platform** - Just configuration updates
b) **Platform migration** - Moved to different provider
c) **Architecture change** - Serverless, containers, etc.
d) **Multi-region** - Expanded geographic deployment
**4. Database or storage changes?**
a) **Version upgrade** - Same DB, newer version
b) **Migration** - Switched database systems
c) **New caching** - Added Redis, Memcached, etc.
d) **Storage addition** - New file storage, CDN
e) **No changes** - Same setup as before
### 🛠️ Development Workflow Updates
**5. New development tools or practices?**
Select all that apply:
- [ ] New testing framework or strategy
- [ ] Added code quality tools (linters, formatters)
- [ ] CI/CD pipeline changes
- [ ] Docker/containerization adoption
- [ ] New build tools or bundlers
- [ ] Performance monitoring tools
**6. External service integrations?**
Have you added or changed:
a) **Payment processing** - New or updated provider
b) **Authentication** - Different auth service
c) **Email/SMS** - Communication service changes
d) **Monitoring** - New error tracking or analytics
e) **APIs** - Additional third-party integrations
f) **None** - Same external services
### 🔐 Security & Compliance
**7. Security tool adoption?**
- [ ] Vulnerability scanning (Snyk, etc.)
- [ ] Secret management changes
- [ ] New authentication methods
- [ ] Compliance tools (GDPR, etc.)
- [ ] Security headers/policies
- [ ] None of the above
## Update Strategy
### Version Precision
```typescript
// ❌ Outdated
"next": "^13.0.0"
// ✅ Current and precise
"next": "14.2.5"
```
### Configuration Updates
- Update all config examples to match current files
- Include new configuration options
- Remove deprecated settings
- Add migration notes for breaking changes
### New Technology Sections
When adding major new tools:
```markdown
### [New Tool Category]
**Tool:** [Name] [Version]
**Purpose:** [Why it was adopted]
**Configuration:** [Key settings]
**Integration:** [How it connects with other tools]
```
## Document Update Areas
### Always Check:
1. **package.json changes**
```bash
# Compare all dependencies
# Note version changes
# Identify new packages
```
2. **Configuration files**
- tsconfig.json updates
- New .config files
- Build tool configurations
- Linting rule changes
3. **Development scripts**
- New npm/pnpm scripts
- Changed command purposes
- Removed scripts
4. **Infrastructure files**
- Dockerfile changes
- CI/CD workflows
- Deployment configs
- Environment examples
### Conditional Updates:
- **Architecture:** Only if fundamental changes
- **Conventions:** Only if standards changed
## Execution Steps
### 1. Start with Analysis
```bash
# Check current dependencies vs documented
diff <(jq -r '.dependencies | keys[]' package.json | sort) \
<(grep -E '^\*\*.*:' .taskmaster/docs/tech-stack.md | cut -d: -f1 | sed 's/\*//g' | sort)
# Review recent dependency commits
git log --oneline --grep="dep" --since="30 days ago"
# Check for new config files
find . -name "*.config.*" -newer .taskmaster/docs/tech-stack.md 2>/dev/null
```
**Think deeply about:** "What technical decisions drove these changes? How do version updates affect the overall architecture? What new capabilities do these tools enable?"
### 2. Interactive Q&A
- Present technical questions clearly
- Include current state from documentation
- Wait for detailed responses
### 3. Update Documentation
Follow incremental approach:
```markdown
<!-- Version update example -->
**Before:** React 18.2.0
**After:** React 18.3.1 - Includes new compiler optimizations
<!-- New tool example -->
### Code Quality Tools
**New Addition:**
- **Biome:** 1.8.3 - Replaced ESLint and Prettier
- Faster performance (10x)
- Single configuration file
- Built-in formatting
```
### 4. Commands Update
Update CLAUDE.md if new scripts discovered:
```markdown
### Development
- `pnpm dev` - Start development server
- `pnpm check` - NEW: Run Biome linting and formatting
- `pnpm test:e2e` - NEW: Run Playwright tests
```
### 5. Save and Backup
```bash
# Optional backup
cp .taskmaster/docs/tech-stack.md .taskmaster/docs/tech-stack.backup.md
# Save updated document
# Overwrite .taskmaster/docs/tech-stack.md
```
## Key Principles
### DO:
- **Exact Versions:** Use precise version numbers from lock files
- **Config Accuracy:** Match actual configuration files
- **Change Rationale:** Explain why tools were adopted/changed
- **Migration Notes:** Document breaking changes and updates
- **Performance Impact:** Note improvements or concerns
### DON'T:
- **Generic Updates:** Avoid vague version ranges
- **Assumption:** Verify every technical detail
- **Old Information:** Remove outdated configurations
- **Wishful Documentation:** Only document what exists
- **Sensitive Data:** Never include secrets or keys
## Output
- **Format:** Markdown (`.md`)
- **Location:** `.taskmaster/docs/`
- **Filename:** `tech-stack.md` (overwrites)
- **Backup:** Suggest for major changes
## Final Checklist
1. ✅ Read existing tech-stack.md completely
2. ✅ Analyze all dependency changes
3. ✅ Check configuration file updates
4. ✅ Review infrastructure changes
5. ✅ Ask targeted technical questions
6. ✅ Update with exact versions
7. ✅ Include configuration examples
8. ✅ Update CLAUDE.md commands
9. ✅ Suggest backup if major changes
10. ✅ Verify technical accuracy

View File

@ -0,0 +1,33 @@
---
allowed-tools: mcp__taskmaster-ai__research, Write, TodoWrite
description: Research architectural patterns and best practices
---
# Research Architecture
**User Request:** $ARGUMENTS
## Goal
Research current architectural patterns, system design best practices, and scaling strategies.
## What You Can Say
```
"Research microservices vs modular monolith for SaaS"
"Best practices for event-driven architecture 2024"
"How to scale WebSocket connections to 100k users"
"Database sharding strategies for multi-tenant apps"
"Research CQRS and Event Sourcing patterns"
```
## How It Works
I'll research architectural topics and:
1. **Get latest patterns** and industry best practices
2. **Include project context** if relevant
3. **Provide actionable recommendations**
4. **Save findings** if requested
Great for making informed architectural decisions before implementation.

View File

@ -0,0 +1,34 @@
---
allowed-tools: mcp__taskmaster-ai__research, mcp__taskmaster-ai__update_task
description: Research security best practices and vulnerabilities
---
# Research Security
**User Request:** $ARGUMENTS
## Goal
Research security best practices, vulnerabilities, and compliance requirements.
## What You Can Say
```
"Latest OWASP top 10 for web apps"
"JWT security best practices 2024"
"How to implement secure file uploads"
"PCI compliance for SaaS applications"
"Research CSP headers configuration"
"OAuth 2.0 vs SAML for enterprise"
```
## How It Works
I'll research security topics and:
1. **Find current vulnerabilities** and mitigations
2. **Get compliance requirements** if applicable
3. **Provide secure implementation** patterns
4. **Update relevant tasks** with security considerations
Critical for security-sensitive features.

View File

@ -0,0 +1,32 @@
---
allowed-tools: mcp__taskmaster-ai__research, mcp__taskmaster-ai__update_task, mcp__taskmaster-ai__update_subtask
description: Research best practices and update tasks
---
# Research for Tasks
- **User Request:** $ARGUMENTS
## Goal
Research current best practices, or solutions to help with task implementation.
## What You Can Say
```
"Research JWT security best practices for task 5"
"What's the best way to handle file uploads in Next.js?"
"Research MongoDB vs PostgreSQL for our use case"
"Find React Query v5 migration guide"
```
## How It Works
I'll research what you asked about (User Request) and:
1. **Get current information** beyond my knowledge cutoff
2. **Include relevant context** from your project if needed
3. **Show you the findings**
4. **Update tasks** if you mentioned specific ones
Just tell me what you need to know and optionally which task it's for.

View File

@ -0,0 +1,31 @@
---
allowed-tools: mcp__taskmaster-ai__research
description: Research technologies, frameworks, and tools
---
# Research Technology
**User Request:** $ARGUMENTS
## Goal
Research technologies, frameworks, libraries, and tools to make informed decisions.
## What You Can Say
```
"Compare Next.js vs Remix for our project"
"Research state management solutions for React 2024"
"Best Node.js ORMs for PostgreSQL"
"Evaluate Bun vs Node.js performance"
"Research authentication libraries for Next.js"
```
## How It Works
I'll research the technology topics you specify and provide:
1. **Current landscape** and popular options
2. **Pros/cons** for your use case
3. **Community adoption** and support
4. **Performance comparisons** if relevant

View File

@ -0,0 +1,33 @@
---
allowed-tools: [Read, Grep, Glob, Bash, TodoWrite]
description: "Analyze code quality, security, performance, and architecture"
---
# /sc:analyze - Code Analysis
## Purpose
Execute comprehensive code analysis across quality, security, performance, and architecture domains.
## Usage
```
/sc:analyze [target] [--focus quality|security|performance|architecture] [--depth quick|deep]
```
## Arguments
- `target` - Files, directories, or project to analyze
- `--focus` - Analysis focus area (quality, security, performance, architecture)
- `--depth` - Analysis depth (quick, deep)
- `--format` - Output format (text, json, report)
## Execution
1. Discover and categorize files for analysis
2. Apply appropriate analysis tools and techniques
3. Generate findings with severity ratings
4. Create actionable recommendations with priorities
5. Present comprehensive analysis report
## Claude Code Integration
- Uses Glob for systematic file discovery
- Leverages Grep for pattern-based analysis
- Applies Read for deep code inspection
- Maintains structured analysis reporting

View File

@ -0,0 +1,34 @@
---
allowed-tools: [Read, Bash, Glob, TodoWrite, Edit]
description: "Build, compile, and package projects with error handling and optimization"
---
# /sc:build - Project Building
## Purpose
Build, compile, and package projects with comprehensive error handling and optimization.
## Usage
```
/sc:build [target] [--type dev|prod|test] [--clean] [--optimize]
```
## Arguments
- `target` - Project or specific component to build
- `--type` - Build type (dev, prod, test)
- `--clean` - Clean build artifacts before building
- `--optimize` - Enable build optimizations
- `--verbose` - Enable detailed build output
## Execution
1. Analyze project structure and build configuration
2. Validate dependencies and environment setup
3. Execute build process with error monitoring
4. Handle build errors and provide diagnostic information
5. Optimize build output and report results
## Claude Code Integration
- Uses Bash for build command execution
- Leverages Read for build configuration analysis
- Applies TodoWrite for build progress tracking
- Maintains comprehensive error handling and reporting

View File

@ -0,0 +1,34 @@
---
allowed-tools: [Read, Grep, Glob, Bash, Edit, MultiEdit]
description: "Clean up code, remove dead code, and optimize project structure"
---
# /sc:cleanup - Code and Project Cleanup
## Purpose
Systematically clean up code, remove dead code, optimize imports, and improve project structure.
## Usage
```
/sc:cleanup [target] [--type code|imports|files|all] [--safe|--aggressive]
```
## Arguments
- `target` - Files, directories, or entire project to clean
- `--type` - Cleanup type (code, imports, files, all)
- `--safe` - Conservative cleanup (default)
- `--aggressive` - More thorough cleanup with higher risk
- `--dry-run` - Preview changes without applying them
## Execution
1. Analyze target for cleanup opportunities
2. Identify dead code, unused imports, and redundant files
3. Create cleanup plan with risk assessment
4. Execute cleanup operations with appropriate safety measures
5. Validate changes and report cleanup results
## Claude Code Integration
- Uses Glob for systematic file discovery
- Leverages Grep for dead code detection
- Applies MultiEdit for batch cleanup operations
- Maintains backup and rollback capabilities

View File

@ -0,0 +1,33 @@
---
allowed-tools: [Read, Grep, Glob, Write, Edit, TodoWrite]
description: "Design system architecture, APIs, and component interfaces"
---
# /sc:design - System and Component Design
## Purpose
Design system architecture, APIs, component interfaces, and technical specifications.
## Usage
```
/sc:design [target] [--type architecture|api|component|database] [--format diagram|spec|code]
```
## Arguments
- `target` - System, component, or feature to design
- `--type` - Design type (architecture, api, component, database)
- `--format` - Output format (diagram, spec, code)
- `--iterative` - Enable iterative design refinement
## Execution
1. Analyze requirements and design constraints
2. Create initial design concepts and alternatives
3. Develop detailed design specifications
4. Validate design against requirements and best practices
5. Generate design documentation and implementation guides
## Claude Code Integration
- Uses Read for requirement analysis
- Leverages Write for design documentation
- Applies TodoWrite for design task tracking
- Maintains consistency with architectural patterns

View File

@ -0,0 +1,33 @@
---
allowed-tools: [Read, Grep, Glob, Write, Edit]
description: "Create focused documentation for specific components or features"
---
# /sc:document - Focused Documentation
## Purpose
Generate precise, focused documentation for specific components, functions, or features.
## Usage
```
/sc:document [target] [--type inline|external|api|guide] [--style brief|detailed]
```
## Arguments
- `target` - Specific file, function, or component to document
- `--type` - Documentation type (inline, external, api, guide)
- `--style` - Documentation style (brief, detailed)
- `--template` - Use specific documentation template
## Execution
1. Analyze target component and extract key information
2. Identify documentation requirements and audience
3. Generate appropriate documentation based on type and style
4. Apply consistent formatting and structure
5. Integrate with existing documentation ecosystem
## Claude Code Integration
- Uses Read for deep component analysis
- Leverages Edit for inline documentation updates
- Applies Write for external documentation creation
- Maintains documentation standards and conventions

View File

@ -0,0 +1,33 @@
---
allowed-tools: [Read, Grep, Glob, Bash]
description: "Provide development estimates for tasks, features, or projects"
---
# /sc:estimate - Development Estimation
## Purpose
Generate accurate development estimates for tasks, features, or projects based on complexity analysis.
## Usage
```
/sc:estimate [target] [--type time|effort|complexity|cost] [--unit hours|days|weeks]
```
## Arguments
- `target` - Task, feature, or project to estimate
- `--type` - Estimation type (time, effort, complexity, cost)
- `--unit` - Time unit for estimates (hours, days, weeks)
- `--breakdown` - Provide detailed breakdown of estimates
## Execution
1. Analyze scope and requirements of target
2. Identify complexity factors and dependencies
3. Apply estimation methodologies and historical data
4. Generate estimates with confidence intervals
5. Present detailed breakdown with risk factors
## Claude Code Integration
- Uses Read for requirement analysis
- Leverages Glob for codebase complexity assessment
- Applies Grep for pattern-based estimation
- Maintains structured estimation documentation

View File

@ -0,0 +1,33 @@
---
allowed-tools: [Read, Grep, Glob, Bash]
description: "Provide clear explanations of code, concepts, or system behavior"
---
# /sc:explain - Code and Concept Explanation
## Purpose
Deliver clear, comprehensive explanations of code functionality, concepts, or system behavior.
## Usage
```
/sc:explain [target] [--level basic|intermediate|advanced] [--format text|diagram|examples]
```
## Arguments
- `target` - Code file, function, concept, or system to explain
- `--level` - Explanation complexity (basic, intermediate, advanced)
- `--format` - Output format (text, diagram, examples)
- `--context` - Additional context for explanation
## Execution
1. Analyze target code or concept thoroughly
2. Identify key components and relationships
3. Structure explanation based on complexity level
4. Provide relevant examples and use cases
5. Present clear, accessible explanation with proper formatting
## Claude Code Integration
- Uses Read for comprehensive code analysis
- Leverages Grep for pattern identification
- Applies Bash for runtime behavior analysis
- Maintains clear, educational communication style

View File

@ -0,0 +1,34 @@
---
allowed-tools: [Bash, Read, Glob, TodoWrite, Edit]
description: "Git operations with intelligent commit messages and branch management"
---
# /sc:git - Git Operations
## Purpose
Execute Git operations with intelligent commit messages, branch management, and workflow optimization.
## Usage
```
/sc:git [operation] [args] [--smart-commit] [--branch-strategy]
```
## Arguments
- `operation` - Git operation (add, commit, push, pull, merge, branch, status)
- `args` - Operation-specific arguments
- `--smart-commit` - Generate intelligent commit messages
- `--branch-strategy` - Apply branch naming conventions
- `--interactive` - Interactive mode for complex operations
## Execution
1. Analyze current Git state and repository context
2. Execute requested Git operations with validation
3. Apply intelligent commit message generation
4. Handle merge conflicts and branch management
5. Provide clear feedback and next steps
## Claude Code Integration
- Uses Bash for Git command execution
- Leverages Read for repository analysis
- Applies TodoWrite for operation tracking
- Maintains Git best practices and conventions

View File

@ -0,0 +1,54 @@
---
allowed-tools: [Read, Write, Edit, MultiEdit, Bash, Glob, TodoWrite, Task]
description: "Feature and code implementation with intelligent persona activation and MCP integration"
---
# /sc:implement - Feature Implementation
## Purpose
Implement features, components, and code functionality with intelligent expert activation and comprehensive development support.
## Usage
```
/sc:implement [feature-description] [--type component|api|service|feature] [--framework react|vue|express|etc] [--safe]
```
## Arguments
- `feature-description` - Description of what to implement
- `--type` - Implementation type (component, api, service, feature, module)
- `--framework` - Target framework or technology stack
- `--safe` - Use conservative implementation approach
- `--iterative` - Enable iterative development with validation steps
- `--with-tests` - Include test implementation
- `--documentation` - Generate documentation alongside implementation
## Execution
1. Analyze implementation requirements and detect technology context
2. Auto-activate relevant personas (frontend, backend, security, etc.)
3. Coordinate with MCP servers (Magic for UI, Context7 for patterns, Sequential for complex logic)
4. Generate implementation code with best practices
5. Apply security and quality validation
6. Provide testing recommendations and next steps
## Claude Code Integration
- Uses Write/Edit/MultiEdit for code generation and modification
- Leverages Read and Glob for codebase analysis and context understanding
- Applies TodoWrite for implementation progress tracking
- Integrates Task tool for complex multi-step implementations
- Coordinates with MCP servers for specialized functionality
- Auto-activates appropriate personas based on implementation type
## Auto-Activation Patterns
- **Frontend**: UI components, React/Vue/Angular development
- **Backend**: APIs, services, database integration
- **Security**: Authentication, authorization, data protection
- **Architecture**: System design, module structure
- **Performance**: Optimization, scalability considerations
## Examples
```
/sc:implement user authentication system --type feature --with-tests
/sc:implement dashboard component --type component --framework react
/sc:implement REST API for user management --type api --safe
/sc:implement payment processing service --type service --iterative
```

View File

@ -0,0 +1,33 @@
---
allowed-tools: [Read, Grep, Glob, Edit, MultiEdit, TodoWrite]
description: "Apply systematic improvements to code quality, performance, and maintainability"
---
# /sc:improve - Code Improvement
## Purpose
Apply systematic improvements to code quality, performance, maintainability, and best practices.
## Usage
```
/sc:improve [target] [--type quality|performance|maintainability|style] [--safe]
```
## Arguments
- `target` - Files, directories, or project to improve
- `--type` - Improvement type (quality, performance, maintainability, style)
- `--safe` - Apply only safe, low-risk improvements
- `--preview` - Show improvements without applying them
## Execution
1. Analyze code for improvement opportunities
2. Identify specific improvement patterns and techniques
3. Create improvement plan with risk assessment
4. Apply improvements with appropriate validation
5. Verify improvements and report changes
## Claude Code Integration
- Uses Read for comprehensive code analysis
- Leverages MultiEdit for batch improvements
- Applies TodoWrite for improvement tracking
- Maintains safety and validation mechanisms

View File

@ -0,0 +1,33 @@
---
allowed-tools: [Read, Grep, Glob, Bash, Write]
description: "Generate comprehensive project documentation and knowledge base"
---
# /sc:index - Project Documentation
## Purpose
Create and maintain comprehensive project documentation, indexes, and knowledge bases.
## Usage
```
/sc:index [target] [--type docs|api|structure|readme] [--format md|json|yaml]
```
## Arguments
- `target` - Project directory or specific component to document
- `--type` - Documentation type (docs, api, structure, readme)
- `--format` - Output format (md, json, yaml)
- `--update` - Update existing documentation
## Execution
1. Analyze project structure and identify key components
2. Extract documentation from code comments and README files
3. Generate comprehensive documentation based on type
4. Create navigation structure and cross-references
5. Output formatted documentation with proper organization
## Claude Code Integration
- Uses Glob for systematic file discovery
- Leverages Grep for extracting documentation patterns
- Applies Write for creating structured documentation
- Maintains consistency with project conventions

View File

@ -0,0 +1,33 @@
---
allowed-tools: [Read, Grep, Glob, Bash, Write]
description: "Load and analyze project context, configurations, and dependencies"
---
# /sc:load - Project Context Loading
## Purpose
Load and analyze project context, configurations, dependencies, and environment setup.
## Usage
```
/sc:load [target] [--type project|config|deps|env] [--cache]
```
## Arguments
- `target` - Project directory or specific configuration to load
- `--type` - Loading type (project, config, deps, env)
- `--cache` - Cache loaded context for faster subsequent access
- `--refresh` - Force refresh of cached context
## Execution
1. Discover and analyze project structure and configuration files
2. Load dependencies, environment variables, and settings
3. Parse and validate configuration consistency
4. Create comprehensive project context map
5. Cache context for efficient future access
## Claude Code Integration
- Uses Glob for comprehensive project discovery
- Leverages Read for configuration analysis
- Applies Bash for environment validation
- Maintains efficient context caching mechanisms

View File

@ -0,0 +1,33 @@
---
allowed-tools: [Read, Grep, Glob, Bash, TodoWrite, Edit, MultiEdit, Write]
description: "Break complex tasks into coordinated subtasks with efficient execution"
---
# /sc:spawn - Task Orchestration
## Purpose
Decompose complex requests into manageable subtasks and coordinate their execution.
## Usage
```
/sc:spawn [task] [--sequential|--parallel] [--validate]
```
## Arguments
- `task` - Complex task or project to orchestrate
- `--sequential` - Execute tasks in dependency order (default)
- `--parallel` - Execute independent tasks concurrently
- `--validate` - Enable quality checkpoints between tasks
## Execution
1. Parse request and create hierarchical task breakdown
2. Map dependencies between subtasks
3. Choose optimal execution strategy (sequential/parallel)
4. Execute subtasks with progress monitoring
5. Integrate results and validate completion
## Claude Code Integration
- Uses TodoWrite for task breakdown and tracking
- Leverages file operations for coordinated changes
- Applies efficient batching for related operations
- Maintains clear dependency management

157
.claude/commands/sc/task.md Normal file
View File

@ -0,0 +1,157 @@
---
allowed-tools: [Read, Glob, Grep, TodoWrite, Task, mcp__sequential-thinking__sequentialthinking]
description: "Execute complex tasks with intelligent workflow management and cross-session persistence"
wave-enabled: true
complexity-threshold: 0.7
performance-profile: complex
personas: [architect, analyzer, project-manager]
mcp-servers: [sequential, context7]
---
# /sc:task - Enhanced Task Management
## Purpose
Execute complex tasks with intelligent workflow management, cross-session persistence, hierarchical task organization, and advanced orchestration capabilities.
## Usage
```
/sc:task [action] [target] [--strategy systematic|agile|enterprise] [--persist] [--hierarchy] [--delegate]
```
## Actions
- `create` - Create new project-level task hierarchy
- `execute` - Execute task with intelligent orchestration
- `status` - View task status across sessions
- `analytics` - Task performance and analytics dashboard
- `optimize` - Optimize task execution strategies
- `delegate` - Delegate tasks across multiple agents
- `validate` - Validate task completion with evidence
## Arguments
- `target` - Task description, project scope, or existing task ID
- `--strategy` - Execution strategy (systematic, agile, enterprise)
- `--persist` - Enable cross-session task persistence
- `--hierarchy` - Create hierarchical task breakdown
- `--delegate` - Enable multi-agent task delegation
- `--wave-mode` - Enable wave-based execution
- `--validate` - Enforce quality gates and validation
- `--mcp-routing` - Enable intelligent MCP server routing
## Execution Modes
### Systematic Strategy
1. **Discovery Phase**: Comprehensive project analysis and scope definition
2. **Planning Phase**: Hierarchical task breakdown with dependency mapping
3. **Execution Phase**: Sequential execution with validation gates
4. **Validation Phase**: Evidence collection and quality assurance
5. **Optimization Phase**: Performance analysis and improvement recommendations
### Agile Strategy
1. **Sprint Planning**: Priority-based task organization
2. **Iterative Execution**: Short cycles with continuous feedback
3. **Adaptive Planning**: Dynamic task adjustment based on outcomes
4. **Continuous Integration**: Real-time validation and testing
5. **Retrospective Analysis**: Learning and process improvement
### Enterprise Strategy
1. **Stakeholder Analysis**: Multi-domain impact assessment
2. **Resource Allocation**: Optimal resource distribution across tasks
3. **Risk Management**: Comprehensive risk assessment and mitigation
4. **Compliance Validation**: Regulatory and policy compliance checks
5. **Governance Reporting**: Detailed progress and compliance reporting
## Advanced Features
### Task Hierarchy Management
- **Epic Level**: Large-scale project objectives (weeks to months)
- **Story Level**: Feature-specific implementations (days to weeks)
- **Task Level**: Specific actionable items (hours to days)
- **Subtask Level**: Granular implementation steps (minutes to hours)
### Intelligent Task Orchestration
- **Dependency Resolution**: Automatic dependency detection and sequencing
- **Parallel Execution**: Independent task parallelization
- **Resource Optimization**: Intelligent resource allocation and scheduling
- **Context Sharing**: Cross-task context and knowledge sharing
### Cross-Session Persistence
- **Task State Management**: Persistent task states across sessions
- **Context Continuity**: Preserved context and progress tracking
- **Historical Analytics**: Task execution history and learning
- **Recovery Mechanisms**: Automatic recovery from interruptions
### Quality Gates and Validation
- **Evidence Collection**: Systematic evidence gathering during execution
- **Validation Criteria**: Customizable completion criteria
- **Quality Metrics**: Comprehensive quality assessment
- **Compliance Checks**: Automated compliance validation
## Integration Points
### Wave System Integration
- **Wave Coordination**: Multi-wave task execution strategies
- **Context Accumulation**: Progressive context building across waves
- **Performance Monitoring**: Real-time performance tracking and optimization
- **Error Recovery**: Graceful error handling and recovery mechanisms
### MCP Server Coordination
- **Context7**: Framework patterns and library documentation
- **Sequential**: Complex analysis and multi-step reasoning
- **Magic**: UI component generation and design systems
- **Playwright**: End-to-end testing and performance validation
### Persona Integration
- **Architect**: System design and architectural decisions
- **Analyzer**: Code analysis and quality assessment
- **Project Manager**: Resource allocation and progress tracking
- **Domain Experts**: Specialized expertise for specific task types
## Performance Optimization
### Execution Efficiency
- **Batch Operations**: Grouped execution for related tasks
- **Parallel Processing**: Independent task parallelization
- **Context Caching**: Reusable context and analysis results
- **Resource Pooling**: Shared resource utilization
### Intelligence Features
- **Predictive Planning**: AI-driven task estimation and planning
- **Adaptive Execution**: Dynamic strategy adjustment based on progress
- **Learning Systems**: Continuous improvement from execution patterns
- **Optimization Recommendations**: Data-driven improvement suggestions
## Usage Examples
### Create Project-Level Task Hierarchy
```
/sc:task create "Implement user authentication system" --hierarchy --persist --strategy systematic
```
### Execute with Multi-Agent Delegation
```
/sc:task execute AUTH-001 --delegate --wave-mode --validate
```
### Analytics and Optimization
```
/sc:task analytics --project AUTH --optimization-recommendations
```
### Cross-Session Task Management
```
/sc:task status --all-sessions --detailed-breakdown
```
## Claude Code Integration
- **TodoWrite Integration**: Seamless session-level task coordination
- **Wave System**: Advanced multi-stage execution orchestration
- **Hook System**: Real-time task monitoring and optimization
- **MCP Coordination**: Intelligent server routing and resource utilization
- **Performance Monitoring**: Sub-100ms execution targets with comprehensive metrics
## Success Criteria
- **Task Completion Rate**: >95% successful task completion
- **Performance Targets**: <100ms hook execution, <5s task creation
- **Quality Metrics**: >90% validation success rate
- **Cross-Session Continuity**: 100% task state preservation
- **Intelligence Effectiveness**: >80% accurate predictive planning

View File

@ -0,0 +1,34 @@
---
allowed-tools: [Read, Bash, Glob, TodoWrite, Edit, Write]
description: "Execute tests, generate test reports, and maintain test coverage"
---
# /sc:test - Testing and Quality Assurance
## Purpose
Execute tests, generate comprehensive test reports, and maintain test coverage standards.
## Usage
```
/sc:test [target] [--type unit|integration|e2e|all] [--coverage] [--watch]
```
## Arguments
- `target` - Specific tests, files, or entire test suite
- `--type` - Test type (unit, integration, e2e, all)
- `--coverage` - Generate coverage reports
- `--watch` - Run tests in watch mode
- `--fix` - Automatically fix failing tests when possible
## Execution
1. Discover and categorize available tests
2. Execute tests with appropriate configuration
3. Monitor test results and collect metrics
4. Generate comprehensive test reports
5. Provide recommendations for test improvements
## Claude Code Integration
- Uses Bash for test execution and monitoring
- Leverages Glob for test discovery
- Applies TodoWrite for test result tracking
- Maintains structured test reporting and coverage analysis

View File

@ -0,0 +1,33 @@
---
allowed-tools: [Read, Grep, Glob, Bash, TodoWrite]
description: "Diagnose and resolve issues in code, builds, or system behavior"
---
# /sc:troubleshoot - Issue Diagnosis and Resolution
## Purpose
Systematically diagnose and resolve issues in code, builds, deployments, or system behavior.
## Usage
```
/sc:troubleshoot [issue] [--type bug|build|performance|deployment] [--trace]
```
## Arguments
- `issue` - Description of the problem or error message
- `--type` - Issue category (bug, build, performance, deployment)
- `--trace` - Enable detailed tracing and logging
- `--fix` - Automatically apply fixes when safe
## Execution
1. Analyze issue description and gather initial context
2. Identify potential root causes and investigation paths
3. Execute systematic debugging and diagnosis
4. Propose and validate solution approaches
5. Apply fixes and verify resolution
## Claude Code Integration
- Uses Read for error log analysis
- Leverages Bash for runtime diagnostics
- Applies Grep for pattern-based issue detection
- Maintains structured troubleshooting documentation

View File

@ -0,0 +1,303 @@
---
allowed-tools: [Read, Write, Edit, Glob, Grep, TodoWrite, Task, mcp__sequential-thinking__sequentialthinking, mcp__context7__context7]
description: "Generate structured implementation workflows from PRDs and feature requirements with expert guidance"
wave-enabled: true
complexity-threshold: 0.6
performance-profile: complex
personas: [architect, analyzer, frontend, backend, security, devops, project-manager]
mcp-servers: [sequential, context7, magic]
---
# /sc:workflow - Implementation Workflow Generator
## Purpose
Analyze Product Requirements Documents (PRDs) and feature specifications to generate comprehensive, step-by-step implementation workflows with expert guidance, dependency mapping, and automated task orchestration.
## Usage
```
/sc:workflow [prd-file|feature-description] [--persona expert] [--c7] [--sequential] [--strategy systematic|agile|mvp] [--output roadmap|tasks|detailed]
```
## Arguments
- `prd-file|feature-description` - Path to PRD file or direct feature description
- `--persona` - Force specific expert persona (architect, frontend, backend, security, devops, etc.)
- `--strategy` - Workflow strategy (systematic, agile, mvp)
- `--output` - Output format (roadmap, tasks, detailed)
- `--estimate` - Include time and complexity estimates
- `--dependencies` - Map external dependencies and integrations
- `--risks` - Include risk assessment and mitigation strategies
- `--parallel` - Identify parallelizable work streams
- `--milestones` - Create milestone-based project phases
## MCP Integration Flags
- `--c7` / `--context7` - Enable Context7 for framework patterns and best practices
- `--sequential` - Enable Sequential thinking for complex multi-step analysis
- `--magic` - Enable Magic for UI component workflow planning
- `--all-mcp` - Enable all MCP servers for comprehensive workflow generation
## Workflow Strategies
### Systematic Strategy (Default)
1. **Requirements Analysis** - Deep dive into PRD structure and acceptance criteria
2. **Architecture Planning** - System design and component architecture
3. **Dependency Mapping** - Identify all internal and external dependencies
4. **Implementation Phases** - Sequential phases with clear deliverables
5. **Testing Strategy** - Comprehensive testing approach at each phase
6. **Deployment Planning** - Production rollout and monitoring strategy
### Agile Strategy
1. **Epic Breakdown** - Convert PRD into user stories and epics
2. **Sprint Planning** - Organize work into iterative sprints
3. **MVP Definition** - Identify minimum viable product scope
4. **Iterative Development** - Plan for continuous delivery and feedback
5. **Stakeholder Engagement** - Regular review and adjustment cycles
6. **Retrospective Planning** - Built-in improvement and learning cycles
### MVP Strategy
1. **Core Feature Identification** - Strip down to essential functionality
2. **Rapid Prototyping** - Focus on quick validation and feedback
3. **Technical Debt Planning** - Identify shortcuts and future improvements
4. **Validation Metrics** - Define success criteria and measurement
5. **Scaling Roadmap** - Plan for post-MVP feature expansion
6. **User Feedback Integration** - Structured approach to user input
## Expert Persona Auto-Activation
### Frontend Workflow (`--persona frontend` or auto-detected)
- **UI/UX Analysis** - Design system integration and component planning
- **State Management** - Data flow and state architecture
- **Performance Optimization** - Bundle optimization and lazy loading
- **Accessibility Compliance** - WCAG guidelines and inclusive design
- **Browser Compatibility** - Cross-browser testing strategy
- **Mobile Responsiveness** - Responsive design implementation plan
### Backend Workflow (`--persona backend` or auto-detected)
- **API Design** - RESTful/GraphQL endpoint planning
- **Database Schema** - Data modeling and migration strategy
- **Security Implementation** - Authentication, authorization, and data protection
- **Performance Scaling** - Caching, optimization, and load handling
- **Service Integration** - Third-party APIs and microservices
- **Monitoring & Logging** - Observability and debugging infrastructure
### Architecture Workflow (`--persona architect` or auto-detected)
- **System Design** - High-level architecture and service boundaries
- **Technology Stack** - Framework and tool selection rationale
- **Scalability Planning** - Growth considerations and bottleneck prevention
- **Security Architecture** - Comprehensive security strategy
- **Integration Patterns** - Service communication and data flow
- **DevOps Strategy** - CI/CD pipeline and infrastructure as code
### Security Workflow (`--persona security` or auto-detected)
- **Threat Modeling** - Security risk assessment and attack vectors
- **Data Protection** - Encryption, privacy, and compliance requirements
- **Authentication Strategy** - User identity and access management
- **Security Testing** - Penetration testing and vulnerability assessment
- **Compliance Validation** - Regulatory requirements (GDPR, HIPAA, etc.)
- **Incident Response** - Security monitoring and breach protocols
### DevOps Workflow (`--persona devops` or auto-detected)
- **Infrastructure Planning** - Cloud architecture and resource allocation
- **CI/CD Pipeline** - Automated testing, building, and deployment
- **Environment Management** - Development, staging, and production environments
- **Monitoring Strategy** - Application and infrastructure monitoring
- **Backup & Recovery** - Data protection and disaster recovery planning
- **Performance Monitoring** - APM tools and performance optimization
## Output Formats
### Roadmap Format (`--output roadmap`)
```
# Feature Implementation Roadmap
## Phase 1: Foundation (Week 1-2)
- [ ] Architecture design and technology selection
- [ ] Database schema design and setup
- [ ] Basic project structure and CI/CD pipeline
## Phase 2: Core Implementation (Week 3-6)
- [ ] API development and authentication
- [ ] Frontend components and user interface
- [ ] Integration testing and security validation
## Phase 3: Enhancement & Launch (Week 7-8)
- [ ] Performance optimization and load testing
- [ ] User acceptance testing and bug fixes
- [ ] Production deployment and monitoring setup
```
### Tasks Format (`--output tasks`)
```
# Implementation Tasks
## Epic: User Authentication System
### Story: User Registration
- [ ] Design registration form UI components
- [ ] Implement backend registration API
- [ ] Add email verification workflow
- [ ] Create user onboarding flow
### Story: User Login
- [ ] Design login interface
- [ ] Implement JWT authentication
- [ ] Add password reset functionality
- [ ] Set up session management
```
### Detailed Format (`--output detailed`)
```
# Detailed Implementation Workflow
## Task: Implement User Registration API
**Persona**: Backend Developer
**Estimated Time**: 8 hours
**Dependencies**: Database schema, authentication service
**MCP Context**: Express.js patterns, security best practices
### Implementation Steps:
1. **Setup API endpoint** (1 hour)
- Create POST /api/register route
- Add input validation middleware
2. **Database integration** (2 hours)
- Implement user model
- Add password hashing
3. **Security measures** (3 hours)
- Rate limiting implementation
- Input sanitization
- SQL injection prevention
4. **Testing** (2 hours)
- Unit tests for registration logic
- Integration tests for API endpoint
### Acceptance Criteria:
- [ ] User can register with email and password
- [ ] Passwords are properly hashed
- [ ] Email validation is enforced
- [ ] Rate limiting prevents abuse
```
## Advanced Features
### Dependency Analysis
- **Internal Dependencies** - Identify coupling between components and features
- **External Dependencies** - Map third-party services and APIs
- **Technical Dependencies** - Framework versions, database requirements
- **Team Dependencies** - Cross-team coordination requirements
- **Infrastructure Dependencies** - Cloud services, deployment requirements
### Risk Assessment & Mitigation
- **Technical Risks** - Complexity, performance, and scalability concerns
- **Timeline Risks** - Dependency bottlenecks and resource constraints
- **Security Risks** - Data protection and compliance vulnerabilities
- **Business Risks** - Market changes and requirement evolution
- **Mitigation Strategies** - Fallback plans and alternative approaches
### Parallel Work Stream Identification
- **Independent Components** - Features that can be developed simultaneously
- **Shared Dependencies** - Common components requiring coordination
- **Critical Path Analysis** - Bottlenecks that block other work
- **Resource Allocation** - Team capacity and skill distribution
- **Communication Protocols** - Coordination between parallel streams
## Integration with SuperClaude Ecosystem
### TodoWrite Integration
- Automatically creates session tasks for immediate next steps
- Provides progress tracking throughout workflow execution
- Links workflow phases to actionable development tasks
### Task Command Integration
- Converts workflow into hierarchical project tasks (`/sc:task`)
- Enables cross-session persistence and progress tracking
- Supports complex orchestration with `/sc:spawn`
### Implementation Command Integration
- Seamlessly connects to `/sc:implement` for feature development
- Provides context-aware implementation guidance
- Auto-activates appropriate personas for each workflow phase
### Analysis Command Integration
- Leverages `/sc:analyze` for codebase assessment
- Integrates existing code patterns into workflow planning
- Identifies refactoring opportunities and technical debt
## Usage Examples
### Generate Workflow from PRD File
```
/sc:workflow docs/feature-100-prd.md --strategy systematic --c7 --sequential --estimate
```
### Create Frontend-Focused Workflow
```
/sc:workflow "User dashboard with real-time analytics" --persona frontend --magic --output detailed
```
### MVP Planning with Risk Assessment
```
/sc:workflow user-authentication-system --strategy mvp --risks --parallel --milestones
```
### Backend API Workflow with Dependencies
```
/sc:workflow payment-processing-api --persona backend --dependencies --c7 --output tasks
```
### Full-Stack Feature Workflow
```
/sc:workflow social-media-integration --all-mcp --sequential --parallel --estimate --output roadmap
```
## Quality Gates and Validation
### Workflow Completeness Check
- **Requirements Coverage** - Ensure all PRD requirements are addressed
- **Acceptance Criteria** - Validate testable success criteria
- **Technical Feasibility** - Assess implementation complexity and risks
- **Resource Alignment** - Match workflow to team capabilities and timeline
### Best Practices Validation
- **Architecture Patterns** - Ensure adherence to established patterns
- **Security Standards** - Validate security considerations at each phase
- **Performance Requirements** - Include performance targets and monitoring
- **Maintainability** - Plan for long-term code maintenance and updates
### Stakeholder Alignment
- **Business Requirements** - Ensure business value is clearly defined
- **Technical Requirements** - Validate technical specifications and constraints
- **Timeline Expectations** - Realistic estimation and milestone planning
- **Success Metrics** - Define measurable outcomes and KPIs
## Performance Optimization
### Workflow Generation Speed
- **PRD Parsing** - Efficient document analysis and requirement extraction
- **Pattern Recognition** - Rapid identification of common implementation patterns
- **Template Application** - Reusable workflow templates for common scenarios
- **Incremental Generation** - Progressive workflow refinement and optimization
### Context Management
- **Memory Efficiency** - Optimal context usage for large PRDs
- **Caching Strategy** - Reuse analysis results across similar workflows
- **Progressive Loading** - Load workflow details on-demand
- **Compression** - Efficient storage and retrieval of workflow data
## Success Metrics
### Workflow Quality
- **Implementation Success Rate** - >90% successful feature completion following workflows
- **Timeline Accuracy** - <20% variance from estimated timelines
- **Requirement Coverage** - 100% PRD requirement mapping to workflow tasks
- **Stakeholder Satisfaction** - >85% satisfaction with workflow clarity and completeness
### Performance Targets
- **Workflow Generation** - <30 seconds for standard PRDs
- **Dependency Analysis** - <60 seconds for complex systems
- **Risk Assessment** - <45 seconds for comprehensive evaluation
- **Context Integration** - <10 seconds for MCP server coordination
## Claude Code Integration
- **Multi-Tool Orchestration** - Coordinates Read, Write, Edit, Glob, Grep for comprehensive analysis
- **Progressive Task Creation** - Uses TodoWrite for immediate next steps and Task for long-term planning
- **MCP Server Coordination** - Intelligent routing to Context7, Sequential, and Magic based on workflow needs
- **Cross-Command Integration** - Seamless handoff to implement, analyze, design, and other SuperClaude commands
- **Evidence-Based Planning** - Maintains audit trail of decisions and rationale throughout workflow generation

View File

@ -0,0 +1,32 @@
Title: Create Snippet Prompt
Description: Generates a snippet template based on provided example code. Template contains instructions and example code. Provide more examples for coverage if needed. Don't include obvious steps you already know like imports.
Body:
### Instructions
Title: ${1:Create ${2:Component}}
Description: Generates a template for ${3:a ${2}}
Rules:
- ${4:Add relevant rules here}
- Keep rules concise and specific to the snippet
- Include any critical requirements or conventions
- Add validation rules if applicable
Body:
${5:$TM_SELECTED_TEXT}
### Example
Title: ${1}
Description: ${3}
Rules:
- ${4}
- Example rule 2
- Example rule 3
Body:
${5}

View File

@ -0,0 +1,59 @@
---
allowed-tools: mcp__taskmaster-ai__add_task, TodoWrite
description: Add tasks interactively with clarifying questions
---
# Add Tasks Interactively
## Context
- **User Request:** $ARGUMENTS
- **Current Tag:** !`jq -r '.currentTag // "master"' .taskmaster/state.json 2>/dev/null || echo "master"`
## Goal
Create well-defined tasks by asking clarifying questions about the feature requirements.
## Process
1. **Analyze Feature Request:** Think deeply about what tasks might be needed.
2. **Ask Clarifying Questions:**
- Ask 4-6 targeted questions based on the feature
- Provide lettered/numbered options for easy response
- Focus on understanding scope and breakdown
3. **Generate Tasks:**
- Create tasks based on answers
- Add to current tag context
## Clarifying Questions Framework
Adapt questions based on the specific feature request provided above. Consider these areas:
- **Scope:** "How big is this feature?"
- **Components:** "What are the main parts that need to be built?"
- **Dependencies:** "Does this depend on any existing tasks or features?"
- **Priority:** "How urgent is this feature?"
- **Testing:** "What kind of testing will this need?"
- **Phases:** "Should this be built all at once or in phases?"
## Final Instructions
1. **Think deeply** about the feature request
2. **Ask clarifying questions** with lettered/numbered options
3. **Generate tasks** based on the answers
4. **Add tasks** to the current tag context
## Example Usage
```
/add-interactive user notification system
```
This will:
1. Ask about notification types and delivery methods
2. Understand scope and dependencies
3. Create appropriate tasks based on answers

View File

@ -0,0 +1,65 @@
---
allowed-tools: mcp__taskmaster-ai__add_task, TodoWrite
description: Add one or more tasks to the current tag
---
# Add Tasks
- **User Request:** $ARGUMENTS
## Goal
Add new tasks to your current tag context. Can handle single tasks or multiple tasks at once.
## What You Can Say
### Single Task
```
/add implement user login with email and password
/add create API endpoint for user profile
```
### Multiple Tasks
```
/add
1. Setup database schema
2. Create user authentication
3. Add email verification
4. Implement password reset
```
### With Details
```
/add high priority: implement payment processing with Stripe
/add depends on 5: add payment confirmation emails
```
## How It Works
Based on your input (User Request), I'll:
1. **Parse your request** - Single task or numbered list
2. **Create tasks** in the current tag context
3. **Set dependencies** if you mention "depends on X"
4. **Set priority** if you mention high/medium/low
5. **Confirm** what was added
## Examples
### Quick Add
- `/add fix the login bug` → Creates task "fix the login bug"
### Batch Add
- `/add 1. Setup 2. Test 3. Deploy` → Creates 3 tasks
### With Context
- `/add urgent: fix security vulnerability in auth` → High priority task
- `/add after task 3: add unit tests` → Sets dependency
The command is smart enough to understand your intent from natural language.

View File

@ -0,0 +1,21 @@
---
allowed-tools: mcp__taskmaster-ai__set_task_status, mcp__taskmaster-ai__next_task, TodoWrite
description: Mark task as complete and optionally get next task
---
# Task Done
**User Request:** $ARGUMENTS
## Goal
Mark task(s) as complete. By default, also shows the next task.
## What You Can Say
```
/done 3 # Mark task 3 as done, show next
/done 3 stop # Mark done, don't show next
/done 5,7,9 # Mark multiple tasks done
/done # Mark current task done (if tracking)
```

View File

@ -0,0 +1,21 @@
---
allowed-tools: mcp__taskmaster-ai__expand_task, mcp__taskmaster-ai__expand_all
description: Break down tasks into subtasks
---
# Expand Tasks
**User Request:** $ARGUMENTS
## Goal
Break complex tasks into manageable subtasks.
## What You Can Say
```
/expand 5 # Break down task 5
/expand 5 security focus # With specific context
/expand all # Expand all pending tasks
/expand 5 research # Use research for better breakdown
```

View File

@ -0,0 +1,124 @@
Generate individual task files from tasks.json.
## Task File Generation
Creates separate markdown files for each task, perfect for AI agents or documentation.
## Execution
```bash
task-master generate
```
## What It Creates
For each task, generates a file like `task_001.txt`:
```
Task ID: 1
Title: Implement user authentication
Status: pending
Priority: high
Dependencies: []
Created: 2024-01-15
Complexity: 7
## Description
Create a secure user authentication system with login, logout, and session management.
## Details
- Use JWT tokens for session management
- Implement secure password hashing
- Add remember me functionality
- Include password reset flow
## Test Strategy
- Unit tests for auth functions
- Integration tests for login flow
- Security testing for vulnerabilities
- Performance tests for concurrent logins
## Subtasks
1.1 Setup authentication framework (pending)
1.2 Create login endpoints (pending)
1.3 Implement session management (pending)
1.4 Add password reset (pending)
```
## File Organization
Creates structure:
```
.taskmaster/
└── tasks/
├── task_001.txt
├── task_002.txt
├── task_003.txt
└── ...
```
## Smart Features
1. **Consistent Formatting**
- Standardized structure
- Clear sections
- AI-readable format
- Markdown compatible
1. **Contextual Information**
- Full task details
- Related task references
- Progress indicators
- Implementation notes
1. **Incremental Updates**
- Only regenerate changed tasks
- Preserve custom additions
- Track generation timestamp
- Version control friendly
## Use Cases
- **AI Context**: Provide task context to AI assistants
- **Documentation**: Standalone task documentation
- **Archival**: Task history preservation
- **Sharing**: Send specific tasks to team members
- **Review**: Easier task review process
## Generation Options
Based on arguments:
- Filter by status
- Include/exclude completed
- Custom templates
- Different formats
## Post-Generation
```
Task File Generation Complete
━━━━━━━━━━━━━━━━━━━━━━━━━━
Generated: 45 task files
Location: .taskmaster/tasks/
Total size: 156 KB
New files: 5
Updated files: 12
Unchanged: 28
Ready for:
- AI agent consumption
- Version control
- Team distribution
```
## Integration Benefits
- Git-trackable task history
- Easy task sharing
- AI tool compatibility
- Offline task access
- Backup redundancy

View File

@ -0,0 +1,21 @@
---
allowed-tools: mcp__taskmaster-ai__get_tasks
description: List all tasks in current tag
---
# List Tasks
**User Request:** $ARGUMENTS
## Goal
Show all tasks with their status, priority, and progress.
## What You Can Say
```
/list # All tasks
/list pending # Only pending tasks
/list done # Completed tasks
/list blocked # Blocked tasks
```

View File

@ -0,0 +1,21 @@
---
allowed-tools: mcp__taskmaster-ai__move_task
description: Reorganize task structure
---
# Move Tasks
**User Request:** $ARGUMENTS
## Goal
Move tasks to different positions or parents.
## What You Can Say
```
/move 5.2 to 7.3 # Move subtask to different parent
/move 5 to 25 # Move to new position
/move 10,11,12 to 16,17,18 # Move multiple tasks
/move 5.2 to 7 # Subtask becomes standalone
```

View File

@ -0,0 +1,18 @@
---
allowed-tools: mcp__taskmaster-ai__next_task, mcp__taskmaster-ai__get_task, TodoWrite, Read, Write, MultiEdit, Bash, Grep, Glob
description: Get next task and start implementing it immediately
---
# Next Task & Implement
**User Request:** $ARGUMENTS
## Goal
Find the next task and start implementing it right away (unless you say otherwise).
## How It Works
1. **Find next task** based on priorities and dependencies
2. **Show task details** briefly
3. **Start implementation** immediately

View File

@ -0,0 +1,32 @@
---
allowed-tools: mcp__taskmaster-ai__research, mcp__taskmaster-ai__update_task, mcp__taskmaster-ai__update_subtask
description: Research best practices and update tasks
---
# Research for Tasks
- **User Request:** $ARGUMENTS
## Goal
Research current best practices, or solutions to help with task implementation.
## What You Can Say
```
"Research JWT security best practices for task 5"
"What's the best way to handle file uploads in Next.js?"
"Research MongoDB vs PostgreSQL for our use case"
"Find React Query v5 migration guide"
```
## How It Works
I'll research what you asked about (User Request) and:
1. **Get current information** beyond my knowledge cutoff
2. **Include relevant context** from your project if needed
3. **Show you the findings**
4. **Update tasks** if you mentioned specific ones
Just tell me what you need to know and optionally which task it's for.

View File

@ -0,0 +1,20 @@
---
allowed-tools: mcp__taskmaster-ai__get_task
description: Show specific task details
---
# Show Task
**User Request:** $ARGUMENTS
## Goal
Display detailed information about specific task(s).
## What You Can Say
```
/show 5 # Show task 5
/show 5,7,9 # Show multiple tasks
/show 5.2 # Show subtask
```

View File

@ -0,0 +1,77 @@
# End-to-End Feature Implementation Guide
## Context
- When implementing new end-to-end features
- When planning feature development workflow
- When ensuring consistent architecture
## Requirements
- Follow the implementation steps in order
- Use the appropriate standards for each step
- Ensure consistency across all implementation layers
- Test each phase before moving to the next
## Implementation Steps
1. **Schema Definition** → Use rule @.cursor/rules/2101-schema-prisma.mdc
- Define Prisma schema with standard fields
- Add proper relations and indexes
- Use correct field types and constraints
- Follow naming conventions
2. **Router Implementation** → Use rule @.cursor/rules/2102-router.mdc
- Create protected tRPC router
- Add input validation with Zod
- Implement cursor-based pagination
- Handle security and responses
3. **React Query Integration** → Use rule @.cursor/rules/2103-trpc-react-query.mdc
- Set up queries with queryOptions
- Handle loading states
- Implement optimistic updates
- Manage cache invalidation
4. **CRUD Implementation** → Use rule @.cursor/rules/2105-crud.mdc
- Follow phased implementation approach
- Start with Create & Read operations
- Add Update & Delete operations
- Implement advanced features last
5. **Authentication** → Use rule @.cursor/rules/2106-auth.mdc
- Use protectedProcedure for routes
- Add session checks in components
- Implement auth guards
- Handle unauthorized states
## Examples
<example>
```typescript
// Implementation follows all steps in order
// 1. Schema defined in prisma/schema.prisma
// 2. Router implemented in src/server/api/routers/item.ts
// 3. React Query integration in src/components/ItemList.tsx
// 4. CRUD operations implemented in phases
// 5. Authentication checks in all appropriate places
```
Complete feature implementation following all steps in order
</example>
<example type="invalid">
```typescript
// Implementation skips steps or does them out of order
// Missing schema definition
// Incomplete router implementation
// Using old tRPC patterns instead of React Query
// Missing error handling
// Implementing all CRUD operations at once
// Missing authentication checks
```
Incomplete or out-of-order implementation missing critical steps
</example>

View File

@ -0,0 +1,59 @@
---
allowed-tools: mcp__taskmaster-ai__update, mcp__taskmaster-ai__update_task, mcp__taskmaster-ai__update_subtask, mcp__taskmaster-ai__get_tasks
description: Update tasks interactively with clarifying questions
---
# Update Tasks Interactively
## Context
- **User Request:** $ARGUMENTS
- **Current Tag:** !`jq -r '.currentTag // "master"' .taskmaster/state.json 2>/dev/null || echo "master"`
## Goal
Update tasks based on implementation changes by asking clarifying questions to ensure accurate updates.
## Process
1. **Analyze Change:** Think deeply about the implications of the change.
2. **Ask Clarifying Questions:**
- Ask 4-6 targeted questions about the change
- Provide lettered/numbered options for easy response
- Focus on understanding impact and scope
3. **Update Tasks:**
- Update affected tasks based on answers
- Show what was changed
## Clarifying Questions Framework
Adapt questions based on the change described above. Consider these areas:
- **Scope:** "Which tasks are affected by this change?"
- **Reason:** "Why was this change made?"
- **Impact:** "How does this affect the implementation approach?"
- **Dependencies:** "Does this change affect task dependencies?"
- **Testing:** "How should test strategies be updated?"
- **Documentation:** "What additional context should be added?"
## Final Instructions
1. **Think deeply** about the change and its implications
2. **Ask clarifying questions** with lettered/numbered options
3. **Update tasks** based on the answers
4. **Confirm** what was updated
## Example Usage
```
/project:task:update-interactive switching to microservices architecture
```
This will:
1. Ask about which components are affected
2. Understand the migration approach
3. Update relevant tasks with new architecture details

View File

@ -0,0 +1,30 @@
---
allowed-tools: mcp__taskmaster-ai__update, mcp__taskmaster-ai__update_task, mcp__taskmaster-ai__update_subtask, mcp__taskmaster-ai__get_tasks
description: Update tasks based on implementation changes
---
# Update Tasks
**User Request:** $ARGUMENTS
## Goal
Update tasks when implementation changes from the original plan. Just tell me what changed and I'll update the relevant tasks.
## What You Can Say
```
"We're using MongoDB instead of PostgreSQL"
"Update task 5 to use OAuth instead of JWT"
"All tasks from 10 onwards should use the new API structure"
"Task 7.2 needs a note about the Redis caching we added"
```
## How It Works
Based on what you tell me (User Request), I'll:
1. **Understand the change** from your description
2. **Find affected tasks** automatically or use the ones you specify
3. **Update them** with the new approach
4. **Confirm** what was updated