Rename media-agent → WeWrite
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1ab34fa450
commit
ec4a646359
9 changed files with 16 additions and 16 deletions
|
|
@ -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 依赖
|
||||
|
|
|
|||
4
SKILL.md
4
SKILL.md
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
name: media-agent
|
||||
name: wewrite
|
||||
description: |
|
||||
微信公众号内容全流程助手:热点抓取 → 选题 → 框架 → 写作 → SEO/去AI痕迹 → 视觉AI → 排版推送草稿箱。
|
||||
触发关键词:公众号、推文、微信文章、微信推文、草稿箱、微信排版、选题、热搜、
|
||||
|
|
@ -9,7 +9,7 @@ description: |
|
|||
需要有公众号/微信等明确上下文。
|
||||
---
|
||||
|
||||
# Media Agent — 公众号文章全流程
|
||||
# WeWrite — 公众号文章全流程
|
||||
|
||||
## 快速理解
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# media-agent 配置
|
||||
# WeWrite 配置
|
||||
# 复制为 config.yaml 并填入你的信息
|
||||
|
||||
# 微信公众号 API(发布草稿 + 数据统计必需)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"skill_name": "media-agent",
|
||||
"skill_name": "wewrite",
|
||||
"evals": [
|
||||
{
|
||||
"id": 0,
|
||||
|
|
|
|||
|
|
@ -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字)、有观点、能独立传播(读者截图发朋友圈的那种)。
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue