---
id: ssh-context-map
name: "context-map"
url: https://skills.yangsir.net/skill/ssh-context-map
author: github
domain: ai-software-architecture-engineering
tags: ["domain-driven-design", "context-mapping", "microservices-architecture", "bounded-contexts"]
install_count: 9000
rating: 4.50 (297 reviews)
github: https://github.com/github/awesome-copilot
---

# context-map

> 在进行代码更改前，生成与任务相关的所有文件映射，以便全面了解上下文。

**Stats**: 9,000 installs · 4.5/5 (297 reviews)

## Before / After 对比

### 全面理解代码上下文提升修改效率

## Readme

# 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

```markdown
## 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.


---
*Source: https://skills.yangsir.net/skill/ssh-context-map*
*Markdown mirror: https://skills.yangsir.net/api/skill/ssh-context-map/markdown*