Skip to content

45ck/content-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

470 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Content Machine

License: MIT

content-machine banner

Content Machine is a local-first short-form video toolkit for coding agents.

It helps Claude Code, Codex CLI, and similar agents create TikTok videos, Instagram Reels, and YouTube Shorts by calling repo-local skills, flows, and deterministic media scripts.

The goal is simple: turn a topic or source video into a high-quality vertical short with inspectable artifacts at every step.

30-Second Version

  • What it is: a skill pack plus deterministic runtime for making short-form videos from coding-agent CLIs.
  • How it works: agents read skills/, pick or run flows/, then call JSON-stdio scripts only when execution is needed.
  • Why it matters: every stage writes files you can inspect: script, audio, timestamps, visuals, captions, render metadata, and review.

Content Machine is moving away from a monolithic "AI video agent" and toward repo-local skills and 45ck/prompt-language flows for building short-form video well. Runtime scripts still exist, but they are support surfaces behind the skill pack rather than the product story.

source or topic
  -> script / highlight selection
  -> audio + timestamps
  -> visuals
  -> captions + render
  -> quality-gated MP4

Featured Example

The main tracked showcase in this repo is the Reddit post over gameplay short. This is the default Reddit story mode: full-screen gameplay, a Reddit post card opener, then captions over gameplay with no random support clips.

Current showcase shape:

  • full-screen Subway Surfers-style gameplay from frame one
  • Reddit screenshot-style opener for the first 3s to 5s
  • captions continue directly over gameplay after the opener
  • no stock B-roll, no generated story clips, no split-screen top lane

Named bread-and-butter story archetypes:

  • reddit-post-over-gameplay: Reddit card over full-screen gameplay, then captions continue over gameplay.
  • reddit-story-split-screen: Reddit card opener, then top story footage plus bottom gameplay.
  • gameplay-confession-split: non-Reddit storytime with top support footage plus bottom gameplay.

Useful next links:

Reddit post over gameplay showcase

The README embeds only the flagship preview, but the fastest orientation path is three clips:

Need Watch Inspect Reproduce
Story/default gameplay format demo-9 provenance example
Low-attention OSS repo explainer demo-18 provenance example
Cleaner educational motion-card explainer demo-19 provenance example

Open the Showcase Gallery for every lane and the Demo Gallery for the generated demo manifest, preview status, source docs, and review caveats.

Full gallery status guide:

  • golden showcase: a promoted example with passing review gates
  • showcase candidate: real MP4 exists, but review or polish gaps remain
  • supporting showcase candidate: useful for onboarding or a secondary workflow
  • proving candidate: real MP4 exists, but it is not a default yet
  • experimental preview: directionally useful, below the public promotion bar
  • workflow: runnable technique walkthrough with explicit prerequisites

Current Focus

Content Machine is not trying to be a giant all-in-one video app. The active direction is a small, reliable local runtime that agents can use well:

  • pick strong short-form moments from long videos
  • approve highlights before expensive render work
  • generate scripts, audio, visuals, captions, and MP4s as separate files
  • compose lanes with optional visual treatments such as 3D/procedural gameplay backgrounds
  • keep every step inspectable and repeatable
  • use skills and flows as the main interface, with cm kept thin

Read the current build plan: Short-Form Roadmap.

Archetype rollout plan: Archetype Rollout.

User-facing archetype guide: Archetypes.

Fast visual map of what the repo can make: Showcase Gallery.

Preview asset index: Demo Gallery.

Review and promotion rules: Quality And Review.

Graphics-heavy demos can also ship docs/demo/*.layout.json sidecars. The demo audit uses 45ck/video-evaluator as the shared analyzer for declared element overlap, caption safe-zone collisions, and reusable video evidence. Content Machine keeps skills, archetype workflows, Remotion choices, caption style guidance, and publish policy local; the evaluator owns generic analysis that can be reused by other repos.

Tracked preview assets live in docs/demo/. The root README features the default Reddit/gameplay example as the first golden showcase. Supporting and experimental clips stay in the gallery until review evidence says they should move up.

Early development. Skills and flows are now the primary interface; runtime scripts are support surfaces behind those docs. The legacy CLI control plane has been moved into archive/legacy-cli/; the remaining cm shell is intentionally thin.

The primary user path is Agent Quickstart, with Archetypes, Showcase Gallery, skills/, flows/, and scripts/harness/ as deeper surfaces.

Start Here

Install Into An Existing Agent Project

Use this when you want Claude Code, Codex CLI, Cursor, or another repo-aware coding agent to use Content Machine inside your own project:

npm install --save-dev @45ck/content-machine

npx cm-install --target .content-machine --write-instructions
npx --no-install cm-agent list

The --write-instructions flag adds a managed root block that points agents at .content-machine/. See Agent Harness Install for Claude Code and other harness-specific variants.

Installed-pack commands use npx --no-install cm-agent <tool>. The repo-local node --import tsx scripts/harness/*.ts commands below are for contributors working inside this checkout.

Work From This Repo

npm install

Node.js 20.6+ is required.

First run order:

  1. Run doctor-report to check the environment.
  2. Use the no-key smoke path in content-machine-self-demo if you only want to prove the artifact chain.
  3. Run generate-short or showcase-content-machine when API keys and provider credentials are ready.

Primary Path: Coding-Agent CLIs

Content Machine assumes you already work inside Claude Code, Codex CLI, Cursor, or a similar agent harness. The human UX is to ask that harness for the outcome; the repo gives the harness skills, flows, and JSON-stdio tools it can read or execute.

Use these surfaces in this order:

  • skills/: decide what job the agent is doing
  • flows/: coordinate multi-step work
  • scripts/harness/: execute a repo-side JSON-stdio step when a skill or flow needs runtime support

If you are deciding where to start:

  • Start with Archetypes when choosing what kind of short to make.
  • Start with a skill when you want one capability.
  • Start with a flow when you want a full multi-step path.
  • Start with scripts/harness/ only when you need the exact repo-side executable.
  • For longform source videos, start with longform-to-shorts to select and approve clips, then use longform-clip-extract before render work.
  • Use Quality And Review before promoting a render as a showcase.

Discover what is shipped:

cat <<'JSON' | node --import tsx scripts/harness/skill-catalog.ts
{}
JSON

cat <<'JSON' | node --import tsx scripts/harness/flow-catalog.ts
{}
JSON

Current repo-side entrypoints are listed in scripts/harness/.

If you want these skills inside another project, use Agent Harness Install to materialize a local .content-machine/ pack and root instruction block.

Use skills/ or the skill-catalog harness script for the current shipped skill list.

Thin cm Shell

npm run cm -- --help

Only config, doctor, mcp, and render remain live under cm. Everything else now lives in archive/legacy-cli/.

See full installation guide for optional setup such as Whisper and ffmpeg.

Read Deeper

Use these when you need more context:

The primary user guide is now docs/user/AGENT-QUICKSTART.md. The archived CLI notes live under archive/legacy-cli/.

Visitor Map

Path Role
skills/ Agent-readable capability docs and examples
flows/ Executable prompt-language workflow manifests
scripts/harness/ JSON-stdio runtime entrypoints for repo checkouts
agent/ Installed-package runner and cm-install bin
docs/user/ Human-facing install, quickstart, gallery, and examples
docs/demo/ Generated demo manifest, provenance, previews, and caveats
src/harness/ Reusable logic behind JSON-stdio entrypoints
src/ TypeScript media, render, scoring, validation, and providers
assets/ Archetypes, fonts, templates, and lightweight README assets
fixtures/ Small runnable examples and test fixtures
experiments/ Tracked proving reports; generated outputs stay ignored
evals/ / bench/ Promptfoo configs, scoring evals, and benchmark material
registry/ Source YAML for generated glossary and repo facts
archive/ Frozen legacy surfaces and old demos

Run-scoped flows write under runs/<run-id>/ by default. Direct skills can also write to explicit output paths.

What You Can Do

  • Generate a short-form video from a topic.
  • Reverse-engineer a winning reference short from a local file or URL.
  • Generate only scripts, audio, visuals, or renders when needed.
  • Run structured diagnostics before expensive generation work.
  • Use the thin cm shell only for config, diagnostics, MCP, or render compatibility.

Pipeline overview

Documentation

  • Agent Quickstart — primary user path for Claude Code, Codex CLI, and similar tools
  • Archetypes — choose the right short-form lane and see what is proven
  • Quality And Review — review gates for captions, audio, motion, safe zones, and promotion
  • Creative Sources — source scouting rules and the 1000-site candidate catalog
  • skills/ — agent-facing skill docs
  • flows/45ck/prompt-language docs and executable flows
  • scripts/harness/ — optional repo-side runners and execution model
  • Direction — migration plan, cut lines, and archive policy
  • User Guide — skill-pack docs
  • Developer Docs — active architecture, registries, and legacy engineering docs
  • Reference — generated references, environment variables, glossary, and CLI details
  • Archive — frozen legacy control-plane code and notes

Contributing

See CONTRIBUTING.md.

git clone https://github.com/45ck/content-machine.git
cd content-machine
npm install
npm run quality

License

MIT