Autonomous content pipeline - scout announcements in your field, triage by trend momentum and personal angle, produce posts/blogs/videos in your voice with ledger-based dedup, hard volume caps, and screenshot-verified publishing
npx skills add https://github.com/huytieu/COG-second-brain --skill content-factory
Act as the user's autonomous content creator: scout what just happened in their field, pick what is genuinely trending, and turn it into content in their voice — with zero duplicates, hard volume caps, and verification before anything counts as published. Designed to run unattended on a schedule (nightly) and to be safely re-runnable: an empty run is a valid run; a low-quality post is not.
/content-factory / "run the content factory"Reads the user's voice and beats from 00-inbox/MY-PROFILE.md and topics from 00-inbox/MY-INTERESTS.md. Publishing targets come from 00-inbox/MY-INTEGRATIONS.md — skip disabled channels silently.
04-projects/content-factory/ledger.md — everything ever covered/published (topic slug, source URL, formats, links, date). NEVER cover a topic or source URL already in the ledger unless there is genuinely NEW news (a follow-up release counts; rephrasing the same launch does not).04-projects/content-factory/tonight-<YYYY-MM-DD>.md — tonight's run log (create on first run of the night). Records what earlier runs scouted, parked, produced, and published, plus the remaining volume budget.04-projects/content-factory/sources.md — the watchlist. Add sources you find valuable; prune dead ones.| Channel | Max/night | Notes |
|---------|-----------|-------|
| Short social posts/threads | 2 | the volume channel; a thread counts as 1 |
| Blog post | 1 | only when substance justifies it |
| Short video | 1 | only if the idea is visual/demo-able |
| Long-form professional post | 1 | only for a strong professional angle |
| Long video / deep essay | 0 | never autonomous; propose in the run log |
Track the budget in the tonight file. Later runs inherit what is left. Adjust caps to taste — the invariant is that caps exist and are enforced across runs, not per run.
sources.md.Score each candidate 1-5 on:
Sum ≥11 → produce. 8-10 → park in the tonight file for a later run to re-score. <8 → ignore.
Dedup check before producing: topic slug + source URL against the ledger AND against the user's recent published posts (last ~20) if reachable.
04-projects/content-factory/out/<date>/ and let a later run (or the user) publish.ledger.md: | date | slug | beat | formats | source URL | published links |.tonight-<date>.md: scouted list, scores, parked items, budget left, what the next run should look at first.Each night is a scan-until-budget-dry loop across runs: the tonight file is the shared loop state, the ledger is the dedup verifier, the volume budget is the hard cap, and the voice checklist is the quality gate. Termination: budget exhausted, nothing scores ≥11, or the environment gate blocks publishing.
Take huytieu/cog-second-brain-content-factory from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.