Repository navigation
Conversation
5561675 to
9e73041
Compare
|
This is a big change, don't be rushed to review and test. |
9e73041 to
1fa1f99
Compare
1fa1f99 to
0036a8e
Compare
yvonnedevlinrh
left a comment
There was a problem hiding this comment.
Review Summary
Thorough rename of 10 slash commands from unprefixed to uf. namespace — scaffold assets, Go source references, doctor hints, docs, schemas, and convention packs all updated consistently. CI passes clean (14/14 checks). OpenSpec artifacts included with the PR.
Inline findings posted:
| # | Severity | Finding |
|---|---|---|
| 1 | CRITICAL | CLAUDE.md @ include updated to uf.cobalt-crush-dev.md but agent file was not renamed — still at original path cobalt-crush-dev.md |
| 2 | HIGH | cleanupRenamedCommands() has no test; Result.Migrated field unverified; task 5.4 marked complete without corresponding test |
| 3 | LOW | renamedCommands map values unused — map[string]string behaves as []string |
| 4 | LOW | os.Remove errors silently swallowed in cleanupRenamedCommands |
| 5 | LOW | ASCII art box alignment broken in docs/architecture.md |
| 6 | LOW | Branch naming convention change in AGENTS.md (explained by Speckit update in #328) |
Findings 1 and 2 need to be addressed before merge. The rest are optional improvements.
Verdict: REQUEST CHANGES
This review was generated by /review-pr (AI-assisted).
|
|
||
| @AGENTS.md | ||
| @.opencode/agents/cobalt-crush-dev.md | ||
| @.opencode/agents/uf.cobalt-crush-dev.md |
There was a problem hiding this comment.
CRITICAL: CLAUDE.md line 4 changed @.opencode/agents/cobalt-crush-dev.md → @.opencode/agents/uf.cobalt-crush-dev.md, but the agent file was not renamed, it still exists at its original path .opencode/agents/cobalt-crush-dev.md.
| // cleanupRenamedCommands removes old-name command files that | ||
| // were replaced by the uf. namespace prefix rename. Returns | ||
| // the list of removed file paths (relative to targetDir). | ||
| func cleanupRenamedCommands(targetDir string) []string { |
There was a problem hiding this comment.
HIGH
cleanupRenamedCommands() has no unit test and Result.Migrated is never verified; OpenSpec task 5.4 marked [x] but no test exists in the diff
| oldOut := mapAssetPath(oldRel) | ||
| oldPath := filepath.Join(targetDir, oldOut) | ||
| if _, err := os.Stat(oldPath); err == nil { | ||
| if err := os.Remove(oldPath); err == nil { |
There was a problem hiding this comment.
LOW
os.Remove errors silently swallowed — if stat succeeds but remove fails (permissions), no log or return value signals the failure
| +----------+ +-----------+-----------+ | ||
| | uf CLI | | Slash Commands | | ||
| |----------| | /review-council | | ||
| |----------| | /uf.review-council | |
There was a problem hiding this comment.
LOW
ASCII art box alignment broken — /uf.review-council and /uf.unleash are longer than originals but box padding was not adjusted, breaking border alignment
| before tasks. Tasks before implementation. Spec artifacts MUST | ||
| be committed/pushed before implementation begins. | ||
|
|
||
| **Branches**: Speckit: `speckit/NNN-<name>`. OpenSpec: `opsx/<name>`. |
There was a problem hiding this comment.
Speckit has been updated to use the same convention as OpenSpec for branch names #328
Rename all 10 uf-embedded slash commands to use uf. dot-notation (e.g., /review-council → /uf.review-council) for clear namespace identification, consistent with speckit.* and muti-mind.* conventions. - Rename 20 command files (10 embedded assets + 10 live) - Add renamedCommands migration map to scaffold engine for automatic orphan cleanup on uf init re-run - Update isDivisorAsset(), hintDivisor, and warning message paths in scaffold.go - Update 7 InstallHint strings in doctor/checks.go - Update cross-command references in opsx, speckit, agent, skill, and convention pack files - Update AGENTS.md, QUICKSTART.md, README.md, CLAUDE.md, docs/usage.md, docs/architecture.md, docs/heroes.md - Update schema samples and READMEs - Add CHANGELOG entry with migration guide ref (unbound-force#302) - Update all test assertions (scaffold, doctor, cmd) Closes unbound-force#302 Assisted-by: OpenCode (claude-opus) Signed-off-by: Marcus Burghardt <[email protected]>
0036a8e to
f29f393
Compare
…ENTS.md After the uf. namespace migration (unbound-force/unbound-force#304), the command file is .opencode/commands/uf.review-council.md; the unprefixed /review-council command no longer exists. AGENTS.md still instructed agents to run /review-council at three prescriptive sites (the Review Council Gate rule, the PR prerequisite, and the workflow steps), causing agents to invoke a nonexistent command and silently skip the mandatory review council gate. uf init cannot auto-fix this: AGENTS.md is classified user-owned by isToolOwned() and lives outside .opencode/, so it is not covered by the scaffold engine (see unbound-force/unbound-force#419, PR #420 which only deletes orphaned command files and warns about stale refs in agent files). Updates the three actionable references (lines 89, 93, 99) to /uf.review-council. The historical changelog entry (Recent Changes, 017-testing-persona) is intentionally left unchanged to preserve the factual record of the scaffold filename as it existed at that time. Closes #243
Summary
Renames all 10 uf-owned slash commands from unprefixed names to
uf.dot-notation (e.g.,/review-council→/uf.review-council) for clear namespace identification.Other tools in the ecosystem already use clear namespacing (
speckit.*,muti-mind.*,opsx-*). The uf-owned commands were the only group without a namespace, making ownership ambiguous when browsing the command list.The scaffold engine gains a
renamedCommandsmigration map that automatically removes orphaned old-name files whenuf initis re-run on existing repos.Fixes #302
How to Test
How to Demo
uf initin a fresh temp directory — verify onlyuf.*command files are created (no unprefixed names).opencode/commands/review-council.md), then re-runuf init— verify orphans are removed and listed as "migrated" in the summary outputKey Files Changed
internal/scaffold/assets/opencode/commands/*.md→uf.*.md.opencode/commands/*.md→uf.*.mdinternal/scaffold/scaffold.goisDivisorAsset(),hintDivisor, warning pathinternal/scaffold/scaffold_test.gointernal/doctor/checks.go,doctor_test.goInstallHintstringscmd/unbound-force/main_test.go.opencode/commands/, agents, skills, packsAGENTS.md,QUICKSTART.md,README.md,CLAUDE.md,docs/*.mdschemas/CHANGELOG.mdopenspec/changes/uf-command-namespace-prefix/This PR was generated by /uf.finale (AI-assisted).