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

pre-mortem-discussion

v1.2.0

Published

Scaffold the Claude Code pre-mortem discussion skill into a project

Readme

pre-mortem-discussion

Scaffold Claude Code pre-mortem discussion skill into the project you run it from.

Install / run

npx pre-mortem-discussion

What it writes

Scaffolds the /pre-mortem skill into the target project:

  • .claude/skills/pre-mortem/SKILL.md
  • .claude/skills/pre-mortem/agent-template.md
  • .claude/skills/pre-mortem/domains.md
  • .claude/skills/pre-mortem/.scaffold-meta.json

Update policy (non-destructive)

Per file, on re-run:

  • Missing file: write it.
  • Previously scaffolded and unmodified: safe overwrite/update.
  • User-modified (or provenance unknown): do not overwrite; write *.incoming next to it.

If any *.incoming files are created, the CLI exits with code 2.

Usage

After scaffolding, run the skill inside Claude Code:

# Automatic expert selection (Mode A)
/pre-mortem <topic or file>

# Manual expert override (Mode B)
/pre-mortem <topic or file> --experts <e1>, <e2>, ..., <eN>

Examples:

/pre-mortem proposal.md
/pre-mortem proposal.md --experts security, database, frontend
/pre-mortem "OAuth2 with JWT for mobile"
/pre-mortem "OAuth2 with JWT for mobile" --experts security, api

Resume after context overflow:

If a session stops due to context overflow (common with 5 agents × multiple rounds), resume with:

/pre-mortem resume {name}

Progress is saved continuously to discussions/{name}/state.json. Only incomplete work is re-run.

Features

  • Two modes: Automatic expert selection (Mode A) or manual override (Mode B)
  • Exactly 3 rounds: Parallel discovery → Sequential debate → Parallel filter
  • 15 domain experts: tech, security, database, api, frontend, mobile, ux, scalability, devops, infra, legal, cost, integration, data
  • 4-step finalization: Creates approved.md, renames original, generates ADR, cleans up session
  • Architect dialogue: Open-ended conversation to resolve all risks
  • Files-first architecture: Crash recovery and resume capability

Non-goals

  • Scaffold-only: does not run any sessions.
  • Does not write or modify .claude/agents/*.