context-map
Generate a map of all task-related files before making code changes, to gain a comprehensive understanding of the context.
npx skills add github/awesome-copilot --skill context-mapBefore / After Comparison
1 组Before making code changes, it's difficult to quickly and comprehensively understand the context of related files. This often leads to overlooking dependencies during modifications, introducing new issues, and increasing debugging and fixing time.
Automatically generates mappings of all task-related files, providing a comprehensive context view. Developers can make more accurate code modifications, reduce error rates, and significantly improve efficiency.
Context 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.
User Reviews (0)
Write a Review
No reviews yet
Statistics
User Rating
Rate this Skill