Skip to content

chore: prefix uf-owned slash commands with uf. namespace - #304

Merged
jflowers merged 1 commit into
unbound-force:mainfrom
marcusburghardt:opsx/uf-command-namespace-prefix
Jul 31, 2026
Merged

jflowers merged 1 commit into
unbound-force:mainfrom
marcusburghardt:opsx/uf-command-namespace-prefix

Conversation

@marcusburghardt

Copy link
Copy Markdown
Contributor

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 renamedCommands migration map that automatically removes orphaned old-name files when uf init is re-run on existing repos.

Fixes #302

How to Test

# Build and run all tests (including drift detection)
make check

# Verify no old command names remain in active files
rg '/review-council[^.]' --glob '!CHANGELOG.md' \
   --glob '!openspec/changes/**' --glob '!specs/**'

# Verify embedded assets are all uf.-prefixed
ls internal/scaffold/assets/opencode/commands/

How to Demo

  1. Run uf init in a fresh temp directory — verify only uf.* command files are created (no unprefixed names)
  2. Create old-name files manually (e.g., .opencode/commands/review-council.md), then re-run uf init — verify orphans are removed and listed as "migrated" in the summary output

Key Files Changed

Area Files What Changed
Embedded assets 10 renamed in internal/scaffold/assets/opencode/commands/ *.md → uf.*.md
Live commands 10 renamed in .opencode/commands/ *.md → uf.*.md
Scaffold engine internal/scaffold/scaffold.go Migration map, isDivisorAsset(), hintDivisor, warning path
Scaffold tests internal/scaffold/scaffold_test.go Asset paths, assertions, comments
Doctor internal/doctor/checks.go, doctor_test.go 7 InstallHint strings
CMD tests cmd/unbound-force/main_test.go 2 test fixtures
Cross-refs 13 files in .opencode/commands/, agents, skills, packs Updated uf command references
Documentation AGENTS.md, QUICKSTART.md, README.md, CLAUDE.md, docs/*.md Command name references
Schemas 3 files in schemas/ Sample and README references
Changelog CHANGELOG.md New entry with migration guide ref
OpenSpec openspec/changes/uf-command-namespace-prefix/ Proposal, design, specs, tasks

This PR was generated by /uf.finale (AI-assisted).

@marcusburghardt
marcusburghardt marked this pull request as draft June 26, 2026 15:16
@marcusburghardt
marcusburghardt force-pushed the opsx/uf-command-namespace-prefix branch from 5561675 to 9e73041 Compare June 26, 2026 15:21
@marcusburghardt

Copy link
Copy Markdown
Contributor Author

This is a big change, don't be rushed to review and test.

@marcusburghardt
marcusburghardt force-pushed the opsx/uf-command-namespace-prefix branch from 9e73041 to 1fa1f99 Compare July 1, 2026 12:28
@marcusburghardt
marcusburghardt marked this pull request as ready for review July 1, 2026 12:29
@jflowers jflowers moved this to In Review 👀 in Unbound Force Planning Jul 30, 2026
@marcusburghardt
marcusburghardt force-pushed the opsx/uf-command-namespace-prefix branch from 1fa1f99 to 0036a8e Compare July 31, 2026 08:29

@yvonnedevlinrh yvonnedevlinrh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Comment thread CLAUDE.md

@AGENTS.md
@.opencode/agents/cobalt-crush-dev.md
@.opencode/agents/uf.cobalt-crush-dev.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOW
os.Remove errors silently swallowed — if stat succeeds but remove fails (permissions), no log or return value signals the failure

Comment thread docs/architecture.md
+----------+ +-----------+-----------+
| uf CLI | | Slash Commands |
|----------| | /review-council |
|----------| | /uf.review-council |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread AGENTS.md
before tasks. Tasks before implementation. Spec artifacts MUST
be committed/pushed before implementation begins.

**Branches**: Speckit: `speckit/NNN-<name>`. OpenSpec: `opsx/<name>`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]>
@jflowers
jflowers force-pushed the opsx/uf-command-namespace-prefix branch from 0036a8e to f29f393 Compare July 31, 2026 20:06
@jflowers
jflowers merged commit e3b4bb7 into unbound-force:main Jul 31, 2026
11 checks passed
@yvonnedevlinrh yvonnedevlinrh moved this from In Review 🏁 to Done ✔️ in Unbound Force Planning Aug 17, 2026
yvonnedevlinrh added a commit to unbound-force/gaze that referenced this pull request Sep 1, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done ✔️

Development

Successfully merging this pull request may close these issues.

chore: prefix uf-owned slash commands with uf. namespace

3 participants