← 返回 Skills 市场
vega6dev

Format Book 6x9

作者 vega6dev · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
52
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install format-book-6x9
功能描述
Formats a manuscript into a 6" x 9" Printed Paperback and a Kindle Ebook, generating a cover page, TOC, headers, and an About the Author section.
使用说明 (SKILL.md)

Book Formatting Expert (6x9 Edition)

You are an expert book typesetter and formatting agent. Your task is to take a raw text or markdown manuscript provided by the user and format it into two professional, publication-ready formats:

  1. A 6" x 9" Printed Paperback (PDF or DOCX)
  2. A Kindle Ebook (EPUB)

Processing Steps

1. Manuscript Analysis

  • Parse the provided manuscript to extract the Book Title, Author Name, Chapter Titles, the main chapter content, and the About the Author text.
  • If the "About the Author" section, Author Name, or Book Title is missing, pause and ask the user to provide them before proceeding.

2. Format 1: Printed Paperback (6" x 9")

Write and execute a typesetting script (using Python's reportlab, python-docx, or pandoc via LaTeX) to create a document with these exact specifications:

  • Dimensions: Exactly 6 inches by 9 inches (Standard US Trade Paperback size).
  • Cover Page: Centered Book Title (and Author Name if available). Insert a hard page break afterward.
  • Table of Contents: List each Chapter Title mapped to its corresponding starting page number. Insert a hard page break afterward.
  • Chapter Formatting:
  • Begin each chapter on a new page.
  • Headers: Include "Chapter [Number]" and "[Chapter Title]" at the top header of each chapter page.
  • Page Numbers: Insert sequential page numbers at the bottom center of every page (excluding the cover page).
  • End Page: Add the "About the Author" section on the final page of the book.

3. Format 2: Kindle Ebook (EPUB)

Generate an EPUB file optimized for Amazon Kindle:

  • Dimensions: Reflowable text (Do not hardcode the 6" x 9" dimensions, as Kindle readers must resize dynamically based on user preferences).
  • Cover Page: Standard Title HTML splash page.
  • Table of Contents: A hyperlinked TOC that jumps directly to chapter sections. (Do not include static page numbers here).
  • Chapter Formatting:
  • Use \x3Ch1> or \x3Ch2> tags for "Chapter [Number]" and "Chapter Title".
  • Do not inject static page numbers or fixed header text, as Kindle e-readers handle reading progress and headers natively. Forcing fixed headers/footers will break the Kindle reading experience.
  • End Page: Add the "About the Author" section at the end of the manuscript.

Execution Requirements

  • Write the necessary local code/commands to output both files in the user's current working directory.
  • Name the output files cleanly: [Book_Title]_6x9_Paperback.pdf and [Book_Title]_Kindle.epub.
  • Upon completion, present the file paths to the user and confirm that all formatting constraints were successfully applied.
安全使用建议
What to check before installing or running this skill: - Dependency verification: The SKILL.md lists python3 and pandoc as required, and references Python libraries (reportlab, python-docx) and a LaTeX toolchain (e.g., pdflatex). Confirm you have python3, pandoc, and any needed LaTeX engine installed. If not, the agent may attempt to install packages or fail. Ask the skill author which exact packages and versions are expected. - Review generated code before execution: The skill tells the agent to 'write and execute a typesetting script' in your current working directory. Require that any script the agent generates be shown to you and approved before it is executed. Prefer running generated scripts in a sandboxed environment or a dedicated working directory to avoid accidental overwrites. - File safety and naming: The skill will create files named from the Book Title. Confirm that filenames will be sanitized to avoid surprises (path traversal, shell metacharacters). Keep backups of important files before running. - Runtime behavior and autonomy: If you allow autonomous invocation, the agent could generate and run code without interactive confirmation. Given this skill's ability to write and run scripts locally, consider disabling autonomous invocation for this skill unless you trust it and reviewed the implementation. - Missing install instructions: Because no install spec is provided, be prepared to manually install any missing tooling (pip packages, pandoc, TeX). Ask the owner for an exact dependency list or test the workflow in a VM/container first. - If you need higher assurance: request the skill author supply a reproducible script or Docker image that performs the formatting so you can inspect or run it in isolation. If author information or a homepage is unavailable, treat the skill as unreviewed and prefer manual or vetted tools for production use.
功能分析
Type: OpenClaw Skill Name: format-book-6x9 Version: 1.0.0 The skill bundle 'format-book-6x9' is a legitimate utility designed to automate book formatting for paperback and Kindle editions. The instructions in SKILL.md guide the agent to use standard tools like Python (reportlab, python-docx) and Pandoc to process user-provided manuscripts. There are no indicators of malicious intent, data exfiltration, or unauthorized system access; the requested code execution is strictly scoped to the document generation task.
能力评估
Purpose & Capability
The name/description align with the SKILL.md: the skill's purpose is to typeset a manuscript into a 6"x9" paperback and an EPUB. The SKILL.md explicitly requires python3 and pandoc in its metadata and suggests using reportlab, python-docx, or pandoc/LaTeX for output. However the registry metadata provided earlier listed 'Required binaries: none' which contradicts the SKILL.md. Also the instructions name Python libraries (reportlab, python-docx) and a LaTeX toolchain implicitly, but those packages/toolchain are not declared as required.
Instruction Scope
The SKILL.md instructs the agent to 'write and execute a typesetting script' in the user's current working directory and to produce output files there. That is appropriate for a formatting skill, but it grants the agent broad file-write and code-execution permissions on the host. The instructions do not specify how to obtain the necessary Python packages (reportlab, python-docx) or a TeX engine (pdflatex), nor do they constrain where generated code is written or require user review before execution. This lack of constraints increases risk and ambiguity about what will run locally.
Install Mechanism
There is no install spec (instruction-only), which is lower risk in general. However the SKILL.md metadata declares runtime binaries (python3, pandoc) while the registry metadata earlier claims no required binaries — an inconsistency. The SKILL.md also refers to tools (reportlab, python-docx, LaTeX/pdflatex) that would typically require separate installation steps which are not provided. Because no install mechanism is specified, the agent or user may attempt ad-hoc installs (pip, system package manager, or downloads) at runtime.
Credentials
The skill does not request any environment variables, credentials, or config paths. It appears not to need secrets or unrelated external credentials to perform its stated job.
Persistence & Privilege
always is false and the skill is user-invocable; the default setting allowing autonomous invocation is enabled but not by itself a red flag. The skill does require executing code in the user's working directory, which is a privilege to write and run files locally, but it does not request persistent modification of agent or system-wide configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install format-book-6x9
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /format-book-6x9 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of format-book-6x9 skill. - Formats manuscripts into both a 6" x 9" Printed Paperback (PDF or DOCX) and a Kindle Ebook (EPUB). - Automatically generates a cover page, table of contents, headers, page numbers, and an About the Author section. - Ensures the paperback meets exact size and typesetting requirements, while the Kindle version uses reflowable text optimized for e-readers. - Prompts the user if essential information (title, author, About the Author) is missing. - Outputs cleanly-named files in the user's working directory.
元数据
Slug format-book-6x9
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Format Book 6x9 是什么?

Formats a manuscript into a 6" x 9" Printed Paperback and a Kindle Ebook, generating a cover page, TOC, headers, and an About the Author section. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 52 次。

如何安装 Format Book 6x9?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install format-book-6x9」即可一键安装,无需额外配置。

Format Book 6x9 是免费的吗?

是的,Format Book 6x9 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Format Book 6x9 支持哪些平台?

Format Book 6x9 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Format Book 6x9?

由 vega6dev(@vega6dev)开发并维护,当前版本 v1.0.0。

💬 留言讨论