The guide explains when to use Jolli Search, how to retrieve results through the jollimemory MCP tool or a guarded CLI fallback, and how to render grounded answers. It also specifies safety constraints for shell invocation, handling failures, and directing users to jolli-recall when they need fuller context.
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Search structured commit memories across every branch in this repo. Lightweight BM25 index returns relevance-ranked hits — no two-phase catalog scan required. For full context of a known branch, use jolli-recall instead.
Extract the natural-language query (any language). Optional: limit (integer,
default 20). Note: time/budget filters (--since, --budget) are not supported
on the search path — point users at jolli-recall for a full branch when they
need depth.
If the search tool from the jollimemory MCP server is available, call it with:
{ "query": "<query>", "limit": 20 }Returns { "hits": [ { type, title, snippet, branch, commitDate, slug, hash, score } ] },
relevance-ranked (BM25). Proceed to Step 3 with these hits.
Match that tool by what it DOES, not by one host's spelling of it: Claude Code
prefixes it as mcp__jollimemory__search, while Codex exposes a bare search
inside the mcp__jollimemory namespace and loads MCP tools lazily — so an empty
first look is not proof it is absent.
Only if the jollimemory MCP server is not registered at all — NOT merely because one spelling of the tool name is absent from your tool list. Prefer the MCP tool: in a sandboxed agent this CLI path cannot write its search index cache, so it rebuilds the whole index on every call. Then use:
This block requires a POSIX bash shell. On Linux/macOS the system bash works.
On Windows, use Git Bash (the bash bundled with Git for Windows). Other
Windows "bash" options — C:\Windows\System32\bash.exe, the WindowsApps
alias, or any WSL bash — see a separate Linux home directory and will not
find the Jolli entry script that lives under %USERPROFILE%.
If Git Bash is not available on Windows, STOP and tell the user: "Jolli skill needs Git Bash on Windows. Install Git for Windows from https://git-scm.com/download/win and retry."
Do NOT fall back to npm run, npx, node directly, PowerShell-native
commands, WSL bash, or any workspace-local script — those bypass the
security recipe and the dist resolver and will not produce valid output.
Generate a fresh random 16-character hex string (the "delimiter token") for
this invocation — e.g. 3f8a9b2c5d7e1f4a. Quickly scan the user's argument:
if the argument text contains a line that is exactly JOLLI_ARG_<delimiter token>_END, regenerate the delimiter token and re-check.
Then run this Bash, replacing the two <DELIM> occurrences with your
delimiter token and replacing <user-arg> with the user's input verbatim:
JOLLI_INVOKED_VIA=skill:search "$HOME/.jolli/jollimemory/run-cli" search --arg-stdin --format json <<'JOLLI_ARG_<DELIM>_END'
<user-arg>
JOLLI_ARG_<DELIM>_ENDIf you cannot follow the above structure (e.g., your environment doesn't support here-docs), STOP and tell the user "Jolli skill cannot run safely in this environment." DO NOT attempt to interpolate the argument into argv or any double-quoted shell string — that path has a known shell injection vector.
The CLI returns the same { hits } envelope as the MCP tool.
Failure handling:
~/.jolli/jollimemory/run-cli does not exist: tell the user
"Jolli not installed. Please install via npm install -g @jolli.ai/cli && jolli enable
or install the Jolli VS Code extension." Do not attempt further processing.error: or contains unknown command 'search':
the installed CLI is older than this skill. Tell the user
"Your installed Jolli CLI is older than this skill — please run
npm update -g @jolli.ai/cli (or update your VS Code extension), then retry."
Do not attempt further processing.Both paths produce the same { hits } shape. Proceed to Step 3 regardless of
which path was used.
hits are lightweight — no full decisions/recap per hit. For each relevant
hit you have:
type — "commit" or "topic"title — one-sentence labelsnippet — short excerpt from the matching contentbranch — branch the hit belongs tocommitDate — ISO 8601 dateslug — human-readable identifier (for topics)hash — 8-char short SHA (for commits)score — BM25 relevance score (internal; do not expose to the user)Universal principles (apply regardless of shape):
Lead with the answer. No "Let me analyze..." or "Found N commits..." preamble.
Ground every concrete claim to its hash (commit hits) or slug +
branch (topic hits). Use (abc12345) for hashes.
Synthesize, don't dump — but DO use verbatim quotes from stored data.
Read everything; fold into coherent prose or bullets. Whenever a phrase from
snippet captures the answer more compactly than your paraphrase, quote it
verbatim in bold with attribution.
Quote complete clauses (typically 10-30 words) — not 2-3 word fragments that depend on your surrounding paraphrase to mean anything. The reader should be able to skim the bold quote alone and understand its claim. Format, embedded in narrative: the design chose JWT because "the stateless model lets us scale horizontally without a shared session store across regions" (snippet, abc12345).
Bold = verbatim from stored data. Never use bold for general emphasis. Quotes belong inside running prose or bullets that carry their own narrative — never as bare bullets stripped of context. Stringing bare quotes is the wall-of-fragments failure mode.
Reply in the user's language. Template is English; user-visible output matches the user.
Don't expose machinery. No "BM25" / "SearchHit" / "hits array" / "score"
mentions. Don't expose slug or internal field names either.
Output shape is entirely your call. Prose, compact list, timeline, per-theme sections — pick whatever serves the query. Every concrete claim must be groundable to a hash or branch.
If the user needs the full decisions/rationale behind a hit, tell them
to run jolli-recall on that hit's branch.
Empty hits → tell the user nothing matched; suggest broader keywords or a different phrasing. Do NOT mention BM25 or index internals.
bdfe0ae
run-clirun-cli searchnpmnpm runnpm installnpm updatejollijolli enablenpxnodegrepjolli-recallbashjollimemory.searchIf you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.