GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Bug]: __SPECKIT_COMMAND_*__ tokens can't reference commands whose names contain hyphens · Issue #4198 · github/spec-kit Closed Labels DescriptionBug Description
# src/specify_cli/integrations/base.py r"__SPECKIT_COMMAND_([A-Z][A-Z0-9_]*)__" ... + m.group(1).lower().replace("_", separator) Command names themselves, however, are allowed to contain hyphens: # src/specify_cli/extensions/__init__.py EXTENSION_COMMAND_NAME_PATTERN = re.compile(r"^speckit\.([a-z0-9-]+)\.([a-z0-9-]+)$") Since the token grammar It is especially easy to miss because in skills mode, where The extension submission checklist asks for IDs in The same condition applies to Some options that came to mind as a user (I don't know the design intent)I don't have a deep understanding of speckit's internals, so please read the following as ideas from someone who ran into this rather than as proposals. If any of them were already considered and rejected, I would be genuinely interested in the reasoning.
If none of these are practical, even a single line in the extension/preset development guide saying that command names intended to be token-referenced should avoid hyphens would have been enough for me. Right now the naming rules point toward hyphens, so there was no way to anticipate the constraint. Steps to Reproducefrom specify_cli.integrations.base import IntegrationBase as I # actual bundled command: speckit.agent-context.update I.resolve_command_refs("__SPECKIT_COMMAND_AGENT_CONTEXT_UPDATE__", ".") I.resolve_command_refs("__SPECKIT_COMMAND_AGENT_CONTEXT_UPDATE__", "-") In a real project:
Expected BehaviorThe token resolves to the command id that is actually installed — or, if it cannot be resolved, something tells me about it instead of silently emitting a wrong string. Actual BehaviorThe hyphen is interpreted as a segment separator, so a three-segment command renders as four segments. No warning is emitted. I checked the Specify CLI Version0.16.0 AI AgentClaude Code Operating SystemmacOS 15.3.1 Python Version3.13.9 (specify CLI venv) Error LogsAdditional ContextNo response Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |