Commit graph

7 commits

Author SHA1 Message Date
wangzhuc
885cae8e7d feat: add SICO-style exemplar extraction system for few-shot writing
- New script: scripts/extract_exemplar.py
  Extracts style fingerprints from human-written articles (opening hook,
  emotional peak, transition/self-correction, closing) with statistical
  analysis (sentence stddev, vocab temperature, negative ratio, paragraph CV).
  Auto-detects category, supports batch import.

- SKILL.md: Add Step 4.4 exemplar injection
  Loads matching exemplars by category before writing, injects segments
  as few-shot style examples in the prompt.

- learn_edits.py: Auto-grow exemplar library
  After user edits, auto-extracts the final version into the exemplar
  library if humanness_score <= 50.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 22:32:02 +08:00
wangzhuc
4c09df31b3 chore: gitignore CLAUDE.md, remove from tracking
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 20:51:25 +08:00
wangzhuc
b7d91523cc chore: gitignore docs/, remove internal dev docs from tracking
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 14:56:37 +08:00
wangzhuc
e1a0d6ef47 新增 OpenClaw 兼容:build 脚本 + CI + 首次产物
- scripts/build_openclaw.py:SKILL.md 转换({skill_dir}→{baseDir}、WebSearch→web_search、移除 allowed-tools)
- .github/workflows/build-openclaw.yml:push to main 时自动构建 dist/openclaw/
- dist/openclaw/:首次构建产物入库,OpenClaw 用户可直接使用

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 13:00:07 +08:00
wangzhuc
0e91726526 writing-config: 框架开源,参数私有
writing-config.yaml 加入 gitignore(用户自己跑 loop 优化,每人结果不同)。
提供 writing-config.example.yaml 作为起点。
optimization-results.tsv 也加入 gitignore。

这解决了开源对抗问题:框架公开,但检测方没有一个固定靶子可以反向训练,
因为每个用户优化出来的参数不同。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 23:26:58 +08:00
wangzhuc
dd1de0d1e9 重构为单用户模式:去掉多客户架构 + 新增 Onboard/环境检查 + 修复 10 项问题
架构转变:从代运营多客户模式改为开源单用户模式。
- 去掉 clients/ 目录,style.yaml/history.yaml 扁平化到 skill root
- Step 1 简化(不再提取客户名,直接读 style.yaml)
- 新增 Step 0 环境检查(config/依赖/API 配置,降级标记传递到后续 Step)
- Onboard 改为首次设置流程(交互式问答 + 支持"用默认的直接写")
- 3 个脚本去掉 --client 参数,路径扁平化
- 修复 10 项 workflow 问题(降级传递、历史写入、wechat-constraints 引用等)
- evals 更新为单用户模式的 3 个场景
- 新增 style.example.yaml 作为默认模板

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 22:36:36 +08:00
wangzhuc
1ab34fa450 Initial release — 公众号文章全流程 AI Skill
热点抓取 → 选题 → 框架 → 写作 → SEO → 视觉AI → 排版 → 微信草稿箱,
一句话触发完整流程。适用于 Claude Code skill 格式。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 22:16:18 +08:00