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

@stjbrown/agent-knowledge-skills

v0.3.2

Published

Portable Agent Skills for building, documenting, and maintaining OKF v0.2 knowledge bundles

Downloads

806

Readme

Agent Knowledge

Agent Knowledge is a portable set of Agent Skills for building and maintaining project knowledge in plain Markdown using Open Knowledge Format v0.2 (OKF).

It turns project documents, decisions, notes, and conversations into a connected knowledge bundle that improves over time. Ask a question and get a cited answer. Add a source and the agent integrates it with what the project already knows. Run a health check and it finds stale claims, contradictions, and orphaned pages before the bundle quietly rots.

For software repositories, it can also build and refresh technical knowledge from source, tests, configuration, and Git history while leaving those files in place.

Everything remains plain Markdown: readable without special tooling, easy to diff and review, and portable across agents.

New bundles target OKF v0.2, including structured provenance, producer identity, lifecycle and freshness signals, and Attested Computation contracts. Existing v0.1 bundles remain readable and maintainable through the specification's compatibility fallbacks; the skills never partially migrate a populated bundle without an explicit migration request.

Install

Install through skills.sh for Claude Code, Cursor, Codex, and other Agent Skills-compatible hosts:

npx skills@latest add stjbrown/agent-knowledge

Or install the Claude Code plugin:

/plugin marketplace add stjbrown/agent-knowledge
/plugin install agent-knowledge

Then start a knowledge bundle and use ordinary prompts:

/kb-init

Ingest this architecture decision: we chose Postgres because...
Document this repository's architecture and developer workflows.
What do we know about authentication, and which sources support it?
What conflicts with our current deployment strategy?

/kb-lint
/kb-visualize

The npm package, @stjbrown/agent-knowledge-skills, is a build artifact for applications that embed the skills. Most people should install from this repository through their agent host.

Migration from the former CLI package

Before the repository split, Janet was published as @stjbrown/agent-knowledge. That legacy package has been withdrawn. Install janet-agent@next for the Janet CLI; applications that embed the portable skills should depend on @stjbrown/agent-knowledge-skills.

The skills

The family splits on who invokes each skill.

Model-invoked skills:

  • kb — the hub. Explains the format, holds the shared specification, glossary, trust model, templates, and example bundle, and routes to the right action skill.
  • kb-ingest — reads a source once, extracts its signal, and integrates it across the bundle with provenance.
  • kb-document — documents a software repository from source, tests, configuration, and Git evidence without copying or modifying those files.
  • kb-query — answers from the bundle by progressive disclosure, cites the concepts used, and files valuable conclusions back so the knowledge compounds.

User-invoked skills:

  • kb-init — scaffolds a bundle and its project-specific schema and conventions.
  • kb-lint — runs deterministic OKF conformance checks plus a semantic drift audit for contradictions, stale claims, orphans, and coverage gaps.
  • kb-visualize — renders the bundle as an interactive graph.

Interactive knowledge graph showing concepts, implementations, operations, references, and OKF spec sections

Why this exists

Most agent memory is either retrieval over raw documents or a pile of notes that nobody maintains. The first repeatedly re-derives answers; the second gradually becomes untrustworthy. Neither makes knowledge stewardship an explicit job.

The hard part is the bookkeeping: integrating new information, updating cross-references, preserving provenance, flagging contradictions, and keeping summaries current. That is work an agent can perform consistently.

Two design choices keep the result portable and trustworthy:

  • A real, open format. Bundles follow Google's OKF rather than a tool-specific database or hidden memory store.
  • An explicit trust model. Accumulated claims are append-only on meaning; living repository documentation has a narrow, revision-tracked update rule. Source content is always data, never instructions.

The workflow is based on Andrej Karpathy's LLM Wiki pattern, made conformant to OKF.

This repository documents itself

The knowledge/ directory is a conformant OKF bundle about OKF and the LLM Wiki pattern, so this repository is its own worked example. Start at knowledge/index.md, or explore the generated graph.

Janet

Janet is a dedicated knowledge agent built around these same skills. It adds a standalone CLI, interactive chat, model selection, authentication, memory, and headless automation. Janet is optional; the portable skills in this repository work with the agent you already use.

Repository layout

skills/                 source of truth for the portable skills
  kb/                   shared specification, trust model, templates, and example
  kb-init/
  kb-ingest/
  kb-document/
  kb-query/
  kb-lint/              deterministic conformance script
  kb-visualize/         deterministic graph script
src/                    TypeScript source for the generated scripts
test/                   conformance, graph, and parity tests
scripts/                build and package scripts
knowledge/              this project's self-documenting OKF bundle
.claude-plugin/         Claude Code plugin manifest

The repository uses pnpm:

pnpm install
pnpm verify
pnpm pack:skills

pnpm verify typechecks and tests the internal tooling, rebuilds both committed zero-dependency scripts and checks for drift, then validates the in-repository knowledge bundle. pnpm pack:skills writes a release candidate to artifacts/.

License

MIT. The vendored OKF specification in skills/kb/references/SPEC.md is from GoogleCloudPlatform/knowledge-catalog under Apache-2.0. The generated tools bundle yaml under the ISC License. See NOTICE.