-
Select candidate articles:
npm run select-topic -- --limit 10 --tag AI --year 2026
Omit filters when the user asks for the strongest current candidate.
-
Build generation context for one article:
npm run context -- --article-id <articleId> --platform xhs > work/context.json
Read work/context.json before writing the brief. It includes article excerpts, score reasons, market memory, and the required output contract.
-
Generate structured brief JSON with Codex:
- Return JSON only:
{ "briefs": [...] }.
- Produce exactly three variants unless the user requests otherwise:
calm, conflict, confidence.
- Preserve the source article's core judgment; do not invent data, results, citations, or revenue.
- Keep anxiety tied to a real pressure and include an action/confidence outlet.
- Use the schema in
references/brief-schema.md.
-
Save the Codex-generated brief:
npm run save-ai-brief -- --article-id <articleId> --platform xhs --file work/briefs.json --context-file work/context.json
Use the returned briefs[].id for image and rendering steps.
-
Generate or register a cover image:
-
Render the final card package:
npm run render-with-asset -- --brief-id <briefId> --image-asset-id <assetId> --platform xhs --style editorial
Use swiss only when the user wants a more restrained layout.
-
Build reusable content assets:
- Use the workbench API or UI to extract reusable atoms from articles and briefs.
- Atoms are judgments, hooks, reframes, actions, discussion prompts, and risk boundaries.
- Prefer atom reuse when the user asks for daily candidates or long-term content evolution.
-
Generate daily candidates:
- Use
POST /api/content-plan/generate for a bounded daily plan.
- Default shape is 1-3 candidates: main, reuse, experiment.
- Treat the output as a human-review queue, not an auto-publishing queue.
-
Learn from feedback:
- Feedback CSV/Excel should include
articleId or briefId when possible.
- Importing feedback updates strategy memory, content atom performance, and learning logs.
- Optimize for interaction quality, not raw clickbait.