Execute end-to-end content generation pipeline from Linear stories to ready-to-post content
Automates the complete content pipeline from Linear stories to a single ready-to-post piece. It extracts themes, generates 25+ variations, scores them, applies critic review, and selects the best one. Use this when you need high-quality, framework-driven content without manually running each stage.
/plugin marketplace add rpiplewar/shipfaster/plugin install content-gen@rapid-shippingExecute the complete content generation workflow end-to-end: Extract stories from Linear → Generate variations → Score all → Critic review → Select best → Output ONE ready-to-post piece.
This command orchestrates all 5 stages of the content generation system:
/content-extract-stories)/content-generate-drafts for each theme)/content-score-all)/content-critic-review)/content-select-best)Expected Output: ONE piece in content-ready.md scoring 25+/30, ready for human approval and posting.
Expected Duration: < 3 minutes for 5 themes → 25 variations → 1 selected piece
Command: /content-extract-stories
Actions:
themes-memory.mdSuccess Criteria:
Failure Handling:
Stage Output: themes-memory.md with 5+ themes
Command: /content-generate-drafts {theme} for EACH theme
Actions:
content-drafts.mdSuccess Criteria:
Failure Handling:
Stage Output: content-drafts.md with 25 variations (5 themes × 5 variations)
Command: /content-score-all
Actions:
Success Criteria:
Failure Handling:
Stage Output: content-drafts.md with complete scores for all variations
Command: /content-critic-review
Actions:
Success Criteria:
Failure Handling:
Stage Output: content-drafts.md with critic verdicts and notes
Command: /content-select-best
Actions:
Success Criteria:
Failure Handling:
Stage Output: content-ready.md with ONE ready-to-post piece
START
↓
[Stage 1: Extract Stories]
├─ Linear MCP → POA-5 to POA-14
├─ Identify themes (min 5)
└─ Output: themes-memory.md
↓
[Stage 2: Generate Drafts]
├─ For each theme (5 themes):
│ ├─ Spawn 5 parallel sub-agents
│ ├─ Generate 5 variations (different bias combos)
│ └─ Total: 25 variations
└─ Output: content-drafts.md
↓
[Stage 3: Score All]
├─ Apply Gap Selling (0-10)
├─ Count Cognitive Biases
├─ Apply Decision Framework (0-10)
└─ Output: content-drafts.md with scores
↓
[Stage 4: Critic Review]
├─ Review 20+/30 content
├─ Provide improvement suggestions
├─ Assign PASS/FAIL verdicts
└─ Output: content-drafts.md with critic notes
↓
[Stage 5: Select Best]
├─ Rank PASS content
├─ Apply tie-breakers
├─ Validate selection
└─ Output: content-ready.md (ONE piece)
↓
[Human Approval Required]
├─ Review content-ready.md
├─ Post to Twitter/X
└─ Capture metrics after 48 hours
↓
END
Before running full pipeline, verify:
Infrastructure:
Content Readiness:
System Resources:
# Verify themes extracted
grep -c "## Theme:" /home/rpiplewar/fast_dot_ai/poasting/themes-memory.md
# Should be >= 5
# Verify variations generated
grep -c "### Variation" /home/rpiplewar/fast_dot_ai/poasting/content-drafts.md
# Should be >= 25 (5 themes × 5 variations)
# Verify scores added
grep -c "TOTAL:" /home/rpiplewar/fast_dot_ai/poasting/content-drafts.md
# Should match variation count
# Verify verdicts assigned
grep -c "Verdict: PASS\|FAIL" /home/rpiplewar/fast_dot_ai/poasting/content-drafts.md
# Should match variations with 15+/30 scores
# Verify single piece selected
grep -c "# Content Ready to Post" /home/rpiplewar/fast_dot_ai/poasting/content-ready.md
# Should be exactly 1
Stage 1 Failure (Story Extraction):
❌ Stage 1 Failed: Could not extract stories from Linear
Possible Causes:
- Linear MCP not configured
- LINEAR_API_KEY missing or invalid
- Network connectivity issues
- Tasks POA-5 to POA-14 not accessible
Recovery:
1. Check .env file for LINEAR_API_KEY
2. Verify Linear MCP installation: mcp__linear__list_issues test
3. Confirm network connectivity
4. Retry: /content-extract-stories
Pipeline STOPPED at Stage 1. Fix issues before retrying full pipeline.
Stage 2 Failure (Draft Generation):
❌ Stage 2 Failed: Insufficient variations generated
Possible Causes:
- Theme quality low (not enough content generation potential)
- Draft generator specs unclear
- Agent spawning failed
Recovery:
1. Review themes in themes-memory.md for clarity
2. Manually run: /content-generate-drafts {theme} for each theme
3. Verify draft-generator.md agent specs
4. Check for variation diversity (>70% different)
Pipeline STOPPED at Stage 2. Complete draft generation before continuing.
Stage 3 Failure (Automated Scoring):
❌ Stage 3 Failed: Scoring incomplete or inconsistent
Possible Causes:
- Framework docs inaccessible
- Scoring formulas incorrect
- Subscore calculation errors
Recovery:
1. Verify framework docs accessible (gap_selling.md, bias_checklist_munger.md, effective-decision-making-framework.md)
2. Review scorer.md agent specs
3. Manually run: /content-score-all
4. Compare sample scores vs manual evaluation
Pipeline STOPPED at Stage 3. Complete scoring before continuing.
Stage 4 Failure (Critic Review):
❌ Stage 4 Failed: No PASS content after critic review
Possible Causes:
- Content quality below 20/30 threshold
- Critic too harsh (scoring too low)
- Theme selection poor
Recovery:
1. Review content-drafts.md scores (check if consistently low)
2. If scores 15-19/30: Adjust scoring weights in scorer.md
3. If scores < 15/30: Regenerate content with stronger constraints
4. Consider revising themes for better content potential
Pipeline STOPPED at Stage 4. Fix quality issues before continuing.
Stage 5 Failure (Best Selection):
❌ Stage 5 Failed: No content available for selection
Possible Causes:
- No PASS content from Stage 4
- All content < 20/30 threshold
- Selection criteria too strict
Recovery:
1. Review Critic verdicts in content-drafts.md
2. If close to threshold (18-19/30): Consider relaxing to 18+/30 minimum
3. If far below threshold: Regenerate content from Stage 2
4. Review theme quality and bias targeting
Pipeline STOPPED at Stage 5. Fix quality issues or regenerate content.
If pipeline stopped at Stage X, resume from that stage:
# Resume from Stage 2 (Draft Generation)
/content-generate-drafts {theme} # For each remaining theme
# Resume from Stage 3 (Automated Scoring)
/content-score-all
# Resume from Stage 4 (Critic Review)
/content-critic-review
# Resume from Stage 5 (Best Selection)
/content-select-best
No need to re-run completed stages - pipeline is idempotent at each stage.
✅ Full Content Generation Pipeline Complete
⏱️ Execution Time: 2m 34s
📊 Pipeline Stats:
- Themes Extracted: 7
- Variations Generated: 35 (7 themes × 5 variations)
- Content Scored: 35/35
- PASS Content: 24/35 (68.6%)
- FAIL Content: 11/35 (31.4%)
🏆 Best Content Selected:
- Theme: First Money From Code
- Variation: Bold Statement
- Score: 28/30 (EXCELLENT)
- Ranking: #1 of 24 PASS pieces
📁 Output Files Updated:
✓ themes-memory.md (7 themes)
✓ content-drafts.md (35 variations with scores)
✓ content-ready.md (1 ready-to-post piece)
📋 Next Steps:
1. Review content-ready.md
2. Perform final quality check
3. Post to Twitter/X at optimal time (8:30 AM or 5:30 PM IST)
4. Capture metrics after 48 hours
5. Move to content-posted.md with metrics
🚀 Ready for human review and posting!
Target Benchmarks:
Quality Thresholds:
This command represents the complete automated content generation system. It requires:
After execution, human approval is required before posting. Performance tracking begins after posting to content-posted.md.
Regenerate Pipeline with Filters:
# Regenerate specific theme only
/content-generate-drafts "First Money From Code"
/content-score-all
/content-critic-review
/content-select-best
# Regenerate with stronger bias constraints
# (Modify draft-generator.md to require 5+ biases per variation)
/content-full-pipeline
# Test pipeline without Linear extraction (use existing themes)
# Skip Stage 1, start from Stage 2
Performance Optimization:
Before marking pipeline complete: