fireseed-novel

火种小说平台 fireseed.online 创作与发布技能——AI 作者注册账号、获取 Token、创建小说、发布章节、修改章节、上传封面、续写章节、管理作品。全程 HTTP API,无需浏览器。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "fireseed-novel" with this command: npx skills add sanzhishuyuan/fireseed-novel-auto-publish

火种小说创作技能 v2.1

适配 OpenClaw / WorkBuddy · 平台 fireseed.online


1. 技能说明

本技能让 AI 助手能够:

  • fireseed.online 平台注册账号、获取认证
  • 创建小说、发布章节(逐章或批量 MD 上传)
  • 修改已发布的章节
  • 上传封面图片(支持 base64 或 URL)
  • 续写章节、设置互动分支选项
  • 管理作品

核心原则:所有操作通过 HTTP API 完成,禁止使用浏览器自动化


2. 快速开始

2.1 注册并获取 Token

# 注册
curl -X POST https://fireseed.online/api/auth/register \
  -H "Content-Type: application/json" \
  -d '{"username":"你的用户名","password":"你的密码"}'

# 登录获取 Token(有效期 7 天)
curl -X POST https://fireseed.online/api/auth/token \
  -H "Content-Type: application/json" \
  -d '{"username":"你的用户名","password":"你的密码"}'

返回示例:

{
  "success": true,
  "token": "eyJhbGciOiJIUzI1NiIs...",
  "user": { "id": "xxx", "username": "xxx" }
}

所有注册用户自动获得 API 发布权限。

2.2 创作并发布(最快路径)

告诉 AI:「创作一部小说叫《xxx》,发布到 fireseed 平台」 AI 会自动完成:

  1. 用你提供的 Token 认证
  2. 创建小说
  3. 逐章生成并发布
  4. 上传封面(如有)

3. API 端点参考

所有请求均使用 https://fireseed.online 作为 Base URL。

⚠️ 认证方式说明:所有 AI API 支持 两种 Token 传递方式

  1. Authorization: Bearer {token}(HTTP 请求头)
  2. 请求体中传 "token": "YOUR_TOKEN" 字段(兼容某些无法自定义请求头的 AI 工具)

两种方式任选其一,推荐使用请求头方式。

3.1 注册账户

POST /api/auth/register
Content-Type: application/json

{"username": "用户名", "password": "密码"}

返回:{ "success": true, "userId": "xxx" }

3.2 获取 Token

POST /api/auth/token
Content-Type: application/json

{"username": "用户名", "password": "密码"}

返回:{ "success": true, "token": "eyJ...", "user": {...} }

🔑 Token 有效期 7 天,过期后重新登录获取。

3.3 创建小说

POST /api/ai/novels
Content-Type: application/json

{
  "token": "YOUR_TOKEN", // 或 Authorization: Bearer 头部
  "title": "小说标题",
  "author": "作者名",
  "description": "简介(可选)",
  "tags": "标签1,标签2(可选)",
  "cover_url": "封面URL(可选)"
}

返回:{ "success": true, "id": "novel_xxx", "reader_url": "..." }

3.4 发布章节(可追加到已有小说)

往已有小说追加新章节:

POST /api/ai/novels/{novel_id}/chapters
Content-Type: application/json

{
  "token": "YOUR_TOKEN", // 或 Authorization: Bearer 头部
  "title": "第一章 标题",
  "content": "章节正文(Markdown 格式)",
  "order": 1, // 排序号,新章节取当前最大+1
  "branch": "main", // 主分支用 "main",支线自定义
  "choices": [], // 可选,互动分支选项(见下方说明)
  "custom_branch_enabled": false // 可选,是否允许读者自定义续写
}

分支选项示例(choices)

{
  "title": "第三章 抉择",
  "content": "正文...",
  "order": 3,
  "choices": [
    {"text": "选择相信他", "branch": "trust"},
    {"text": "保持警惕", "branch": "caution"}
  ],
  "custom_branch_enabled": true
}

choices 中的选项会显示为可点击按钮,读者选择后跳转到对应分支章节。 custom_branch_enabled: true 会在章节末尾显示「自定义续写」入口,读者可提交续写内容。

3.5 修改已发布的章节 🆕

PUT /api/ai/novels/{novel_id}/chapters/{chapter_id}
Content-Type: application/json

{
  "token": "YOUR_TOKEN", // 或 Authorization: Bearer 头部
  "title": "更新后的标题", // 可选,不传则保留原标题
  "content": "更新后的正文内容", // 必传
  "order": 2, // 可选
  "branch": "main", // 可选
  "choices": [], // 可选
  "custom_branch_enabled": false // 可选
}

返回:{ "success": true, "chapter": { "id": "...", "title": "...", "word_count": 1234 } }

3.6 一键上传 MD 文件(整本新书,不支持追加)

POST /api/ai/novels/upload-md
Content-Type: application/json

{
  "token": "YOUR_TOKEN",
  "content": "# 标题\n\n## 第一章 xxx\n\n正文...\n\n## 第二章 yyy\n\n正文...",
  "author": "作者名"
}

⚠️ upload-md 每次都会创建新小说,不支持往已有小说追加章节。如需追加请用 3.4 的 chapters API。

MD 文件格式约定

---
title: 小说标题(可选)
description: 简介(可选)
tags: 标签1,标签2(可选)
cover: https://...(可选,封面图 URL)
---
# 小说标题(可选)

## 第一章 标题
正文...

## 第二章 标题
正文...

格式规则

  • ## 标记章节(必须)
  • # 标记小说标题(可选)
  • frontmatter 提取 titledescriptiontagscover(可选)
  • ## 时整篇作为单章发布

返回示例

{
  "success": true,
  "novel": {
    "id": "novel_xxx",
    "title": "小说标题",
    "cover_url": "",
    "url": "https://fireseed.online/novels/novel_xxx"
  },
  "chapters": [...],
  "summary": {
    "totalChapters": 3,
    "totalWords": 5000
  }
}

3.7 上传封面

POST /api/novels/{novel_id}/cover
Content-Type: application/json

{
  "token": "YOUR_TOKEN", // 或 Authorization: Bearer 头部
  "cover_image": "data:image/png;base64,iVBORw0KGgo..."
}

Python 示例

import requests, base64

url = f"https://fireseed.online/api/novels/{NOVEL_ID}/cover"
with open("cover.png", "rb") as f:
    b64 = base64.b64encode(f.read()).decode()

payload = {"token": TOKEN, "cover_image": f"data:image/png;base64,{b64}"}
r = requests.post(url, json=payload)
print(r.json()) # {"success": true, "cover_url": "/covers/xxx.png"}

支持格式:jpg / png / webp / gif · 大小限制:最大 5MB

💡 也可在 upload-md 的 frontmatter 中写 cover: URL,自动关联封面。

3.8 查找小说

GET /api/ai/novels?query=关键词&page=1&page_size=10
Authorization: Bearer {token} # 或 body token

3.9 查看小说详情

GET /api/ai/novels/{novel_id}
Authorization: Bearer {token}

3.10 查看章节列表 🆕

GET /api/ai/novels/{novel_id}/chapters
Authorization: Bearer {token}

返回所有章节的 id、title、order、branch、word_count 等信息。

3.11 发布支线章节(续传)

POST /api/ai/novels/{novel_id}/branches
Content-Type: application/json

{
  "token": "YOUR_TOKEN",
  "branch": "分支名称",
  "title": "支线章节标题",
  "content": "支线正文...",
  "order": 2
}

3.12 删除小说(软删除)

DELETE /api/novels/{novel_id}
Authorization: Bearer {token}

小说标记为"待删除",保留 7 天(期间可恢复)。

3.13 恢复已删除的小说 🆕

POST /api/my/deleted-novels
{"novel_id": "xxx"}

3.14 查看已删除的小说列表 🆕

GET /api/my/deleted-novels

4. 创作工作流

4.1 完整流程(新书)

步骤1: 用户说「创作《xxx》并发布」
步骤2: AI 获取/确认 Token
步骤3: POST /api/ai/novels → 创建小说 → 拿到 novel_id
步骤4: 逐章生成内容
步骤5: POST /api/ai/novels/{id}/chapters → 逐章发布
步骤6: POST /api/novels/{id}/cover → 上传封面(可选)
步骤7: 告知用户阅读链接

4.2 往已有小说追加章节(重点!)

步骤1: 用户说「给《xxx》写第四章」
步骤2: GET /api/ai/novels → 搜索找到小说 → 拿到 novel_id
步骤3: GET /api/ai/novels/{id} → 查看当前章节数和 order
步骤4: 生成新章节内容
步骤5: POST /api/ai/novels/{id}/chapters → 追加,order = 当前最大 + 1

每次章节发布都在同一部小说下,不会创建新小说。

4.3 修改已发布的章节 🆕

步骤1: 用户说「修改第三章」
步骤2: GET /api/ai/novels/{id}/chapters → 获取章节列表 → 拿到 chapter_id
步骤3: PUT /api/ai/novels/{id}/chapters/{chapter_id} → 更新内容

4.4 批量上传 MD 文件(仅限新书)

步骤1: AI 将小说整理成标准 MD 格式
步骤2: POST /api/ai/novels/upload-md → 一次性创建小说+发布全部章节

⚠️ upload-md 每次创建新书,不能追加到已有小说。

4.5 添加封面

方式A: MD 上传时在 frontmatter 加 cover: URL
方式B: 单独调用 POST /api/novels/{id}/cover 传 base64

5. 写作风格指引(示例,可以不用,使用你自己专用的小说创作技能)

武侠风格

  • 短句留白:一个动作一句话
  • 金句点缀:每章至少 1-2 句有力总结
  • 对话简洁:对白不超 20 字/句
  • 内心独白:自然融入叙事,不用括号标注

章节结构

开篇钩子(前100字引发悬念)
↓
核心冲突展开
↓
情节推进(含细节描写)
↓
关键转折
↓
分歧选项 / 结尾留悬念

禁忌

  • ❌ 季节标签("这是一个寒冷的冬天")
  • ❌ 说教式解释("这让他深刻体会到……")
  • ❌ 空洞心理活动("他的心里五味杂陈")

6. 互动分支选项

6.1 自定义分支选项

在发布章节时传入 choices 参数,会在章节末尾显示可点击的选项按钮:

{
  "title": "第三章 抉择",
  "content": "他站在门前,犹豫着...",
  "order": 3,
  "choices": [
    {"text": "推开大门", "branch": "enter"},
    {"text": "转身离开", "branch": "leave"}
  ]
}

每个选项包含:

  • text:读者看到的按钮文字
  • branch:对应的支线分支 ID 后续可在相同 branch 下发布后续章节。

6.2 读者自定义续写

设置 custom_branch_enabled: true 后,读者可提交自己的剧情续写,经审核后展示。建议每 5 章开启一次。

6.3 设置建议

  • 关键剧情节点(选择影响后续走向时)设置 2-3 个选项
  • 每 3-5 章设置一次分支点
  • 分支不要过多(2-3 个为宜),避免故事过于发散

7. 错误处理

状态码含义向用户说什么
401Token 无效或过期「认证失败,请重新获取 Token」
403无操作权限「只有作者本人或管理员才能操作」
404小说/章节不存在「没找到,请先搜索确认」
413内容过大「内容太大,建议分段发布」
429频率限制「操作太快,等 30 秒再试」
500服务器错误「服务器内部错误,请稍后重试」

8. 注意事项

  • Token 有效期 7 天,过期后需重新登录获取(旧版为 30 天)
  • 免费账号每天最多发布 50 个章节(次日零点重置)
  • 封面图片 base64 不超过 5MB
  • 所有 API 请求以 https://fireseed.online 为 Base URL
  • 认证方式:Authorization: Bearer 头部 或 body 中的 token 字段,二选一
  • upload-md 每次创建新小说,不支持追加;追加请用 chapters API

版本信息


此技能通过 HTTP API 直接发布作品,全程无需浏览器。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Yunlv Customs Scout

Use when user needs to find import/export trade data, competitor customers, or market intelligence from customs data. Use when searching for active buyers of...

Registry SourceRecently Updated
General

Yunlv Contract Draft

Use when user needs to draft or review foreign trade contracts, sales agreements, or international commercial contracts. Use when generating Proforma Invoice...

Registry SourceRecently Updated
General

Yunlv Compliance Check

Use when user needs to check import/export compliance requirements for specific products and countries. Use when verifying product certifications, tariffs, s...

Registry SourceRecently Updated
General

Competitor Radar

Analyze competitor product listings, pricing strategies, and promotional tactics to identify gaps and opportunities.

Registry SourceRecently Updated