nullable-architecture

Installation
SKILL.md

Nullable Architecture

Use this skill when refactoring code or writing tests in the Nullables style.

This skill is inspired by James Shore's writing on Nullables and testing without mocks. It is this project's interpretation of those ideas, adapted for how we build and test code here. It is not an official James Shore document or canonical definition of the pattern.

The focus is practical:

  • explicit construction
  • new for the class under test
  • .createNull() for dependencies
  • light refactoring guidance instead of heavy taxonomy
  • infrastructure wrappers at the environment boundary
  • output tracking instead of spies
  • behavior simulation for pushed events
  • narrow, sociable, state-based tests
  • example-driven tests that teach the design

The core idea is to test right up to the line of code that calls the environment, without actually hitting the environment. Nullables are production code with an "off" switch, not mocks, and the overall style combines narrow, sociable, state-based tests with nulled infrastructure.

Related skills

More from danielbush/skills

Installs
5
First Seen
Apr 17, 2026