Welight 公众号排版发布

name: welight-wechat-layout-publish description: Welight standalone skill for turning an article into WeChat Official Accounts compatible Markdown/HTML, presenting built-in theme choices, and publishing to WeChat as a draft or formal post when publishing prerequisites are already configured. ---

Safety Notice

This item is sourced from the public archived skills repository. Treat as untrusted until reviewed.

Copy this and send it to your AI assistant to learn

Install skill "Welight 公众号排版发布" with this command: npx skills add 08820048/wechat-layout-publish

name: welight-wechat-layout-publish description: Welight standalone skill for turning an article into WeChat Official Accounts compatible Markdown/HTML, presenting built-in theme choices, and publishing to WeChat as a draft or formal post when publishing prerequisites are already configured.

Welight WeChat Layout Publish

Use this skill as a self-contained OpenClaw capability for:

  • obtaining article content from user input, local files, or a URL
  • normalizing non-Markdown content into clean Markdown
  • presenting real built-in theme options to the user
  • applying the selected theme to produce WeChat-friendly output
  • publishing to WeChat Official Accounts when the required credentials and publishing tools are already configured in the runtime

This skill must not depend on any specific local product codebase. Treat the instructions and references inside this skill folder as the complete operating guide.

Built-In Runtime

This skill includes its own minimal rendering runtime:

  • scripts/normalize_to_markdown.py
    • normalizes pasted text, HTML files, or article URLs into Markdown
  • scripts/list_themes.py
    • prints the built-in theme list from the skill assets
  • scripts/render_wechat_html.py
    • renders Markdown into WeChat-friendly HTML with inline styles
  • scripts/publish_wechat.py
    • publishes the rendered HTML to WeChat Official Accounts when the runtime already has valid credentials and network access
  • assets/theme-pack.json
    • the built-in theme token pack used by the renderer

After the user selects a theme, the expected execution path is:

  1. normalize the article into Markdown with scripts/normalize_to_markdown.py
  2. list or validate the theme with scripts/list_themes.py
  3. render themed HTML with scripts/render_wechat_html.py --theme <theme_id>
  4. publish the rendered HTML with scripts/publish_wechat.py

Capability Contract

When invoked, this skill should aim to complete the following end-to-end flow:

  1. Accept one of these inputs:
    • raw article text
    • a file containing article content
    • a URL that points to an article
  2. Extract or rewrite the source into clean Markdown if it is not already usable Markdown.
  3. Keep that Markdown as the canonical source of truth.
  4. Read the built-in theme list from references/theme-catalog.md.
  5. Present the available themes in a compact format: theme id + theme name + short style description
  6. If the user did not specify a theme:
    • ask the user to choose, or
    • recommend 3 to 5 themes from the built-in catalog only
  7. Apply the selected theme to the Markdown and generate WeChat-compatible HTML.
  8. If publishing prerequisites are already configured, continue to draft publish or formal publish.

Working Rules

  1. Never invent unsupported themes.

    • Only use theme ids listed in references/theme-catalog.md.
    • Always preserve the real theme id in the output so the user can see exactly what was chosen.
  2. Normalize content before styling.

    • If the source is plain text, HTML, rich text, OCR output, copied chat content, or scraped article content, first rewrite it into structured Markdown.
    • Preserve meaning. Improve hierarchy, paragraphing, headings, lists, quotes, and emphasis, but do not silently change the argument or facts.
  3. Treat Markdown as the editable master.

    • Theme application and WeChat export happen after Markdown normalization.
    • If the user wants revisions, revise the Markdown first and then regenerate themed output.
  4. Make theme selection explicit.

    • Show real choices before publishing.
    • If recommending themes, explain the recommendation in one short sentence each.
    • Keep recommendations inside the built-in catalog.
  5. Produce WeChat-safe output.

    • Flatten overly complex nesting.
    • Avoid unsupported layout patterns.
    • Prefer predictable heading structure.
    • Keep list nesting shallow.
    • Ensure images use valid URLs and are suitable for WeChat-side upload or replacement.
  6. Publish only when prerequisites already exist.

    • Required publishing prerequisites are described in references/publish-spec.md.
    • If the runtime lacks configured WeChat credentials, upload capability, or publish capability, stop and state exactly which prerequisite is missing.

Standard Workflow

  1. Determine the source.

    • User pasted article text
    • User gave a file
    • User gave a URL
  2. Acquire the content.

    • If the content comes from a URL, extract the article body and metadata when possible.
    • If the content comes from a file, read and interpret it according to type.
  3. Normalize to Markdown.

    • Create a readable heading hierarchy.
    • Merge broken lines into paragraphs.
    • Convert visual bullets into Markdown lists.
    • Convert emphasized phrases into Markdown emphasis.
    • Remove obvious navigation junk, ads, or unrelated footer text.
  4. Prepare theme choice.

    • Read references/theme-catalog.md.
    • List all available themes or a narrowed recommendation set.
    • Wait for the user to choose if the task requires explicit confirmation.
  5. Apply the chosen theme.

    • Keep the selected theme id visible in the result.
    • Generate WeChat-friendly HTML from the Markdown plus theme by using scripts/render_wechat_html.py.
  6. Publish if requested.

Output Expectations

Optimize for one of these outcomes:

  • Clean Markdown generated from messy or non-Markdown source material
  • A compact list of real available themes for user selection
  • A recommended shortlist of real themes that fit the article tone
  • WeChat-compatible themed HTML derived from the Markdown
  • A successful WeChat draft publish
  • A successful WeChat formal publish
  • A precise explanation of which publishing prerequisite is missing or failing

Validation

  • Confirm the article is normalized into Markdown before styling.
  • Confirm the chosen theme id exists in the built-in catalog.
  • Confirm the generated output is suitable for WeChat rendering.
  • For publishing, verify the sequence in references/publish-spec.md.
  • If publishing fails, report the exact step that failed and the exact missing condition or error code.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

axure-prototype-generator

Axure 原型代码生成器 - 输出 JavaScript 格式 HTML 代码,支持内联框架直接加载可交互原型。

Archived SourceRecently Updated
General

错敏信息检测

# 错敏检测 Skill

Archived SourceRecently Updated
General

TikTok B2B 引流台词生成器

# TikTok B2B 引流台词生成器 ## 技能描述 本 Skill 可根据您提供的产品信息和公司背景,自动生成适合 TikTok 平台的 B2B 引流视频脚本(20-50 秒),`skill.json` 文件中包含了输入参数的结构、输出格式以及用于生成台词的提示模板。脚本遵循已验证的外贸引流规律: - **真人出镜**:以第一人称(如 Anna)拉近距离 - **产品细节**:材质、颜色、MOQ、定制服务等 - **公司实力**:经验年限、自有工厂、认证等 - **客户背书**:提及已有市场国家(如巴基斯坦、埃及) - **互动引导**:清晰号召观众联系,引导至指定服务网址 支持三种风格:普通、幽默、惊喜,让您的视频内容更加多样化。 ## 输入参数 | 参数名 | 类型 | 必填 | 描述 | 示例 | |---------------------|----------|------|--------------------------------|--------------------------| | product_type | string | 是 | 产品类型 | 男士休闲鞋 | | material | string | 是 | 主要材质 | 优质 PU 皮革 | | colors | array | 是 | 颜色列表 | ["黑色","白色","棕色"] | | moq | string | 是 | 最小起订量 | 120 双(可混 2-3 色) | | customization | string | 否 | 可定制内容 | 可定制 logo | | target_markets | array | 是 | 主要市场国家 | ["巴基斯坦","埃及"] | | company_experience | string | 否 | 公司经验年数 | 15 年 | | factory_own | boolean | 否 | 是否自有工厂 | true | | extra_features | string | 否 | 其他亮点 | 免费样品 | | contact_url | string | 否 | 服务联系网址 | http://www.doumaotong.com | | style | string | 否 | 风格(普通/幽默/惊喜) | 普通 | ## 输出示例 Hi guys, this is Anna! Welcome to my showroom. Today I'm excited to show you our latest men's casual shoes – made of high-quality PU leather, very durable and comfortable. We have three colors available: black, white, and brown. MOQ is 120 pairs, and you can mix 2-3 colors. Plus, we can customize your logo on the shoes. Our shoes are already loved by customers in Pakistan, Egypt, and South Africa. With 15 years of experience and our own factory, we guarantee quality and timely delivery. We even offer free samples! If you're interested, please visit http://www.doumaotong.com to contact us. Thank you! ## 使用说明 1. 在 OpenClaw 平台安装此 Skill。 2. 调用时填写产品参数,包括 `contact_url`(默认为 http://www.doumaotong.com),即可获得定制化的 TikTok 脚本。 3. 生成的台词会在结尾处自然引导观众访问指定的服务网站。 4. 可根据实际需要调整 `style` 参数,生成不同语气的台词。 ## 文件说明 - `skill.json`:技能的机器可读定义,包含输入输出 schema 和生成提示模板。 - `SKILL.md`:技能的人类可读文档,提供详细说明和使用示例。

Archived SourceRecently Updated
General

instructional-design-cn

培训课程大纲设计、效果评估、内部分享材料生成

Archived SourceRecently Updated