Opencontext

From akillness/jeo-skills · View interactive version

Opencontext is an AI agent skill from the GitHub repository akillness/jeo-skills. Route active project/repo memory requests into one honest packet: memory-layer choice, load-context, search-context, store-conclusions, setup-integration, or repo-packer route-out. Use when agents need searchable decisions, manifests, stable links, handoff notes, and small “read this first” packets

How to use this skill

Skill file

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

When not to use this skill

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:

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:

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:

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:

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

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:

Questions to answer:

B. `search-context`

Use when current work would otherwise rely on guesswork.

Typical search targets:

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:

A useful stored note usually contains:

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:

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:

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

Example 2: Memory-layer choice

Input

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

Output sketch

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

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

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

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.