mcpField
C
context-map

context-map

github.com/githubAgent workflows40.5k9.6k installsUpdated 1d ago
Repository

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

  1. 01Locate task-related files
  2. 02Trace direct dependencies
  3. 03Find related tests
  4. 04Identify existing code patterns
  5. 05Require review before implementation

Use cases

  1. 01Survey a codebase before changing it
  2. 02Identify tests affected by a task
  3. 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-map

After installing, type/context-mapin Claude Code to confirm it loaded.

Details

From the project 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

## 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