context-map

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Context Map

上下文映射图

Before implementing any changes, analyze the codebase and create a context map.
在实施任何修改之前,先分析代码库并创建上下文映射图。

Task

任务

{{task_description}}
{{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
  1. 在代码库中搜索与该任务相关的文件
  2. 识别直接依赖项(导入/导出)
  3. 查找相关测试文件
  4. 寻找现有代码中的类似模式

Output Format

输出格式

markdown
undefined
markdown
undefined

Context Map

上下文映射图

Files to Modify

需要修改的文件

FilePurposeChanges Needed
path/to/filedescriptionwhat changes
文件用途需要进行的修改
path/to/file描述修改内容

Dependencies (may need updates)

依赖项(可能需要更新)

FileRelationship
path/to/depimports X from modified file
文件关联关系
path/to/dep从修改的文件导入X

Test Files

测试文件

TestCoverage
path/to/testtests affected functionality
测试文件覆盖范围
path/to/test测试受影响的功能

Reference Patterns

参考模式

FilePattern
path/to/similarexample to follow
文件模式
path/to/similar可遵循的示例

Risk Assessment

风险评估

  • Breaking changes to public API
  • Database migrations needed
  • Configuration changes required

Do not proceed with implementation until this map is reviewed.
  • 对公共API的破坏性变更
  • 需要数据库迁移
  • 需要配置变更

在该映射图通过审核之前,请勿开始实施工作。