Skip to content
Back to skills

Book

ASecurity

Manage book projects - create/edit parts, chapters, sections. Use when user wants to add, rename, delete, or reorganize book structure elements. Triggers on "new chapter", "add section", "rename part", "delete appendix", "move chapter".

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
documentationpythonbashdocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill book --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Book?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Book
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-book/badge)](https://www.skillsdirectory.com/skills/david-li0406-book)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: book
description: Manage book projects - create/edit parts, chapters, sections. Use when user wants to add, rename, delete, or reorganize book structure elements. Triggers on "new chapter", "add section", "rename part", "delete appendix", "move chapter".
allowed-tools: Read, Glob, Grep, Edit, Write, Bash, AskUserQuestion
---
# Book Skill

Manage structured book projects with parts, chapters, sections, and appendices.

## Config Requirement

**Always read `config.yaml` first** to determine the active filetype (latex, markdown, html).

```
./config.yaml
```

The `types` field specifies active formats. Load the corresponding implementation from `commands/<type>/`.

## CLI Commands

### Compile

```bash
python .claude/skills/book/cli/windows/compile_latex.py [filename]
```

- No filename: compiles `main.tex`
- With filename: compiles specified file

### Initialize Project

```bash
python .claude/skills/book/cli/windows/init_book.py <type>
```

- Creates project structure for specified type (latex, markdown, html)

### Image Generation

```bash
python .claude/skills/book/cli/windows/image_gen.py new --path "path/to/output.png" "prompt describing the image"
python .claude/skills/book/cli/windows/image_gen.py edit --path "path/to/image.png" "prompt describing changes"
```

## Structure Commands

For structural operations, load the command file from `commands/`:

| Operation          | Command File                                                                                                                       |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
| **Part**     | `new-part.md`, `insert-part.md`, `rename-part.md`, `delete-part.md`                                                        |
| **Chapter**  | `new-chapter.md`, `insert-chapter.md`, `rename-chapter.md`, `delete-chapter.md`, `move-chapter.md`, `swap-chapters.md` |
| **Section**  | `new-section.md`, `insert-section.md`, `rename-section.md`, `delete-section.md`, `move-section.md`, `swap-sections.md` |
| **Appendix** | `new-appendix.md`, `insert-appendix.md`, `rename-appendix.md`, `delete-appendix.md`                                        |

Each command file specifies:

1. Required information to gather
2. Type-agnostic workflow steps
3. Reference to type-specific implementation in `commands/<type>/`

## Missing Arguments Rule

**Always use `AskUserQuestion`** when required information is missing:

- **Part/Chapter/Section/Appendix operations**: Ask for slug and title if not provided
- **Insert operations**: Ask for position if not specified
- **Move operations**: Ask for target location if not provided

## Reference Documents

- `templates/structure.md` - Folder/file naming conventions
- `filetypes/<type>.md` - Type-specific templates and patterns
- `docs/` - Additional reference documentation

Files in this skill

  • SKILL.md2.9 KB
  • actions.md20.4 KB
  • cli/README.md3.7 KB
  • cli/windows/book_cli.py5.1 KB
  • cli/windows/compile_latex.py3.7 KB
  • cli/windows/image_gen.py9.4 KB
  • cli/windows/init_book.py3.4 KB
  • cli/windows/init_latex.py9.2 KB
  • cli/windows/pyproject.toml510 B
  • commands/delete-appendix.md963 B
  • commands/delete-chapter.md1022 B
  • commands/delete-part.md869 B
  • commands/delete-section.md881 B
  • commands/insert-appendix.md1 KB
  • commands/insert-chapter.md1.3 KB
  • commands/insert-part.md1 KB
  • commands/insert-section.md1.2 KB
  • commands/latex/delete-appendix.md603 B
  • commands/latex/delete-chapter.md651 B
  • commands/latex/delete-part.md541 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…