Skip to content

aiworkskills/wechat-article-skills / skills/aws-wechat-article-images

aws-wechat-article-images

Verified

公众号封面|公众号配图|公众号插图|AI 生图 — 公众号 AI 封面与配图生成,按文章标题与内容自动匹配画风,一稿多方案,多风格预设可复用。面向公众号编辑、自媒体、品牌设计。触发词:「封面」「配图」「插图」「生成图片」「给文章加图」「做个封面」「文章插图」「配个图」。不写正文只发一组图请走 aws-wechat-sticker;需要多环节串联(写+审+排+配图+发)请走 aws-wechat-article-main。

FileKindSize
SKILL.mdskill md12.8 KB
references/branches.mdmarkdown8.2 KB
references/cover-examples/README.mdmarkdown530 B
references/cover-examples/书脊阶梯.mdmarkdown445 B
references/cover-examples/剖面.mdmarkdown505 B
references/cover-examples/双生.mdmarkdown481 B
references/cover-examples/双轨.mdmarkdown499 B
references/cover-examples/层积.mdmarkdown504 B
references/cover-examples/山峰折线.mdmarkdown451 B
references/cover-examples/引力汇聚.mdmarkdown568 B
references/cover-examples/折叠纸境.mdmarkdown523 B
references/cover-examples/星图.mdmarkdown472 B
references/cover-examples/根系电路.mdmarkdown517 B
references/cover-examples/沙漏城市.mdmarkdown481 B
references/cover-examples/涟漪.mdmarkdown521 B
references/cover-examples/潮线.mdmarkdown500 B
references/cover-examples/灯下.mdmarkdown491 B
references/cover-examples/破土.mdmarkdown574 B
references/cover-examples/空椅.mdmarkdown482 B
references/cover-examples/逆光剪影.mdmarkdown554 B
references/cover-examples/钥匙迷宫.mdmarkdown424 B
references/cover-examples/长廊尽头.mdmarkdown546 B
references/cover-examples/静物台.mdmarkdown522 B
references/cover-method.mdmarkdown10.2 KB
references/cover-styles/README.mdmarkdown2.4 KB
references/cover-styles/产品实拍.example.mdmarkdown1012 B
references/cover-styles/人物出镜.example.mdmarkdown951 B
references/cover-styles/信息表.example.mdmarkdown984 B
references/cover-styles/剧照氛围.example.mdmarkdown888 B
references/cover-styles/图上压字.example.mdmarkdown946 B
references/cover-styles/场景实拍.example.mdmarkdown945 B
references/cover-styles/对比式.example.mdmarkdown1.0 KB
references/cover-styles/截图标注.example.mdmarkdown1.1 KB
references/cover-styles/扁平插画.example.mdmarkdown965 B
references/cover-styles/数字冲击.example.mdmarkdown1.1 KB
references/cover-styles/纯色大字.example.mdmarkdown1.0 KB
references/cover-styles/菜品特写.example.mdmarkdown1.0 KB
references/image-method.mdmarkdown14.1 KB
references/image-styles/README.mdmarkdown3.3 KB
references/image-styles/prompt-construction.mdmarkdown8.7 KB
references/image-styles/场景还原.example.mdmarkdown1.6 KB
references/image-styles/对比两栏.example.mdmarkdown1.1 KB
references/image-styles/数据图表.example.mdmarkdown1.2 KB
references/image-styles/概念隐喻.example.mdmarkdown1.9 KB
references/image-styles/流程步骤.example.mdmarkdown1.2 KB
references/image-styles/清单要点.example.mdmarkdown1.3 KB
references/image-styles/结构分层.example.mdmarkdown1.1 KB
references/image-styles/金句卡片.example.mdmarkdown1.4 KB
references/specs.mdmarkdown1.2 KB
scripts/image_create.pyscript62.0 KB
scripts/user_image_prepare.pyscript3.2 KB
skill.jsonconfig500 B

scripts/user_image_prepare.py

View on GitHub
#!/usr/bin/env python3
"""
用户供图准备工具:
- 确保本篇 imgs/ 目录存在
- 基于 imgs/ 下的图片文件生成 img_analysis.md 模板
- 强制“推荐用途:封面”只能有一个

用法:
  python user_image_prepare.py drafts/20260402-slug
  python user_image_prepare.py drafts/20260402-slug --cover 02-taomi.png
"""

from __future__ import annotations

import argparse
import sys
from pathlib import Path


IMAGE_EXTS = {".png", ".jpg", ".jpeg", ".webp", ".gif"}


def _err(msg: str):
    print(f"[ERROR] {msg}", file=sys.stderr)
    sys.exit(1)


def _ok(msg: str):
    print(f"[OK] {msg}")


def _info(msg: str):
    print(f"[INFO] {msg}")


def _list_images(imgs_dir: Path) -> list[Path]:
    files = [p for p in sorted(imgs_dir.iterdir()) if p.is_file() and p.suffix.lower() in IMAGE_EXTS]
    return files


def _build_analysis_md(files: list[Path], cover_name: str | None) -> str:
    if not files:
        return "# 图片分析(img_analysis)\n\n> imgs/ 下暂无图片,请先上传后重跑。\n"

    if cover_name:
        matched = [p for p in files if p.name == cover_name]
        if not matched:
            _err(f"--cover 指定的文件不存在于 imgs/:{cover_name}")
        cover = matched[0]
    else:
        cover = files[0]

    lines = [
        "# 图片分析(img_analysis)",
        "",
        "> 说明:`推荐用途` 中“封面”只能出现一次;其余图片请标注“正文”。",
        "",
    ]
    for p in files:
        use = "封面" if p.name == cover.name else "正文"
        lines.extend(
            [
                f"## {p.name}",
                f"- 文件名:{p.name}",
                "- 图片内容:待补充(请描述画面主体、动作、场景)",
                "- 建议章节:待补充(例如:选米 / 淘米 / 浸泡 / 煮饭)",
                f"- 推荐用途:{use}",
                "- 图注建议:待补充",
                "",
            ]
        )
    return "\n".join(lines).rstrip() + "\n"


def main():
    parser = argparse.ArgumentParser(description="为用户上传图片生成 img_analysis.md 模板")
    parser.add_argument("article_dir", help="本篇目录,例如 drafts/20260402-slug")
    parser.add_argument("--cover", help="指定封面文件名(必须位于 imgs/)")
    parser.add_argument("--overwrite", action="store_true", help="覆盖已存在的 img_analysis.md")
    args = parser.parse_args()

    article_dir = Path(args.article_dir).resolve()
    if not article_dir.exists():
        _err(f"文章目录不存在:{article_dir}")

    imgs_dir = article_dir / "imgs"
    imgs_dir.mkdir(parents=True, exist_ok=True)
    _info(f"已确保目录存在:{imgs_dir}")

    analysis_path = article_dir / "img_analysis.md"
    if analysis_path.exists() and not args.overwrite:
        _err(f"img_analysis.md 已存在:{analysis_path}(如需覆盖请加 --overwrite)")

    files = _list_images(imgs_dir)
    content = _build_analysis_md(files, args.cover)
    analysis_path.write_text(content, encoding="utf-8")
    _ok(f"已写入:{analysis_path}")
    _info("请补充“图片内容/建议章节/图注建议”,并确保推荐用途里“封面”仅 1 处。")


if __name__ == "__main__":
    main()

writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall