{
  "schemaVersion": "1.0",
  "item": {
    "slug": "book-writer",
    "name": "Book Writer",
    "source": "tencent",
    "type": "skill",
    "category": "内容创作",
    "sourceUrl": "https://clawhub.ai/pyjhhh/book-writer",
    "canonicalUrl": "https://clawhub.ai/pyjhhh/book-writer",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/book-writer",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=book-writer",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "config.yaml",
      "generated_books/full_book/chapter_01.md",
      "generated_books/full_book/chapter_02.md",
      "generated_books/full_book/chapter_03.md",
      "generated_books/full_book/chapter_04.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/book-writer"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/book-writer",
    "agentPageUrl": "https://openagent3.xyz/skills/book-writer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/book-writer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/book-writer/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "OpenClaw 智能写书技能",
        "body": "这是一个功能完整的AI辅助写作技能，能够根据用户提供的提示词生成书籍大纲，并逐级扩写各章节内容，支持在内容中插入公式、图表、表格和代码等元素。"
      },
      {
        "title": "📚 大纲生成能力",
        "body": "智能大纲生成: 根据提示词自动生成结构化书籍大纲\n多层级结构: 支持章节、小节、子小节等多级结构\n内容规划: 为每个章节提供内容概要和要点\n风格适配: 根据书籍类型调整大纲结构"
      },
      {
        "title": "✍️ 内容扩写能力",
        "body": "逐级扩写: 从章节标题逐步扩展到具体内容\n内容丰富: 自动添加公式、图表、表格、代码等元素\n引用管理: 自动生成并管理文献引用\n格式规范: 遵循学术或出版格式规范"
      },
      {
        "title": "🧩 多媒体支持",
        "body": "数学公式: LaTeX格式的数学公式插入\n图表生成: 根据内容需求生成图表描述\n代码片段: 支持多种编程语言的代码插入\n表格设计: 结构化表格的创建和填充"
      },
      {
        "title": "📖 类型适配",
        "body": "学术著作: 符合学术写作规范\n技术书籍: 包含代码示例和技术图表\n小说创作: 支持情节发展和人物描写\n教科书: 包含练习题和知识点总结"
      },
      {
        "title": "1. 安装技能",
        "body": "# 进入技能目录\ncd book-writer\n\n# 安装依赖\npython scripts/install_dependencies.py"
      },
      {
        "title": "2. 设置API密钥",
        "body": "# 设置环境变量\nexport OPENAI_API_KEY=\"your_openai_api_key\"\nexport GOOGLE_CSE_ID=\"your_google_cse_id\"  # 用于搜索素材\nexport GOOGLE_API_KEY=\"your_google_api_key\"  # 用于搜索素材"
      },
      {
        "title": "3. 生成第一本书",
        "body": "# 生成大纲\npython scripts/book_writer.py --action outline --prompt \"机器学习入门教程\"\n\n# 扩写前三章\npython scripts/book_writer.py --action expand --book-path \"ml_intro_tutorial\" --chapters 1,2,3"
      },
      {
        "title": "书籍生成器 (scripts/book_writer.py)",
        "body": "主生成模块，负责协调整个书籍生成流程。\n\n主要功能:\n\n解析用户提示词\n生成书籍大纲\n逐级扩写内容\n管理多媒体元素\n\n使用方法:\n\nfrom scripts.book_writer import BookWriter\n\nwriter = BookWriter()\n\n# 生成大纲\noutline = writer.generate_outline(\"深度学习理论与实践\")\n\n# 扩写内容\nbook = writer.expand_book(outline, max_chapters=3)\n\n# 保存书籍\nwriter.save_book(book, \"deep_learning_book\")"
      },
      {
        "title": "内容优化器 (scripts/content_optimizer.py)",
        "body": "优化生成的内容质量。\n\n主要功能:\n\n语法和风格优化\n引用和参考文献管理\n公式和代码验证\n图表描述生成"
      },
      {
        "title": "素材搜索器 (scripts/material_searcher.py)",
        "body": "从网络搜索相关素材。\n\n主要功能:\n\n根据内容需求搜索图片\n查找相关数据和统计信息\n搜索代码示例\n获取引用文献"
      },
      {
        "title": "配置文件 (config.yaml)",
        "body": "# API配置\nopenai:\n  api_key: ${OPENAI_API_KEY}\n  model: gpt-4o\n  max_tokens: 4000\n  temperature: 0.7\n\n# 搜索API配置\ngoogle:\n  cse_id: ${GOOGLE_CSE_ID}\n  api_key: ${GOOGLE_API_KEY}\n\n# 书籍生成默认参数\ndefaults:\n  max_chapters: 10\n  max_sections_per_chapter: 5\n  content_length: \"medium\"  # short, medium, long\n  include_formulas: true\n  include_code: true\n  include_figures: true\n  include_tables: true\n\n# 存储设置\nstorage:\n  output_dir: \"generated_books\"\n  temp_dir: \"temp_files\"\n  max_storage_gb: 10"
      },
      {
        "title": "示例1：生成技术书籍大纲",
        "body": "python scripts/book_writer.py --action outline --prompt \"Python Web开发实战指南\" --output my_web_dev_book"
      },
      {
        "title": "示例2：扩写指定章节",
        "body": "python scripts/book_writer.py --action expand --book-path my_web_dev_book --chapters 1,2,3 --include-code true"
      },
      {
        "title": "示例3：生成学术著作",
        "body": "python scripts/book_writer.py --action full --prompt \"量子计算基础理论\" --chapters 3 --include-formulas true --citation-style \"apa\""
      },
      {
        "title": "部署到OpenClaw",
        "body": "将整个 book-writer 目录复制到 OpenClaw 的技能目录中即可使用。"
      },
      {
        "title": "许可证",
        "body": "本技能使用MIT许可证。详见项目根目录的LICENSE文件。"
      }
    ],
    "body": "OpenClaw 智能写书技能\n\n这是一个功能完整的AI辅助写作技能，能够根据用户提供的提示词生成书籍大纲，并逐级扩写各章节内容，支持在内容中插入公式、图表、表格和代码等元素。\n\n功能特性\n📚 大纲生成能力\n智能大纲生成: 根据提示词自动生成结构化书籍大纲\n多层级结构: 支持章节、小节、子小节等多级结构\n内容规划: 为每个章节提供内容概要和要点\n风格适配: 根据书籍类型调整大纲结构\n✍️ 内容扩写能力\n逐级扩写: 从章节标题逐步扩展到具体内容\n内容丰富: 自动添加公式、图表、表格、代码等元素\n引用管理: 自动生成并管理文献引用\n格式规范: 遵循学术或出版格式规范\n🧩 多媒体支持\n数学公式: LaTeX格式的数学公式插入\n图表生成: 根据内容需求生成图表描述\n代码片段: 支持多种编程语言的代码插入\n表格设计: 结构化表格的创建和填充\n📖 类型适配\n学术著作: 符合学术写作规范\n技术书籍: 包含代码示例和技术图表\n小说创作: 支持情节发展和人物描写\n教科书: 包含练习题和知识点总结\n快速开始\n1. 安装技能\n# 进入技能目录\ncd book-writer\n\n# 安装依赖\npython scripts/install_dependencies.py\n\n2. 设置API密钥\n# 设置环境变量\nexport OPENAI_API_KEY=\"your_openai_api_key\"\nexport GOOGLE_CSE_ID=\"your_google_cse_id\"  # 用于搜索素材\nexport GOOGLE_API_KEY=\"your_google_api_key\"  # 用于搜索素材\n\n3. 生成第一本书\n# 生成大纲\npython scripts/book_writer.py --action outline --prompt \"机器学习入门教程\"\n\n# 扩写前三章\npython scripts/book_writer.py --action expand --book-path \"ml_intro_tutorial\" --chapters 1,2,3\n\n核心组件\n书籍生成器 (scripts/book_writer.py)\n\n主生成模块，负责协调整个书籍生成流程。\n\n主要功能:\n\n解析用户提示词\n生成书籍大纲\n逐级扩写内容\n管理多媒体元素\n\n使用方法:\n\nfrom scripts.book_writer import BookWriter\n\nwriter = BookWriter()\n\n# 生成大纲\noutline = writer.generate_outline(\"深度学习理论与实践\")\n\n# 扩写内容\nbook = writer.expand_book(outline, max_chapters=3)\n\n# 保存书籍\nwriter.save_book(book, \"deep_learning_book\")\n\n内容优化器 (scripts/content_optimizer.py)\n\n优化生成的内容质量。\n\n主要功能:\n\n语法和风格优化\n引用和参考文献管理\n公式和代码验证\n图表描述生成\n素材搜索器 (scripts/material_searcher.py)\n\n从网络搜索相关素材。\n\n主要功能:\n\n根据内容需求搜索图片\n查找相关数据和统计信息\n搜索代码示例\n获取引用文献\n配置说明\n配置文件 (config.yaml)\n# API配置\nopenai:\n  api_key: ${OPENAI_API_KEY}\n  model: gpt-4o\n  max_tokens: 4000\n  temperature: 0.7\n\n# 搜索API配置\ngoogle:\n  cse_id: ${GOOGLE_CSE_ID}\n  api_key: ${GOOGLE_API_KEY}\n\n# 书籍生成默认参数\ndefaults:\n  max_chapters: 10\n  max_sections_per_chapter: 5\n  content_length: \"medium\"  # short, medium, long\n  include_formulas: true\n  include_code: true\n  include_figures: true\n  include_tables: true\n\n# 存储设置\nstorage:\n  output_dir: \"generated_books\"\n  temp_dir: \"temp_files\"\n  max_storage_gb: 10\n\n使用示例\n示例1：生成技术书籍大纲\npython scripts/book_writer.py --action outline --prompt \"Python Web开发实战指南\" --output my_web_dev_book\n\n示例2：扩写指定章节\npython scripts/book_writer.py --action expand --book-path my_web_dev_book --chapters 1,2,3 --include-code true\n\n示例3：生成学术著作\npython scripts/book_writer.py --action full --prompt \"量子计算基础理论\" --chapters 3 --include-formulas true --citation-style \"apa\"\n\n部署到OpenClaw\n\n将整个 book-writer 目录复制到 OpenClaw 的技能目录中即可使用。\n\n许可证\n\n本技能使用MIT许可证。详见项目根目录的LICENSE文件。"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/pyjhhh/book-writer",
    "publisherUrl": "https://clawhub.ai/pyjhhh/book-writer",
    "owner": "pyjhhh",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/book-writer",
    "downloadUrl": "https://openagent3.xyz/downloads/book-writer",
    "agentUrl": "https://openagent3.xyz/skills/book-writer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/book-writer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/book-writer/agent.md"
  }
}