GSD Core
Git. Ship. Done.
English · Português · 简体中文 · 日本語 · 한국어
A light-weight meta-prompting, context engineering, and spec-driven development system for Claude Code, OpenCode, Antigravity CLI, Kimi CLI, Kilo, Codex, Copilot, Cursor, Windsurf, and more.

What is GSD Core
GSD Core is a context-engineering and spec-driven development framework that drives AI coding agents (Claude Code, Codex, Antigravity CLI, Kimi CLI, Copilot, Cursor, and more) through a disciplined phase loop. It solves context rot — the quality degradation that accumulates as an AI fills its context window — by running all heavy research, planning, and execution work in fresh-context subagents while keeping your main session lean.
This is a fork of TheRocketCodeMX/gsd-core (MIT), maintained by TheRocketCode and published as @therocketcode/gsd-core. It keeps everything upstream offers and adds the greenfield discovery spine and testing methodology described below.
What this fork adds
On top of gsd-core's phase loop, this fork adds a connected product → domain → architecture → tests discovery spine, plus concrete test-infrastructure know-how.
Greenfield discovery — each step feeds the next:
/gsd:discover-product — define what to build and why: real demand vs. interest, the narrowest wedge, the four product risks, outcome-framed → PRODUCT-BRIEF.md
/gsd:model-domain — lightweight DDD: ubiquitous language + core/supporting/generic subdomain distillation → DOMAIN-MODEL.md
/gsd:recommend-architecture — a two-axis recommendation (domain-logic ladder × deployment topology) that avoids over- and under-engineering, captured as an ADR → ADR-NNNN.md
/gsd:testing-strategy — derives the test shape from the architecture (rich core → unit tests; CRUD-over-DB → integration tests), with coverage-as-floor + mutation testing → TEST-STRATEGY.md
Testing know-how the agent consults while writing tests: Testcontainers, parallel-safe DB isolation, authenticate-once / multi-role auth, synthetic test data, E2E tiering, and flaky-test avoidance.
The payoff: one complexity assessment made during discovery parameterizes both the architecture and the test strategy — a single thread from "what are we building" to "how do we test it."
Durable knowledge across the whole project — the context capability:
/gsd:context (seed · scout · flush · master) — the knowledge lifecycle on top of GSD's fresh-subagent model. Right after roadmap approval the orchestrator seeds quality-stamped phase capsules (<N>-CONTEXT.md) and a bounded MASTER-CONTEXT.md index: verified facts each anchored path:line, locked decisions with their why, cross-repo seams, phase-scoped pitfalls. Capsules are treated as evidence — grown in append-only layers (later layers supersede, nothing is deleted), verified at birth and re-verified by gsd-tools context verify (a failed anchor is annotated [STALE], never silently trusted). A calm context-pressure hook nudges a knowledge flush at high usage (never a panic save), and the standing first act after any compaction is re-anchoring from the MASTER index + active capsule. Elicitation Q&A is captured to append-only discussion logs so the reasoning behind each decision survives distillation. Doctrine: plans are perishable; context is durable — front-load the knowledge, never the plans.
How it works
Each milestone repeats the same five-step loop, one phase at a time: