mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-10-02 05:24:34 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user