From ec4a6463590685ea45774847e494021097583aa7 Mon Sep 17 00:00:00 2001 From: wangzhuc Date: Thu, 26 Mar 2026 22:18:38 +0800 Subject: [PATCH] =?UTF-8?q?Rename=20media-agent=20=E2=86=92=20WeWrite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 8 ++++---- SKILL.md | 4 ++-- config.example.yaml | 2 +- evals/evals.json | 2 +- references/writing-guide.md | 2 +- scripts/fetch_stats.py | 2 +- toolkit/cli.py | 6 +++--- toolkit/image_gen.py | 4 ++-- toolkit/theme.py | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 0d26c00..fe15e47 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# media-agent +# WeWrite 公众号文章全流程 AI Skill —— 从热点抓取到草稿箱推送,一句话搞定。 @@ -28,13 +28,13 @@ # 在你的 Claude Code 设置中添加 skill 路径 # 方式 2:复制到 skills 目录 -cp -r media-agent ~/.claude/skills/media-agent +cp -r wewrite ~/.claude/skills/wewrite ``` ### 安装 Python 依赖 ```bash -cd media-agent +cd wewrite pip install -r requirements.txt ``` @@ -52,7 +52,7 @@ cp config.example.yaml config.yaml ## 目录结构 ``` -media-agent/ +wewrite/ ├── SKILL.md # Skill 主文件(Claude 读取并执行) ├── config.example.yaml # 配置模板 ├── requirements.txt # Python 依赖 diff --git a/SKILL.md b/SKILL.md index 9a6f1a6..966c8e3 100644 --- a/SKILL.md +++ b/SKILL.md @@ -1,5 +1,5 @@ --- -name: media-agent +name: wewrite description: | 微信公众号内容全流程助手:热点抓取 → 选题 → 框架 → 写作 → SEO/去AI痕迹 → 视觉AI → 排版推送草稿箱。 触发关键词:公众号、推文、微信文章、微信推文、草稿箱、微信排版、选题、热搜、 @@ -9,7 +9,7 @@ description: | 需要有公众号/微信等明确上下文。 --- -# Media Agent — 公众号文章全流程 +# WeWrite — 公众号文章全流程 ## 快速理解 diff --git a/config.example.yaml b/config.example.yaml index 6791300..3553c32 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -1,4 +1,4 @@ -# media-agent 配置 +# WeWrite 配置 # 复制为 config.yaml 并填入你的信息 # 微信公众号 API(发布草稿 + 数据统计必需) diff --git a/evals/evals.json b/evals/evals.json index 1e8e681..b3b6664 100644 --- a/evals/evals.json +++ b/evals/evals.json @@ -1,5 +1,5 @@ { - "skill_name": "media-agent", + "skill_name": "wewrite", "evals": [ { "id": 0, diff --git a/references/writing-guide.md b/references/writing-guide.md index 95a8db5..5cc9e33 100644 --- a/references/writing-guide.md +++ b/references/writing-guide.md @@ -19,7 +19,7 @@ 不管用哪个框架,以下规则始终适用: -**关于 H1**:必须写 H1 标题(20-28 个中文字)。media-agent 的 converter 会自动把 H1 提取为微信的标题字段,并从正文 HTML 中移除。所以 Markdown 里写 H1,微信里看到的是独立标题栏 + 从 H2 开始的正文。 +**关于 H1**:必须写 H1 标题(20-28 个中文字)。WeWrite 的 converter 会自动把 H1 提取为微信的标题字段,并从正文 HTML 中移除。所以 Markdown 里写 H1,微信里看到的是独立标题栏 + 从 H2 开始的正文。 **关于金句**:框架中标注了"金句落点"的位置,在那里放一句精炼的总结句。好的金句特征:短(≤20字)、有观点、能独立传播(读者截图发朋友圈的那种)。 diff --git a/scripts/fetch_stats.py b/scripts/fetch_stats.py index 18b394e..a897427 100644 --- a/scripts/fetch_stats.py +++ b/scripts/fetch_stats.py @@ -26,7 +26,7 @@ SKILL_DIR = Path(__file__).parent.parent TOOLKIT_CONFIG_PATHS = [ SKILL_DIR / "config.yaml", # skill root SKILL_DIR / "toolkit" / "config.yaml", # toolkit dir - Path.home() / ".config" / "media-agent" / "config.yaml", + Path.home() / ".config" / "wewrite" / "config.yaml", Path.cwd() / "config.yaml", ] diff --git a/toolkit/cli.py b/toolkit/cli.py index 0e6c58f..892ae29 100644 --- a/toolkit/cli.py +++ b/toolkit/cli.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 """ -CLI entry point for media-agent. +CLI entry point for WeWrite. Usage: python cli.py preview article.md --theme professional-clean @@ -25,7 +25,7 @@ CONFIG_PATHS = [ Path.cwd() / "config.yaml", Path(__file__).parent.parent / "config.yaml", # skill root Path(__file__).parent / "config.yaml", # toolkit dir - Path.home() / ".config" / "media-agent" / "config.yaml", + Path.home() / ".config" / "wewrite" / "config.yaml", ] @@ -144,7 +144,7 @@ def cmd_themes(args): def main(): parser = argparse.ArgumentParser( - prog="media-agent", + prog="wewrite", description="Markdown to WeChat HTML converter and publisher", ) sub = parser.add_subparsers(dest="command", required=True) diff --git a/toolkit/image_gen.py b/toolkit/image_gen.py index cd3b69d..089e566 100644 --- a/toolkit/image_gen.py +++ b/toolkit/image_gen.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 """ -AI image generation module for media-agent. +AI image generation module for WeWrite. Supports multiple providers via a simple abstraction: - doubao-seedream (Volcengine Ark) — default, good for Chinese prompts @@ -32,7 +32,7 @@ CONFIG_PATHS = [ Path.cwd() / "config.yaml", Path(__file__).parent.parent / "config.yaml", # skill root Path(__file__).parent / "config.yaml", # toolkit dir - Path.home() / ".config" / "media-agent" / "config.yaml", + Path.home() / ".config" / "wewrite" / "config.yaml", ] diff --git a/toolkit/theme.py b/toolkit/theme.py index 616d9af..6af81e9 100644 --- a/toolkit/theme.py +++ b/toolkit/theme.py @@ -1,5 +1,5 @@ """ -Theme system for media-agent. +Theme system for WeWrite. Loads YAML theme definitions and provides CSS parsing utilities for the inline style converter.