mcpField
W
wewrite-learn

wewrite-learn

github.com/imraywangMarketing & growth3.5k137 installsUpdated 2d ago
Repository

About wewrite-learn

wewrite-learn is a writing skill for people using wewrite. It learns style from edits, imports reference articles, and extracts formatting themes from URLs.

Key features

  1. 01Learn writing style from edits
  2. 02Sync local edits and WeChat drafts
  3. 03Extract article formatting themes
  4. 04Import and manage exemplars
  5. 05Use exemplars to guide draft structure

Use cases

  1. 01Carry confirmed editing preferences into future drafts
  2. 02Sync edits from WeChat drafts
  3. 03Learn a formatting theme from an article URL
  4. 04Import local or online articles as exemplars

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/imraywang/wewrite --skill wewrite-learn

After installing, type/wewrite-learnin Claude Code to confirm it loaded.

Bundled filesreferences/learn-edits.md

Details

From the project README

wewrite-learn — 自学习(改稿飞轮 / 范文库 / 排版学习)

运行约定

  • CLI:确定性操作走 wewrite 命令(需在 PATH;缺失则引导 uv tool install wewrite,或在仓库里 bash install.sh)。
  • {home}:用户状态目录 = $WEWRITE_HOME 或 ~/.wewrite(wewrite home 可查)。config/style/history/playbook/output/exemplars 全在 {home},不在仓库;references 文档中的状态路径同此约定。
  • 读取: <路径> = 用文件读取工具真实读完该文件再继续,不是注释。
  • references/:本 skill 自带 {skill_dir}/references/;references 文档内的 {skill_dir} 即本 skill 目录。

子功能分发

用户说动作
学习我的修改 / 我改了,学习一下读取: {skill_dir}/references/learn-edits.md,按其流程执行。支持本地 markdown 修改与微信草稿箱同步(wewrite learn-edits --from-wechat)
学习排版 / 学排版 + URLwewrite learn-theme <url> --name <name>,提取后提示用户设置 style.yaml 的 theme 字段
学习这篇文章 / 导入范文 + URLwewrite fetch-article <url> -o /tmp/article.md && wewrite exemplar /tmp/article.md -s <账号名>;默认第三方
导入范文 + 本地文件wewrite exemplar <文件路径>;用户明确为本人文章时加 --user-authored
查看范文库wewrite exemplar --list

范文库的用途:exemplars 会在写作模块(wewrite-write)按框架类型注入初稿 prompt, 只用于校准结构和节奏,不能复用其中的观点、句子或个人经历。导入完成后告知用户库里现有 多少篇、覆盖哪些 category 和所有权标记。

改稿飞轮的价值:每次学习让下一篇初稿更接近用户风格。learn-edits.md 的 只有重复出现或用户明确确认的同范围规则才会成为硬约束;单次修改始终只是软参考。

Comments

Markdown supported