Files
awesome-copilot/prompts/context-map.prompt.md
vfaraji89 2a324116db Fix review feedback: mode→agent frontmatter, add applyTo, generate plugin
- Fix prompt frontmatter: mode: 'agent' → agent: 'agent' (repo convention)
- Add applyTo: '**' to instructions file
- Remove trailing Claude credit from instructions
- Generate plugin via npm run plugin:migrate
- Rebase onto latest upstream/main
2026-02-10 22:43:10 +03:00

54 lines
1.1 KiB
Markdown

---
agent: 'agent'
tools: ['codebase']
description: 'Generate a map of all files relevant to a task before making changes'
---
# 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.