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

agent-booster-pack-contract-first

v1.0.2

Published

Interface Design Gate for Pi plus contract-first skill: pause and require human approval of contract/API shape before implementation lands.

Readme

agent-booster-pack-contract-first

The Interface Design Gate for Pi, the terminal coding agent.

When work appears to define or materially change a durable interface between application components, the agent must stop before implementation and present:

Interface Design Gate

Current interface:
Proposed interface:
Why this boundary:
User decision:

The agent may propose the interface shape, but the user must approve, revise, or rule it out before implementation code lands. The gate is a soft runtime check — false positives can be allowed through.

This package includes both the runtime gate and the matching full contract-first skill. The skill carries the doctrine; this package enforces it at tool-call time inside Pi.

Install

Install Pi:

npm install -g @mariozechner/pi-coding-agent
pi

Install agent-booster-pack-contract-first:

pi install npm:agent-booster-pack-contract-first

Then in Pi:

/reload

If you want the full ABP experience (general skills + runtime-owned skills + gates), install the meta-package instead.

What it does

The extension hooks two Pi events:

  • before_agent_start — appends a system-prompt reminder so the agent knows to produce the gate packet (Current/Proposed/Why/User decision) whenever work touches a durable interface.
  • tool_call — soft-blocks mutating tool calls (edit, write, and shell commands that match a write pattern like >, tee, sed -i, mv, cp, git apply, etc.) when conversation contains interface-intent keywords without a recent gate approval. In a UI session, the user is prompted to allow the action; without a UI, the call is blocked.

The gate fires only when interface intent is present in recent chat (keywords like interface, contract, api, class, method, module facade, exported type, adapter, service boundary, component props, schema, endpoint, config key, file format, event payload). Internal helper extractions, formatting changes, and unrelated work are unaffected.

Approving the gate

When the agent has produced the gate packet and you want to proceed, respond with an approval phrase: approve, approved, yes, looks good, go ahead, ship it, implement it, or proceed. Approval applies to the latest gate prompt; a later gate prompt resets the requirement.

To reject or revise, respond with: reject, rejected, no, revise, change it, not that, don't implement, or do not implement.

Test

npm test

License

MIT — see LICENSE.