context-map
oleh github
Analisis basis kode dan petakan file yang relevan dengan tugas sebelum menerapkan perubahan. Secara otomatis mencari file terkait, dependensi, pengujian, dan pola kode serupa untuk membangun konteks penuh. Menghasilkan output markdown terstruktur dengan file yang akan dimodifikasi, hubungan dependensi, cakupan pengujian, dan pola referensi. Menyertakan daftar periksa penilaian risiko untuk perubahan yang merusak, migrasi, dan pembaruan konfigurasi. Dirancang sebagai langkah pra-implementasi untuk mencegah dependensi yang terlewat dan efek samping yang tidak diinginkan...
npx skills add https://github.com/github/awesome-copilot --skill context-mapContext Map
Before implementing any changes, analyze the codebase and create a context map.
Task
{{task_description}}
Instructions
- Search the codebase for files related to this task
- Identify direct dependencies (imports/exports)
- Find related tests
- Look for similar patterns in existing code
Output Format
## Context Map
### Files to Modify
| File | Purpose | Changes Needed |
|------|---------|----------------|
| path/to/file | description | what changes |
### Dependencies (may need updates)
| File | Relationship |
|------|--------------|
| path/to/dep | imports X from modified file |
### Test Files
| Test | Coverage |
|------|----------|
| path/to/test | tests affected functionality |
### Reference Patterns
| File | Pattern |
|------|---------|
| path/to/similar | example to follow |
### Risk Assessment
- [ ] Breaking changes to public API
- [ ] Database migrations needed
- [ ] Configuration changes required
Do not proceed with implementation until this map is reviewed.