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

@sffmc/cognition

v0.16.0

Published

Standalone package: max-mode parallel reasoning with judge selection + 18 markdown compose skills + plugin health diagnostics.

Readme

@sffmc/cognition

Parallel reasoning + structured-workflow skills + plugin health diagnostics for OpenCode. Three formerly-separate sub-features (@sffmc/max-mode, @sffmc/compose, @sffmc/health) live here as internal sub-folders; the package entry composes them into one plugin via mergeHooks().

What's inside

  • max-mode/maxMode() tool. Run a workflow under several candidate generators in parallel; an LLM judge scores each output on configurable criteria and returns the winner. Useful when one generator is flaky and you want a second opinion rather than a retry loop.
  • compose/skills/ — 18 markdown skill files that load into OpenCode's prompt: plan.md, tdd.md, verify.md, review.md, debug.md, brainstorm.md, etc. The LLM knows when to load them based on the user's request.
  • health/sffmc_health tool. Returns a JSON diagnostic of plugin load order, hook collisions, missing-config warnings, and per-package health. Useful for sffmc doctor-style reports in a chat session.

Architecture

  • packages/cognition/src/index.ts — composes the three sub-features with mergeHooks()
  • packages/cognition/src/max-mode/src/index.tsmaxMode() implementation
  • packages/cognition/src/compose/src/index.ts — skill registry
  • packages/cognition/src/health/src/index.ts — health tool implementation

Install

// ~/.config/opencode/opencode.json
{
  "plugins": [
    "npm:@sffmc/cognition@^0.15.4"
  ]
}

Skills

See packages/cognition/src/compose/skills/ for the full list. Each .md file is a self-contained prompt fragment the LLM loads on demand:

  • ask.md — clarify ambiguous user input before acting
  • benchmark.md — measure baseline cost / latency / accuracy before optimizing
  • brainstorm.md — generate multiple candidate plans before picking one
  • code-review.md — second-pass review against the spec
  • debug.md — diagnose a failing test or build
  • execute.md — drive a known-good plan to completion, reporting only deviations
  • feedback.md — turn user feedback into concrete action items
  • merge.md — orchestrate merges when multiple agents touched the same files
  • new-skill.md — meta: write a new skill file
  • parallel.md — split a large task across parallel agents
  • plan.md — produce a numbered implementation plan from a vague goal
  • report.md — summarize progress and remaining work
  • review.md — adversarial review of an agent's work
  • subagent.md — launch a sub-agent with a clear scope and return format
  • tdd.md — write a failing test first, then the implementation
  • verify.md — confirm an implementation satisfies the original requirement
  • worktree.md — manage isolated git worktrees for parallel work

License

MIT