hansenexus

Mechanics — Testing skill for Claude Code

Testing community

Behavior-spec system for apps: full-spec user stories, coverage-audited manifests, e2e-linked verification waves.

How to install Mechanics

This entry records only its repository, not the path inside it, so there is no exact command to give. Open hansenexus/mechanics and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Mechanics does

Behavior-spec system for apps: full-spec user stories, coverage-audited manifests, e2e-linked verification waves. CLI + MCP + Claude Code skills + forkable template.

Alternatives in Testing

  • Webapp Testing — Test local web applications using Playwright for UI verification and debugging 94.1k ★
  • Notion Spec To Implementation — Convert Notion specs into linked implementation plans and tasks 14.6k ★
  • Test Scenarios — Create comprehensive test scenarios from user stories 7.8k ★

README

mechanics

**[mechanics.hansenexus.dev](https://mechanics.hansenexus.dev)** — docs, and a live coverage report.

[![npm](https://img.shields.io/npm/v/@hansenexus/mechanics?logo=npm&color=cb3837)](https://www.npmjs.com/package/@hansenexus/mechanics) [![ci](https://github.com/hansenexus/mechanics/actions/workflows/ci.yml/badge.svg)](https://github.com/hansenexus/mechanics/actions/workflows/ci.yml) [![licence](https://img.shields.io/npm/l/@hansenexus/mechanics?color=0f7b6c)](./LICENSE)

Behaviour specs with a coverage ratchet.

Every user-observable behaviour is one markdown file with labelled acceptance criteria. A committed manifest is compiled from them and gated against drift in CI. Every surface the project ships — route, endpoint, CLI command, scheduled job, whatever your adapters declare — must be **claimed** by a behaviour or explicitly **ignored**; anything else is a gap the build can be made to fail on.

The question it answers is "did we keep every behaviour?" during a rewrite or a redesign, and the reason it works is that the answer is checkable rather than asserted.

mechanics scan                     # every repo here, its stack, whether it is onboarded
mechanics init                     # set a repo up: config, corpus skeleton, CI, MCP
mechanics check --all              # corpus + waves + coverage
mechanics build --all --check      # drift gate
mechanics coverage --app=    # the table, the gaps, wave rollups
mechanics gaps --app=        # what is missing, split into fix / ask
mechanics report --html            # one self-contained page
mechanics mcp                      # serve the corpus to an agent over stdio
mechanics agents                   # which agent providers are reachable from here
mechanics run list                 # the docket/1 board
mechanics tui                      # leave it open: drift, gaps, runs, updates

What it looks like

Coverage is the whole idea: every surface the app ships, against every surface th