book-to-wiki-core

仅前端子技能,适用于书籍转技能更新套件。接收纯文本书籍(.txt 或 .md),进行验证、清除不可见提示注入字符、检测结构、分类书籍类型、规划容量,并生成 Wiki 层(chapter-map.json、chapters/、glossary.md、patterns.md、cheatsheet.md)及 SKILL.md 框架。用于在后端提炼前提供干净、结构化的包或在完整生成前预览书籍结构。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "book-to-wiki-core":https://skillpi.com/zh/skills/deepskill-7571f0c1a3247c7d7e78eb53e2a76d7ffb4227f17eceb1019bc79038861f502e。安装前核对上游来源和版本:https://skillhub.cn/skills/user_360c4d3a/book-to-deep。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

仅前端子技能,适用于书籍转技能更新套件。接收纯文本书籍(.txt 或 .md),进行验证、清除不可见提示注入字符、检测结构、分类书籍类型、规划容量,并生成 Wiki 层(chapter-map.json、chapters/、glossary.md、patterns.md、cheatsheet.md)及 SKILL.md 框架。用于在后端提炼前提供干净、结构化的包或在完整生成前预览书籍结构。

0 下载

介绍来源: third_party · user_360c4d3a · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: "book-to-skill-update"
description: "Orchestrates the end-to-end book-to-skill pipeline. Invoke when a user wants to convert a plain-text book into a reusable agent skill with step-by-step control and review checkpoints."

Book-to-Skill Update

This skill owns the complete pipeline for converting a plain-text book into a hybrid agent skill. It coordinates the frontend (book-to-wiki-core) and backend (bookbone) sub-skills, pausing at user checkpoints to confirm direction before continuing.

What this skill does

  1. Validates the input plain-text file.
  2. Calls book-to-wiki-core in analyze mode to classify the book and plan capacity.
  3. Asks the user to confirm BOOK_TYPE, DEPTH, and CAPACITY_STRATEGY.
  4. Optionally pauses for chapter-summary review after generating the wiki layer.
  5. Calls bookbone to distill the framework layer.
  6. Merges framework outputs into the master SKILL.md.
  7. Runs the security scan and reports final deliverables.

When to invoke

Invoke this skill when:

  • A user provides a .txt or .md book file and wants a complete agent skill.
  • The user wants step-by-step control with review checkpoints.
  • The user wants both the wiki-style chapter layer and the bookbone-style framework layer.

Do not invoke for raw PDF/EPUB/DOCX files. Convert those to plain text before using this pipeline.


Invocation

/book-to-skill-update <path-to-text-file> [skill-name-slug]

Resume after a wiki-layer interrupt:

/book-to-skill-update --resume <skill-dir>

Examples:

/book-to-skill-update ~/books/ddia.md
/book-to-skill-update ~/books/ddia.md designing-data-intensive-apps
/book-to-skill-update --resume ./designing-data-intensive-apps

Pipeline Overview

User provides .txt/.md file
        │
        ▼
Step 1 — Validate input
        │
        ▼
Step 2 — Analyze (/book-to-wiki-core --mode analyze)
         • Sanitize text
         • Detect structure
         • Estimate tokens
         • Propose BOOK_TYPE candidates
        │
        ▼
Step 3 — User checkpoints
         • Confirm BOOK_TYPE
         • Confirm DEPTH
         • Confirm CAPACITY_STRATEGY
        │
        ▼
Step 4 — Generate wiki layer (/book-to-wiki-core full mode)
         • chapters/
         • glossary.md
         • patterns.md
         • cheatsheet.md
         • chapter-map.json
         • SKILL.md skeleton
        │
        ▼
Step 5 — Optional checkpoint: chapter-summary review
         • User may interrupt and resume later
        │
        ▼
Step 6 — Distill framework (/bookbone --input ...)
         • framework/mental-models.md
         • framework/methodologies.md
         • framework/cases.md
         • framework/limits.md
        │
        ▼
Step 7 — Framework review checkpoint
        │
        ▼
Step 8 — Merge framework into SKILL.md
        │
        ▼
Step 9 — Security scan
        │
        ▼
Step 10 — Report final deliverables

Step-by-Step Instructions

Step 1 — Validate input

Check that the provided path exists and ends with .txt or .md. If not, stop and ask the user to provide a pre-extracted plain-text file.

Step 2 — Analyze with book-to-wiki-core

Run the analysis phase:

/book-to-wiki-core <path> --mode analyze

Capture and present:

  • Estimated tokens
  • Detected chapter count
  • Sample headings
  • BOOK_TYPE candidates with confidence scores
  • Secondary type hints

Step 3 — Confirm BOOK_TYPE, DEPTH, and CAPACITY_STRATEGY

3.1 Confirm book type

Present one primary and up to two secondary candidates:

Detected book type candidates:
   1. technical          (confidence: 95%)
   2. textbook           (confidence: 30%)
   3. business           (confidence: 10%)

Please select the primary type (1-3) or type your own.

3.2 Confirm depth

Ask what the skill should help the user do:

What should this skill help you do?
1. Apply the author's frameworks while working
2. Think with the author's mental models
3. Reference specific chapters and concepts
4. All of the above
  • Only option 3 → DEPTH=reference
  • Any other selection → DEPTH=study

3.3 Confirm capacity strategy

Estimated tokens: <N>
Recommended capacity strategy: <direct | batch | chapter-first>
Do you want to proceed with this strategy? (yes / no / choose another)

Step 4 — Generate the wiki layer

Run the full generation phase:

/book-to-wiki-core <path> <skill-name-slug>

This creates the skill directory with:

<skill-name>/
├── SKILL.md
├── framework/
├── chapters/
├── glossary.md
├── patterns.md
├── cheatsheet.md
├── chapter-map.json
└── .meta/

The framework/ directory is empty at this stage; bookbone populates it in Step 6.

Step 5 — Optional chapter-summary review

Offer the user a chance to review the wiki layer before distillation:

The wiki layer is ready. Do you want to review chapter summaries now,
or should I continue to framework distillation?
- continue
- review first (pause here; resume later with --resume <skill-dir>)

If the user chooses to pause, report the current directory state and explain how to resume:

/book-to-skill-update --resume <skill-dir>

Step 6 — Distill framework with bookbone

Build bookbone-input.json in <skill-dir>/.meta/ using the contract defined in book-to-wiki-core/BOOKBONE_INTEGRATION.md.

Then invoke:

/bookbone --input <skill-dir>/.meta/bookbone-input.json

bookbone writes:

  • framework/mental-models.md
  • framework/methodologies.md
  • framework/cases.md
  • framework/limits.md
  • .meta/bookbone-output.json

Step 7 — Review framework

Present a summary of the distilled framework and ask the user to confirm before merging:

Framework distillation complete.
- Mental models: <count or summary>
- Methodologies: <count or summary>
- Case patterns: <count or summary>
- Limits: <count or summary>

Proceed with merge? (yes / retry / abort)

Step 8 — Merge framework into SKILL.md

Read the generated framework/*.md files and fold their content into the master SKILL.md:

  • Core frameworks summary
  • Links to framework/mental-models.md
  • Links to framework/methodologies.md
  • Links to framework/cases.md
  • Links to framework/limits.md

Keep the master SKILL.md under 4,000 tokens.

Step 9 — Security scan

python3 tools/scan_generated_skill.py <skill-dir>/

If the scanner reports findings, stop and ask the user to review. Do not finalize until resolved.

Step 10 — Report final deliverables

Skill created: <skill-name>/

Book: <Title> — <Author>
Type: <BOOK_TYPE>
Chapters: <N>
Capacity strategy: <CAPACITY_STRATEGY>

Files generated:
  SKILL.md                       — core entry point
  framework/mental-models.md     — mental models
  framework/methodologies.md     — methodologies
  framework/cases.md             — case patterns
  framework/limits.md            — boundaries & honesty limits
  chapters/                      — per-chapter summaries
  glossary.md                    — key terms
  patterns.md                    — techniques & patterns
  cheatsheet.md                  — quick reference
  chapter-map.json               — chapter boundaries
  .meta/bookbone-input.json      — bookbone request
  .meta/bookbone-output.json     — bookbone response

Usage:
  /<skill-name>                       → load core frameworks
  /<skill-name> mental models         → read framework/mental-models.md
  /<skill-name> methodology <name>    → read framework/methodologies.md
  /<skill-name> case <pattern>        → read framework/cases.md
  /<skill-name> limits                → read framework/limits.md
  /<skill-name> ch<N>                 → dive into a chapter
  /<skill-name> about <topic>         → find and explain a topic

User Checkpoints

Checkpoint What to confirm
C1 BOOK_TYPE classification
C2 DEPTH (reference or study)
C3 CAPACITY_STRATEGY
C4 Optional chapter-summary review after wiki-layer generation
C5 Framework review before merging into SKILL.md
C6 Final deliverables

Resume After Interrupt

If the user pauses after the wiki layer, store the current skill directory and continue later with:

/book-to-skill-update --resume <skill-dir>

When resuming:

  1. Verify the directory contains the wiki layer (chapters/, chapter-map.json, SKILL.md skeleton).
  2. Skip the analyze and wiki-generation steps.
  3. Proceed directly to framework distillation with bookbone.
  4. Continue through framework review, merge, security scan, and final report.

Error Handling

Error Action
Input is not .txt / .md Stop; ask the user to convert the file first
book-to-wiki-core analyze fails Report failure; do not call bookbone
User rejects BOOK_TYPE Re-run analysis or accept a manual type
Token count exceeds direct limit Recommend batch or chapter-first strategy
User pauses after wiki layer Store state; provide --resume command
bookbone quality gate fails Show findings; ask whether to retry, accept with warnings, or abort
Security scan fails Stop; require manual review before finalizing

Dependencies

This orchestrator requires:

  • book-to-wiki-core (frontend sub-skill)
  • bookbone (backend sub-skill)
  • tools/scan_generated_skill.py from book-to-wiki-core

If bookbone is unavailable, fall back to using the current LLM to perform the bookbone distillation methodology described in bookbone/SKILL.md.

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 高价值端到端编排器,解决用户将纯文本书籍转换为可重用 Agent 技能的核心痛点
  • 提供完整的流程控制与多阶段用户检查点,显著提升复杂任务的可靠性与用户体验
触发精准95/100

亮点

  • 触发条件清晰明确,涵盖适用场景、不适用场景及具体调用方式
  • 边界定义严谨,有效避免误触或漏触
结构规范94/100

亮点

  • 文档结构完整,包含从概述到错误处理的全部必要章节
  • 步骤划分清晰,配有流程图与端到端示例,frontmatter 规范完整
执行可靠91/100

亮点

  • 依赖项来源明确,错误处理覆盖主要异常场景
  • 关键操作设有用户确认机制,保障执行安全性
证据可验 (前四项均值)93/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。