agentsclimarketplace

Claude context

Skill cs-shadowbq/claude-context/skills/claude-context

Search your claude context and provide rich outputs

Install
npx -y skills add cs-shadowbq/claude-context --skill claude-context

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 24 days oldThe repository was created 24 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Search across all ~/.claude data (conversations, project memories, global memories, plans, agents) to find prior work, past solutions, and relevant context before reading raw files or grepping manually. Use this whenever the user asks things like "have we dealt with this before," "did I solve this somewhere," "find that memory/note about X," "what project was that in," or when you (Claude) need to recall a prior decision, convention, or fix across projects without knowing which project or conversation it's in. Always prefer this tool over `grep`/`find`/reading whole .claude files directly — it is dramatically cheaper in tokens and returns structured, rankable results.

SKILL.md

4.9 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

claude-context

A ripgrep-backed search tool over ~/.claude (conversations, project memories, global memories, plans, agents). It resolves the real project path for a hit and scores/ranks results, so you don't have to open large files to figure out relevance.

Script: ~/.claude/tools/src/claude_context.py Invoke as: claude-context <args> (assume it's on PATH; if not, run python3 ~/.claude/tools/src/claude_context.py <args>).

Core principle: two-phase search, not full-file reads

Never read a raw .jsonl conversation file or a whole memory directory to "look for" something — it burns enormous context for low signal. Instead:

  1. Recall pass (cheap): search with --format json to get ranked candidates (id, score, snippet, path, tags) — a few hundred tokens.
  2. Expand pass (targeted): once you've identified the right hit, --expand <id> to pull the full section/content of just that one hit.

This mirrors how you'd want a human to work too: shortlist first, deep-dive only on the winner.

When to use which mode

SituationCommand
"Have I dealt with X before, but I don't know where?"claude-context "X" --recall --format json
Know the exact phrase, want ranked hitsclaude-context "X" --format json
Found a promising hit, want full contentclaude-context --expand <id> --format json
Remember the idea but not the wordingclaude-context --related <id-or-path> --format json
Just want to browse what memories/plans existclaude-context --list --kind memory --format json
Want a quick sense of scale before committingclaude-context "X" --stats
Need both terms present, not eitherclaude-context "X" -e "Y" --term-logic and --format json
Only care about a time windowclaude-context "X" --since 30d --format json
Piping the real project path onwardclaude-context "X" -l

Output format

Always pass --format json (or jsonl/compact) when calling this tool yourself — the default rich output is for humans in a terminal and is wasteful/unparseable for you. Key fields per hit:

  • id — short hash handle; pass to --expand/--related
  • kindconversation | project-memory | memory | agent-memory | plan | agent
  • real_path — the actual filesystem project directory (for conversation/project-memory hits) — this is what the user means by "which project"
  • score — relevance (frequency × kind-weight × recency × tag bonus); curated memory outranks raw conversation noise
  • snippet, tags, date, tokens_est

Example workflow

User: "Did we already figure out a fix for websocket reconnect storms?"

claude-context "websocket reconnect" --recall --format json -n 10

→ parse JSON, pick highest-score hit (prefer kind: memory / project-memory over conversation).

claude-context --expand <winning-id> --format json

→ read the full section/content, then answer the user with the actual prior solution and its source project (real_path).

If the top hits look thin or off-topic, broaden with:

claude-context --related <winning-id> --format json

which re-searches using keywords extracted from that hit — useful when the original phrasing doesn't match what the user is asking now.

Other useful flags

-k/--kind — restrict to one or more of: conversation, project-memory, memory, agent-memory, plan, agent -i case-insensitive, -F literal string (not regex) -C N — N lines of context around a hit --tag <tag> — filter by frontmatter tag (memory/plan/agent files) --unique — collapse duplicate lessons copy-pasted across projects --budget N — cap total estimated output tokens (keeps top-scoring hits) --since/--before — 2026-07-01, or relative (3d, 12h, 2w) -o/--open — opens the best-matching path in $EDITOR (human use)

Do NOT

Do not use grep -r, find, or cat/Read on ~/.claude/projects/** or ~/.claude/memory/** directly — always go through this tool first.

Do not request --format rich for your own tool calls — it's decorative and costs more tokens to parse than it's worth.

Do not skip the recall pass and jump straight to --expand on a guess —always confirm the id via a search/recall call first.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.