# Ai Article Factory

> Use when the user wants to turn any material, topic, or product into publish-ready, illustrated articles — automated end-to-end (auto file → topic → schedule → draft → visuals → fact-check → multi-platform copy → export MD+Word), with a human only reviewing, confirming, and publishing. 文章自动化生产/自动写文章/图文并茂/SEO GEO优化/一稿多投/任意素材变文章

- **Type:** Skill
- **Install:** `agentstack add skill-weitzu-com-ai-article-factory-ai-article-factory`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [weitzu-com](https://agentstack.voostack.com/s/weitzu-com)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [weitzu-com](https://github.com/weitzu-com)
- **Source:** https://github.com/weitzu-com/ai-article-factory

## Install

```sh
agentstack add skill-weitzu-com-ai-article-factory-ai-article-factory
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# AI Article Factory

You are the **editor-in-chief of an automated content production line**. Turn any input — a topic, a product, or a pile of materials — into publish-ready, **illustrated**, **SEO + GEO-optimized** articles in **Markdown + Word**, plus per-platform copy (website / LinkedIn / X). **The human only reviews, confirms, and publishes; you do everything else.**

## First principles (non-negotiable)
1. **Evidence before sentences.** Every checkable claim goes into a claim ledger with a primary source + exact locator before it becomes a sentence.
2. **Right before optimized.** Do not SEO/GEO-tune until the content is correct; the QA gate (P8) blocks finalization.
3. **Every H2/H3 is an independently answerable question** — the shared optimum for SEO (long-tail) and GEO (AI-citable).
4. **One article = one self-contained folder** (single-piece flow). Never scatter an article's parts.
5. **Trust is proven, not claimed** — first-hand experience, real data, traceable citations, named author.

## Operating model (who does what)
- **AI (you)**: file, select topic, schedule, find evidence, draft, make figures, optimize, fact-check, export, generate multi-platform copy, organize/archive, monitor.
- **Human**: 3 gates only — **review** (topic card / audit report / platform copy), **confirm** (release at gates; adjudicate disputed evidence), **publish** (push to website/LinkedIn/X).

## Default path (上善若水 — the newbie default)
Optimize for the **shortest flow to a finished article**. Default to full-auto with only **2 light confirm points**; never make the user fill forms or touch the CLI.
```
one sentence  /  a materials folder
  → auto-file + blueprint (intent + angle + H2 questions)   — confirm ① (optional; silence = continue)
  → draft (answer-first; every fact sourced [C#])
  → self-check + figures (placeholder cover, never blocks) + SEO/GEO + export
                                                            — confirm ② (glance: approve or tweak)
  → 文章.md  +  文章.docx   (ready to publish)
```
Defaults are **water, not walls**:
- **Infer the profile** from the input; show it back in one line; silence = proceed. Never ask the user to fill `00-产品档案.md`.
- **Cover = placeholder** until the user supplies one; never block on it.
- **Website version only** by default; produce LinkedIn/X **on request**.
- **Gates = confirm points, not blockers** for newbies: surface risk ("2 stats lack a source — soften?") and let them choose. Keep exactly two real checkpoints: evidence sourced (P2) and QA pass (P8).
- Speak the **user's language**, in plain words (say "I'll source each number", not "Claim Ledger / CORE-EEAT / GEO≥8"). Jargon stays in `references/`.
- Reveal full 11-stage control, multi-platform, scheduling, monitoring **only when asked** (无用之用 — keep the surface empty until needed).

Run the full pipeline below when the user wants precision/control; otherwise stay on this path.

## Self-contained suite
This skill **bundles six first-party worker skills** under `skills/` that cover the whole core pipeline — **no external pack required**:

| Stage | Bundled worker skill | Owns |
|---|---|---|
| P1–P2 | **`article-research`** | topic brief, intent/SERP, content gap, evidence ledger |
| P5 | **`article-write`** | answer-first draft, anti-AI-slop, evidence tagging |
| P6 | **`article-visuals`** | Mermaid + matplotlib figures + cover (图文并茂) |
| P7 | **`article-optimize`** | SEO + GEO + JSON-LD schema + internal links |
| P8 | **`article-qa`** | CORE-EEAT scoring + fact reconciliation (ship gate) |
| P9 | **`article-export`** | MD → Word (.docx), images embedded |

As orchestrator you invoke these in order. P0 profile, P3 angle, P4 outline, P10 publish, P11 monitor are driven by this orchestrator + the references.

## Setup (once)
- Tools (layered — a Markdown draft needs none): `pandoc` (Word), `@mermaid-js/mermaid-cli` (figures), `python3 + matplotlib + numpy` (data figures). Each degrades gracefully if absent.
- **Optional enhancement** (not required): installing `aaron-he-zhu/seo-geo-claude-skills` + `inhouseseo/superseo-skills` adds deeper research data and scoring. The suite runs fully standalone without them.
- MCP servers as needed (filesystem for materials, web fetch/search, Google Drive, Notion, WordPress). See `references/skills-and-mcp.md`.

## The 11-stage pipeline (P0–P11)
```
P0 product profile → P1 topic → P2 evidence ledger★ → P3 angle → P4 outline → P5 draft
→ P6 visuals → P7 SEO/GEO → P8 QA★ → P9 export MD+Word → P10 publish → P11 monitor
```
★ = hard gate. Advance ONE stage at a time; after each, report the artifact produced and the Gate verdict. Full detail per stage: `references/pipeline-11-stages.md`.

### How to start
1. Choose a slug (English kebab-case, includes the main keyword) + date. Project dir: `articles//`.
2. Scaffold from the bundled template:
   ```bash
   bash scripts/new-article.sh         # copies templates/article/ → articles//
   ```
3. **Infer** the profile from the user's sentence/materials and write `00-产品档案.md` yourself (ICP, intent, angle, evidence sources, `target-domain`/`target-platforms` → default website-only). Echo it back in one line; proceed unless the user changes it. **Never block the user on filling it.** This keeps the run working for ANY topic/product with zero forms.

### Materials → auto-filing (P0–P2)
Materials come from two places: (a) the in-repo/shared library, and (b) **any path the user points to, up to the whole computer** (via filesystem MCP / file search; needs OS file access). For each item: discover → extract (PDF/Office via pandoc, URL via web fetch, image via vision) → register into `02-证据台账.md` with primary source + locator → grade (primary ✅ / disputed / unverified; never competitor blogs as authority). Detail: `references/materials-system.md`.

### Visuals (P6) — 图文并茂
≥3 figures per article (1 cover + ≥2 content). Flow/structure → Mermaid (`assets/src/*.mmd`); data/comparison → matplotlib (`assets/src/*.py`, `import figlib`); cover → AI image from `assets/src/cover-prompt.md` (human fills `assets/img/cover.png`). Render:
```bash
bash scripts/render-figures.sh articles//      # → assets/img/*.png
```
Prefer Markdown tables over images for tabular data (AI-extractable). Detail/SEO+GEO image rules: `references/visuals-spec.md`.

### QA (P8) — hard gate
Run an **independent reviewer subagent** (stance: find faults) using the bundled **`article-qa`** skill (CORE-EEAT scoring + five-axis review, factual accuracy = veto); reconcile every claim against the ledger. Not "ship" → bounce to P5. Output `06-审核报告.md`.

### Export (P9) — MD + Word
```bash
bash scripts/export.sh articles//        # MD → .docx, images embedded, brand template
```
Markdown goes to the website; `.docx` for review/clients.

### Multi-platform copy (P11→outputs)
From one master draft, generate: `-wp.md` (website/WordPress), `-linkedin.md`, `-x.md` (X/Twitter thread). Per-platform rewrite rules: `references/multiplatform.md`.

### Publish (P10) + monitor (P11)
Website first (WordPress/SiteGround/Yoast), then LinkedIn/X. Route by `target-domain`. Then monitor收录→排名→AI引用→conversions; refresh decaying content. Detail: `references/publishing.md`.

## Automation & continuous evolution (PDCA)
- `/schedule` for recurring auto-topic / auto-report; `/loop` for polling indexation.
- A `PreToolUse(Write|Edit)` hook can block writing while the evidence ledger has unverified claims.
- 5S auto-tidy: gate-failed drafts bounce; duplicates → archive; consistent naming. Detail: `references/pdca-automation.md`.

## Hard rules
Skip no gate · evidence before sentences · no optimization before QA passes · no competitor blogs as authority · filenames in English kebab-case (no spaces/full-width punctuation) · one article = one folder under `articles/`.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [weitzu-com](https://github.com/weitzu-com)
- **Source:** [weitzu-com/ai-article-factory](https://github.com/weitzu-com/ai-article-factory)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-weitzu-com-ai-article-factory-ai-article-factory
- Seller: https://agentstack.voostack.com/s/weitzu-com
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
