CHANGE: Update local chatmode and prompt discovery process

- Refine local chatmode and prompt scanning to only include `.github/chatmodes/` and `.github/prompts/` directories
- Ensure existing chatmodes and prompts are accurately compared to avoid duplicates
This commit is contained in:
Daniel Scott-Raynsford 2025-07-06 15:27:02 +12:00
parent 1f711001da
commit 8fba39769e
2 changed files with 9 additions and 10 deletions

View File

@ -11,7 +11,7 @@ Analyze current repository context and suggest relevant chatmode files from the
## Process ## Process
1. **Fetch Available Chatmodes**: Extract chatmode list and descriptions from [awesome-copilot chatmodes folder](https://github.com/github/awesome-copilot/tree/main/chatmodes) 1. **Fetch Available Chatmodes**: Extract chatmode list and descriptions from [awesome-copilot chatmodes folder](https://github.com/github/awesome-copilot/tree/main/chatmodes)
2. **Scan Local Chatmodes**: Discover existing chatmode files in both `chatmodes/` and `.github/chatmodes/` folders 2. **Scan Local Chatmodes**: Discover existing chatmode files in `.github/chatmodes/` folder
3. **Extract Descriptions**: Read front matter from local chatmode files to get descriptions 3. **Extract Descriptions**: Read front matter from local chatmode files to get descriptions
4. **Analyze Context**: Review chat history, repository files, and current project needs 4. **Analyze Context**: Review chat history, repository files, and current project needs
5. **Compare Existing**: Check against chatmodes already available in this repository 5. **Compare Existing**: Check against chatmodes already available in this repository
@ -47,16 +47,15 @@ Display analysis results in structured table comparing awesome-copilot chatmodes
## Local Chatmodes Discovery Process ## Local Chatmodes Discovery Process
1. List all `.chatmode.md` files in `chatmodes/` directory 1. List all `*.chatmode.md` files in `.github/chatmodes/` directory
2. Check `.github/chatmodes/` directory for any `*.chatmode.md` files 2. For each discovered file, read front matter to extract `description`
3. For each discovered file, read front matter to extract `description` 3. Build comprehensive inventory of existing chatmodes
4. Build comprehensive inventory of existing chatmodes 4. Use this inventory to avoid suggesting duplicates
5. Use this inventory to avoid suggesting duplicates
## Requirements ## Requirements
- Use `githubRepo` tool to get content from awesome-copilot repository chatmodes folder - Use `githubRepo` tool to get content from awesome-copilot repository chatmodes folder
- Scan local file system for existing chatmodes in `chatmodes/` and `.github/chatmodes/` directories - Scan local file system for existing chatmodes in `.github/chatmodes/` directory
- Read YAML front matter from local chatmode files to extract descriptions - Read YAML front matter from local chatmode files to extract descriptions
- Compare against existing chatmodes in this repository to avoid duplicates - Compare against existing chatmodes in this repository to avoid duplicates
- Focus on gaps in current chatmode library coverage - Focus on gaps in current chatmode library coverage

View File

@ -10,7 +10,7 @@ Analyze current repository context and suggest relevant prompt files from the [G
## Process ## Process
1. **Fetch Available Prompts**: Extract prompt list and descriptions from [awesome-copilot README](https://github.com/github/awesome-copilot/blob/main/README.md) 1. **Fetch Available Prompts**: Extract prompt list and descriptions from [awesome-copilot README](https://github.com/github/awesome-copilot/blob/main/README.md)
2. **Scan Local Prompts**: Discover existing prompt files in both `prompts/` and `.github/prompts/` folders 2. **Scan Local Prompts**: Discover existing prompt files in `.github/prompts/` folder
3. **Extract Descriptions**: Read front matter from local prompt files to get descriptions 3. **Extract Descriptions**: Read front matter from local prompt files to get descriptions
4. **Analyze Context**: Review chat history, repository files, and current project needs 4. **Analyze Context**: Review chat history, repository files, and current project needs
5. **Compare Existing**: Check against prompts already available in this repository 5. **Compare Existing**: Check against prompts already available in this repository
@ -46,7 +46,7 @@ Display analysis results in structured table comparing awesome-copilot prompts w
## Local Prompts Discovery Process ## Local Prompts Discovery Process
1. List all `.prompt.md` files directory `.github/prompts/` for any `*.prompt.md` files. 1. List all `*.prompt.md` files directory `.github/prompts/`.
2. For each discovered file, read front matter to extract `description` 2. For each discovered file, read front matter to extract `description`
3. Build comprehensive inventory of existing prompts 3. Build comprehensive inventory of existing prompts
4. Use this inventory to avoid suggesting duplicates 4. Use this inventory to avoid suggesting duplicates
@ -54,7 +54,7 @@ Display analysis results in structured table comparing awesome-copilot prompts w
## Requirements ## Requirements
- Use `githubRepo` tool to get content from awesome-copilot repository - Use `githubRepo` tool to get content from awesome-copilot repository
- Scan local file system for existing prompts in `prompts/` and `.github/prompts/` directories - Scan local file system for existing prompts in `.github/prompts/` directory
- Read YAML front matter from local prompt files to extract descriptions - Read YAML front matter from local prompt files to extract descriptions
- Compare against existing prompts in this repository to avoid duplicates - Compare against existing prompts in this repository to avoid duplicates
- Focus on gaps in current prompt library coverage - Focus on gaps in current prompt library coverage