Claw Markdown Image Generator
Paste the following prompt into your AI chat to install this skill:
Please install @user_15292d5a/yjkj-claw-markdown-gen into your AI assistant according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem It Targets
When the claw-markdown plugin passes article text, image metadata, and rewrite parameters to a model, the response can mix in reasoning, keyword JSON, transition sentences, and confirmations, making it hard for the frontend to parse image slots and keywords. claw-markdown-gen constrains the output to a renderable Markdown article: the first character must be a # heading, and the body should contain only headings, paragraphs, image placeholders, image captions, and keyword comments.
Mechanism and Limits
It parses the system and user messages to extract the article, image context, style, mode, and rewriteDepth; when parameters are missing, it defaults to WeChat style, detailed length, and medium rewrite. The skill generates 3-5 specific, distinguishable Chinese keywords for each image, inserts {{IMAGE:img_XXX.jpg}} near semantically related paragraphs, and adds > image caption plus <!-- keywords -->. Light rewriting focuses on polishing, medium rewriting restructures the article and adds insights, and heavy rewriting may include SVG, Mermaid, and {{AI_IMAGE:...}} placeholders for later image generation. The boundary is clear: it produces Markdown structure rather than binary image uploads; if the article is empty, an image cannot be located, or an external image API fails, it degrades to plain text, skips the image, or keeps the placeholder.
Use Cases
- Rewrite a WeChat draft into a short image-text article while preserving existing image placeholders.
- Restructure a technical document into a Zhihu-style long article and place images near relevant paragraphs.
- Generate a Juejin-style technical article with flowcharts, Mermaid blocks, and AI_IMAGE placeholders.
- Parse article text and image context to generate 3-5 Chinese keywords for images missing keywords.
Best For
- Frontend engineers maintaining the claw-markdown content pipeline who need stable Markdown output
- Content editors turning long web pages into WeChat or Zhihu image-text posts with controlled rewrite depth
- Documentation engineers writing technical tutorials that need original images, SVG, or Mermaid diagrams
- Developers who need image keywords and placeholders preserved so the plugin can backfill IndexedDB
Related Skills
A long-form web novel assistant with outline locking, chapter word-count control, state updates, and consistency checks.
A step-by-step WeChat long-form writing coach that turns a proven article structure into title, layered problems, quotable insight, objection handling, and solution logic with verifiable examples.
Generates rising Douyin hotspot lists, rank changes, trend signals, and topic ideas for content planning.
Rewrite self-introductions by scenario, audience, and duration, with memory hooks, structure feedback, and speakable practice versions.