docs(copilot): document workflow rediscovery (#1943)

* docs(copilot): document workflow rediscovery

* test(copilot): pair discovery claims

* docs(copilot): harden workflow recovery guidance
This commit is contained in:
Clay Good
2026-09-22 17:28:55 +00:00
committed by GitHub
parent 0dde57b401
commit 416599a85e
2 changed files with 16 additions and 3 deletions
+7 -2
View File
@@ -102,8 +102,13 @@ Skills stay in `.cline/skills/`.
### GitHub Copilot
Prompt files register as slash commands in the Copilot IDE extensions (VS Code,
JetBrains, Visual Studio). Copilot CLI does not read `.github/prompts/`.
- **IDE extensions (command delivery)**: VS Code, JetBrains, and Visual Studio load
`.github/prompts/opsx-<id>.prompt.md` as `/opsx-<id>`. If a command disappears
while its file still exists, restart the IDE.
- **Copilot CLI (skill delivery)**: the CLI ignores `.github/prompts/` and loads
`.github/skills/openspec-*/SKILL.md` instead. Invoke a skill as
`/openspec-<skill>`. If a skill disappears while its file still exists, run
`/skills reload`, then `/skills info openspec-propose` to confirm discovery.
### Hermes Agent
+9 -1
View File
@@ -1594,12 +1594,20 @@ describe('InitCommand', () => {
expect(await fileExists(cmdFile)).toBe(true);
});
it('should generate GitHub Copilot prompt files', async () => {
it('should generate GitHub Copilot prompt and skill files with default delivery', async () => {
const initCommand = new InitCommand({ tools: 'github-copilot', force: true });
await initCommand.execute(testDir);
const cmdFile = path.join(testDir, '.github', 'prompts', 'opsx-explore.prompt.md');
const skillFile = path.join(
testDir,
'.github',
'skills',
'openspec-explore',
'SKILL.md'
);
expect(await fileExists(cmdFile)).toBe(true);
expect(await fileExists(skillFile)).toBe(true);
});
it('should fail GitHub Copilot setup without partially creating cloud files', async () => {