Xpersona
Z

ZF-novel-writer

CLAWHUB · Unverified

Three-agent collaborative novel writing system. Orchestrator plans chapters, Writer Agent generates content via coding agent (sessions_spawn), Quality Agent...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17b78d0yfb7ezp8cdbrqgh81h83yphn:zf-novel-writer
  1. Install using `clawhub skill install s17b78d0yfb7ezp8cdbrqgh81h83yphn:zf-novel-writer` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/huangfeixia0101/zf-novel-writer before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-huangfeixia0101-zf-novel-writer/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

67,537 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: ZF-novel-writer
description: >
  Three-agent collaborative novel writing system. Orchestrator plans chapters,
  Writer Agent generates content via coding agent (sessions_spawn), 
  Quality Agent checks quality. Supports multi-book management,
  chapter archiving, Truth Files tracking, and story_outline.xlsx driven writing.
  No external API keys required - uses the host agent's model for content generation.
  三Agent协作小说写作系统。Orchestrator规划章节,Writer Agent通过coding agent生成内容,
  Quality Agent检查质量。支持多书籍管理、章节归档、Truth Files追踪、story_outline.xlsx驱动写作。
  无需额外API key——使用宿主agent的模型生成内容。
version: 1.0
author: Felix
tags: [novel, writing, multi-agent, creative-writing, 小说, 写作, AI写作]
triggers:
  - "write novel"
  - "写小说"
  - "生成章节"
  - "generate chapter"
  - "/novel"
---
帮你们测试过了一个男主八个女主再复杂再狗血的关系都能轻松难捏!自带🍅小说自动发布脚本。

【ZF-novel-writer】三Agent协作小说写作系统

🔥 亮点速览:
- 无需API Key — 全部通过 sessions_spawn 调用本地 coding agent,零配置开写
- 三Agent流水线 — Orchestrator 规划 → Writer 写作 → Quality 质检,全自动循环
- 串行执行架构 — 章节严格顺序推进,每章依赖前章的铺垫数据和 summary,杜绝逻辑断裂
- 前章末尾300字自动衔接 — 写下一章时自动提取上一章最后300字注入提示词,确保场景、情绪、节奏无缝过渡
- Truth Files 连续性系统 — canonbible.json 追踪角色、纪元、铺垫/兑现,emotionalarcs.json 追踪情感弧线,角色状态跨章节一致
- story_outline.xlsx 驱动 — 一张表定义全书结构(事件、爽点、悬念钩子),Writer Agent 严格按大纲执行
- 三大硬指标质检 — ① 3000-3500字/章 ② comprehensive_check.py 8项全过 ③ 评分≥90(S/A级),不达标自动重写根据 skill 文档和 config.json 的描述,comprehensive_check.py 包含 8 项质量检查:
1. 字数检查 — 3000-3500汉字(不含标点)
2. 格式检查 — 章节结构是否符合规范(标题、正文、预告等)
3. 逻辑检查 — 情节是否自洽、有无矛盾
4. 节奏检查 — 叙事节奏是否合理、有无拖沓或跳跃
5. 连续性检查 — 与 Truth Files(canon_bible 等)是否一致
6. 铺垫/兑现检查 — setups/payoffs 是否合理追踪
7. 角色一致性 — 角色行为、性格是否符合设定
8. 悬念钩子检查 — 章末是否有有效钩子

📊 写作流程:
抓取大纲+Truth Files → 生成章节规划 → Writer输出全文 → 质检打分 → 归档更新 → 下一章

🎯 适合:长篇网文、系统文、多线叙事,任何需要连续性和质量把控的创作场景

# ZF-novel-writer / 三Agent协作小说写作系统

> ⚠️ **No external API keys required.** Content is generated by spawning coding agents (sessions_spawn) that use the host agent's model.
> ⚠️ **无需额外API key。** 通过 sessions_spawn 调用 coding agent,使用宿主agent的模型生成内容。

---

## ENGLISH

### 1. Overview

ZF-novel-writer is a three-agent collaborative system for long-form novel writing:

| Agent | Role | How It Works |
|-------|------|-------------|
| **Orchestrator** | Plans chapters, coordinates agents | Main session. Reads story_outline.xlsx + Truth Files, generates chapter plans, spawns Writer/Quality agents, handles archiving |
| **Writer Agent** | Generates chapter content | Spawned via `sessions_spawn` with `mode="run"`. Receives chapter plan + context, outputs full chapter (3000-3500 words) |
| **Quality Agent** | Quality checks | Spawned via `sessions_spawn`. Runs `comprehensive_check.py`, scores chapter, approves or requests rewrite |

**Key Principles:**
- **story_outline.xlsx** is the Writer Agent's single source of truth for what to write
- **Truth Files** (canon_bible.json, emotional_arcs.json, etc.) maintain continuity
- **Serial execution:** One chapter at a time — archive complete before starting next
- **No API keys:** Everything runs through the host OpenCl

example-book/README.md

# Example Book / 示例书籍项目

This is a minimal template for a new book project. Copy this directory and customize it.

这是一个最小化的书籍项目模板。复制此目录并自定义。

## Quick Setup / 快速设置

```bash
cp -r skills/ZF-novel-writer/example-book books/{YOUR_BOOK_NAME}
```

## Files to Customize / 需要自定义的文件

| File | Purpose |
|------|---------|
| `meta/canon_bible.json` | Replace `{BOOK_NAME}`, `{PROTAGONIST}`, `{HEROINE}` with your characters |
| `genre_rules.md` | Set your genre, style, and rules |
| `WORLD_SETTING.md` | Describe your world |
| `LEVEL_BRONZE.md` | Set up your power/level system (if applicable) |
| `story_outline.xlsx` | Create your chapter-by-chapter outline |

## story_outline.xlsx Format / 大纲格式

Create an Excel file with these columns:

| Column | Description |
|--------|-------------|
| 章节 | Chapter number (1, 2, 3...) |
| 标题 | Chapter title |
| 主要事件 | Core events of the chapter |
| 地点 | Scene location |
| 女主 | Appearing heroines |
| 冲突类型 | Type of conflict |
| 系统提示 | System feedback (if applicable) |
| 系统等级 | System level (if applicable) |
| 爽点 | Expected payoff points |
| 悬念钩子 | End-of-chapter hook |

## Directory Purposes / 目录说明

- `chapters/` — Archived final chapter text files
- `summaries_json/` — Per-chapter summary JSON files
- `temp_chapters/` — Temporary output from Writer Agent (cleaned after archive)
- `plans/` — Chapter plans generated by Orchestrator
- `meta/` — Core metadata (canon_bible.json, etc.)

README.md

# ZF-novel-writer / 三Agent协作小说写作系统

Three-agent collaborative novel writing system for OpenClaw. Orchestrator plans chapters, Writer Agent generates content, Quality Agent checks quality.

OpenClaw 三Agent协作小说写作系统。Orchestrator规划章节,Writer Agent生成内容,Quality Agent检查质量。

## Features / 功能特性

- 🤖 **Three-agent architecture:** Orchestrator + Writer + Quality / 三Agent架构
- 📖 **Multi-book support:** Manage multiple novel projects / 支持多书籍管理
- 📊 **Excel-driven outline:** story_outline.xlsx as single source of truth / xlsx驱动大纲
- 🔍 **Continuity tracking:** Truth Files + canon_bible.json / 连续性追踪
- ✅ **Automated QC:** 8-item quality check + scoring / 自动化质量检查
- 📦 **No API keys needed:** Uses host agent's model / 无需额外API key
- 🔄 **Full pipeline:** Plan → Write → QC → Archive → Repeat / 全流程自动化

## Quick Start / 快速开始

```bash
# 1. Copy example book project
cp -r skills/ZF-novel-writer/example-book books/{YOUR_BOOK_NAME}

# 2. Customize settings
# - Edit meta/canon_bible.json
# - Create story_outline.xlsx
# - Edit genre_rules.md, WORLD_SETTING.md

# 3. Start writing
# Trigger in OpenClaw: "写小说" or "/novel"
```

## Directory Structure / 目录结构

```
ZF-novel-writer/
├── SKILL.md                      # Skill definition (OpenClaw reads this)
├── README.md                     # This file
├── config.json                   # Quality standards config
├── ORCHESTRATOR_ARCHIVE_GUIDE.md # Archive workflow guide
├── example-book/                 # Template book project
│   ├── meta/canon_bible.json
│   ├── genre_rules.md
│   ├── WORLD_SETTING.md
│   ├── LEVEL_BRONZE.md
│   ├── chapters/
│   ├── summaries_json/
│   ├── temp_chapters/
│   └── plans/
├── docs/
│   └── ARCHITECT_AGENT_DESIGN.md
└── tools/                        # Python quality-check tools
    ├── simple_writer_enhanced.py
    ├── comprehensive_check.py
    ├── archive_chapter_with_truth.py
    ├── world_context_loader.py
    ├── chapter_planner.py
    ├── novel_planner.py
    └── ... (see tools/README.md)
```

## Workflow / 工作流程

```
Plan → Write → QC → Archive → Next Chapter
规划 → 写作 → 质检 → 归档 → 下一章
```

| Step | Agent | Action |
|------|-------|--------|
| 1. Plan | Orchestrator | Read outline + Truth Files, generate chapter plan |
| 2. Write | Writer Agent | sessions_spawn → generate 3000-3500 word chapter |
| 3. QC | Quality Agent | sessions_spawn → comprehensive check, score ≥ 90 |
| 4. Archive | Orchestrator | Update canon, save chapter, clean temps |

## How to Configure Your Novel / 如何配置你的小说

1. **Create book directory:** Copy `example-book/` to `books/{YOUR_BOOK}/`
2. **Edit canon_bible.json:** Set protagonist, heroines, eras, world settings
3. **Create story_outline.xlsx:** Chapter-by-chapter outline (see example-book/README.md)
4. **Edit genre_rules.md:** Your genre's writing rules and forbidden elements
5. **Edit WORLD_SETTING.md:** Your world's geography, power system, factions

## Tools / 工具

All tools are in the `tools/` directory. See `tools/README.md` for full documentation.

Key tools:
- `simple

tools/README.md

# Novel Writing Tools Guide / 小说写作工具使用指南

> **Version:** v1.1 (2026-03-31) — Generalized for any book project

---

## 📖 Tool Architecture / 工具分层架构

```
tools/
├── 【Prompt Generation / 提示词生成】
│   └── simple_writer_enhanced.py  # Generate chapter prompt ⭐ Core
│
├── 【Context Loading / 上下文加载】
│   ├── world_context_loader.py    # Load world settings, previous summaries
│   └── canon_generator.py         # Canon data generation
│
├── 【Quality Check / 质量检查】
│   ├── comprehensive_check.py     # 8-item comprehensive check ⭐ Core
│   ├── chapter_checker.py         # Chapter checker
│   ├── format_checker.py          # Format check
│   ├── finance_calculator.py      # Finance calculation
│   ├── system_rules_validator.py  # System rules validation
│   ├── protagonist_checker.py     # Protagonist personality check
│   ├── next_chapter_checker.py    # Next chapter preview check
│   ├── logic_checker.py           # Logic check
│   └── rhythm_analyzer.py         # Pacing analysis
│
├── 【Archive / 归档工具】
│   └── archive_chapter_with_truth.py  # Extract variables, update continuity ⭐ Core
│
└── 【Planning / 规划工具】
    ├── chapter_planner.py         # Chapter planning
    └── novel_planner.py           # Novel-wide planning
```

---

## 🚀 Core Tools / 核心工具

### 1. Prompt Generation (simple_writer_enhanced.py) ⭐⭐⭐

**Purpose:** Generate chapter writing prompt

```bash
cd skills/ZF-novel-writer/tools
python simple_writer_enhanced.py --chapter 6 --book {BOOK_NAME} --prompt-only
```

**What it loads:**
1. ✅ canon_bible.json (protagonist, era, heroines, style)
2. ✅ story_outline.xlsx (chapter plan)
3. ✅ Previous chapter summary (from summaries_json/)
4. ✅ pending_setups (unresolved foreshadowing)

### 2. Comprehensive Check (comprehensive_check.py) ⭐⭐⭐

**Purpose:** 8-item quality check

```bash
# Content QC mode
python comprehensive_check.py path/to/chapter.txt --mode=content
# Archive check mode
python comprehensive_check.py path/to/chapter.txt --mode=archive
```

**8 Checks:**
1. Word count: 3000-3500 Chinese characters (excluding punctuation)
2. Format: UTF-8, no garbled text
3. Finance: Accurate income/expenses/balance
4. System rules: Level, multiplier, limits
5. Protagonist personality: Assertive, decisive, not naive
6. Next chapter preview: ≤30 words, suspenseful
7. Logic: Timeline, character relations, location continuity
8. Pacing: 5-7 payoff points, rising emotional curve

### 3. Archive (archive_chapter_with_truth.py) ⭐⭐⭐

**Purpose:** Extract variables, update continuity during archive

```bash
python archive_chapter_with_truth.py path/to/chapter.txt --chapter 6
```

---

## 🔧 Auxiliary Tools / 辅助工具

| Tool | Purpose |
|------|---------|
| `world_context_loader.py` | Load world settings + previous summaries |
| `canon_generator.py` | Generate canon data |
| `finance_calculator.py` | Calculate chapter finances |
| `system_rules_validator.py` | Validate system-level rules |
| `protagonist_checker.py` | Check protagonist personality consistency |
| `next_ch

_meta.json

{
  "ownerId": "kn71djty3a2za7v3ha9q8twd2x824mp6",
  "slug": "zf-novel-writer",
  "version": "1.0.1",
  "publishedAt": 1775130887446
}

Sponsored

Ads related to ZF-novel-writer and adjacent AI workflows.