spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

[Preset]: Add OKR Bet Spec Section

Open juanl opened this issue 2 weeks ago • 5 comments

Preset ID

okr-bet

Preset Name

OKR Bet Spec Section

Version

0.2.1

Description

Adds a Hypothesis & Bet section (with the bet's verification contract) to every spec and teaches /speckit.specify to fill it from an okr:/H-n bet. Companion of the okr extension.

Author

juanl

Repository URL

https://github.com/juanl/spec-kit-okr

Download URL

https://github.com/juanl/spec-kit-okr/releases/download/v0.2.1/spec-kit-okr-bet-preset-0.2.1.zip

Documentation URL

https://github.com/juanl/spec-kit-okr/blob/v0.2.1/README.md#install

License

MIT

Required Spec Kit Version

=0.9.0

Required Extensions (optional)

Templates Provided

  • spec-template.md — appends a Hypothesis & Bet section: bet link, hypothesis, KR moved, refutation criterion, validation slice, gated scale stories, guardrails, and the verification contract table (strategy: append)

Commands Provided

  • speckit.specify.md — appended instructions: when the description has an okr:<team>/H-n token, fill the section from the bet file, copy the verification contract, make P1 the validation slice, tag success criteria with contract IDs, and add requirements for numbers that cannot be measured yet (strategy: append)

Number of Scripts (optional)

Tags

okr, hypothesis, spec-template, metrics

Key Features

  • Composes with any spec template and /speckit.specify (both append), so it replaces nothing
  • Every spec states the hypothesis it tests, the KR it should move, and what would refute it
  • The bet's verification contract is copied into the spec, so success criteria reference the same numbers and thresholds the post-launch review reads
  • P1 is written as the validation slice; scale stories are marked as built only if the hypothesis is validated
  • Numbers that cannot be read yet (instrument, blocked, unknown) become functional requirements or dependencies in the validation slice
  • Specs without an okr: token come out exactly as before (the section is removed)
  • Enabling work (okr:<team>/enabling:<id>) gets a short "Protects" statement instead of a hypothesis

Testing Checklist

  • [x] Preset installs successfully via specify preset add
  • [x] Template resolution works correctly after installation
  • [x] Documentation is complete and accurate
  • [x] Tested on at least one real project

Submission Requirements

  • [x] Valid preset.yml manifest included
  • [x] Linked README (Documentation URL) explains how to use this preset and includes a valid specify preset add ... command (preferably specify preset add --from <download-url> using the exact download URL)
  • [x] LICENSE file included
  • [x] GitHub release created with version tag
  • [x] Preset ID follows naming conventions (lowercase-with-hyphens)

Testing Details

  • Installed with specify preset add --from <download URL> in a fresh Spec Kit 0.16.2 project (macOS), and with --dev in CI (Ubuntu); specify preset resolve spec-template shows the okr-bet layer, and the generated speckit-specify skill includes the appended instructions
  • Used with the okr extension on the repo example and on a private project with a real team's bet: /speckit.specify okr:<team>/H-1 … produced the section with the contract, P1 as the validation slice, and success criteria tagged to contract IDs

Additional Context

Submitted together with the okr extension: #5408.

The okr extension is a recommended companion, not a requirement: the preset reads the bet file the extension writes, and without an okr: token in the feature description it removes the section, so specs without a bet are unchanged. That is why preset.yml declares no requires.extensions.

juanl avatar Nov 12 '26 13:11 juanl

cc @github/spec-kit-maintainers — new catalog submission for review.

github-actions[bot] avatar Nov 12 '26 14:11 github-actions[bot]

Validation failed for this preset submission.

Failed checks

  1. Step 2g — Reproducible published-artifact and README comparison
    • Verifier result: published requires.extensions [] differs from submitted ['okr (recommended companion: the preset reads the bet file the extension writes; without an okr: token in the feature description it removes the section', 'so specs without a bet are unchanged)']
    • The Required Extensions field must contain only comma-separated extension IDs (for example: okr) or be left empty when no extension is required. The current value includes explanatory prose, which is parsed as extension IDs and does not match the published preset.yml.

How to fix

  • Edit the submission so Required Extensions is either:
    • blank (if the preset has no required extensions), or
    • a comma-separated list of extension IDs only (no explanatory text).
  • Then rerun validation.

Workflow run

Generated by 🎨 Add Community Preset from Issue Submission for #5409 · copilot · gpt53codex · 52.5 AIC · ⌖ 0.713 AIC · ⊞ 30.9K · ◷

github-actions[bot] avatar Nov 12 '26 14:11 github-actions[bot]

@juanl Please address the validation feedback and comment here when done so we can restart the validation.

KSchlobohm avatar Nov 12 '26 14:11 KSchlobohm

@KSchlobohm Thanks, done. I left Required Extensions blank, which matches the published preset.yml (it has no requires.extensions). The note about the okr extension being a recommended companion is now under Additional Context. Could you restart the validation?

juanl avatar Nov 15 '26 15:11 juanl