Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

init-textbook

БесплатноЗапускает вложенные скриптыНе проверен

Scaffolds a new intelligent textbook project from scratch — mkdocs.yml, docs/ directory tree, starter pages, and license files. Use at the very start of a new…

dmccrearyот dmccreary★ 115 звёзд на GitHub

Об этом скилле

init-textbook

Purpose

This skill drops a complete, sensible default scaffold into an empty (or nearly empty) project directory so the user can run mkdocs serve and see a working intelligent textbook within minutes. The scaffold matches the consensus pattern across our recent textbooks (cybersecurity, networking, information-systems, ancient-history, statistics-course, token-efficiency, quantum-computing, world-history, intelligent-textbooks, book-mascots) so the project starts from the same baseline as everything else in the workspace.

The scaffold is intentionally minimal-but-complete: it ships only the features that every recent textbook ends up using anyway (search, code copy, admonitions, math via arithmatex, side navigation, CC BY-NC-SA license, the intelligent-textbook URI scheme, a cover.png plus the social-override hook that swaps in that cover for the home page). Everything else — mascots, slide viewer, learning graph viewer, custom 404, Cairo-based per-page social cards, glightbox image zoom, Google Analytics, comments, kanban, etc. — is left commented out or absent so the user can layer it on incrementally via the book-installer skill once they actually need it.

This separation of concerns matters: init-textbook is run once at project birth; book-installer is run many times thereafter to add features. Trying to ship every feature in the initial scaffold turned out to make new books slow to start and littered with config the user didn't understand. The 38-feature list under book-installer is the menu, not the default order.

When to Use

Trigger this skill when the user says any of:

  • "init textbook" / "initialize textbook" / "init-textbook"
  • "create a new textbook"
  • "scaffold a new book"
  • "start a new intelligent textbook"
  • "set up a new mkdocs textbook project"
  • "I'm in an empty directory and want to start a book about X"

Do not trigger when:

  • The directory already has a mkdocs.yml and docs/ — that's a job for book-installer (to add features) or for individual generator skills.
  • The user is asking how to use an existing textbook — that's a docs question, not a scaffolding job.

What This Skill Creates

Relative to the project root the user is in:

<project-root>/
├── .gitignore                     # Python, MkDocs, OS, and editor ignores
├── {{REPO_NAME}}.code-workspace   # VS Code workspace file
├── mkdocs.yml                     # rendered from assets/templates/mkdocs.yml
├── .gitignore                     # Python / MkDocs / OS / editor ignore patterns
├── plugins/
│   └── social_override.py         # MkDocs hook: per-page og:image / twitter:image override
└── docs/
    ├── index.md                   # home page
    ├── about.md                   # audience + how to read
    ├── course-description.md      # seed for learning-graph-generator
    ├── contact.md                 # LinkedIn contact info
    ├── license.md                 # CC BY-NC-SA 4.0 deed
    ├── chapters/
    │   └── index.md               # "list of chapters" landing page
    ├── learning-graph/
    │   └── index.md               # learning-graph section landing page
    ├── sims/
    │   └── index.md               # MicroSim catalog landing page
    ├── css/
    │   └── extra.css              # cover-image + iframe styles
    ├── js/                        # empty — populated by book-installer features
    └── img/
        ├── cover.png              # generic 1731×909 cover (replace with book-specific art)
        └── license.png            # CC BY-NC-SA 4.0 badge image

All template files use {{PLACEHOLDER}} markers that the skill substitutes with values gathered from the user.

Inputs the Skill Must Gather

Before writing any files, ask the user for the following. Provide sensible defaults where possible and let the user accept them with a single yes.

Variable Default Notes
SITE_NAME (none — must ask) The book's title in title case (e.g. "Quantum Computing")
SITE_DESCRIPTION (none — must ask) One-sentence description for SEO + social sharing
SITE_AUTHOR "Dan McCreary" Inferred from the git config user.name if available
GITHUB_USERNAME "dmccreary" Inferred from git remote get-url origin if available
REPO_NAME basename of current directory Inferred from pwd
LINKEDIN_URL "https://www.linkedin.com/in/danmccreary/" Author's LinkedIn — optional override
PRIMARY_COLOR "indigo" Material palette primary — common picks: indigo, blue, green, brown, deep orange
ACCENT_COLOR "orange" Material palette accent
YEAR current year (2026) For the copyright line

If the user is in a hurry and says "use defaults", accept the inferred values and proceed. Always confirm the substituted values back to the user in a single block before writing files, so they can spot a wrong repo name or a typo'd title.

Workflow

Step 1 — Ve

Полный SKILL.md на GitHub

Установить init-textbook в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/templates/.gitignoreassets/templates/docs/about.mdassets/templates/docs/chapters/index.mdassets/templates/docs/contact.mdassets/templates/docs/course-description.mdassets/templates/docs/css/extra.cssassets/templates/docs/img/cover.pngassets/templates/docs/img/license.pngassets/templates/docs/index.mdassets/templates/docs/learning-graph/index.mdassets/templates/docs/license.mdassets/templates/docs/sims/index.mdassets/templates/mkdocs.ymlassets/templates/plugins/social_override.pyassets/templates/project.code-workspace

FAQ

Что делает скилл init-textbook?

Scaffolds a new intelligent textbook project from scratch — mkdocs.yml, docs/ directory tree, starter pages, and license files. Use at the very start of a new project, before chapters, learning graph, or MicroSims exist.

Как установить скилл init-textbook?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл init-textbook запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить init-textbook с