Loading...
Loading...
Compare original and translation side by side
Purpose: Comprehensive context management operations with clear guidance, lazy loading, and safe operations for discovering, organizing, and maintaining project context.
用途:提供全面的上下文管理操作,包含清晰引导、懒加载和安全操作,用于发现、整理和维护项目上下文。
bash .opencode/skills/context-manager/router.sh discover authenticationbash .opencode/skills/context-manager/router.sh discover authenticationbash .opencode/skills/context-manager/router.sh fetch "Drizzle ORM" "modular schemas"bash .opencode/skills/context-manager/router.sh fetch "Drizzle ORM" "modular schemas"bash .opencode/skills/context-manager/router.sh harvest ANALYSIS.mdbash .opencode/skills/context-manager/router.sh harvest ANALYSIS.mdbash .opencode/skills/context-manager/router.sh extract code-quality.md "naming conventions"bash .opencode/skills/context-manager/router.sh extract code-quality.md "naming conventions"bash .opencode/skills/context-manager/router.sh compress .opencode/context/ 100KBbash .opencode/skills/context-manager/router.sh compress .opencode/context/ 100KBbash .opencode/skills/context-manager/router.sh organize .opencode/context/bash .opencode/skills/context-manager/router.sh organize .opencode/context/bash .opencode/skills/context-manager/router.sh cleanup .tmp/ 7bash .opencode/skills/context-manager/router.sh cleanup .tmp/ 7bash .opencode/skills/context-manager/router.sh process "organize authentication context" .opencode/context/bash .opencode/skills/context-manager/router.sh process "organize authentication context" .opencode/context/discover [target]undefineddiscover [target]undefined
**Output**:
- List of discovered files with paths and sizes
- File statistics (count, total size, last updated)
- Categorization by type
- Suggestions for next steps
---
**输出**:
- 包含路径和大小的已发现文件列表
- 文件统计信息(数量、总大小、最后更新时间)
- 按类型分类
- 下一步操作建议
---fetch [libraries] [topics]undefinedfetch [libraries] [topics]undefined
**Output**:
- Fetched files with paths
- File sizes and statistics
- Source URLs
- How to reference in context
- Manifest updates
---
**输出**:
- 已获取文件的路径
- 文件大小和统计信息
- 源URL
- 如何在上下文中引用
- 清单更新
---harvest [source-file]undefinedharvest [source-file]undefined
**Output**:
- Created context file path
- Space saved (original vs. harvested)
- Content structure
- Updated navigation files
- How to use the new context
---
**输出**:
- 创建的上下文文件路径
- 节省的空间(原文件 vs 采集后文件)
- 内容结构
- 更新的导航文件
- 如何使用新上下文
---extract [file] [what-to-extract]undefinedextract [file] [what-to-extract]undefined
**Output**:
- Extracted information organized by topic
- Source file citations
- Relevance scores
- Usage suggestions
- Next steps
---
**输出**:
- 按主题组织的提取信息
- 源文件引用
- 相关性评分
- 使用建议
- 下一步操作
---compress [target] [size-threshold]undefinedcompress [target] [size-threshold]undefined
**Output**:
- Compressed files with paths
- Space savings (before/after)
- Compression ratio
- Decompression instructions
- Manifest updates
---
**输出**:
- 已压缩文件的路径
- 节省的空间(压缩前 vs 压缩后)
- 压缩比
- 解压说明
- 清单更新
---organize [target]undefinedorganize [target]undefined
**Output**:
- Current structure analysis
- Proposed new structure
- Files moved and reorganized
- Updated references
- Navigation updates
- New structure overview
---
**输出**:
- 当前结构分析
- 建议的新结构
- 已移动和重组的文件
- 更新的引用
- 导航更新
- 新结构概览
---cleanup [target] [older-than-days]undefinedcleanup [target] [older-than-days]undefined
**Output**:
- Files to be deleted
- Space to be freed
- Impact analysis
- Recovery instructions
- Manifest updates
---
**输出**:
- 待删除文件列表
- 可释放的空间
- 影响分析
- 恢复说明
- 清单更新
---process [goal] [scope]undefinedprocess [goal] [scope]undefined
**Output**:
- Step-by-step workflow
- Progress indicators
- Discovered context
- Processing plan
- Execution results
- Validation results
- Summary and next steps
---
**输出**:
- 分步工作流
- 进度指示器
- 已发现的上下文
- 处理计划
- 执行结果
- 验证结果
- 总结和下一步操作
---1. discover context for: "authentication"
→ Find all auth-related context
2. extract from: "security-patterns.md" what: "auth patterns"
→ Get specific patterns
3. Show results
→ Ready to use in session1. discover context for: "authentication"
→ 查找所有与认证相关的上下文
2. extract from: "security-patterns.md" what: "auth patterns"
→ 获取特定模式
3. 展示结果
→ 可在会话中直接使用1. fetch external docs for: "Drizzle ORM"
→ Get live documentation
2. Show file paths
→ .tmp/external-context/drizzle-orm/...
3. Reference in session context
→ Add to "## External Context Fetched"
4. Pass to subagents
→ Include in subtask JSONs1. fetch external docs for: "Drizzle ORM"
→ 获取实时文档
2. 展示文件路径
→ .tmp/external-context/drizzle-orm/...
3. 在会话上下文中引用
→ 添加至"## External Context Fetched"
4. 传递给子Agent
→ 包含在子任务JSON中1. harvest context from: "ANALYSIS.md"
→ Extract key concepts
2. organize context by: "concern"
→ Restructure for clarity
3. Update documentation
→ Show new structure
4. Delete original summary
→ Clean up temporary files1. harvest context from: "ANALYSIS.md"
→ 提取关键概念
2. organize context by: "concern"
→ 重组以提升清晰度
3. 更新文档
→ 展示新结构
4. 删除原始摘要
→ 清理临时文件1. cleanup .tmp/ directory
→ Remove temporary files
2. cleanup external context older than: "7 days"
→ Remove stale external docs
3. Show space freed
→ Provide statistics
4. Update manifest
→ Keep tracking accurate1. cleanup .tmp/ directory
→ 删除临时文件
2. cleanup external context older than: "7 days"
→ 删除过期外部文档
3. 展示释放的空间
→ 提供统计信息
4. 更新清单
→ 保持追踪准确性.opencode/skills/context-manager/
├── SKILL.md # This file
├── router.sh # CLI router (entry point)
├── CONTEXT_SKILL_QUICK_START.md # Quick start guide
├── context-manager.md # Detailed operation guide
└── navigation.md # Navigation index.opencode/skills/context-manager/
├── SKILL.md # 本文档
├── router.sh # CLI 路由(入口点)
├── CONTEXT_SKILL_QUICK_START.md # 快速入门指南
├── context-manager.md # 详细操作指南
└── navigation.md # 导航索引discover all context filesdiscover all context files.backup/cleanup-{date}.tar.gz.backup/cleanup-{date}.tar.gz