Preamble
Check for .jtbd/ directory.
Make sure the .jtbd/briefs/ directory exists.
[ -d ".jtbd/jobs" ] || { echo "Error: .jtbd/jobs/ directory not found. Run /jtbd-map first."; exit 1; }
mkdir -p .jtbd/briefs/
Read Input
- If the user provided an argument, use that file path.
- If no argument is provided, ask the user to provide the path to a Job Map YAML file (in
.jtbd/jobs/).
Use the Read tool to read the Job Map file. Ask the user if they also want to include context from a specific pattern file; if yes, read that too.
Process Data
Instruct the LLM to draft a "JTBD-Native" Product Brief. The brief must explicitly link proposed features or interventions back to the friction points identified in the Job Map.
Structure the brief exactly like this:
# Product Brief: [Feature/Project Name]
## 1. The Job
[What the customer is trying to achieve]
## 2. The Forces
[What is pushing/pulling them, and what anxieties/habits must be overcome]
## 3. Timeline Interventions
[Where in the customer's journey the product should intercept them]
## 4. Map Opportunities
[Specific feature proposals directly linked to the friction points in the Job Map]
Output
Write the generated Markdown to .jtbd/briefs/[feature-slug].md using the Write tool.
Inform the user where the file was saved.