[Bug]: Cline extension and preset commands have `speckit.*.md` file names rewritten to `speckit-*-md`
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 82/100
Direção de pesquisa
Comece por CommandRegistrar._hyphenate_body_refs e _hyphenate_frontmatter_refs em src/specify_cli/agents.py e, em seguida, examine como os comandos de extensão são registrados nas linhas referenciadas. Reproduza o exemplo com o caminho do comando e o comando slash, e procure testes relacionados que cubram a reescrita de referências do Cline. O trabalho estará concluído quando as referências a comandos forem convertidas para palavras separadas por hífens, enquanto os nomes de arquivo mantêm a extensão .md; adicione ou atualize testes específicos para os dois casos.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Bug Description
When an extension or preset command is registered for Cline (src/specify_cli/agents.py:718, 831-833), the command body goes through CommandRegistrar._hyphenate_body_refs (agents.py:114-120). This replaces every dot in any speckit.<a>.<b>... token with a hyphen, so that command references match Cline's hyphenated file names. The regex also matches file names, so a path such as speckit.git.commit.md becomes speckit-git-commit-md, which names no file. The frontmatter goes through the same rewrite in _hyphenate_frontmatter_refs (agents.py:96-111).
The expectation here is inferred rather than documented. The bundled extensions name their command files speckit.<ext>.<cmd>.md (extensions/git/extension.yml:21-33). The extension development guide refers to files by those names (extensions/EXTENSION-DEVELOPMENT-GUIDE.md:306-308). The method's docstring describes its purpose as hyphenating "dotted speckit references". I could not find a doc or test that says file names should be rewritten too.
Steps to Reproduce
From a fresh clone, after uv sync, save the script below and run uv run python -I repro.py from the repository root.
from specify_cli.agents import CommandRegistrar
body = "Edit `.specify/extensions/git/commands/speckit.git.commit.md`, then run /speckit.git.commit."
print("in :", body)
print("out:", CommandRegistrar._hyphenate_body_refs(body))
Expected Behavior
The command reference /speckit.git.commit should become /speckit-git-commit, and the file name speckit.git.commit.md should be left alone (or at least keep its .md extension). This is inferred from the file naming in extensions/git/extension.yml:21-33 and extensions/EXTENSION-DEVELOPMENT-GUIDE.md:306-308, as described above.
Actual Behavior
in : Edit `.specify/extensions/git/commands/speckit.git.commit.md`, then run /speckit.git.commit.
out: Edit `.specify/extensions/git/commands/speckit-git-commit-md`, then run /speckit-git-commit.
Specify CLI Version
1.2.4.dev0 (main at 27d14e2)
AI Agent
Cline
Operating System
Linux 6.18 (Ubuntu container)
Python Version
Python 3.12.3
Additional Context
This only affects Cline, and only command bodies (from extensions or presets) that mention spec-kit command file names.
Also reproduced on macOS (Darwin 25.6, arm64) with Python 3.14.4 and uv run python -I repro.py against 27d14e2; the output matches the above.
AI Disclosure
Found and reproduced with Claude Code (model: Claude Opus 4.8), run autonomously under human supervision. The human reporter re-ran every reproduction above before filing.
- Linguagem predominante
- Python
- Estrelas
- 144k
- Forks
- 12.9k
- Merge médio
- 1d 7h
- PRs com merge (30d)
- 205
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de github/spec-kit
-
[Bug]: `create-new-feature.sh` rejects the feature descriptions `-n`, `-e` and `-E`, which the Python script acceptsTalvez já em andamento @WOLIKIMCHENG assumiu há 9 dias. Abertatriage-can-wait
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
[Bug]: `bundle init <bundle>` initialises with the default integration instead of the bundle's, then aborts with a clashTalvez já em andamento @chelsealong assumiu há 10 dias. Abertatriage-must-have
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
[Bug]: `specify preset set-priority` does not update agent command files that are already writtenTalvez já em andamento @mikamikasuki assumiu há 10 dias. Abertatriage-must-have
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Mantenedores costumam responder em até 1 dia
-
[Bug]: Local config override file name differs between the docs (`<id>-config.local.yml`) and ConfigManager (`local-config.yml`)Talvez já em andamento @gavenren assumiu há 7 dias. Abertatriage-must-have
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
[Bug]: Extension alias conflict check misses spellings that map to the same file, so one extension overwrites and then deletes another's aliasTalvez já em andamento @chelsealong assumiu há 8 dias. Abertatriage-must-have
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
Todas as issues de github/spec-kit
Issues semelhantes
-
area:cli bug difficulty:1
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 87/100
MakazhanAlpamys/Soup#2491 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
microsoft/onnxscript#3155 ·
Mantenedores costumam responder em até 4 dias
-
IFEval nth-paragraph checker reads the wrong paragraph when a blank separator is presentTalvez já em andamento @chetana1410 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
EleutherAI/lm-evaluation-harness#4530 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
sv_SE vat_id() has 14 digits: the "16" organisation number prefix is keptTalvez já em andamento @kevin9327 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 19 dias