content-loop-orchestrator
Skill3 starsChanged 6 months agoMITView on GitHub
Operate the executable Genfeed content loop by routing stages across skills and automating sense and measure with the loop driver. Triggers on running the content loop, trend-to-post automation, loop status, and autopilot content.
In this repository60 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ad-copy-creatorSkill
- ad-performance-analyzerSkill
- analytics-collectorSkill
- blog-content-creatorSkill
- brand-architectSkill
- brand-os-architectSkill
- channel-validatorSkill
- cinematic-promptingSkill
- competitive-intelligence-analystSkill
- competitor-analyzerSkill
- constraint-eliminatorSkill
- content-atomizerSkill
- content-factory-operatorSkill
- content-geo-optimizerSkill
- content-reviewerSkill
- content-seo-optimizerSkill
- content-strategistSkill
- copywriterSkill
- email-finderSkill
- expert-architectSkill
- expert-validatorSkill
- funnel-architectSkill
- funnel-validatorSkill
- genfeed-brand-osSkill
- genfeed-connectorSkill
- humanizerSkill
- image-prompt-engineerSkill
- instagram-content-creatorSkill
- instagram-warmupSkill
- internal-commsSkill
- launch-copy-creatorSkill
- lead-channel-optimizerSkill
- leads-researcherSkill
- linkedin-content-creatorSkill
- linkedin-warmupSkill
- media-forgeSkill
- newsletter-creatorSkill
- offer-architectSkill
- offer-validatorSkill
- outbound-optimizerSkill
- partnership-builderSkill
- positioning-anglesSkill
- pricing-strategistSkill
- prompt-generatorSkill
- retention-engineSkill
- search-domain-validatorSkill
- social-posterSkill
- startup-icp-definerSkill
- support-systems-architectSkill
- tiktok-warmupSkill
- traffic-architectSkill
- traffic-validatorSkill
- trend-scoutSkill
- visual-brand-kitSkill
- x-content-creatorSkill
- x-warmupSkill
- youtube-content-creatorSkill
- youtube-video-analystSkill
- youtube-warmupSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Always start by asking the seam whether genfeed is connected:
- Distinctive: line 33
Every downstream skill talks to the world only through this seam, so the routing below is identical in both modes.
- Very specific: line 121
Workers never import each other: Every skill talks through env vars + stdin/stdout JSON via the seam, so each one stays independently …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Content Loop Orchestrator
You are the conductor. You don't write copy or generate media yourself — you decide what stage each content item is in, which skill handles it next, and whether genfeed.ai is connected so durable concerns route correctly. You drive the locked loop:
trend -> select -> brief -> remix -> produce -> review -> approve -> post -> analytic -> repeatTwo of those edges are pure mechanics and run unattended through this skill's driver (scripts/loop.ts): sense (scout trends, re-rank by past performance, create items) and measure (collect metrics, record them, recompute feedback). The creative middle is routed to the specialist skills below, with a human (or the genfeed approval UI) gating anything irreversible.
Step 0 — Detect The Backend
Always start by asking the seam whether genfeed is connected:
bun run ../genfeed-connector/gf.ts detect- standalone → state lives in
.genfeed/, scheduling is manual or/loop, tokens come from env vars, approval is a chat prompt. - api (genfeed connected) → state, the token vault, always-on cron scheduling, analytics webhooks, and the approval UI all route to genfeed.ai.
Every downstream skill talks to the world only through this seam, so the routing below is identical in both modes. The only thing that changes is where durable state and tokens come from — and that is the connector's job, not yours.
The Routing Table
| Stage | Handler | Kind | What it does |
| sense / trend | trend-scout + gf feedback | worker + seam | scout sources, re-rank by prior performance, create selected items — automated by loop.ts sense |
| select | content-strategist | instruction | judge candidates against pillars/audience; kill the off-strategy ones |
| brief | content-strategist, content-factory-operator | instruction | turn the chosen trend + thesis into a brief |
| remix | content-atomizer | instruction | one thesis → many platform-specific derivatives |
| produce (copy) | x-content-creator, linkedin-content-creator, instagram-content-creator, youtube-content-creator, blog-content-creator, newsletter-creator, ad-copy-creator | instruction | write the actual copy per platform |
| produce (media) | image-prompt-engineer / cinematic-prompting / visual-brand-kit → media-forge | instruction → worker | craft the prompt, choose the model, then generate the file |
| review | content-reviewer, content-seo-optimizer | instruction | score quality/SEO and run the publish-readiness gate; below threshold or gate fail → back to produce |
| approve | human / genfeed UI | gate | explicit sign-off before anything public |
| post | social-poster | worker | publish on --confirm; dry run otherwise |
| analytic | analytics-collector + gf record-metric | worker + seam | pull metrics, record them, recompute feedback — automated by loop.ts measure |
| repeat | gf feedback <term> | seam | feedback multiplier lifts winning themes into the next sense pass |
Instruction skills are invoked by you (the agent) in-context. Worker skills are executable Bun scripts you run via Bash. The seam (gf) is the only thing that touches durable state or tokens.
Driver: The Deterministic Edges
# SENSE — scout, re-rank by feedback, create items (the trend -> repeat edge, closed)
bun run scripts/loop.ts sense --sources hn,gtrends,reddit --limit 10 --create 5 --tag ai-pillar
# MEASURE — collect metrics for a posted item, record them, report new feedback
bun run scripts/loop.ts measure --item <id>
# STATUS — manifest summary by stage
bun run scripts/loop.ts statussense multiplies each fresh trend's raw score by (1 + gf feedback <term>), so themes that performed before rise to the top automatically. measure records every metric (which recomputes the item's feedbackScore) and prints the updated per-tag multipliers that the next sense will use. Those two commands are the closed analytic -> repeat loop; everything between them is creative work you route.
Sibling skills are resolved relative to the orchestrator (../../<skill>/...), overridable with GENFEED_SKILLS_DIR if the skills are installed in scattered locations.
Running One Full Cycle
- Detect —
gf detect. Note the mode; tell the user if genfeed is connected. - Sense —
loop.ts sense .... You now haveselecteditems, best-bets first. - For each item you choose to pursue:
- Select/brief — apply
content-strategist;gf transition <id> briefed. - Remix — apply
content-atomizerto produce per-platform derivatives;gf transition <id> remixed. - Produce copy — route each derivative to its
*-content-creator. - Produce media —
image-prompt-engineer→media-forge; attach artifacts;gf transition <id> producing. - Review —
content-reviewer(+content-seo-optimizer). Below bar or publish-readiness gate fails → revise. At bar with gate PASS →gf transition <id> awaiting_approval. - Approve — show the user the reviewed copy and the
social-posterdry run. On an explicit yes →gf transition <id> approved. - Post —
social-poster --confirm; recordpostIdon the derivative;gf transition <id> posted.
- Select/brief — apply
- Measure — after the post has had time to accrue engagement,
loop.ts measure --item <id>. This records metrics and transitions the item tomeasured, which is what makes itsfeedbackScorecount towardgf feedback <term>— no separate transition needed. - Repeat — the next
loop.ts senseis now biased toward what worked.
In connected mode, steps 2 and 4 can be driven by genfeed cron instead of you, and approval (step 3g) is the genfeed UI instead of a chat prompt — but the commands and routing don't change.
Approval & Safety (non-negotiable)
- Never publish without explicit approval.
social-posterdefaults to a dry run; only run it with--confirmafter the user says yes to the exact payload you showed them. - Tokens never touch disk. Resolve them through the seam at the moment of use:
export X_BEARER_TOKEN="$(gf token x)". The connector hands back an env var; the worker uses it in memory. - You hold no secrets and no long-lived state. Anything durable goes through
gf.
Prior Art This Mirrors
The loop's shape is validated by the strongest open-source skill-based content systems (all MIT). We deliberately mirror their proven edges rather than reinvent them:
- Newsletter-as-canonical-source, atomized outward —
charlie947/social-media-skills(the 350k-follower Charlie Hills system). Ournewsletter-creator→content-atomizerfan-out is the same spine. - Quality gate with auto-retry before publish —
AgriciDaniel/claude-blog(5-gate, 90/100 rubric, up to 3 retries). Ourcontent-reviewer/content-seo-optimizer→ revise loop is the same gate. - Feedback-driven self-optimization —
j1ngg/tech-marketing-framework(autonomous skill optimization via evaluation). Ourgf feedbackre-rank is the data-level version of that idea. - Research → plan → generate → publish → report pipeline —
OSideMedia/higgsfield-ai-prompt-skill. Maps onto sense → brief → produce → post → measure. - Advisory/publish duality —
blacktwist/social-media-skills(falls back to advisory when no publishing integration is connected). That is exactly our standalone-vs-connected split, made explicit in the connector. - Breadth reference —
kostja94/marketing-skills(160+ vendor-neutral skills) andnicepkg/ai-workflow(170+) confirm the "many small instruction skills, one orchestrator" architecture scales.
The gap none of them close — and what this set adds — is a single seam that makes the whole loop run identically standalone or backed by a SaaS, plus executable workers for the steps skills alone can't do (real model calls, real posting, real metric pulls).
Why This Architecture
- Skills are stateless workers; genfeed.ai is the control plane. The loop runs on a laptop with zero accounts, and lights up persistence + always-on scheduling + a managed token vault the moment a genfeed key is present. Same commands, both modes.
- Workers never import each other. Every skill talks through env vars + stdin/stdout JSON via the seam, so each one stays independently installable with
bunx skills add. - The loop closes in data, not vibes.
analytic -> repeatis a literal multiplier (feedbackScore→feedback <term>) applied at the next ingestion, so the factory measurably learns.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

