LLM 写作工作流框架:换 Profile,换整套风格,核心 pipeline 不动。
- 风格不漂移 — 四类 slot(原则 / 语气 / 排版 / 约束)声明式绑定一个栏目或品牌的全部设定;换 Profile 不改 agent
- 上下文不污染 — 8 个 subagent 各在独立上下文里跑一步;调研素材不污染写作,写作结果不污染审校
- 三个检查点,你来拍板 — Outline 确认 → 审校终稿 → 发布前,每次交给你的是可判断的产出物,不是 yes/no 问题
- 多平台一键扩展 — 新建
profiles/platform-<name>/声明容器语法和约束,writer / publisher 自动适配,核心 agent 零改动 - 本地排版直出公众号 — 配套 wechat-typeset,粘贴 Markdown → 挑主题 → 一键复制富文本
| 我想改… | 看这里 |
|---|---|
| 文章内容 | content/articles/{slug}/ |
| 栏目 / 品牌风格 | profiles/{id}/(principles / voice / typesetting / constraints 四 slot) |
| 项目配置(默认值 / preset / stage 契约) | framework/config/inkflow.yaml |
| 框架代码 / 工具 | framework/tools/ |
| Agent 定义 | .claude/agents/{name}/AGENT.md |
| Skill 定义 | .claude/skills/{name}/SKILL.md |
| 运行时缓存(可清空) | runtime/ |
| 我想用… | 触发词 |
|---|---|
| 写完整文章(~30 分钟,3 checkpoint) | 直接说主题 → orchestrator agent |
| 快速产出(~10 分钟,inline 模式) | "快速写一篇 X" / "quick X" |
| 跑到 draft 停下接手 | "草稿 X" / "draft X" |
| 切换风格 | "切换 profile 到 X" |
| 从样本反推风格 | "学这几篇" / "提取 profile" |
L3 编排层(orchestrator agent + 7 个用户 skill)→ L2 Profile 插件层(四类 slot + extends 链)→ L1 通用内核(8 个 subagent,只读 resolved 产物)
详细说明见 架构概览 →
前置条件:已安装 Claude Code,有 Anthropic API 访问权限。
bash <(curl -fsSL https://raw.githubusercontent.com/lync-cyber/Ink-Flow/main/framework/tools/bootstrap.sh)bash framework/tools/bootstrap.sh . https://github.com/lync-cyber/Ink-Flow步骤 1 "初始化工作区"
→ 创建 content/ profiles/ runtime/ 目录结构
步骤 2 "/profile use lync-wechat-tech"
→ 绑定示例 Profile(微信四栏目)
步骤 3 "写一篇关于 X 的文章"
→ 启动 8 阶段 pipeline,产出草稿 / 审校 / 终稿
完整端到端步骤见 安装与快速开始 →
| 我想要… | 链接 |
|---|---|
| 从零安装并写第一篇文章 | 安装指南 · 快速开始 |
| 切换 / 定制 Profile | Profile 使用指南 |
| 理解 8 阶段 pipeline | Pipeline 详解 |
| 分发到多平台 | 多平台工作流 |
| 微信公众号本地排版 | wechat-typeset 对接 |
| profile.yaml 字段速查 | Profile Schema 参考 |
| Python CLI 工具参数 | CLI 参考 |
| Lint 规则分类与严重级别 | Lint 规则 |
| 扩展新平台 / 新 Profile | 扩展指南 |
| 三层架构设计原理 | 架构概览 |
协议文件(面向框架开发者): Profile 协议 · 写作元契约 · 微信排版契约
.claude/ # Claude Code 框架目录(agents / skills / rules)
profiles/ # Profile 插件包(base / platform / 品牌三层)
framework/ # 框架代码(config / contracts / tools)
runtime/ # 运行时状态(profile-resolved / pipeline-states)
content/ # 创作资产(articles / references / retrospectives)
docs/ # 用户文档
详细目录说明见 架构概览。
欢迎提交 Issue 和 PR。贡献前请阅读 CONTRIBUTING.md。