About context-map
A coding-agent skill that directs an agent to map relevant code, dependencies, tests and existing patterns before implementation. It asks for the context map to be reviewed before work proceeds.
Key features
- 01Locate task-related files
- 02Trace direct dependencies
- 03Find related tests
- 04Identify existing code patterns
- 05Require review before implementation
Use cases
- 01Survey a codebase before changing it
- 02Identify tests affected by a task
- 03Review dependencies before implementation
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ github/ awesome-copilot --skill context-mapAfter installing, type/context-mapin Claude Code to confirm it loaded.
Details
From the project READMEContext 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.
Comments
Markdown supported