From de821ceb213fd2a605f3b44bd162409f7fdf83c3 Mon Sep 17 00:00:00 2001 From: Manfred Riem <15701806+mnriem@users.noreply.github.com> Date: Wed, 2 Dec 2026 07:54:31 -0600 Subject: [PATCH] docs: add printable Spec Kit cheat sheet Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Assisted-by: GitHub Copilot (models: GPT-6.1 Terra, GPT-6 Luna; autonomous) --- docs/README.md | 1 + docs/assets/cheat-sheet.css | 136 ++++++++++++++++++++++++++++++++++++ docs/cheat-sheet.md | 105 ++++++++++++++++++++++++++++ docs/quickstart.md | 2 + docs/toc.yml | 2 + 5 files changed, 246 insertions(+) create mode 100644 docs/assets/cheat-sheet.css create mode 100644 docs/cheat-sheet.md diff --git a/docs/README.md b/docs/README.md index a8286e7080..5a0d392f27 100644 --- a/docs/README.md +++ b/docs/README.md @@ -79,6 +79,7 @@ the site homepage. Process command references and authentication remain under - `how-to/local-development.md` - Developing and checking Spec Kit locally - `installation.md` - Installation guide - `quickstart.md` - Spec-Driven Development walkthrough +- `cheat-sheet.md` - Printable Spec Kit quick reference - `guides/agentic-sdlc.md` - How Spec Kit applies agentic and conventional SDLC practices to itself - `guides/bugfix.md` - Bug-fixing walkthrough - `guides/assessment.md` - Idea assessment walkthrough diff --git a/docs/assets/cheat-sheet.css b/docs/assets/cheat-sheet.css new file mode 100644 index 0000000000..ff3d793100 --- /dev/null +++ b/docs/assets/cheat-sheet.css @@ -0,0 +1,136 @@ +.cheat-sheet-grid { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 1.5rem; +} + +.cheat-sheet-column { + min-width: 0; +} + +.cheat-sheet-column h2 { + font-size: 1.2rem; + margin-top: 1rem; +} + +.cheat-sheet-column table { + width: 100%; +} + +.cheat-sheet-column td:first-child { + white-space: nowrap; +} + +.cheat-sheet code { + overflow-wrap: anywhere; +} + +@media screen and (max-width: 700px) { + .cheat-sheet-grid { + grid-template-columns: 1fr; + } +} + +@page { + size: landscape; + margin: 0.32in; +} + +@media print { + header, + footer, + nav, + aside, + .navbar, + .sidenav, + .toc, + .contribution, + .back-to-top, + .cheat-sheet-print-note { + display: none !important; + } + + body { + background: #fff !important; + color: #000 !important; + } + + main, + article, + .container, + .content { + width: 100% !important; + max-width: none !important; + margin: 0 !important; + padding: 0 !important; + } + + .cheat-sheet { + color: #000; + font-size: 10pt; + line-height: 1.28; + } + + .cheat-sheet a, + .cheat-sheet code, + .cheat-sheet pre *, + .cheat-sheet th, + .cheat-sheet td { + color: #000 !important; + } + + .cheat-sheet pre, + .cheat-sheet th, + .cheat-sheet td { + background: transparent !important; + } + + .cheat-sheet code { + font-size: 0.9em; + } + + .cheat-sheet h1 { + font-size: 19pt; + margin: 0 0 0.08in; + } + + .cheat-sheet h2 { + font-size: 11.5pt; + margin: 0.1in 0 0.04in; + } + + .cheat-sheet p, + .cheat-sheet ul, + .cheat-sheet table, + .cheat-sheet pre { + margin: 0 0 0.08in; + } + + .cheat-sheet ul { + padding-left: 1.2em; + } + + .cheat-sheet li { + margin-bottom: 0.02in; + } + + .cheat-sheet pre { + padding: 0.04in; + overflow: visible; + white-space: pre; + } + + .cheat-sheet pre code { + font-size: 8.5pt; + } + + .cheat-sheet th, + .cheat-sheet td { + padding: 0.03in; + } + + .cheat-sheet-grid { + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 0.18in; + } +} diff --git a/docs/cheat-sheet.md b/docs/cheat-sheet.md new file mode 100644 index 0000000000..62bffb29cf --- /dev/null +++ b/docs/cheat-sheet.md @@ -0,0 +1,105 @@ + + +
+ +# Spec Kit cheat sheet + +Use the **terminal** for setup and your **agent's chat** for process steps. Examples use GitHub Copilot's default skills mode; [other agents use different syntax](integrations/cli.md#command-invocation). + +

Print this page for a one-page landscape reference.

+ +
+ +
+ +## Get started · terminal + +```bash +uv tool install specify-cli +specify init app --integration copilot +cd app +specify check +``` + +For an existing repository, first save a reviewable baseline, then run `specify init --here --force --integration copilot`. `--force` may replace conflicting managed files. See [installation](installation.md). + +## Key artifacts + +- `.specify/memory/constitution.md` — project principles. +- `specs//spec.md` — what to build and why. +- `specs//plan.md` — technical design. +- `specs//tasks.md` — ordered work and progress. +- `specs//checklists/` — requirements-quality checks. +- `.specify/feature.json` — active feature; switching Git branches alone does not change it. + +## Handy CLI commands + +`specify --help` · `specify version` + +`specify extension search` + +`specify workflow list` + +See the [CLI reference](overview/core.md) and [customization guide](how-to/customization.md). + +
+ +
+ +## Build a feature · agent chat + +Set the constitution once per project, then run each skill in order and review its result. + +| Skill | Purpose | +| --- | --- | +| `/speckit-constitution` | Establish project principles. | +| `/speckit-specify` | Define the **what** and **why**. | +| `/speckit-clarify`* | Resolve ambiguities. | +| `/speckit-plan` | Design the **how** and choose the stack. | +| `/speckit-checklist`* | Create a requirements-quality checklist. | +| `/speckit-tasks` | Produce dependency-ordered tasks. | +| `/speckit-analyze`* | Check artifacts for inconsistencies; read-only. | +| `/speckit-implement` | Execute the tasks. | +| `/speckit-converge` | Find gaps and append remaining tasks. | + +\* Optional quality gates. Review and mark custom checklists yourself. + +If convergence adds tasks, repeat **implement → converge** until converged. See the [SDD quickstart](quickstart.md) and [command reference](reference/agentic-sdd.md). + +
+ +
+ +## [Fix a bug](guides/bugfix.md) · optional + +Terminal: `specify extension add bug` + +In agent chat, use the same slug for each step: + +```text +/speckit-bug-assess "symptom" slug=login +/speckit-bug-fix slug=login +/speckit-bug-test slug=login +``` + +Assess the cause, fix it, then verify the original symptom. + +## [Assess an idea](guides/assessment.md) · optional + +Terminal: `specify extension add assess` + +In agent chat, use the same slug for each step: + +```text +/speckit-assess-intake "idea" slug=offline +/speckit-assess-research slug=offline +/speckit-assess-define slug=offline +/speckit-assess-shape slug=offline +/speckit-assess-decide slug=offline +``` + +The outcome is `go`, `needs-clarification`, or `kill`—not an implementation. + +
+
+
diff --git a/docs/quickstart.md b/docs/quickstart.md index a30cd95ea2..3a2a0f7592 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -4,6 +4,8 @@ This guide will help you get started with Spec-Driven Development using Spec Kit. Throughout, we illustrate each step with a running example: **Taskify**, a small team productivity platform. +For a printable overview, see the [Spec Kit cheat sheet](cheat-sheet.md). + Use SDD to build a feature or application from a specification. For a repair, follow the [bug-fixing quickstart](guides/bugfix.md); to decide whether an idea deserves investment, follow the [idea assessment quickstart](guides/assessment.md). diff --git a/docs/toc.yml b/docs/toc.yml index fd0ae9039f..6c82f45677 100644 --- a/docs/toc.yml +++ b/docs/toc.yml @@ -24,6 +24,8 @@ href: guides/agentic-sdlc.md - name: Spec-Driven Development href: quickstart.md + - name: Cheat Sheet + href: cheat-sheet.md - name: SDD Command Reference href: reference/agentic-sdd.md - name: Bug Fixing