Install
openclaw skills install project-context-guideThis skill should be used when users need to understand codebase structure, trace code decisions, analyze code dependencies and impact, identify code maintainers, or get contextual information for code reviews. It is particularly valuable for onboarding new team members, understanding legacy code, predicting code change impacts, and comprehending design decisions. The skill provides intelligent code analysis, Git history tracing, ownership tracking, and team collaboration insights to make complex codebases transparent and understandable.
openclaw skills install project-context-guide项目上下文向导 - 让复杂代码库变得透明易懂。
新成员加入项目时,自动生成个性化学习路径:
修改代码前,预判影响范围:
理解代码背后的设计决策:
连接代码与团队:
Code Review 时提供上下文支持:
初始化分析
实时查询
持续学习
analyze_structure.py - 项目结构分析,生成模块依赖图git_inspector.py - Git 历史分析,提取决策记录dependency_mapper.py - 代码依赖和调用关系映射ownership_tracker.py - 代码所有权和维护者追踪impact_analyzer.py - 代码变更影响分析用户: "我刚加入这个项目,应该从哪里开始了解?"
Skill:
- 分析项目结构,识别入口文件和核心模块
- 基于你的技能背景(如前端经验)推荐学习路径
- 列出最近活跃度高的模块
- 关联相关 README 和文档
用户选中 `payment_callback.py` 中的 `process_payment` 函数
Skill:
- 显示调用链: 被 3 个页面直接调用
- 标注相关测试: `tests/test_payment.py`
- 提醒: "支付页面上周刚修复了相关 bug (#1234)"
- 建议: "通知 @张三,他是支付模块维护者"
用户: "为什么这里用 Redis 而不用数据库缓存?"
Skill:
- 显示: 首次引入于 2025-08-15 commit abc123
- 引用: "PR #456: 解决高并发下的性能问题"
- 数据: "压力测试显示 QPS 提升 300%"
- 讨论: "@李四 建议用 Redis,@王五 实现了方案"
用户: Review 一段新代码
Skill:
- 指出: "类似实现在 `user_service.py:203` 有更优版本"
- 提醒: "注意事务边界,参考 `order_service.py:89` 的处理"
- 建议: "需要添加对 `points_system` 的测试覆盖"
- 风险: "可能影响 `积分防刷逻辑`,@李四 已确认"
灵感来源于每个经历过"代码迷宫"的开发者。我们相信,理解代码背后的上下文,和读懂代码本身一样重要。