Research to WeChat
Use this skill as a research-first control plane. Do not duplicate downstream skill wording.
Core Rules
- Match the user's language.
- Ask one question at a time.
- Ask only when the answer changes source interpretation, structural frame, style fidelity, or draft publishing behavior.
- Keep Markdown as the canonical article asset until the HTML handoff.
- Save a draft only. Never publish live.
- Separate verified fact, working inference, and open question.
- Every major claim must be traceable to a source. Collect source URLs during research.
- Every article must end with a "## 参考链接" or "## References" section listing all sources.
- Apply the full normalization checklist to every article before refinement. Source artifacts, broken formatting, and LaTeX fragments must not survive into the final draft.
- Every inline image must pass a two-tier evaluation: first eliminate disqualifying defects, then verify content match to the surrounding text.
- Never pretend the workflow did interviews, long field research, team debate, or hands-on testing when it did not.
- Prefer visible disclosure of AI assistance and source scope. Refuse human-only framing that would misrepresent the process.
- Treat source capture as a runtime boundary: preserve title, author, description, body text, and image list before rewriting.
Operating Paths
Route the request into one of two paths:
Path A: research-first article
use for: topic, keyword, question, notes, transcript, subtitle file
goal: build the article from a research brief and evidence ledger
Path B: source-to-WeChat edition
use for: article text, markdown file, article URL, WeChat URL
goal: preserve the useful source core, then rebuild it for WeChat reading and distribution
Default routing:
- procedural or tool-teaching material ->
tutorial
- thesis, trend, strategy, critique, case material ->
deep-analysis
- multi-topic roundup ->
newsletter
Capability Aliases
Resolve capabilities through internal aliases, not vendor-style names:
source-ingest
markdown-polish
inline-visuals
cover-art
article-design
wechat-render
wechat-draft
multi-platform-distribute (loaded only when Phase 7 is triggered)
Use the current alias map in capability-map.md.
Accepted Inputs
- keyword, topic phrase, or question
- notes, outline, or raw material dump
- article text
- markdown file
- PDF paper, report, or whitepaper
- article URL
- WeChat article URL
- video URL
- full transcript
- subtitle file that can be expanded into a full transcript
PDF policy:
- when the source is a PDF paper or report, extract all figures, charts, tables, and diagrams as image assets
- save extracted figures to
imgs/source-fig-*.png with captions and page numbers recorded in source.md
- source figures carry higher credibility than AI-generated images and must be preferred in the final article
Video policy:
- a video source is valid only when the workflow can obtain the full spoken transcript
- first attempt transcript recovery from the page, captions, or subtitle assets
- if the page exposes only metadata, description, or chapter markers, do not start article generation
- if no full transcript is obtainable, ask for the transcript or subtitle file and wait
Output
Create one workspace per article:
research-to-wechat/YYYY-MM-DD-<slug>/
Required assets:
source.md
brief.md
research.md
article.md
article-formatted.md
article.html
manifest.json
imgs/cover.png
- inline illustration files referenced by the markdown body
Required frontmatter in final markdown:
title
author
description
digest
coverImage
styleMode
sourceType
structureFrame
disclosure
Required records outside the article:
brief.md
must capture: target reader, thesis, must-cover points, frame choice, and what cannot be dropped
research.md
must capture: verified facts, working inferences, open questions, and source notes
manifest.json
must capture: pathMode, styleMode, structureFrame, sourceType, confidence, draftStatus, and output paths
manifest.json.outputs.wechat must include: markdown, html, cover_image, title, author, digest, and images
optional platform fields (xiaohongshu, jike, xiaoyuzhou, moments) are added when Phase 8 runs
Script Directory
Determine this SKILL.md directory as SKILL_DIR, then use ${SKILL_DIR}/scripts/<name>.
| Script |
Purpose |
scripts/fetch_wechat_article.py |
WeChat article fetch (Python, simulates WeChat mobile UA) |
scripts/install-openclaw.sh |
OpenClaw skill installer (copies to ~/.openclaw/skills/) |
Provenance Contract
The workflow must keep a compact evidence ledger throughout the run:
- what came from the user
- what came from fetched source material
- what was added as supporting context
- what remains uncertain
Default article disclosure should state:
- what AI did
- what the human provided or reviewed, if known
- what the evidence base was
- what confidence limit remains, if the source packet is thin
Delivery Ladder
Resolve WeChat draft delivery in this order:
- API draft when credentials and converter tooling are ready
- automated browser draft when the worker can drive the editor safely
- assisted browser draft when login or selectors need user help
- manual handoff with exact file paths when automation fails
Style Resolution
Resolve style in this order:
- explicit user instruction
- preset mode
- author mode
- custom brief
Use the full style system in style-engine.md.
Execution
Run the article through these phases:
- intake and route selection
- source packet, brief, and strategic clarification
- research architecture with structured question lattice (32+ questions across 4 cognitive layers)
- research merge and evidence ledger
- frame-routed master draft with full normalization checklist and writing framework self-check
- refinement, image strategy, visual evaluation, and design selection
- WeChat HTML rendering, draft upload, and manifest
- (optional) multi-platform content generation and distribution
Phase 8 only executes when the user explicitly requests it (e.g., "多平台分发", "转小红书", "转即刻", "写朋友圈文案", "做播客脚本").
Use the execution contract in execution-contract.md.
Use the design guide in design-guide.md for article design selection.
Use the platform copy specs in platform-copy.md for Phase 8.
Done Condition
The skill is complete only when all of these hold:
- the article reads as researched before it reads as polished
- the route choice and structure frame fit the source instead of forcing one house style
- the chosen style is visible without collapsing into imitation
- the writing framework self-check for the chosen frame has been applied
- the evidence ledger clearly separates fact from interpretation
- every visual adds narrative or explanatory value
- the normalization checklist has been applied: no citation artifacts, no LaTeX, no broken tables, no scraped UI remnants
- every image placeholder was evaluated against placement criteria before generation, and every generated image passed the two-tier quality check
- markdown and HTML agree on title, summary, cover, and image paths
manifest.json agrees with the actual output set and draft state
- the article does not overclaim research effort or authorship
- the workflow can stop safely at the highest-quality completed artifact if a later handoff fails
- if Phase 8 was triggered, platform copies follow platform-copy.md specs and manifest includes their output entries
1---2name: research-to-wechat3description: A research-first content pipeline that turns a topic, notes, article, URL, or transcript into a sourced article with an evidence ledger, routed structure, polished Markdown, inline visuals, cover image, WeChat-ready HTML, browser-saved draft, and optional multi-platform distribution (小红书、即刻、播客、朋友圈). Use when the user wants 深度研究、改写成公众号、写作、排版、配图、HTML 转换、公众号草稿生成、多平台分发.4---56# Research to WeChat78Use this skill as a research-first control plane. Do not duplicate downstream skill wording.910## Core Rules1112- Match the user's language.13- Ask one question at a time.14- Ask only when the answer changes source interpretation, structural frame, style fidelity, or draft publishing behavior.15- Keep Markdown as the canonical article asset until the HTML handoff.16- Save a draft only. Never publish live.17- Separate verified fact, working inference, and open question.18- Every major claim must be traceable to a source. Collect source URLs during research.19- Every article must end with a "## 参考链接" or "## References" section listing all sources.20- Apply the full normalization checklist to every article before refinement. Source artifacts, broken formatting, and LaTeX fragments must not survive into the final draft.21- Every inline image must pass a two-tier evaluation: first eliminate disqualifying defects, then verify content match to the surrounding text.22- Never pretend the workflow did interviews, long field research, team debate, or hands-on testing when it did not.23- Prefer visible disclosure of AI assistance and source scope. Refuse human-only framing that would misrepresent the process.24- Treat source capture as a runtime boundary: preserve title, author, description, body text, and image list before rewriting.2526## Operating Paths2728Route the request into one of two paths:2930- `Path A: research-first article`31 use for: topic, keyword, question, notes, transcript, subtitle file32 goal: build the article from a research brief and evidence ledger3334- `Path B: source-to-WeChat edition`35 use for: article text, markdown file, article URL, WeChat URL36 goal: preserve the useful source core, then rebuild it for WeChat reading and distribution3738Default routing:39- procedural or tool-teaching material -> `tutorial`40- thesis, trend, strategy, critique, case material -> `deep-analysis`41- multi-topic roundup -> `newsletter`4243## Capability Aliases4445Resolve capabilities through internal aliases, not vendor-style names:46- `source-ingest`47- `markdown-polish`48- `inline-visuals`49- `cover-art`50- `article-design`51- `wechat-render`52- `wechat-draft`53- `multi-platform-distribute` (loaded only when Phase 7 is triggered)5455Use the current alias map in [capability-map.md](references/capability-map.md).5657## Accepted Inputs5859- keyword, topic phrase, or question60- notes, outline, or raw material dump61- article text62- markdown file63- PDF paper, report, or whitepaper64- article URL65- WeChat article URL66- video URL67- full transcript68- subtitle file that can be expanded into a full transcript6970PDF policy:71- when the source is a PDF paper or report, extract all figures, charts, tables, and diagrams as image assets72- save extracted figures to `imgs/source-fig-*.png` with captions and page numbers recorded in `source.md`73- source figures carry higher credibility than AI-generated images and must be preferred in the final article7475Video policy:76- a video source is valid only when the workflow can obtain the full spoken transcript77- first attempt transcript recovery from the page, captions, or subtitle assets78- if the page exposes only metadata, description, or chapter markers, do not start article generation79- if no full transcript is obtainable, ask for the transcript or subtitle file and wait8081## Output8283Create one workspace per article:84`research-to-wechat/YYYY-MM-DD-<slug>/`8586Required assets:87- `source.md`88- `brief.md`89- `research.md`90- `article.md`91- `article-formatted.md`92- `article.html`93- `manifest.json`94- `imgs/cover.png`95- inline illustration files referenced by the markdown body9697Required frontmatter in final markdown:98- `title`99- `author`100- `description`101- `digest`102- `coverImage`103- `styleMode`104- `sourceType`105- `structureFrame`106- `disclosure`107108Required records outside the article:109- `brief.md`110 must capture: target reader, thesis, must-cover points, frame choice, and what cannot be dropped111- `research.md`112 must capture: verified facts, working inferences, open questions, and source notes113- `manifest.json`114 must capture: `pathMode`, `styleMode`, `structureFrame`, `sourceType`, `confidence`, `draftStatus`, and output paths115 `manifest.json.outputs.wechat` must include: `markdown`, `html`, `cover_image`, `title`, `author`, `digest`, and `images`116 optional platform fields (`xiaohongshu`, `jike`, `xiaoyuzhou`, `moments`) are added when Phase 8 runs117118## Script Directory119120Determine this SKILL.md directory as `SKILL_DIR`, then use `${SKILL_DIR}/scripts/<name>`.121122| Script | Purpose |123|--------|---------|124| `scripts/fetch_wechat_article.py` | WeChat article fetch (Python, simulates WeChat mobile UA) |125| `scripts/install-openclaw.sh` | OpenClaw skill installer (copies to `~/.openclaw/skills/`) |126127## Provenance Contract128129The workflow must keep a compact evidence ledger throughout the run:130- what came from the user131- what came from fetched source material132- what was added as supporting context133- what remains uncertain134135Default article disclosure should state:136- what AI did137- what the human provided or reviewed, if known138- what the evidence base was139- what confidence limit remains, if the source packet is thin140141## Delivery Ladder142143Resolve WeChat draft delivery in this order:1441. API draft when credentials and converter tooling are ready1452. automated browser draft when the worker can drive the editor safely1463. assisted browser draft when login or selectors need user help1474. manual handoff with exact file paths when automation fails148149## Style Resolution150151Resolve style in this order:1521. explicit user instruction1532. preset mode1543. author mode1554. custom brief156157Use the full style system in [style-engine.md](references/style-engine.md).158159## Execution160161Run the article through these phases:1621. intake and route selection1632. source packet, brief, and strategic clarification1643. research architecture with structured question lattice (32+ questions across 4 cognitive layers)1654. research merge and evidence ledger1665. frame-routed master draft with full normalization checklist and writing framework self-check1676. refinement, image strategy, visual evaluation, and design selection1687. WeChat HTML rendering, draft upload, and manifest1698. (optional) multi-platform content generation and distribution170171Phase 8 only executes when the user explicitly requests it (e.g., "多平台分发", "转小红书", "转即刻", "写朋友圈文案", "做播客脚本").172173Use the execution contract in [execution-contract.md](references/execution-contract.md).174Use the design guide in [design-guide.md](references/design-guide.md) for article design selection.175Use the platform copy specs in [platform-copy.md](references/platform-copy.md) for Phase 8.176177## Done Condition178179The skill is complete only when all of these hold:180- the article reads as researched before it reads as polished181- the route choice and structure frame fit the source instead of forcing one house style182- the chosen style is visible without collapsing into imitation183- the writing framework self-check for the chosen frame has been applied184- the evidence ledger clearly separates fact from interpretation185- every visual adds narrative or explanatory value186- the normalization checklist has been applied: no citation artifacts, no LaTeX, no broken tables, no scraped UI remnants187- every image placeholder was evaluated against placement criteria before generation, and every generated image passed the two-tier quality check188- markdown and HTML agree on title, summary, cover, and image paths189- `manifest.json` agrees with the actual output set and draft state190- the article does not overclaim research effort or authorship191- the workflow can stop safely at the highest-quality completed artifact if a later handoff fails192- if Phase 8 was triggered, platform copies follow [platform-copy.md](references/platform-copy.md) specs and manifest includes their output entries