Index of every page on this site: llms.txt
All skills
dmccreary avatar

/book-installer

@b3826a7
by Dan McCrearydmccreary/ibook-skills108 stars
21
Run it yourself

Installs and configures intelligent-textbook infrastructure - scaffold a brand-new MkDocs Material textbook (init textbook), install any of 41 features (math, mascot, learning graph viewer, Google Analytics GA4, custom 404, kanban board), and generate book metrics. Routes to the appropriate installation guide.

Use this Skill: https://skilld.dev/gh/dmccreary/ibook-skills/book-installer

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈950 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Book Installer Skill

Installs and configures project infrastructure for MkDocs Material intelligent textbooks.

Quick Start

Say book-installer help to see all available features, then select by number or name.

Math Equation Syntax

This skill configures KaTeX with a currency-safe setup. Single $ is NOT used for inline math, so you can write dollar amounts naturally.

Quick Reference

What You Want Syntax Example
Inline math \(...\) The equation \(E = mc^2\) is famous.
Display math (block) $$...$$ See below
Display math (alt) \[...\] See below
Currency $20 The book costs $29.99. (no escaping needed)

Inline Math

Use backslash-parentheses for inline equations:

Einstein's equation \(E = mc^2\) relates mass and energy.

The quadratic formula is \(x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}\).

Display Math (Block)

Use double dollar signs or backslash-brackets for centered equations:

The Gaussian integral:
$$
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
$$

Alternatively:
\[
\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}
\]

Currency Values

Dollar signs work naturally without escaping:

The textbook costs $89.99.
Prices range from $10 to $500.
We saved $25.00 on the purchase.

Configuration Files

The math configuration requires two files:

mkdocs.yml

markdown_extensions:
  - pymdownx.arithmatex:
      generic: true
      inline_syntax: ['round']
      block_syntax: ['dollar', 'square']

extra_javascript:
  - js/katex.js
  - https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js
  - https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js

extra_css:
  - https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css

docs/js/katex.js

// KaTeX auto-render configuration
// Single $ is NOT used for math to allow currency notation like $20
// Use \(...\) for inline math and $$...$$ or \[...\] for display math
document.addEventListener("DOMContentLoaded", function() {
    renderMathInElement(document.body, {
        delimiters: [
            {left: "$$", right: "$$", display: true},
            {left: "\\[", right: "\\]", display: true},
            {left: "\\(", right: "\\)", display: false}
        ],
        throwOnError: false
    });
});

Why This Configuration?

Many technical textbooks discuss both mathematics and costs:

  • Control systems textbooks might mention "$20 Arduino boards"
  • Economics courses frequently use dollar amounts
  • Engineering texts reference component prices

The traditional LaTeX convention of $...$ for inline math conflicts with currency notation. This configuration:

  1. Uses \(...\) for inline math (LaTeX standard alternative)
  2. Preserves $$...$$ for display math (widely expected)
  3. Leaves single $ for currency (no escaping needed)

Comparison with Standard KaTeX

Feature Standard KaTeX This Configuration
Inline math $E=mc^2$ \(E=mc^2\)
Display math $$...$$ $$...$$ (same)
Currency $20 \$20 (escaped) $20 (natural)

Available Features

Run book-installer help to see all 28+ features including:

  • Project templates
  • Branding (logo, favicon, cover images)
  • Math equations (KaTeX or MathJax)
  • Code highlighting with copy buttons
  • Mermaid diagrams
  • Interactive quizzes
  • Learning graph viewer
  • And more...

See Also

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning4d3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The Book Installer skill provides a suite of tools for scaffolding and enhancing MkDocs-based textbooks. It includes scripts for feature detection, reading level analysis, and asset generation. Security analysis found no malicious behavior; the skill uses standard command execution for maintenance and fetches assets from well-known public CDNs and the author's official GitHub domains.

  • Socket4d

    2 alerts: gptAnomaly

  • Snyk4d

    Risk: LOW · No issues

Signed by skilld at b3826a7. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 3 days ago
metadata
{
  "ibook.version": "1.0.2"
}

README badge

README badge for dmccreary/ibook-skills/book-installer