fix: correct Copilot extension command registration#1724
Open
ismaelJimenez wants to merge 1 commit intogithub:mainfrom
Open
fix: correct Copilot extension command registration#1724ismaelJimenez wants to merge 1 commit intogithub:mainfrom
ismaelJimenez wants to merge 1 commit intogithub:mainfrom
Conversation
- Use .agent.md extension for commands in .github/agents/ - Generate companion .prompt.md files in .github/prompts/ - Clean up .prompt.md files on extension removal - Add tests for Copilot-specific registration behavior Bumps version to 0.1.7.
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.
Bumps version to 0.1.7.
Description
The
specify extension add --devcommand didn't work correctly for GitHub Copilot projects. Three issues were identified and fixed:.mdinstead of.agent.mdin.github/agents/, so Copilot couldn't discover them as agent files..prompt.mdfile in.github/prompts/for each agent — these were never generated.specify extension remove, the.prompt.mdcompanion files were not deleted.The root cause was a mismatch between
CommandRegistrar.AGENT_CONFIGS(used by the CLI) and the release packaging script (create-release-packages.sh), which correctly handled all three cases.Testing
uv sync && uv run pytestuv run specify --help107 tests pass. New tests added:
test_register_commands_for_copilot— verifies.agent.mdextension is usedtest_copilot_companion_prompt_created— verifies.prompt.mdgenerationtest_copilot_aliases_get_companion_prompts— verifies aliases also get promptstest_non_copilot_agent_no_companion_file— verifies no prompts for other agentstest_copilot_cleanup_removes_prompt_files— verifies cleanup of prompt filesAI Disclosure
GitHub Copilot (Claude Opus 4.6) was used to investigate the bug, implement the fix, and write the tests. All changes were reviewed and validated by a human.