book-to-wiki-core

Frontend-only sub-skill for a book-to-skill update suite. Accepts plain-text books (.txt or .md), performs validation, removes invisible prompt-injection characters, detects structure, classifies book type, plans capacity, and generates a Wiki layer (chapter-map.json, chapters/, glossary.md, patterns.md, cheatsheet.md) plus a SKILL.md scaffold. Intended to provide a clean, structured package for backend refinement or to preview book structure before full generation.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "book-to-wiki-core" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7571f0c1a3247c7d7e78eb53e2a76d7ffb4227f17eceb1019bc79038861f502e. Verify the upstream source and version against https://skillhub.cn/skills/user_360c4d3a/book-to-deep before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Frontend-only sub-skill for a book-to-skill update suite. Accepts plain-text books (.txt or .md), performs validation, removes invisible prompt-injection characters, detects structure, classifies book type, plans capacity, and generates a Wiki layer (chapter-map.json, chapters/, glossary.md, patterns.md, cheatsheet.md) plus a SKILL.md scaffold. Intended to provide a clean, structured package for backend refinement or to preview book structure before full generation.

0 Downloads

Introduction source: third_party · user_360c4d3a · 1.0.0 Reference

SkillPi interpretation

Tasks
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.
Inputs and outputs
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.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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.

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

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

Highlights

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

Highlights

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

Highlights

  • 依赖项来源明确,错误处理覆盖主要异常场景
  • 关键操作设有用户确认机制,保障执行安全性
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

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

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.