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

pi-spec

v0.1.0

Published

Spec-driven development extension and resource package for Pi.

Readme

pi-spec

Spec-driven development resources for Pi.

This package installs a Pi extension that exposes spec tools, slash commands, prompt templates, skills, generated-file templates, and optional subagent definitions.

Spec Directory

Project-layer specs live under:

.specs/<feature-slug>/
├── brainstorm.md
├── requirements.md
├── design.md
└── tasks.md

The extension always treats .specs/** as the project spec layer. Brainstorming is a required gate before creating requirements/design/tasks: Pi identifies intent, asks one clarifying question at a time, proposes an approach, and records the outcome in brainstorm.md.

Install / Run

From this repository:

pi -e .

Or install it into a project:

pi install -l /absolute/path/to/pi-spec

After changing package files in a running Pi session, run /reload.

Extension Tools

The extension registers these LLM-callable tools:

  • spec_brainstorm — record a completed brainstorm in .specs/<slug>/brainstorm.md.
  • spec_init — create .specs/<slug>/requirements.md, design.md, and tasks.md from bundled templates after brainstorming.
  • spec_status — list specs, generated files, and task progress.
  • spec_validate — check a spec for core SDD completeness and traceability; pass phase: "implementation" before coding to ensure tasks.md is no longer draft.
  • spec_task_check — mark a tasks.md task [x] (or revert with uncheck: true) by its ID: T-NNN. Refuses while Status: is tasks-draft, advances the status from tasks-approvedimplementation-in-progress on the first check, and → implementation-complete once all tasks are done.

Slash Commands

Extension commands:

  • /specs — show .specs/** status in the transcript.
  • /spec-init <feature> — create a new skeleton after brainstorm.md exists; otherwise prefill /spec-brainstorm <feature>.
  • /spec-install-agents [--force] — copy optional bundled subagent definitions into .pi/agents/ for pi-subagents users.

Prompt templates:

  • /spec-onboarding [project or feature context]
  • /spec-brainstorm <idea or goal>
  • /spec-new <feature or goal>
  • /spec-requirements <spec-slug> [instructions]
  • /spec-design <spec-slug> [instructions]
  • /spec-tasks <spec-slug> [instructions]
  • /spec-implement <spec-slug> [task number or instructions]
  • /spec-review <spec-slug> [focus]
  • /spec-status [spec-slug]

Skills

Bundled skills are loaded dynamically by the extension:

  • spec-driven-development
  • spec-brainstorm
  • spec-requirements
  • spec-design
  • spec-tasks
  • spec-implementation
  • spec-review
  • spec-templates
  • spec-agents
  • tdd (loaded when principles.tdd: true in .specs/config.yaml; adapted from https://github.com/mattpocock/skills/tree/main/tdd)

Generated File Templates

Templates live in templates/spec/:

  • brainstorm.md
  • requirements.md
  • design.md
  • tasks.md

They use these placeholders: {{SLUG}}, {{TITLE}}, {{DESCRIPTION}}, {{SUMMARY}}, and {{DATE}}.

Optional Subagents

The agents/ directory contains project-agent definitions for users of pi-subagents:

  • spec-brainstorm-agent
  • spec-requirements-agent
  • spec-design-agent
  • spec-task-planner-agent
  • spec-review-agent

Install them into .pi/agents/ with /spec-install-agents.

Development

pnpm install
pnpm typecheck
pnpm pack --dry-run