Install the OpsMill components through two bundles and our catalogs
What has been implemented
Repos install opsmill-speckit through the opsmill-sdd and opsmill-jira bundles, from catalogs in this repo, instead of component by component.
Before: how a repo installs opsmill-speckit
Each repo installs every extension and preset with its own command.
flowchart TB
D((Developer))
subgraph E["5 extensions"]
o[opsmill]
c[checkpoint]
cr[critique]
r[reconcile]
g[git]
end
subgraph P["4 presets"]
co[critique-opsmill]
ro[reconcile-opsmill]
jb[jira-branch]
tj[taskstoissues-jira]
end
D -->|"5 commands"| E
D -->|"5 commands"| P
classDef ext fill:#dcfce7,stroke:#16a34a,color:#14532d
classDef preset fill:#ffedd5,stroke:#ea580c,color:#7c2d12
class o,c,cr,r,g ext
class co,ro,jb,tj preset
After: how a repo installs opsmill-speckit
One command installs a bundle, and opsmill-jira includes opsmill-sdd.
flowchart TB
D((Developer))
subgraph JIRA["bundle opsmill-jira"]
subgraph SDD["bundle opsmill-sdd"]
o[opsmill]
c[checkpoint]
cr[critique]
co[critique-opsmill]
r[reconcile]
ro[reconcile-opsmill]
end
jb[jira-branch]
tj[taskstoissues-jira]
g[git]
end
D -->|"1 command: all repos"| SDD
D -->|"1 command: Jira repos"| JIRA
classDef ext fill:#dcfce7,stroke:#16a34a,color:#14532d
classDef preset fill:#ffedd5,stroke:#ea580c,color:#7c2d12
class o,c,cr,r,g ext
class co,ro,jb,tj preset
Source: What Spec Kit 1.2+ brings to the table, "Bundles".
Structure
Catalogs
A catalog is a JSON file that gives, for each component ID and version, the URL of its zip and the zip's sha256. specify bundle install opsmill-sdd looks up each component of the bundle in the catalogs and downloads the zip(Spec Kit catalogs reference).
CI
CI installs each bundle through these catalogs, from zips built from the branch
Folders structure
bundles/: the two bundles, newcatalog/: the catalogs that list our zips and the third-party extensions, newcatalog/specify/: the catalog files that a project copies into.specify/, newpresets/: the presets, with their install hints.github/scripts/distribution/: builds the zips and writes the catalogs, new.github/scripts/repo/: each component lists the files of its zip and what it provides (module from #37).github/scripts/install_check/: installs each bundle in CI
How to release
Release workflow, from a pull request to the repos
flowchart LR
A["PR changes<br>a component"] --> B["raise its version,<br>and the pin and version<br>of each bundle that includes it"]
B --> C["release PR:<br>catalog + CHANGELOG"]
C --> D["merge to main"]
D --> E["by hand:<br>publish the GitHub Release"]
E --> G["Release workflow:<br>build, check and attach the zips"]
G --> F["repos:<br>specify bundle update"]
classDef manual fill:#fef9c3,stroke:#ca8a04,color:#713f12
class E manual
- Each PR → CI installs both bundles from zips built from the branch, and checks versions, pins and catalog (#31). CI publishes nothing.
- Release PR (#43 for 1.5.0) → raise the versions and commit them,
git fetch --tags,uv run .github/scripts/build_release.py catalog X.Y.Zand commitcatalog/, then theCHANGELOG.mdentry with the release date. A release with no tag yet can still change its number. - After the merge → a person publishes the GitHub Release
vX.Y.Zonmain→ the Release workflow (#42) builds the zips, checks their sha256 againstcatalog/and attaches them. - Repos →
specify bundle update <bundle-id>.
The catalog on main points to the new zips as soon as the release PR is merged, so the GitHub Release is published right after the merge.
How to review
Read the commits in order:
- cda408c adds the command
build_release.py zips DIR, which builds one zip per component and bundle. The same files always give the same zip. To review. - 8471462 adds the command
build_release.py catalog X.Y.Z, which lists the zips of release X.Y.Z incatalog/and keeps the records of releases that have a tag. To review. - ca288f6 requires Spec Kit 1.2.4 in the manifests of the extension and presets. Their versions stay those of 1.4.1 until the release pull request, #43. To skim.
- 251e7b6 creates the
opsmill-sddandopsmill-jirabundles: which components each one installs, and at which version. Both start at 0.0.0, and #43 raises them to 1.0.0. To review closely. - e72f28d points the preset READMEs, and the install hints of
prepandauto, to the bundle install. To skim. - 9ea9a67 creates the three catalog files that a project copies into
.specify/, andcatalog/README.md. To review. - cf1cb36 adds
catalog/*.jsonwith thecheckpoint,critiqueandreconcileentries, written by hand: check their URL and version. The OpsMill entries come with the release pull request, #43. To review. - 8f150b8 changes the install check in CI: it now installs each bundle by ID, from the catalogs and the zips built from the branch. To review.
🤖 Generated with Claude Code