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

@civaapple/qi-skills

v0.5.1

Published

Safe progressive loading of declarative Agent and Skill definitions

Readme

@civaapple/qi-skills

Safe progressive loading of declarative Skills and Agent definitions from the filesystem.

Purpose

This package discovers lightweight metadata first and loads full instructions or resources only when selected. It treats repository content as data, not executable authority.

Non-goals

  • A Skill never grants capabilities by being installed or mentioned.
  • Agent definitions are not runtime JavaScript plugins.
  • Discovery does not recursively ingest every referenced file into context.

Core model

SkillLoader validates roots, frontmatter, metadata, and progressively disclosed content. SkillCatalog merges the Workspace .qi/skills scope with the user ~/.qi/skills scope; a same-named Workspace Skill wins. Agent definitions are parsed declaratively. Shared frontmatter helpers enforce required fields without evaluating source code. version is optional and projects as unversioned when absent.

Behavioral invariants

  • Missing or invalid frontmatter fails closed.
  • Skill roots that are symbolic links are rejected at the trust boundary.
  • Agent definition files are read as declarations and never executed.
  • Full resources remain unloaded until explicitly requested.
  • Installation copies a bounded allowlist of files through a sibling staging directory and atomic rename.
  • Installation never follows symbolic links, overwrites an existing Skill, or grants runtime capabilities.
  • Workspace updates require an exported ordinary-directory draft plus a fresh digest, and retain recovery state when atomic publication cannot be confirmed.

Failure semantics

Invalid roots, metadata, or definitions produce structured loader errors before content enters context. A load failure does not fall back to executing or trusting the file.

Install and minimal use

npm install @civaapple/qi-skills
import { parseFrontmatter } from "@civaapple/qi-skills";

const parsed = parseFrontmatter(
  "---\nname: explain\ndescription: Explain a repository\n---\nRead the smallest relevant files.",
  "Example Skill",
);

Public API

SkillLoader, SkillCatalog, skill metadata/result types, agent definition types, and frontmatter parsing helpers.

SkillCatalog.install() accepts an explicit local directory or a bare name found under configured compatibility roots such as ~/.codex/skills (including .system/<name>). It has no implicit network registry. User scope is the API default; callers must request Workspace scope explicitly.

exportWorkspaceDraft() and updateWorkspace() are the create-draft/update pair for existing Workspace Skills. They do not weaken the generic .qi file boundary; callers must still provide effect and path authority.

Change guide

Keep discovery cheap and loading explicit. New metadata fields must define validation and whether they affect selection, context, or only presentation; none may imply authority.

Verification

tests/skills-agent.test.mjs covers progressive disclosure, scope precedence, bounded local installation, frontmatter, symlink roots, and non-execution.

Further reading