fix(extensions): normalize literal command calls in generated skills - #4521
Open
MahinurRahman wants to merge 1 commit into
Open
fix(extensions): normalize literal command calls in generated skills#4521MahinurRahman wants to merge 1 commit into
MahinurRahman wants to merge 1 commit into
Conversation
Fixes github#3451 Assisted-by: Codex (autonomous)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #3451.
Extension commands can contain literal cross-command calls such as
/speckit.memory-md.prepare-context. When those commands are installed as skills, the generatedSKILL.mdpreviously retained the dotted slash form even for integrations that require hyphenated skill names or a different invocation prefix.This change normalizes literal skill invocations in the shared skill renderer and extension-manager skill registration path. It supports Codex (
$speckit-*), Claude/Copilot (/speckit-*), and Kimi (/skill:speckit-*). Canonical command IDs, file paths, URLs, and ordinary non-skill command layouts are preserved.New regression coverage exercises four integrations through both skill registration paths, verifies idempotence and path/URL preservation, and confirms ordinary command output remains dotted.
Testing
$speckit-invocation-smoke-finishand the referenced skill existed.git diff --checkpassed.AI disclosure: Codex authored the implementation, tests, documentation, and validation on behalf of MahinurRahman. The work was performed autonomously; no human line-by-line review or external-agent execution is claimed.