360 Secure SkillHub
360 安全技能中心

context-map

该 Skill 是一个提示模板:在实施改动前分析代码库,检索与任务相关的文件,识别直接依赖、相关测试和可参考的相似模式,并以 Markdown 表格输出上下文映射,附风险评估清单,要求在评审后才开始实现。

github
热度 0.00
最近更新 2026-10-18 22:05:34
分类:开发依赖:读写文件应用场景:代码审查

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add github/awesome-copilot/context-map
Metadata
name
context-map
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

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