Memori Long-Term Memory
MemoriLabs/Memori
Adds structured long-term memory to OpenClaw agents, built automatically from sessions, with tools the agent calls to recall facts, summaries and decisions.
Rank an existing set of context chunks by relevance, diversity, freshness, and utility.
$ npx skills add seb1n/awesome-ai-agent-skills --skill context-ranking -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install seb1n/awesome-ai-agent-skills context-ranking --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/seb1n/awesome-ai-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/context-engineering/context-ranking .claude/skills/context-ranking && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "context-ranking" agent skill from https://github.com/seb1n/awesome-ai-agent-skills/tree/main/context-engineering/context-ranking into .claude/skills/context-ranking/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-ranking", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/seb1n/awesome-ai-agent-skills/tree/main/context-engineering/context-rankingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add seb1n/awesome-ai-agent-skills --skill context-ranking -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install seb1n/awesome-ai-agent-skills context-ranking --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/seb1n/awesome-ai-agent-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/context-engineering/context-ranking .agents/skills/context-ranking && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "context-ranking" agent skill from https://github.com/seb1n/awesome-ai-agent-skills/tree/main/context-engineering/context-ranking into .agents/skills/context-ranking/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-ranking", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add seb1n/awesome-ai-agent-skills --skill context-ranking -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install seb1n/awesome-ai-agent-skills context-ranking --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/seb1n/awesome-ai-agent-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/context-engineering/context-ranking .cursor/skills/context-ranking && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "context-ranking" agent skill from https://github.com/seb1n/awesome-ai-agent-skills/tree/main/context-engineering/context-ranking into .cursor/skills/context-ranking/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-ranking", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/seb1n/awesome-ai-agent-skills.git --path context-engineering/context-ranking--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add seb1n/awesome-ai-agent-skills --skill context-ranking -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install seb1n/awesome-ai-agent-skills context-ranking --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/seb1n/awesome-ai-agent-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/context-engineering/context-ranking .gemini/skills/context-ranking && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "context-ranking" agent skill from https://github.com/seb1n/awesome-ai-agent-skills/tree/main/context-engineering/context-ranking into .gemini/skills/context-ranking/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-ranking", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install seb1n/awesome-ai-agent-skills context-rankingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add seb1n/awesome-ai-agent-skills --skill context-ranking -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/seb1n/awesome-ai-agent-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/context-engineering/context-ranking .github/skills/context-ranking && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "context-ranking" agent skill from https://github.com/seb1n/awesome-ai-agent-skills/tree/main/context-engineering/context-ranking into .github/skills/context-ranking/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-ranking", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add seb1n/awesome-ai-agent-skills --skill context-ranking -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install seb1n/awesome-ai-agent-skills context-ranking --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/seb1n/awesome-ai-agent-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/context-engineering/context-ranking .opencode/skills/context-ranking && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "context-ranking" agent skill from https://github.com/seb1n/awesome-ai-agent-skills/tree/main/context-engineering/context-ranking into .opencode/skills/context-ranking/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-ranking", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
context-rankingRank an existing set of context chunks by relevance, diversity, freshness, and utility.
Context Ranking is an agent skill from seb1n/awesome-ai-agent-skills. Rank an existing set of context chunks by relevance, diversity, freshness, and utility. Use when retrieval has already produced candidates that must be scored or reranked; use context-retrieval when the source corpus still needs to be searched.
Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Agent Workflows, covering Context engineering. The repository describes itself as: 103 ready-to-use AI agent skills for Claude Code, OpenAI Codex, Gemini CLI, Cursor, GitHub Copilot, Windsurf, and other Agent Skills-compatible tools. Complete SKILL.md… The licence is MIT.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 75865a5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context Ranking loads about 2.9k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 1,495 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from seb1n/awesome-ai-agent-skills at commit 75865a5, republished under its MIT licence (© seb1n). 1,495 words, ~2,905 tokens.
.claude/skills/context-ranking/SKILL.md (or your agent's skills folder).Context ranking is the process of ordering retrieved text chunks so the most relevant, diverse, and useful information rises to the top. In any retrieval pipeline, the initial search returns a broad set of candidates -- many of which are only tangentially related to the query. Ranking transforms this unordered candidate set into a prioritized list, enabling downstream steps (context assembly, prompt construction) to select the best material and discard the rest. Effective ranking is the difference between a grounded, precise answer and a vague, off-topic one.
Collect Candidate Chunks: Gather the initial set of retrieved chunks from the search layer. This is typically the top-k results (k = 15-30) from a vector search, keyword search, or hybrid search. Each chunk arrives with a preliminary score (e.g., cosine similarity or BM25 score) and source metadata.
Apply First-Stage Scoring: Score each candidate with a fast, lightweight algorithm. BM25 is the standard choice for keyword relevance; cosine similarity between the query embedding and chunk embedding is the standard for semantic relevance. In hybrid pipelines, compute both scores and combine them using Reciprocal Rank Fusion (RRF) or a weighted linear combination. This stage is meant to be fast and run over all candidates.
Rerank with a Cross-Encoder: Pass the top candidates (typically 15-25) from the first stage through a cross-encoder reranker. Unlike bi-encoder embeddings that score query and document independently, a cross-encoder processes the query and chunk together with full attention, producing much more accurate relevance scores. Models like Cohere Rerank, bge-reranker-v2-m3, or ColBERTv2 are commonly used. This step is slower but dramatically improves precision.
Apply Diversity Selection: After reranking, the top results may cluster around a single subtopic, leaving other aspects of the query uncovered. Apply Maximal Marginal Relevance (MMR) or a similar diversity algorithm to penalize chunks that are too similar to already-selected chunks. This ensures the final ranked list covers the breadth of the query, not just its most obvious interpretation.
Assign Final Scores and Rank: Combine the reranker relevance score with the diversity penalty and any domain-specific boosting signals (e.g., recency boost, source authority weight) into a final composite score. Sort chunks by this composite score in descending order. The top-n chunks (n = 3-7) form the final ranked context to be injected into the prompt.
Attach Metadata and Confidence: Annotate each ranked chunk with its final score, source path, and a confidence tier (high / medium / low). This metadata helps the downstream prompt assembly step decide how to present the context and allows the model to calibrate its confidence when citing sources.
Provide a query and a list of candidate text chunks (with optional preliminary scores and metadata). The skill scores, reranks, and diversifies the chunks, returning a ranked list with final scores and confidence tiers. Specify the desired number of output chunks (top-n) and an optional diversity parameter (MMR lambda).
Query: "Why does the WebSocket connection drop after 60 seconds of inactivity?"
Candidate Chunks (from hybrid search, top-8):
| # | Source | BM25 | Cosine | Content Summary |
|---|---|---|---|---|
| 1 | src/ws/server.ts:40-65 | 12.4 | 0.88 | WebSocket server config with pingInterval: 30000 and pingTimeout: 60000 |
| 2 | src/ws/server.ts:80-95 | 8.1 | 0.82 | Connection cleanup handler that logs "connection timed out" |
| 3 | docs/websocket.md:15-30 | 6.3 | 0.79 | Documentation: "Connections are kept alive via ping/pong. Default timeout is 60s." |
| 4 | src/ws/client.ts:10-35 | 5.7 | 0.84 | Client-side WebSocket wrapper -- does not implement pong response handler |
| 5 | nginx.conf:22-28 | 9.8 | 0.71 | Nginx proxy config: proxy_read_timeout 60s for WebSocket upstream |
| 6 | CHANGELOG.md:44-50 | 3.2 | 0.55 | "v2.1: Fixed WebSocket reconnection logic" -- no timeout details |
| 7 | src/ws/server.ts:100-120 | 4.5 | 0.76 | Rate limiting middleware for WebSocket messages |
| 8 | package.json:15-20 | 2.1 | 0.45 | "ws": "^8.14.0" dependency entry |
After Cross-Encoder Reranking:
| Rank | # | Reranker Score | Reason |
|---|---|---|---|
| 1 | 1 | 0.96 | Directly shows the 60s timeout configuration |
| 2 | 5 | 0.93 | Nginx proxy timeout -- a second cause of 60s drops |
| 3 | 4 | 0.89 | Client missing pong handler -- explains why pings fail |
| 4 | 2 | 0.85 | Cleanup handler confirms timeout behavior |
| 5 | 3 | 0.78 | Documentation corroborates the 60s default |
| 6 | 7 | 0.42 | Rate limiting -- marginally related |
| 7 | 6 | 0.30 | Changelog -- no useful detail |
| 8 | 8 | 0.15 | Package.json -- irrelevant |
After MMR Diversity Selection (top-5, lambda=0.6):
src/ws/server.ts:40-65 (score 0.96) -- Server-side 60s timeout confignginx.conf:22-28 (score 0.93) -- Nginx proxy 60s read timeout (different source of the problem)src/ws/client.ts:10-35 (score 0.89) -- Client missing pong handler (client-side root cause)src/ws/server.ts:80-95 (score 0.85) -- Cleanup handler confirms the timeout behaviordocs/websocket.md:15-30 (score 0.78) -- Documentation confirming 60s defaultThe ranked list covers three distinct causes (server config, nginx proxy, client pong handler) plus confirmation from the cleanup handler and docs.
Query: "How do I configure SSO with SAML for my organization?"
Candidate Chunks (top-6 from vector search):
| # | Source | Cosine | Content Summary |
|---|---|---|---|
| 1 | docs/sso/saml-setup.md | 0.91 | Step-by-step SAML configuration: metadata URL, certificate upload, attribute mapping |
| 2 | docs/sso/overview.md | 0.85 | Overview of SSO options: SAML, OIDC, LDAP. High-level comparison. |
| 3 | docs/sso/saml-setup.md | 0.83 | Troubleshooting SAML errors: invalid signature, clock skew, missing NameID |
| 4 | docs/sso/oidc-setup.md | 0.80 | OIDC configuration guide -- not SAML |
| 5 | docs/admin/org-settings.md | 0.77 | Organization settings page: where to find the SSO configuration panel |
| 6 | blog/sso-announcement.md | 0.72 | Blog post announcing SSO feature launch -- marketing copy, no setup details |
After Cross-Encoder Reranking and MMR (top-4, lambda=0.7):
docs/sso/saml-setup.md (setup guide, score 0.95) -- Direct answer: step-by-step SAML configurationdocs/admin/org-settings.md (score 0.82) -- Where to access the SSO settings (different doc, complements #1)docs/sso/saml-setup.md (troubleshooting, score 0.79) -- Anticipates common errors the user may encounterdocs/sso/overview.md (score 0.71) -- Provides broader context on SSO optionsChunk 4 (OIDC guide) was filtered as irrelevant to SAML. Chunk 6 (blog post) was filtered for low information density.
© seb1n, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in context-engineering/context-ranking of seb1n/awesome-ai-agent-skills.
Open the folder on GitHubat commit 75865a5
Context Ranking next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Context Ranking this skillseb1n/awesome-ai-agent-skills | 206 | — | ~2.9k | Automated safety check: Pass | MIT | |
| Memori Long-Term MemoryMemoriLabs/Memori | 17k | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Project Developmentguanyang/open-agent-hub | 975 | 2 repos | ~4.7k | Automated safety check: Pass | MIT | |
| Context DoctorjzOcb/context-doctor | 119 | — | ~642 | Automated safety check: Pass | MIT | |
| Caveman Learn Token FixesJuliusBrussee/caveman | 110k | — | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Cognee Session Memory and Improvetopoteretes/cognee | 32k | — | ~3.2k | Automated safety check: Pass | Apache-2.0 |
MemoriLabs/Memori
Adds structured long-term memory to OpenClaw agents, built automatically from sessions, with tools the agent calls to recall facts, summaries and decisions.
guanyang/open-agent-hub
This skill should be used for project-level decisions about LLM-powered systems: whether an LLM is the right primitive for the task at hand, the shape of a multi-stage batch or agent pipeline, token…
jzOcb/context-doctor
Visualize and diagnose OpenClaw context window usage. An agent skill from jzOcb/context-doctor.
JuliusBrussee/caveman
Acts on a Caveman learn report: reviews ranked token sinks, applies cost-lowering edits one at a time with your consent, and reports what each fix returned.
topoteretes/cognee
Explains how cognee stores session memory by session_id and bridges it into the permanent graph with improve(), including the stages, results and settings.
MadAppGang/claudish
CRITICAL - Guide for using Claudish CLI ONLY through sub-agents to run Claude Code with any AI model (OpenRouter, Gemini, OpenAI, local models).
seb1n/awesome-ai-agent-skills
Plan, execute, document, and retest authorized security assessments of AI agents and multi-agent workflows using safe adversarial cases, synthetic identities, canaries, and evidence-based findings.
seb1n/awesome-ai-agent-skills
Build a preliminary, evidence-based EU AI Act readiness assessment across AI-system inventory, territorial scope, operator roles, prohibited-practice screening, risk classification, transparency…
seb1n/awesome-ai-agent-skills
Design and verify auditable human oversight, approval gates, escalation paths, and safe state transitions for AI agent workflows.
seb1n/awesome-ai-agent-skills
Design, implement, harden, and verify Model Context Protocol (MCP) servers with precise tool contracts, least-privilege authorization, safe transports, structured errors, and interoperability tests.
seb1n/awesome-ai-agent-skills
Audit agent skills, plugins, prompts, manifests, scripts, dependencies, and bundled assets for provenance, prompt-injection, permission, execution, exfiltration, persistence, and update risk.
seb1n/awesome-ai-agent-skills
Inspect, profile, clean, reconcile, analyze, visualize, and verify spreadsheet data while preserving formulas, formatting, types, and source files.
Categories
Rank an existing set of context chunks by relevance, diversity, freshness, and utility. Context Ranking is an agent skill from seb1n/awesome-ai-agent-skills. Rank an existing set of context chunks by relevance, diversity, freshness, and utility.
Context Ranking fits situations like: retrieval has already produced candidates that must be scored; use context-retrieval when the source corpus still needs to be searched.
Run `npx skills add seb1n/awesome-ai-agent-skills --skill context-ranking -a claude-code`. Or copy the skill folder (context-engineering/context-ranking in seb1n/awesome-ai-agent-skills) into .claude/skills/context-ranking in your project. Claude Code loads it when a task matches its description.
Run `npx skills add seb1n/awesome-ai-agent-skills --skill context-ranking -a codex`. Or copy the skill folder (context-engineering/context-ranking in seb1n/awesome-ai-agent-skills) into .agents/skills/context-ranking in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add seb1n/awesome-ai-agent-skills --skill context-ranking -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/context-ranking, .gemini/skills/context-ranking, .github/skills/context-ranking and .opencode/skills/context-ranking in your project.
SKILL.md names no scripts, command-line tools or credentials: Context Ranking is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Context Ranking is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Context Ranking: Memori Long-Term Memory (MemoriLabs/Memori, 17k stars), Project Development (guanyang/open-agent-hub, 975 stars), Context Doctor (jzOcb/context-doctor, 119 stars) and Caveman Learn Token Fixes (JuliusBrussee/caveman, 110k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
seb1n (a GitHub user) maintains it in seb1n/awesome-ai-agent-skills, which has 206 GitHub stars. The repository holds 91 skills in this directory. The repository was last updated on August 9, 2026.
Source: seb1n/awesome-ai-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.