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

feat(workflows): align CLI commands with extension/preset pattern

Open mnriem opened this issue 7 months ago • 2 comments

specify workflow is missing several commands and flags that specify extension and specify preset already support. These should be aligned to give users a consistent experience across all pluggable subsystems.

Gaps (confirmed via --help)

Missing from specify workflow Present in specify extension / specify preset
add --dev Install from local directory for development
add --from <url> Install from custom URL
search --author Filter search results by author
update Update installed workflow(s) to latest version
enable / disable Toggle without removing

Already aligned

list, add, remove, search, info, catalog list/add/remove — all present and working.

Not applicable to workflows

  • set-priority / add --priority — workflows run by name, they don't stack or compete for file resolution
  • search --verified — no verification process for workflows

Reference implementation

Use specify extension as the canonical pattern. CLI definitions are in src/specify_cli/__init__.py; catalog class is in src/specify_cli/extensions.py (ExtensionCatalog).

mnriem avatar Apr 23 '26 21:04 mnriem

I would like to pick this up. Plan:

  1. workflow add --dev <path> and add --from <url> — explicit flags mirroring extension add, on top of the existing positional source handling
  2. workflow search --author — filter pass-through in WorkflowCatalog.search
  3. workflow update [id] — re-fetch from the recorded source in the registry, with version comparison
  4. workflow enable / disable — enabled flag in the workflow registry, respected by run/list
  5. Tests pinning each new command/flag, mirroring the existing extension command tests

Skipping set-priority and search --verified per the issue. One PR, specify extension as the canonical pattern.

marcelsafin avatar Jul 08 '26 23:07 marcelsafin

@marcelsafin Go for it!

mnriem avatar Jul 09 '26 19:07 mnriem