$npx -y skills add github/awesome-copilot --skill context-mapGenerate a map of all files relevant to a task before making changes
| 1 | # Context Map |
| 2 | |
| 3 | Before implementing any changes, analyze the codebase and create a context map. |
| 4 | |
| 5 | ## Task |
| 6 | |
| 7 | {{task_description}} |
| 8 | |
| 9 | ## Instructions |
| 10 | |
| 11 | 1. Search the codebase for files related to this task |
| 12 | 2. Identify direct dependencies (imports/exports) |
| 13 | 3. Find related tests |
| 14 | 4. Look for similar patterns in existing code |
| 15 | |
| 16 | ## Output Format |
| 17 | |
| 18 | ```markdown |
| 19 | ## Context Map |
| 20 | |
| 21 | ### Files to Modify |
| 22 | | File | Purpose | Changes Needed | |
| 23 | |------|---------|----------------| |
| 24 | | path/to/file | description | what changes | |
| 25 | |
| 26 | ### Dependencies (may need updates) |
| 27 | | File | Relationship | |
| 28 | |------|--------------| |
| 29 | | path/to/dep | imports X from modified file | |
| 30 | |
| 31 | ### Test Files |
| 32 | | Test | Coverage | |
| 33 | |------|----------| |
| 34 | | path/to/test | tests affected functionality | |
| 35 | |
| 36 | ### Reference Patterns |
| 37 | | File | Pattern | |
| 38 | |------|---------| |
| 39 | | path/to/similar | example to follow | |
| 40 | |
| 41 | ### Risk Assessment |
| 42 | - [ ] Breaking changes to public API |
| 43 | - [ ] Database migrations needed |
| 44 | - [ ] Configuration changes required |
| 45 | ``` |
| 46 | |
| 47 | Do not proceed with implementation until this map is reviewed. |