context-debug

context-debug is a skill for Claude Code, Codex from rebel0789/Memory-Recall. It costs 0 tokens per session (109 once invoked), scanned A, original, Apache-2.0.

A diagnostic procedure for understanding why a system selected the wrong context or candidates. It compares the request and selection records, then creates a small regression case.

In plain words
What is it for?
Use it to investigate selection problems, change one selection rule at a time, compare results, and record checks, risks, and rollback steps.
Why use it?
It replaces guesswork with evidence about failures such as scope, version, conflicts, scoring, ordering, or resource limits.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/rebel0789/memory-recall/context-debug
Any agent
npx skills add rebel0789/Memory-Recall --skill context-debug
Clone the repo
git clone --depth 1 https://github.com/rebel0789/Memory-Recall

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/rebel0789/memory-recall/context-debug.svg)](https://agentmods.dev/skills/rebel0789/memory-recall/context-debug)
Your own site
<a href="https://agentmods.dev/skills/rebel0789/memory-recall/context-debug"><img src="https://agentmods.dev/badge/skills/rebel0789/memory-recall/context-debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 109 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00109
Opus 5 $0.00000 $0.00055
Sonnet 5 $0.00000 $0.00022
Haiku 4.5 $0.00000 $0.00011

Measured today against content hash 17ffae21450d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

context-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/context-debug/SKILL.md · 17 lines

What it actually says

Context Debug

Purpose

Diagnose selection through manifests and evaluation cases.

Procedure

  1. Capture the context request and manifest.
  2. Classify failure: scope, lifecycle, version, conflict, candidate source, score, diversity, budget, or order.
  3. Create a minimal regression case.
  4. Change one selector component and compare fixed metrics.

Completion

Return evidence, files changed when applicable, exact checks, risks, limitations, rollback, and safest next step. The skill never grants a tool or broadens policy.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 17 lines · 0 tokens per session scan A 17ffae21450d

Subscribe to this mod's changes

context-debug is a skill published in the GitHub repository rebel0789/Memory-Recall (8 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 109 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

claude-api

Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports anthropic/@anthropic-ai/sdk; user asks for…

Prismer-AI/PrismerCloud · 193 tokens

image-generate

Generate an image from a text prompt via the cloud LLM image proxy, persist it as a content-addressed workspace asset, and return a ContentBlock that downstream renderers can attach. Use whenever the user asks "draw / generate / make an image of …", an agent needs a diagram / illustration as a follow-up artifact, or a…

Prismer-AI/PrismerCloud · 103 tokens

claim-agent-ownership

Orchestrator skill for resolving multi-daemon binding contention. Use when you (the orchestrator) detect an agent.binding.contested sync event indicating two daemons are racing for the same agent — explicitly rebind ownership to a chosen target daemon so subsequent dispatches route deterministically. Implements Gap…

Prismer-AI/PrismerCloud · 101 tokens

human-approval

Request human approval before performing a SAFETY-CRITICAL, IRREVERSIBLE, or SCOPE-EXPANDING action — submit a structured context (action, scope, risk, consequence) plus options, then STOP the current turn. The platform redispatches the agent after the human decides. NEVER use for routine deliverables (writing docs /…

Prismer-AI/PrismerCloud · 168 tokens

plugin-dev

Prismer Evolution Plugin 开发指南 — 快速迭代 hook/skill、调试、日志查看、测试、发布全流程.

Prismer-AI/PrismerCloud · 31 tokens

liteparse

Parse documents into LLM-ready content entirely on the local machine — PDF / DOCX / XLSX / PPTX / images → Markdown, structured JSON (with bounding boxes), or page screenshots, via the lit CLI. No cloud, no LLM, works offline. Use whenever the user attaches or points to a document that must be read before reasoning…

Prismer-AI/PrismerCloud · 90 tokens