Token导航 LogoToken导航

Agent Skill · 研究检索

context-manager(上下文管理器)

context-manager 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

context-manager 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,674 个 Skill 里排第 59,803。

总安装 376周安装 16GitHub Stars 3,622下载 132核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:context-manager(上下文管理器)
来源仓库:https://github.com/darrenhinde/openagentscontrol
仓库路径:skills/context-manager
安装命令:
npx skills add https://github.com/darrenhinde/openagentscontrol --skill context-manager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/darrenhinde/openagentscontrol --skill context-manager

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

context-manager 用于查找、检索和筛选相关信息。适合根据关键词、任务场景或来源线索快速定位候选结果。可结合来源仓库和原始 README 核验具体用法。安装前建议确认权限范围、维护状态及是否触发联网或文件读写。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/context-manager

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/darrenhinde/openagentscontrol --skill context-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

context-manager 怎么安装?

在终端执行 npx skills add https://github.com/darrenhinde/openagentscontrol --skill context-manager。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

context-manager 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

context-manager 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

context-manager 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

context-manager 用的人多吗?

公开数据是累计安装 376 次,近一周安装 16 次,下载 132 次,GitHub 3,622 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

context-manager 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 来源仓库有 3,622 星,维护活跃度相对可查。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
context-manager

上下文管理器 · 本页

3763,622需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Context Manager Skill

Purpose: Comprehensive context management operations with clear guidance, lazy loading, and safe operations for discovering, organizing, and maintaining project context.

What I Do

I provide 8 powerful operations for managing context:

  1. DISCOVER - Find context files by topic or path
  2. FETCH - Get external documentation from libraries
  3. HARVEST - Extract context from summary files
  4. EXTRACT - Pull specific information from context
  5. COMPRESS - Reduce large file sizes
  6. ORGANIZE - Restructure context by concern
  7. CLEANUP - Remove stale or temporary files
  8. PROCESS - Guided workflow for context operations

Quick Start

1. Discover Context

bash .opencode/skills/context-manager/router.sh discover authentication

Finds all context files related to authentication patterns.

2. Fetch External Documentation

bash .opencode/skills/context-manager/router.sh fetch "Drizzle ORM" "modular schemas"

Retrieves live documentation from external libraries.

3. Harvest Context

bash .opencode/skills/context-manager/router.sh harvest ANALYSIS.md

Extracts key concepts from summary files into permanent context.

4. Extract Information

bash .opencode/skills/context-manager/router.sh extract code-quality.md "naming conventions"

Pulls specific information from context files.

5. Compress Files

bash .opencode/skills/context-manager/router.sh compress .opencode/context/ 100KB

Reduces large context files to save space.

6. Organize Context

bash .opencode/skills/context-manager/router.sh organize .opencode/context/

Restructures context by concern for better organization.

7. Cleanup Stale Files

bash .opencode/skills/context-manager/router.sh cleanup .tmp/ 7

Removes temporary or old files (older than 7 days).

8. Guided Workflow

bash .opencode/skills/context-manager/router.sh process "organize authentication context" .opencode/context/

Step-by-step guidance for complex context operations.


Operations Reference

Operation 1: DISCOVER

Purpose: Find context files using intelligent discovery or direct search

When to Use:

  • Need to find all context files in repository
  • Looking for specific context by topic
  • Mapping context structure
  • Understanding what context exists

Syntax:

discover [target]

Examples:

# Discover by topic
./router.sh discover "authentication patterns"

# Discover all context
./router.sh discover "all context files"

# Discover in specific directory
./router.sh discover ".opencode/context/core/"

Output:

  • List of discovered files with paths and sizes
  • File statistics (count, total size, last updated)
  • Categorization by type
  • Suggestions for next steps

Operation 2: FETCH

Purpose: Fetch external documentation using ExternalScout

When to Use:

  • Need live documentation from external libraries
  • Setting up new external library integration
  • Need version-specific documentation
  • Want to cache external docs for team

Syntax:

fetch [libraries] [topics]

Examples:

# Fetch single library
./router.sh fetch "Drizzle ORM" "modular schemas"

# Fetch multiple libraries
./router.sh fetch "Drizzle ORM" "Better Auth" "Next.js" "modular schemas" "integration" "app router"

# Fetch with specific query
./router.sh fetch "Better Auth" "Next.js App Router integration with Drizzle adapter"

Output:

  • Fetched files with paths
  • File sizes and statistics
  • Source URLs
  • How to reference in context
  • Manifest updates

Operation 3: HARVEST

Purpose: Extract context from summary files and create permanent context

When to Use:

  • Have summary documents that should become context
  • Need to convert temporary notes to permanent context
  • Want to extract key concepts from larger documents
  • Need to organize scattered information

Syntax:

harvest [source-file]

Examples:

# Harvest from analysis
./router.sh harvest DEVELOPER_PROFILE_ANALYSIS.md

# Harvest from brainstorm
./router.sh harvest AGENT_NAMING_BRAINSTORM.md

# Harvest from UX analysis
./router.sh harvest UX_ANALYSIS_THREE_MAIN_AGENTS.md

Output:

  • Created context file path
  • Space saved (original vs. harvested)
  • Content structure
  • Updated navigation files
  • How to use the new context

Operation 4: EXTRACT

Purpose: Extract specific information from context files

When to Use:

  • Need specific information from context
  • Creating summaries or reports
  • Building context bundles for subagents
  • Validating context completeness

Syntax:

extract [file] [what-to-extract]

Examples:

# Extract naming conventions
./router.sh extract code-quality.md "naming conventions"

# Extract test patterns
./router.sh extract test-coverage.md "test patterns"

# Extract all standards
./router.sh extract ".opencode/context/core/" "all standards"

Output:

  • Extracted information organized by topic
  • Source file citations
  • Relevance scores
  • Usage suggestions
  • Next steps

Operation 5: COMPRESS

Purpose: Compress large context files to save space

When to Use:

  • Context files are very large (>100 KB)
  • Need to reduce disk space usage
  • Archiving old context
  • Preparing context for distribution

Syntax:

compress [target] [size-threshold]

Examples:

# Compress large files
./router.sh compress ".opencode/context/" "100 KB"

# Compress all context
./router.sh compress ".opencode/context/"

# Compress and archive
./router.sh compress ".opencode/context/development/" "50 KB"

Output:

  • Compressed files with paths
  • Space savings (before/after)
  • Compression ratio
  • Decompression instructions
  • Manifest updates

Operation 6: ORGANIZE

Purpose: Reorganize context files by concern (what you're doing) rather than function

When to Use:

  • Context is scattered across multiple locations
  • Need to reorganize by concern/topic
  • Creating new context structure
  • Consolidating related context

Syntax:

organize [target]

Examples:

# Organize by concern
./router.sh organize ".opencode/context/"

# Organize specific topic
./router.sh organize ".opencode/context/development/"

Output:

  • Current structure analysis
  • Proposed new structure
  • Files moved and reorganized
  • Updated references
  • Navigation updates
  • New structure overview

Operation 7: CLEANUP

Purpose: Clean up stale, temporary, or unused context files

When to Use:

  • Removing temporary files (.tmp/)
  • Deleting old external context (>7 days)
  • Removing duplicate context
  • Archiving unused context

Syntax:

cleanup [target] [older-than-days]

Examples:

# Cleanup .tmp directory
./router.sh cleanup ".tmp/"

# Cleanup old external context
./router.sh cleanup ".tmp/external-context/" "7"

# Cleanup stale sessions
./router.sh cleanup ".tmp/sessions/" "3"

Output:

  • Files to be deleted
  • Space to be freed
  • Impact analysis
  • Recovery instructions
  • Manifest updates

Operation 8: PROCESS

Purpose: Provide guided workflow for processing context

When to Use:

  • Need step-by-step guidance on context operations
  • Processing multiple context files
  • Learning context management workflow
  • Automating context processing

Syntax:

process [goal] [scope]

Examples:

# Process authentication context
./router.sh process "organize authentication context" ".opencode/context/development/"

# Process all development context
./router.sh process "organize all development context" ".opencode/context/development/"

# Process external context
./router.sh process "fetch, persist, and reference external context" ".tmp/external-context/"

Output:

  • Step-by-step workflow
  • Progress indicators
  • Discovered context
  • Processing plan
  • Execution results
  • Validation results
  • Summary and next steps

Common Workflows

Workflow 1: Discover & Extract

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 session

Workflow 2: Fetch & Reference

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 JSONs

Workflow 3: Harvest & Organize

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 files

Workflow 4: Cleanup & Maintain

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 accurate

Key Principles

1. Lazy Loading

  • Discover files first (glob, grep)
  • Load only what's needed (read specific files)
  • Process incrementally (don't load entire repo)
  • Reference context files, don't duplicate

2. Clear Guidance

  • Explain what you're doing at each step
  • Show file paths and sizes
  • Provide before/after metrics
  • Suggest next steps
  • Ask for confirmation before destructive operations

3. Context Reference

  • When discovering: cite which files found
  • When processing: reference standards applied
  • When organizing: show which patterns used
  • When cleaning: explain what's being removed

4. Safe Operations

  • Ask for confirmation before destructive ops
  • Create backups when needed
  • Verify integrity after operations
  • Provide recovery instructions

File Structure

.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

Integration Points

With ContextScout

  • ContextScout discovers context files
  • This skill helps organize what ContextScout finds
  • Can harvest context from ContextScout results

With ExternalScout

  • ExternalScout fetches external documentation
  • This skill persists and organizes fetched docs
  • Can reference external context in operations

With TaskManager

  • TaskManager references context in task definitions
  • This skill ensures context files exist and are valid
  • Can catalog which tasks use which context

With Other Subagents

  • All subagents depend on context structure
  • This skill maintains and validates context
  • Can identify context gaps that subagents need

Success Criteria

You succeed when: ✅ Context files are discovered efficiently ✅ External documentation is fetched and persisted ✅ Context is harvested from summaries ✅ Key information is extracted clearly ✅ Large files are compressed safely ✅ Context is organized by concern ✅ Stale files are cleaned up safely ✅ User has clear guidance at each step ✅ All operations are reversible ✅ Documentation is updated


Tips & Best Practices

1. Regular Discovery

Run discover operations regularly to understand your context structure and identify gaps.

2. Organize by Concern

Organize context by what you're doing (authentication, testing, etc.) not by function (standards, guides).

3. Lazy Load External Docs

Fetch external documentation only when needed, not preemptively.

4. Harvest Summaries

Convert temporary analysis documents into permanent context using harvest.

5. Regular Cleanup

Schedule regular cleanup operations to remove stale temporary files.

6. Validate After Changes

Always validate context integrity after making changes.

7. Document Organization

Keep navigation.md files up-to-date as you organize context.

8. Reference Standards

When extracting context, always cite the source files.


Troubleshooting

"Context files not found"

Run discover all context files to see what exists and where.

"External docs failed to fetch"

Check that the library name is correct and ExternalScout is available.

"Harvest created empty file"

The source file may not have enough high-signal content. Review and add manually.

"Organization failed"

Check that all referenced files exist and navigation.md is valid.

"Cleanup removed too much"

Check the backup at .backup/cleanup-{date}.tar.gz for recovery.


Context Manager Skill - Discover, organize, and maintain your project context!

平台分布

Claude

32.38%
按下载量换算43

Codex

32.01%
按下载量换算42

Cursor

19.87%
按下载量换算26

Gemini CLI

9.8%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills