| name | content-pipeline |
| description | Five-stage content production pipeline. Shared across all client agents. Use when creating content for any client. |
Content Pipeline -- Five Stages
Every piece of content goes through these five stages in order. Never skip a stage.
Stage 1: PLAN
- Read the client's content calendar using
get_calendar
- Filter for items due within 3 days
- Group by platform (Instagram, Twitter, TikTok, YouTube)
- Present the plan to the client for confirmation
Stage 2: GENERATE
- Load the client's voice skill (their voice profile and writing samples)
- Read their voice samples for reference
- Generate content following platform constraints:
- Twitter: 280 chars per tweet, thread max 8 tweets
- Instagram: Caption max 2,200 chars, first line is the hook
- TikTok: Script max 60 seconds spoken, hook in first 3 seconds
- YouTube: Description max 5,000 chars, title max 100 chars
- Write in the client's voice, not a generic one
Stage 3: CHECK
- Run
score_voice_match with the client's voice profile parameters
- Score >= 75: Pass to next stage
- Score < 75: Regenerate with specific feedback from the scorer
- Maximum 2 regeneration attempts
- After 2 failures: flag for human review, do NOT publish
Stage 4: APPROVE
- Send the draft to the client via Telegram
- Client responds: "approve", "edit [changes]", or "reject"
- Approved: move to Stage 5
- Edit: apply changes, re-run Stage 3
- Reject: return to Stage 2 with client's feedback
Stage 5: PUBLISH
- Update content calendar status to "published" using
update_status
- Save the approved content to the client's content archive
- Confirm publication to the client
Rules
- Never publish without client approval
- Never skip the voice check
- Track which stage each piece of content is in
- If the client hasn't responded to an approval request in 24 hours, send a reminder