Content factory

From huytieu/COG-second-brain · View interactive version

Content factory is an AI agent skill from the GitHub repository huytieu/COG-second-brain. 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

How to use this skill

Skill file

COG Content Factory Skill

Purpose

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.

When to Invoke

Prerequisites

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.

State Files (read FIRST, update LAST — this is the dedup backbone)

Volume Budget (across ALL runs of one night, hard caps)

| 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.

Phase 1 — SCOUT (every run)

  1. Web-search for last-24h announcements across the user's watchlist topics, plus anything already trending.
  2. Fetch the watchlist blogs/changelogs in sources.md.
  3. If a browser integration is available, skim the user's social feeds for engagement signals — raw engagement numbers are the best trend signal.
  4. Timebox scouting to ~20 minutes of work.

Phase 2 — TRIAGE (score, don't vibe)

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.

Phase 3 — PRODUCE (format ladder — decide by substance, not ambition)

Phase 4 — PUBLISH (safety gates)

  1. Environment gate: if the publishing surface is unavailable, or the user appears to be actively using the browser/machine — DO NOT publish. Write finished bundles to 04-projects/content-factory/out/<date>/ and let a later run (or the user) publish.
  2. Post-condition check (mandatory): after every publish, observe the artifact — screenshot the live post, curl the live URL — before recording it as published. Never report success from the publish call alone.
  3. Never engage in arguments, never quote-dunk, never reply to strangers. The factory only creates original posts on the user's own surfaces.
  4. Any screenshot must pass a credentials check (no account emails, tokens, or internal URLs visible).
  5. Never delete an already-engaged post; edit in place if a fix is needed.

Phase 5 — LEDGER + LOG (always, even for empty runs)

Voice Checklist (delete the draft if any fail)

The Loop (see /loop-engineering)

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.