Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

opencontextopencontext 命令行

Agent Skill

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

总安装

699

周安装

28

GitHub Stars

11

下载量

226
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/akillness/skills-template --skill opencontext

简介

opencontext 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 专注于项目记忆包的分类、加载与路由,避免全量上下文 dump。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

OpenContext

Use this skill when the real question is "what project-memory packet should the next agent load, search, or leave behind?"

The job is not to dump the whole oc CLI. The job is to:

  1. classify the memory need honestly,
  2. choose one primary packet,
  3. load the minimum useful context,
  4. search old decisions only when needed,
  5. store reusable conclusions after meaningful work,
  6. route wiki / graph / vault / repo-packer requests away immediately.

Read references/intake-packets-and-route-outs.md before handling an unfamiliar memory request. Read references/memory-layer-decision-guide.md when the first question is which memory layer should own the job. Read references/load-search-store-playbook.md when the task is active project-memory operation. Read references/trust-precedence-and-freshness.md when multiple memory artifacts disagree or branch freshness is unclear. Read references/setup-and-integration.md when the real task is installing or wiring OpenContext.

When to use this skill

  • The next agent should not start cold and needs a compact project-memory packet first
  • Repo or project decisions, pitfalls, acceptance notes, or constraints should be searchable across sessions
  • A team needs a durable cross-agent handoff that points to the right docs instead of pasting giant transcripts
  • The work needs manifests or stable links that say what to read now
  • OpenContext itself needs setup, repo initialization, or integration guidance
  • The user is choosing between OpenContext, a wiki, a graph layer, a vault, or a repo-packer workflow

When not to use this skill

  • The main task is building a long-lived markdown knowledge base or research wiki → use llm-wiki
  • The main task is mapping code/docs/media structure, generating GRAPH_REPORT.md, or tracing relationships → use graphify
  • The main task is organizing human-authored notes or vault workflows → use the relevant note/vault skill
  • The main task is flattening a repo into a single prompt/digest for one-shot model context → use the repo-packer tool or skill that owns that flow
  • The main task is repo automation, scripts, hooks, or recurring commands → use workflow-automation

Instructions

Step 1: Start from the packet already in hand

Use references/intake-packets-and-route-outs.md.

Normalize the request into one of these packet shapes:

  • memory-layer-choice-packet — the user is deciding between OpenContext, wiki, graph, vault, or repo-packer layers
  • load-context-packet — the next agent needs the smallest truthful read-first context before work starts
  • search-context-packet — the current task needs prior decisions, constraints, pitfalls, or acceptance notes
  • store-conclusions-packet — meaningful work finished and reusable outcomes should be saved
  • setup-integration-packet — OpenContext itself needs install/init/integration guidance
  • repo-packer-route-out-packet — the request is really about one-shot repo-to-prompt packing, not ongoing project memory

Capture the minimum useful frame:

Packet: load-context-packet
Project scope: active repo
Goal: prepare the next coding agent
Current pain: repeated background + cold starts
Artifact preference: manifest + stable links

Rule: start with the packet the user already has. Do not force every request through a full memory-taxonomy lecture.

Step 2: Choose one primary mode

Pick exactly one primary mode for the run:

  • memory-layer-choice
  • load-context
  • search-context
  • store-conclusions
  • setup-integration
  • route-out

Optional: name one secondary mode, but do not flatten load/search/store/setup into one giant answer.

Step 3: Decide whether OpenContext should own the job at all

Use this quick ownership test:

  • OpenContext owns it when the dominant need is active project/repo memory for agents: small read-first packets, searchable decisions, handoff notes, manifests, stable links
  • llm-wiki owns it when the dominant need is long-lived synthesized markdown knowledge
  • graphify owns it when the dominant need is structure graphs, relationship tracing, or graph artifacts
  • Vault / note tools own it when the dominant workflow is human-authored notes and editorial control
  • Repo packers own it when the real request is “turn this repo into one prompt/digest right now”

If OpenContext is not the right owner, route out immediately instead of describing it as the universal memory layer.

Step 4: Load before you create

If OpenContext already exists, orient first:

oc folder ls --all
oc doc ls <folder>
oc search "<topic>" --mode keyword --format json
oc context manifest <folder> --limit 10

Look for:

  • the folder that already owns the project/topic memory
  • existing decision logs, pitfalls, acceptance notes, or handoff docs
  • the smallest useful set of files the next agent should read first
  • the most trustworthy source if several notes overlap

Run one fast trust check before you load or search further:

  • precedence: prefer canonical repo docs and current decision logs over stale summaries
  • provenance: say whether a note came from a human-maintained doc, a current handoff, a previous agent summary, or an inferred heuristic
  • freshness: check whether branch, release, migration, or incident state may have invalidated the note

Default rule: update existing memory docs before creating a parallel doc with the same purpose.

Step 5: Run the load → search → store loop

Use references/load-search-store-playbook.md.

A. load-context

Use when the next agent needs the smallest truthful startup packet.

Typical outputs:

  • one manifest command or read-first packet
  • one folder recommendation
  • one short list of docs to read first
  • one trust note naming the highest-confidence source and any stale-risk warning

Questions to answer:

  • Which folder is the project-memory home?
  • Which 3–10 docs should be read first?
  • Which constraints or pitfalls already exist?
  • Which source currently wins if docs disagree?
  • Does branch or release state make any saved note risky?

B. search-context

Use when current work would otherwise rely on guesswork.

Typical search targets:

  • prior decisions
  • acceptance criteria
  • environment quirks
  • architecture constraints
  • release notes or incident learnings

Default: try keyword search and manifests first. Do not jump straight to embeddings/index builds unless the corpus and failure mode justify it.

C. store-conclusions

Use after meaningful work, not after every tiny edit.

Good document shapes:

  • decision-log.md
  • pitfalls.md
  • acceptance-criteria.md
  • release-notes.md
  • handoff-YYYY-MM-DD.md

A useful stored note usually contains:

  • what changed
  • why that choice was made
  • what to verify next
  • the smallest evidence links/citations needed later
  • which source won if artifacts conflicted, plus any branch/freshness warning for the next session

Step 6: Handle setup and integration cleanly

Use references/setup-and-integration.md.

Core commands worth surfacing:

npm install -g @aicontextlab/cli
# or
npx @aicontextlab/cli <command>

cd your-project
oc init
oc folder ls --all
oc doc create <folder> <doc>.md -d "Description"
oc search "query" --mode keyword --format json
oc context manifest <folder> --limit 10
oc doc link <doc_path>

Escalate to embeddings/indexing only when keyword search and manifests are not enough and the indexing cost is justified.

Step 7: Route out honestly

Typical route-outs:

  • llm-wiki — narrative synthesis, entity/concept pages, index/log/schema discipline
  • graphify — graph artifacts, structural repo/corpus mapping, relationship tracing
  • Vault/note skills — human-first note organization and editing
  • Repo packers (Repomix / Gitingest / Code2Prompt-style workflows) — one-shot repo-to-prompt context packing
  • workflow-automation — recurring scripts, repo hooks, and automation that are not really about memory ownership

If the user says “package this repo for one model prompt,” that is not an opencontext job. If they say “make sure the next agent knows what to load, what we already decided, and what to store after the task,” that is.

Step 8: Return one concise project-memory brief

Preferred format:

# Project Memory Brief

## Packet
- Packet:
- Primary mode:
- Project horizon:
- Why OpenContext owns this (or route-out):

## Do now
1. ...
2. ...
3. ...

## Read / search / store targets
- Folder:
- Docs to read first:
- Search terms:
- Note to update or create:

## Trust check
- Highest-confidence source:
- Provenance:
- Freshness / branch warning:

## Route-outs
- ...

Short, deterministic packets beat giant CLI encyclopedias.

Output format

Always return a project-memory brief, memory-layer choice memo, or OpenContext setup note.

Required qualities:

  • identify the packet already in hand
  • choose one primary mode
  • explain whether OpenContext owns the job or should route out
  • keep the answer focused on the smallest truthful manifest/search/store packet
  • state the highest-confidence source when overlapping notes exist
  • mention freshness / branch risk when it could invalidate saved memory
  • mention embeddings/index builds only as an escalation path
  • name the next owner when another memory or tooling layer is a better fit

Examples

Example 1: Load project memory before coding

Input

We keep losing repo background between agent sessions. I need the next coding agent to load the right docs before touching this repo.

Output sketch

  • Packet: load-context-packet
  • Primary mode: load-context
  • OpenContext owns the job because the need is an active repo-memory startup packet
  • Action: identify folder, generate manifest, list the 3–10 docs to read first, and leave a handoff note after the task

Example 2: Memory-layer choice

Input

Should we use OpenContext, a wiki, Obsidian, or a graph tool for this product work?

Output sketch

  • Packet: memory-layer-choice-packet
  • Primary mode: memory-layer-choice
  • Distinguish project-memory vs wiki vs graph vs human-vault roles
  • Keep OpenContext only for active project/repo memory and handoff packets

Example 3: Search old decisions during work

Input

Before we change this release flow, search whether we already recorded deployment constraints or rollback notes.

Output sketch

  • Packet: search-context-packet
  • Primary mode: search-context
  • Search existing decision logs / release notes first
  • Prefer keyword search + manifest before any indexing escalation

Example 4: One-shot repo packing is the real task

Input

Turn this repo into a single prompt I can paste into a model right now.

Output sketch

  • Packet: repo-packer-route-out-packet
  • Primary mode: route-out
  • Route to Repomix / Gitingest / Code2Prompt-style workflow instead of pretending OpenContext is the right tool

Example 5: Conflicting memory artifacts on a release branch

Input

README.md says one deploy step, CLAUDE.md says another, and we just switched to a release branch. What should the next agent trust?

Output sketch

  • Packet: load-context-packet or search-context-packet
  • Name the highest-confidence source instead of flattening both notes together
  • Explain provenance and note that branch/release state may invalidate the older instruction
  • Store a compact handoff note describing which source won and what still needs verification

Best practices

  1. Pick OpenContext because the workflow needs active project/repo memory, not because the word “memory” appeared.
  2. Prefer updating existing docs over creating duplicates.
  3. Load the minimum useful context first; manifests beat giant indiscriminate reads.
  4. State which source currently wins when memory artifacts overlap, and why.
  5. Treat branch/release/incident state as a freshness check, not background trivia.
  6. Store decisions after meaningful work so the next session starts with less ambiguity.
  7. Keep document shapes predictable (decision-log, pitfalls, handoff, acceptance-criteria, release-notes).
  8. Treat embeddings/index builds as an escalation, not the default.
  9. Route wiki, graph, vault, and repo-packer requests out early instead of flattening them into one skill.

References

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

32.72%
按下载量换算74

Claude

29.49%
按下载量换算67

Cursor

19.77%
按下载量换算45

Gemini CLI

9.9%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills