Skip to content

feat: externalize Speckit, OpenSpec, and Gaze init from embedded assets (Spec 027) - #90

Merged
jflowers merged 1 commit into
mainfrom
027-externalize-tool-init
Apr 11, 2026
Merged

jflowers merged 1 commit into
mainfrom
027-externalize-tool-init

Conversation

@jflowers

Copy link
Copy Markdown
Contributor

Summary

Externalizes Speckit, OpenSpec, and Gaze initialization from embedded scaffold assets to CLI init command delegation. Each tool now owns its own initialization — uf init delegates to specify init, openspec init, and gaze init instead of deploying static copies from the binary.

What Changed

  • Removed: 13 embedded assets (12 Speckit files from internal/scaffold/assets/specify/ + 1 openspec/config.yaml). Asset count: 55 → 42.
  • Added to uf init: 3 tool delegations in initSubTools():
    • specify init — gated on .specify/ absence
    • openspec init --tools opencode — gated on openspec/config.yaml absence
    • gaze init — gated on gaze-reporter.md absence
  • Added to uf setup: 2 new steps (12 → 14):
    • installUV() — Homebrew-first with curl fallback
    • installSpecify() — via uv tool install specify-cli, gated on uv availability
  • Custom OpenSpec schema stays embedded — openspec/schemas/unbound-force/ remains tool-owned
  • 18 new test functions (7 setup + 11 scaffold delegation)

Why

Embedded assets become stale when the uf binary is upgraded but the target repo keeps the old files (user-owned, never overwritten). Delegating to CLI init commands means the files always match the installed tool version.

…ts (Spec 027)

- Remove 13 embedded assets (12 Speckit files from
  internal/scaffold/assets/specify/ + 1 openspec/config.yaml),
  reducing embedded asset count from 55 to 42
- Add 3 tool delegations to initSubTools() in scaffold.go:
  specify init (gated on .specify/ absence),
  openspec init --tools opencode (gated on openspec/config.yaml
  absence), gaze init (gated on gaze-reporter.md absence)
- Add 2 new uf setup steps: installUV() (Homebrew-first with
  curl fallback) and installSpecify() (via uv tool install
  specify-cli, gated on uv availability), increasing step
  count from 12 to 14
- Remove specify/ from knownAssetPrefixes and mapAssetPath()
- Update expectedAssetPaths (55 → 42), add 13 entries to
  knownNonEmbeddedFiles, update TestRunInit_FreshDir file
  count (55 → 42)
- Add 18 new test functions (7 setup + 11 scaffold delegation)
- Update /uf-init command with tool delegation documentation
- Add spec artifacts (spec, plan, tasks, research, data-model,
  quickstart, contracts)
@jflowers
jflowers merged commit b8f174f into main Apr 11, 2026
1 check passed
@jflowers
jflowers deleted the 027-externalize-tool-init branch April 11, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant