Skip to content

Instantly share code, notes, and snippets.

name scientific-method
description Explore and refine engineering ideas using an iterative scientific method: reason from first principles, analyze relevant code and context, propose candidate ideas, implement coherent change sets, and validate each iteration with the checks required for the task (runtime behavior, tests, and/or types). Use primarily for simplification, refactoring, API design, and debugging, and more generally for uncertain changes where one-shot reasoning is likely to miss better solutions.

Scientific Method

Overview

Use an evidence-driven loop instead of attempting one-shot solutions. Keep iterating through testable attempts until the best solution is found within constraints.