dan-koe-writer

Dan Koe 写作方法论工具箱。基于 OpenClaw Agent 模型,把爆款内容拆解成「创意积木」,再组装成新文章。触发场景:(1) 用户要拆解爆款文章并提取写作要素;(2) 用户需要写作方向或创意灵感;(3) 用户要生成完整的公众号/小红书/推特文章;(4) 用户想学习 Dan Koe 的 APAG 框架、POV 写作或创意积木系统。

3,891 stars

Best use case

dan-koe-writer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Dan Koe 写作方法论工具箱。基于 OpenClaw Agent 模型,把爆款内容拆解成「创意积木」,再组装成新文章。触发场景:(1) 用户要拆解爆款文章并提取写作要素;(2) 用户需要写作方向或创意灵感;(3) 用户要生成完整的公众号/小红书/推特文章;(4) 用户想学习 Dan Koe 的 APAG 框架、POV 写作或创意积木系统。

Teams using dan-koe-writer should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/dan-koe-writer/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/alleliu/dan-koe-writer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/dan-koe-writer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How dan-koe-writer Compares

Feature / Agentdan-koe-writerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Dan Koe 写作方法论工具箱。基于 OpenClaw Agent 模型,把爆款内容拆解成「创意积木」,再组装成新文章。触发场景:(1) 用户要拆解爆款文章并提取写作要素;(2) 用户需要写作方向或创意灵感;(3) 用户要生成完整的公众号/小红书/推特文章;(4) 用户想学习 Dan Koe 的 APAG 框架、POV 写作或创意积木系统。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

> ⚠️ **免责声明**:本技能基于 Dan Koe 公开分享的写作方法论整理,用于帮助用户学习并应用这些方法论创作原创内容。所有示例积木仅供学习参考,用户应使用自己的原创文章进行拆解和写作。
>
> - Dan Koe 官网:https://www.dankoe.com
> - Newsletter 订阅:https://thedankoe.com/letters
> - 书:The Art of Focus(亚马逊)
> - 本技能与 Dan Koe 本人及其商业产品无官方关联

# Dan Koe Writer

基于 Dan Koe 写作方法论的多智能体写作工具,把爆款内容拆解成「创意积木」,再组装成新内容。

**注意:本工具调用 OpenClaw Agent 的模型(minimax-m2.7),不需要额外配置 API Key。**

## 核心流程

```
爆款内容
    ↓ [goldmine.py]
积木库(7类积木)
    ↓ [spark.py]
创意方向(供 Agent 使用)
    ↓ [Agent 调用自己的模型]
完整文章
```

## 工作目录

```
dan-koe-writer/
├── scripts/
│   ├── goldmine.py   # 拆解爆款 → 提取积木(输出 prompt 供 Agent 调用)
│   ├── spark.py      # 从积木库生成创意方向(支持 JSON 输出)
│   └── write.py      # 从积木库构建写作 context(输出 prompt 供 Agent)
└── references/
    └── knowledge/    # 积木库(7类 Markdown 文件)
```

积木库初始有 Dan Koe 方法论示例积木,可直接使用。

## 积木库说明

| 文件 | 内容 | 使用场景 |
|------|------|---------|
| `hooks.md` | Attention 钩子 | 标题/开头抓住注意力 |
| `paradoxes.md` | 悖论 | 引发认知冲突 |
| `arcs.md` | 转化弧 | 故事线:Before→顿悟→After |
| `core_problems.md` | 核心问题 | 引发读者共鸣 |
| `golden_phrases.md` | 金句 | 收尾、被转发引用 |
| `structures.md` | 结构模式 | APAG/PAS/Before-After |
| `perspectives.md` | 观点 | POV(独特视角)|

## 使用方式

### 1. 拆解爆款内容

```bash
cd <skill>/scripts

# 抓取微信文章
python goldmine.py "https://mp.weixin.qq.com/s/xxxxx"

# 从本地文件拆解
python goldmine.py --file article.txt --source "文章标题"

# 直接输入文本
python goldmine.py --text "文章内容..." --source "手动输入"
```

**输出**:告诉 Agent 需要调用自己的模型提取积木。

### 2. 从积木库生成创意方向

```bash
# 生成3个创意方向(Markdown)
python spark.py

# 生成5个方向
python spark.py --count 5

# 指定话题过滤
python spark.py --topic "写作"

# 输出 JSON 格式(供 Agent 解析)
python spark.py --json

# 只用钩子生成
python spark.py --hook

# 固定种子(可复现)
python spark.py --seed 42
```

### 3. 生成完整文章

```bash
# 公众号长文
python write.py --topic "写作" --platform wechat --length 2000

# 小红书笔记
python write.py --topic "AI" --platform xhs --length 800

# 推文
python write.py --topic "自律" --platform twitter

# 输出 JSON 格式(包含 prompt)
python write.py --topic "个人品牌" --json
```

### 4. Agent 使用方式

Agent 读取脚本输出后,自行调用模型处理:

```python
# 示例:Agent 读取 spark.py 的 JSON 输出
result = subprocess.run(["python", "spark.py", "--json"], capture_output=True)
ideas = json.loads(result.stdout)

# 然后用 Agent 的模型生成文章
for idea in ideas:
    article = await agent.generate(idea)
```

## Dan Koe 方法论速查

### APAG 框架

| 维度 | 作用 | 关键问题 |
|------|------|---------|
| **Attention** | 钩子,抓住注意力 | 如何让人停下来? |
| **Perspective** | 描绘敌人,指出错误观念 | 读者现在的错误想法是什么? |
| **Advantage** | 描绘英雄,提出正确视角 | 如何让他们看到新的可能? |
| **Gamify** | 给出可操作步骤 | 清晰、具体、下一步是什么? |

### POV > Niche

- **Niche 陷阱**:选垂直领域 → AI 更快更好 → 被替代
- **POV 本质**:你是 lens(透镜),不是垂直领域专家
- **为什么不可复制**:你的经历 + 目标 + 价值观的独特折射,AI 无法复制

### 积木类型使用指南

- **钩子**:用在标题、第一行,制造停顿
- **悖论**:放在开头或转折处,引发"这不对啊"的反应
- **转化弧**:规划文章整体故事线
- **核心问题**:戳中读者痛点引发共鸣
- **金句**:收尾或关键转折,制造记忆点
- **结构**:选择适合内容类型的框架
- **观点**:贯穿全文的独特视角,差异化核心

### 写作事业 6 步

1. 选一个你无法停止谈论的话题
2. 头脑风暴,提出独特观点
3. 每周写 500-1000 字(短+长结合)
4. 把长文拆解为每日短帖
5. 学会让作品被分享(流量 > 写作)
6. 用经验变现

### 短内容写作关键

- **不是消费者,是研究者**:看到好帖子试着用自己的观点重写
- **结构训练**:模仿句式 → 转化为自己的声音
- **积木组合**:同一金句/悖论可用于不同话题的写作

## 技术说明

- **模型**:使用 OpenClaw Agent 配置的模型(`openrouter/minimax/minimax-m2.7`)
- **无需额外 API Key**:脚本只做数据处理,LLM 调用由 Agent 完成
- **JSON 输出**:所有脚本支持 `--json` 参数,方便 Agent 解析

Related Skills

Cold Email Writer

3891
from openclaw/skills

Writes personalized cold emails that actually get replies

Content & Documentation

Policy Writer

3891
from openclaw/skills

Generate professional internal policies for any business function — HR, IT, finance, compliance, data privacy, acceptable use, and more.

Business Management

Grant Writer

3891
from openclaw/skills

Write winning grant proposals and funding applications. Works for government grants (SBIR, Innovate UK, Horizon Europe), foundation grants, and corporate funding programs.

Workflow & Productivity

问专家技能 - 使用 Playwriter 控制已登录的浏览器

3891
from openclaw/skills

## 技能描述

Workflow & Productivity

case-writer-hybrid

3891
from openclaw/skills

Expand a structured brief in `content-production/inbox/` into a reusable long-form markdown article draft, then run a local writer / critic / judge quality loop with a constrained humanization pass. Use when Codex needs a stage-1 article draft plus reusable writing sidecars for downstream `generate-image` and `wechat-formatter`.

novel-writer

3891
from openclaw/skills

小说写作助手。触发词:写小说/创作小说/生成小说/帮我写个小说/小说大纲/网文创作。工作流:需求收集(类型/风格/字数)→ AI生成大纲(世界观/人物/剧情/章节规划)→ 用户确认 → 自动逐章生成 → 一章一个文件保存。支持玄幻、仙侠、都市、科幻、历史、武侠、网游、灵异、军事、竞技等主流网文类型,面向新手作者。

writer

3891
from openclaw/skills

Fix AI writing patterns that create repetitive and robotic content

Landing Page Copywriter Lite

3891
from openclaw/skills

Free version — generate hero section copy and run a quick 3-point CRO audit on any landing page.

sop-writer

3891
from openclaw/skills

Write GCP-compliant Standard Operating Procedures for labs and clinical sites

blog-writer

3891
from openclaw/skills

为张向阳(Astral Wave)的个人博客 astralwaveorg 生成高质量技术博客文章。当用户说"写博客xxx"、"帮我写一篇xxx"、"引用消息写成博客"、"总结今天聊天",或者 cron 触发每日聊天总结时,使用此技能。文章风格必须模拟作者本人:用工程师第一人称视角,诚实直接,有踩坑说踩坑,读起来像同事之间的经验分享,而不是翻译官方文档。绝不出现"非常优秀""极其强大"等废话词汇。目标是让读者感觉这是技术大牛写的,不是"AI 生成的"。

Xiaohongshu Founder Growth Writer

3891
from openclaw/skills

Turn rough notes, founder insights, and English drafts into natural Xiaohongshu posts that feel human, trustworthy, and platform-native.

Decision Memo Writer

3891
from openclaw/skills

Turn long documents, reports, proposals, and email threads into decision-ready memos with key points, risks, open questions, and next steps.