技能 编程开发 代码上下文图谱生成器

代码上下文图谱生成器

v20260410
context-map
在进行任何代码修改前,使用此模板生成完整的代码上下文图谱。它帮助开发者系统性地分析任务相关的全部文件、依赖关系、测试用例和代码模式。这能够全面掌握代码库的当前状态,评估潜在的风险和影响范围,确保开发流程的完整性和稳定性。
获取技能
245 次下载
概览

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.

信息
Category 编程开发
Name context-map
版本 v20260410
大小 1.12KB
更新时间 2026-04-12
语言