Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计异常

opencontextopencontext 命令行

Agent Skill

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

总安装

318

周安装

13

GitHub Stars

2

下载量

102
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-gods --skill opencontext

简介

opencontext 用于管理 OpenContext 记忆层,支持上下文加载、搜索和存储。

  • 适合在 Claude Code、Codex 等 Agent 运行前载入项目背景或捕获决策记录。
  • 可复用历史结论、验收标准或版本说明以提升后续任务效率。
  • 安装前应确认是否涉及文件读写、网络访问或第三方服务集成。
  • 建议查阅 references/ 目录获取详细命令和嵌入配置示例。

SKILL.md

OpenContext

Use opencontext when the job is operating an existing OpenContext memory layer, not inventing a new one. Keep the entrypoint focused on setup triage, search/load/store workflows, and verification. Push detailed commands, embedding notes, and workflow recipes into references/.

When to use this skill

  • Set up OpenContext for Claude Code, Codex, Cursor, or another MCP-compatible coding agent
  • Load reusable project context before a task or search prior conclusions while working
  • Capture decisions, pitfalls, acceptance criteria, or version notes so future agent runs can reuse them
  • Decide between desktop, CLI, slash-command, skill, MCP, or Web UI surfaces for OpenContext work
  • Troubleshoot missing search results, storage paths, or embeddings setup for OpenContext itself

Prefer a narrower sibling skill when the main job is more specific:

  • agent-workflow for the broader inspect-edit-verify loop around daily agent work
  • agent-configuration for repo instruction files, permissions, plugin packaging, or shared agent configuration outside OpenContext
  • database-schema-design, langgraph-workflow, or a product-memory skill when the user is building a memory system, not operating OpenContext as a tool

Instructions

Step 1: Classify the OpenContext request before suggesting commands

Sort the request into one or two lanes:

  • setup-and-surface: install, oc init, supported agent surfaces, user-level config, default paths
  • retrieve-and-load: search, manifest generation, loading prior context before work
  • persist-and-curate: create docs, store conclusions, structure folders, keep high-value notes
  • search-troubleshooting: missing results, embeddings, index state, storage overrides

Do not dump the entire OpenContext command catalog before the lane is clear.

Step 2: Choose the lightest OpenContext surface that fits

Use these defaults unless the environment proves otherwise:

  • desktop or oc ui for manual browsing, editing, and citation
  • slash commands or packaged skills for the common agent loop: load, search, create, iterate
  • CLI for direct folder/doc management and deterministic troubleshooting
  • MCP when the agent must search or read context autonomously

Keep the user on the smallest surface that solves the job cleanly.

Step 3: Load only the matching reference

Pull the reference that matches the lane:

  • references/setup-and-tool-surfaces.md for install, oc init, default paths, tool surfaces, and platform wiring
  • references/search-and-manifest-workflows.md for oc search, manifests, search modes, embeddings, and verification
  • references/persistence-and-capture-patterns.md for what to store, how to structure notes, and the before/during/after work loop

Do not re-expand all setup and embeddings details in the main entrypoint.

Step 4: Keep retrieval safe and cost-aware

Before recommending heavier retrieval steps:

  • start with keyword search or manifest generation
  • treat vector or hybrid search as opt-in until embeddings are configured
  • do not auto-run oc index build by default when the environment may incur paid API usage
  • prefer diagnosing storage path, agent wiring, and search mode before blaming the content itself

Step 5: Verify the OpenContext path actually works

Before claiming success, confirm the relevant post-action state:

  • setup: oc init completed and the intended tool surface was refreshed
  • retrieval: keyword search or manifest returns the expected context
  • persistence: the new doc or iteration artifact exists in the expected folder
  • troubleshooting: the fix is proven by a working search, citation, or stored note rather than by configuration guesses alone

Examples

Example 1: Enable OpenContext for a coding agent

Input:

How do I set up OpenContext so Codex or Claude Code can search my project notes
before editing anything?

Expected shape:

  • classifies this as setup-and-surface first
  • uses oc init and the correct user-level integration surface
  • confirms where contexts and config live before claiming setup is complete

Example 2: Load prior context before implementation

Input:

I already have OpenContext data. What is the right workflow for loading the
relevant docs before I start a new task?

Expected shape:

  • treats this as retrieve-and-load, not a fresh setup request
  • starts with manifest or keyword search before heavier retrieval
  • keeps the answer focused on the smallest useful load path

Example 3: Persist what the agent learned

Input:

We just finished debugging a nasty issue. How should I store the fix,
acceptance criteria, and pitfalls in OpenContext for future runs?

Expected shape:

  • treats this as persist-and-curate work
  • recommends a durable note or iteration step rather than a transient chat recap
  • names the highest-value content to capture for future agents

Example 4: Diagnose missing hybrid search

Input:

OpenContext keyword search works, but hybrid search does not. What should I
check first?

Expected shape:

  • recognizes this as search troubleshooting
  • checks embeddings config and index state before broader speculation
  • preserves keyword search as the safe fallback while fixing richer retrieval

Best practices

  1. Keep the main skill short and move operational detail into references
  2. Start with keyword search or manifests before opt-in embeddings work
  3. Treat contexts as reusable project memory, not as a dumping ground for every chat transcript
  4. Persist conclusions, acceptance criteria, pitfalls, and version-sensitive notes because they have the highest reuse value
  5. Verify the actual storage, search, or citation path instead of assuming the setup worked
  6. Route broader workflow or repo-configuration questions to sibling skills instead of turning OpenContext into a catch-all

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.11%
按下载量换算39

Claude

28.96%
按下载量换算30

Cursor

17.58%
按下载量换算18

Gemini CLI

8.79%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills