context-map

bởi github

Phân tích mã nguồn và lập bản đồ các tệp liên quan đến tác vụ trước khi thực hiện thay đổi. Tự động tìm kiếm các tệp liên quan, phụ thuộc, kiểm thử và các mẫu mã tương tự để thiết lập bối cảnh đầy đủ. Tạo đầu ra markdown có cấu trúc với các tệp cần sửa đổi, mối quan hệ phụ thuộc, phạm vi kiểm thử và các mẫu tham chiếu. Bao gồm danh sách kiểm tra đánh giá rủi ro cho các thay đổi phá vỡ, di chuyển và cập nhật cấu hình. Được thiết kế như một bước tiền thực thi để ngăn chặn các phụ thuộc bị bỏ sót

npx skills add https://github.com/github/awesome-copilot --skill context-map

Context Map

Before implementing any changes, analyze the codebase and create a context map.

Task

{{task_description}}

Instructions

  1. Search the codebase for files related to this task
  2. Identify direct dependencies (imports/exports)
  3. Find related tests
  4. 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.