npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

omk-book-to-skill

v1.2.4

Published

Optional OMK adapter for compiling documents into provenance-tracked agent skills

Readme

omk-book-to-skill

Optional OMK package for compiling documents into reusable Agent Skills. It combines a pinned book-to-skill workflow with OMK commands and a local provenance verifier.

Install

From npm after publication:

omk install npm:[email protected]

From this repository:

npm run build --workspace packages/book-to-skill
omk install ./packages/book-to-skill

Python 3.9 or newer is required for extraction. Format-specific packages such as pypdf, python-docx, and Docling are optional and stay in the user's Python environment; this npm package installs none of them.

Use

/book-to-skill-compile <source...>
/book-to-skill-update <existing-skill> <new-source...>
/book-to-skill-verify <generated-skill-directory>

The package also installs the book-to-skill skill, so /skill:book-to-skill and !book-to-skill remain available.

Reading an OpenKB knowledge base

The bundled openkb skill navigates a knowledge base compiled by the OpenKB CLI: it locates the active KB with openkb status, then reads concept, entity, and summary pages and follows wikilinks across documents. Invoke it with /skill:openkb or let it match a question about the user's knowledge base.

The two halves divide by output. book-to-skill compiles documents into a reusable skill; OpenKB compiles them into a browsable wiki this skill reads. Document-to-skill compilation stays on /book-to-skill-compile, which records and verifies provenance — the skill deliberately routes away from OpenKB's own Skill Factory so one request has one answer.

The skill is read-only. Ingest, removal, lint --fix, and the interactive and watch modes are proposed to the user, never run on the agent's initiative, and compiled pages are treated as untrusted data rather than instructions. OpenKB itself is a separate Python CLI (3.10+) with its own model credentials; this package installs neither. Nothing is vendored from OpenKB — see skills/openkb/SOURCE.md for the pinned commit and what was deliberately left out.

The workflow records provenance after generation through scripts/provenance.mjs, resolved relative to the bundled skill. In a normal npm installation where the package bin is on PATH, the equivalent commands are:

omk-book-to-skill record --skill ~/.omk/agent/skills/example --source ./book.pdf
omk-book-to-skill verify --skill ~/.omk/agent/skills/example --source ./book.pdf

Repeat --source in the original order for multi-source compilations. Use record --merge-sources after folding new sources into an existing skill.

Verification boundary

The v1 manifest records SHA-256 digests for source files and generated artifacts. verify also runs the pinned upstream advisory prompt-injection scanner.

This checks local byte-level consistency against an unsigned manifest. It does not authenticate the manifest or prove authorship, licensing, trusted attestation, or semantic claim-to-source grounding. The latter requires a future span/claim evaluation layer.

Upstream

The runtime subset under vendor/book-to-skill/ is an unmodified snapshot of virgiliojr94/book-to-skill commit c4c5e948caaa912c9e2024b925a7cdee9237b0c0 (declared upstream version 1.4.0). upstream.json pins every vendored file by SHA-256.

The openkb skill is derived rather than vendored: it states OpenKB's wiki layout and read-only command surface as original prose pinned to VectifyAI/OpenKB commit ff54396e575ee6feb0113b631a34caa082b441cc (Apache-2.0), and copies no upstream file. upstream.json therefore continues to describe exactly one upstream.

Development

npm test --workspace packages/book-to-skill
npm run build --workspace packages/book-to-skill