context-map
作者: github
分析代码库并在实施变更前映射任务相关文件。自动搜索相关文件、依赖项、测试及相似代码模式以建立完整上下文。生成结构化Markdown输出,包含待修改文件、依赖关系、测试覆盖及参考模式。包含破坏性变更、迁移及配置更新的风险评估清单。设计为实施前步骤,用于防止遗漏依赖项及意外副作用...
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.