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

@kensio/isolated-testing-style

v1.18.0

Published

An opinionated testing style built on simulated collaborators and randomised data.

Readme

@kensio/isolated-testing-style

An opinionated testing style, packaged as an agent skill. Real collaborators through simulation, isolation from randomised data, and assertions on behaviour.

Every rule in it comes from a specific failure it would have caught, and the failure is written down next to the rule.

Install

Into any agent that reads SKILL.md:

npx @kensio/skills add isolated-testing-style

That copies the skill directory into .agents/skills/, where Codex, Cursor, Copilot, Gemini CLI and the other implementations of the specification look for one. Pass --agent claude for .claude/skills/, --agent copilot for .github/skills/, and --user to install it for every project at once.

Claude Code also takes it as a plugin:

claude plugin marketplace add KensioSoftware/kensio.ai
claude plugin install isolated-testing-style@kensio

Or pin it in a repository as a dependency:

npm install @kensio/isolated-testing-style

Every skill is also published as a zip on each release, for a machine with no npm reach. Unzip it into .agents/skills/ and it is installed.

What it covers

Prefer real collaborators through simulation. A stub asserts that your code called something. A simulator asserts that it called the service correctly. A stub answers whatever you told it to answer. It agrees with your understanding of the API by construction, and cannot find the case where that understanding is wrong.

Take isolation from randomised data. Randomised values from faker mean two tests cannot collide. There is nothing to tear down and no ordering to depend on. A shared environment built the way production is built is closer to production than a minimal one rebuilt per test, and it is faster.

Assert observable behaviour. To prove a value is cached, delete the underlying resource and show the cached value survives. To prove a retry, make the first call fail and the second succeed. Both hold however the code is implemented. That is what makes refactoring safe.

Never pin a value computed by the code under test. Pinning a hash you generated by running the same function only proves the function is deterministic. It keeps passing after the function becomes wrong. Pin against an independent authority, or let a real implementation validate it.

Put test support beside the code. Factories and helpers live in a test-support module next to what they support. Test files hold tests.

Comment test bodies with Given, When and Then, saying why the lines are there. A comment that restates the code adds nothing.

The other two skills

This skill is the philosophy. Two Kensio packages are tools that serve it, each with its own skill:

Part of kensio.ai. Licensed under the Apache License 2.0. See the LICENSE in the repository root.