Agent Content Pipeline
by @larsderidder
Safe content workflow (drafts/reviewed/revised/approved/posted) with human-in-the-loop approval, plus CLI to list/move/review and post to LinkedIn/X. Use when setting up a content pipeline, drafting content, managing review threads, or posting approved content.
clawhub install agent-content-pipelineπ About This Skill
name: agent-content-pipeline description: Safe content workflow (drafts/reviewed/revised/approved/posted) with human-in-the-loop approval, plus CLI to list/move/review and post to LinkedIn/X. Use when setting up a content pipeline, drafting content, managing review threads, or posting approved content.
Content Pipeline Skill
Safe content automation with human-in-the-loop approval. Draft β Review β Approve β Post.
Setup
npm install -g agent-content-pipeline
content init . # Creates folders + global config (in current directory)
For cryptographic approval signatures (password-protected):
content init . --secure
This creates:
drafts/ β work in progress (one post per file)reviewed/ β human reviewed, awaiting your revisionrevised/ β you revised, ready for another lookapproved/ β human-approved, ready to postposted/ β archive after postingtemplates/ β review and customize before use.content-pipeline/threads/ β feedback thread logs (not posted)Your Permissions
β Can do:
drafts/revised/content list to see pending contentβ Cannot do:
approved/ (only the human can approve)status: approvedCreating Content
One post per file. Each suggestion or draft should be a single post, not a collection.
File naming: YYYY-MM-DD-
Use frontmatter:
---
platform: linkedin # linkedin | x | reddit (experimental)
title: Optional Title
status: draft
subreddit: programming # Required for Reddit
Your content here.
Tell the human: "Draft ready for review: content review "
The Review Loop
drafts/ β reviewed/ β revised/ β approved/ β posted/
β β
ββββββββββββ
more feedback
1. You write draft to drafts/
2. Human runs content review :
- With feedback β file moves to reviewed/, you get notified
- No feedback β human is asked "Approve?" β moves to approved/
3. If feedback: you revise and move to revised/
4. Human reviews from revised/:
- More feedback β back to reviewed/
- Approve β moves to approved/
5. Posting happens manually via content post
After Receiving Feedback
When you get review feedback:
1. Read the file from reviewed/
2. Apply the feedback
3. Move the file to revised/
4. Confirm what you changed
5. (Optional) Add a note: content thread
Platform Guidelines
X (Twitter)
auth_token and ct0 manuallyManual cookie steps:
1) Open x.com and log in
2) Open DevTools β Application/Storage β Cookies β https://x.com
3) Copy auth_token and ct0
Reddit (experimental)
subreddit: in frontmattertitle: (or first line if missing)Commands Reference
content list # Show drafts and approved
content review # Review: feedback OR approve
content mv # Move file to drafts/reviewed/revised/approved/posted
content edit # Open in editor ($EDITOR or code)
content post # Post (prompts for confirmation)
content post --dry-run # Preview without posting
content thread # Add a note to the feedback thread
Security Model
The security model separates drafting (AI) from approval/posting (human):
content review)Posting is handled manually via CLI β never by the agent directly.
Platform-specific security
| Platform | Auth Storage | Encrypted? | Password Required? | |----------|--------------|------------|-------------------| | LinkedIn | Browser profile | β Yes | β Yes | | X/Twitter | Firefox tokens | β Yes | β Yes |
Both platforms require password to post. Tokens are extracted from Firefox and encrypted locally.
βοΈ Configuration
npm install -g agent-content-pipeline
content init . # Creates folders + global config (in current directory)
For cryptographic approval signatures (password-protected):
content init . --secure
This creates:
drafts/ β work in progress (one post per file)reviewed/ β human reviewed, awaiting your revisionrevised/ β you revised, ready for another lookapproved/ β human-approved, ready to postposted/ β archive after postingtemplates/ β review and customize before use.content-pipeline/threads/ β feedback thread logs (not posted)