1. Habit
  2. Skills
  3. Book to Skill skill
virgiliojr94 · 8K installs

Book to Skill skill
Runs by itself, every time you add a document.

Your knowledge base grows with each new document you add.

Install the Book to Skill skill and make it a habit: follow https://gethabit.dev/skills/virgiliojr94/book-to-skill.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

8K installs36K starsMIT licenceSource on GitHub ↗

Book to Skill

by virgiliojr94 · 8K installs

The skill

Turns a book or paper into a skill your agent can use.

Only when you ask.

Smarter agent

Your knowledge base grows with each new document you add. Your agent knows more.

↻ Runs by itselfevery time you add a document

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleOne new document per run; stop at the first scan finding without rewriting files.

  1. 01

    Validate input

    Check the new file has a supported format and spot that the target skill already exists, so this is an Update/Fold-in run.

  2. 02

    Ask content type

    Ask you whether the source is technical or text-heavy to pick the extraction mode.

  3. 03

    Extract

    Run extract.py, then confirm in metadata.json that the extracted file is the one you added.

  4. 04

    Confirm estimate

    Show you sources, pages and token counts and wait for your go before generating.

  5. 05

    Fold in chapters

    Merge revisions into existing chapter files or add new ones numbered after the highest chapter.

  6. 06

    Merge indexes

    Update glossary.md, patterns.md, cheatsheet.md and the Chapter and Topic Index in SKILL.md.

  7. 07

    Scan

    Run scan_generated_skill.py and stop for your review if it reports findings.

  8. 08

    Clean up

    Remove only this run's workdir and log the folded source.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Book to Skill skill helps.

Use it when

  • ✓ You want a book as an agent skill
  • ✓ You build a reusable knowledge base
  • ✓ You add new sources to a book skill

Skip it when

  • – You only want a short summary
  • – You plan to publish copyrighted text

Questions

Book to Skill skill, answered.

Does it rebuild the whole skill each time?

No. It uses the skill's fold-in path, so only new or revised chapters and the indexes change.

Will it publish my skill?

No. Publishing is an optional extra the skill offers once; this loop leaves it out.

What if the scan finds something?

The run stops and waits for you to review the flagged files and lines.

How do I install the Book to Skill skill?

Copy the prompt at the top into your agent. It installs the skill from virgiliojr94/book-to-skill and sets up the habit. Or run npx skills add virgiliojr94/book-to-skill --skill book-to-skill.

Is the Book to Skill skill free?

Yes. It is published under MIT. Habit is free too.

Book to Skill. Now as a habit.

Install the Book to Skill skill and make it a habit: follow https://gethabit.dev/skills/virgiliojr94/book-to-skill.md

  • Free
  • No account
  • Undo in one line

All virgiliojr94 skills →More notes skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by virgiliojr94, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.