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

@openpact/skill

v0.1.4

Published

Portable agent skill for the OpenPact daemon (SKILL.md + machine-readable tools.json)

Readme

@openpact/skill

A portable agent skill for the OpenPact daemon. Two files:

  • SKILL.md — markdown + YAML frontmatter that any LLM-driven runtime (OpenClaw, Cursor rules, Claude Code, Codex, OpenCode, bespoke agents) can load as a system-prompt addition.
  • tools.json — the same tool surface in a machine-readable form for runtimes that codegen tools (LangChain, CrewAI, AutoGen, custom).

If your runtime speaks MCP (Claude Desktop, Claude Code, Cursor, Codex, OpenCode, Zed), use @openpact/mcp instead — MCP gives the agent first-class tools without prompt-level glue.

What it gives the agent

  • Recall before acting. Read recent knowledge before answering or proposing a change.
  • Record after deciding. Capture non-obvious calls so the next session starts from that ground.
  • Coordinate work. Post tasks, claim them, complete them — without multiple agents stepping on each other.
  • Broadcast updates. Short messages so other agents see what's in flight.

Prerequisites

  • A running OpenPact daemon on 127.0.0.1:7666. Quick start:

    npm i -g @openpact/cli
    openpact init
    openpact start
  • The agent runtime must be able to issue HTTP requests (or use a shell tool that can call curl).

Install per runtime

OpenClaw

OpenClaw supports MCP, so register @openpact/mcp for first-class OpenPact tools and install this SKILL.md alongside as the agent's guidance layer. See examples/openclaw for the full layout.

# Tool layer: wire up the MCP server
openclaw mcp add openpact -- npx -y @openpact/mcp

# Guidance layer: drop the SKILL into the workspace
npm i -D @openpact/skill
mkdir -p skills/openpact
cp node_modules/@openpact/skill/SKILL.md skills/openpact/SKILL.md

# Verify
openclaw skills info openpact
openclaw skills check

Verified on OpenClaw 2026.4.15. The markdown body loads as skill instructions; the MCP server owns the tool surface. The frontmatter tools: block is not consumed as runtime tools on current OpenClaw — that's by design, since MCP is the right integration point.

Cursor

Drop SKILL.md into .cursor/rules/openpact.md:

mkdir -p .cursor/rules
cp node_modules/@openpact/skill/SKILL.md .cursor/rules/openpact.md

The frontmatter is ignored as plain text — Cursor reads the markdown body. The agent gets the conventions; you write a small wrapper to execute the curl recipes (or use the Claude Code recipe for inspiration).

Claude Code

Use the paste-into-CLAUDE.md recipe in the OpenPact repo — it's the Claude Code-flavored version of this same skill, with curl + jq one-liners spelled out. Or install @openpact/mcp for first-class tools.

LangChain (Python)

Load tools.json and codegen the tools at boot:

import json, requests
from pathlib import Path
from langchain.tools import StructuredTool
import os

spec = json.loads(Path("node_modules/@openpact/skill/tools.json").read_text())
base = os.environ.get(spec["runtime"]["env"], spec["runtime"]["base_url"])

def make_tool(t):
    def call(**kwargs):
        path = t["path"]
        for k in t.get("params", {}):
            path = path.replace(f":{k}", str(kwargs.pop(k)))
        url = base + path
        method = t["method"]
        if method == "GET":
            return requests.get(url, params=kwargs).json()
        return requests.request(method, url, json=kwargs).json()
    return StructuredTool.from_function(call, name=t["name"], description=t["description"])

tools = [make_tool(t) for t in spec["tools"]]

(Sketch — adapt argument schemas to your LangChain version. The canonical tool surface is in tools.json; keep your loader in lock step with it.)

Custom agent runtime

Read tools.json. For each tool, build the URL from base_url + path (substituting :id-style params), use query for query-string params on GETs, and use body as the JSON request body for non-GETs. Surface daemon errors ({ error: "<CODE>", ... }) to the agent verbatim — codes are documented in errors.codes.

Verify

After installing, ask the agent (in whatever way your runtime accepts prompts):

Use OpenPact: list any recent knowledge, then record that we're starting an experiment called "skill wiring works".

Then in a terminal:

openpact log --type knowledge

You should see the new entry.

Versioning

SKILL.md and tools.json are kept in lock step. The version field in both reflects the daemon REST surface they target (which itself follows @openpact/daemon's major). When the daemon's REST surface changes incompatibly, this package's major bumps too.