characterisation-tests

Community

Document current code behavior to enable safe refactoring.

Authorchloebrett
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of understanding and documenting existing code behavior that lacks proper tests, enabling safe modifications and refactoring.

Core Features & Use Cases

  • Behavior Documentation: Capture the actual output of legacy or untested code paths to serve as a safety net during refactoring.
  • Error Path Characterisation: Identify how systems behave under exceptional conditions, including rejected promises or exceptions.
  • Guided Process: Provides practical steps, heuristics, and examples for creating effective characterisation tests in various programming environments.

Quick Start

Load the code you wish to understand into a test harness, write a dummy assertion expecting a placeholder, observe the actual output, then update your test to expect that output.

Dependency Matrix

Required Modules

None required

Components

referencesscriptsassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: characterisation-tests
Download link: https://github.com/chloebrett/slay/archive/main.zip#characterisation-tests

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.