此命令通过读取项目上下文文档并理解代码库结构,为新的 agent 会话加载必要上下文。
/plugin marketplace add ysicing/code-pilot/plugin install ysicing-code-pilot@ysicing/code-pilotcontext/# 启动上下文
此命令通过读取项目上下文文档并理解代码库结构,为新的 agent 会话加载必要上下文。
## 开始前检查清单
在继续之前,完成这些验证步骤。
不要用开始前检查的进度打扰用户("我不会...")。直接执行并继续。
### 1. 上下文可用性检查
- 运行:`ls -la .claude/context/ 2>/dev/null`
- 如果目录不存在或为空:
- 告知用户:"❌ 未找到上下文。请先运行 /context:create 建立项目上下文。"
- 优雅退出
- 计算可用上下文文件:`ls -1 .claude/context/*.md 2>/dev/null | wc -l`
- 报告:"📁 发现 {count} 个上下文文件待加载"
### 2. 文件完整性检查
- 对每个发现的上下文文件:
- 验证文件可读:`test -r ".claude/context/{file}" && echo "可读"`
- 检查文件有内容:`test -s ".claude/context/{file}" && echo "有内容"`
- 检查有效前言(应以 `---` 开始)
- 报告任何问题:
- 空文件:"⚠️ {filename} 为空(跳过)"
- 不可读文件:"⚠️ 无法读取 {filename}(权限问题)"
...Load AI-optimized workflow context for beads issue tracking.
Enhanced AI mode for complex tasks
Load context for a new agent session by analyzing codebase structure and README
Unified session priming command - one command for complete context restoration
Prime agent with codebase understanding. Runs git ls-files, reads README, and summarizes project structure. Use at start of session or when context is lost.