Agent skill · Databases

Convex Agents Debugging

Troubleshoots agent behavior, logs LLM interactions, and inspects database state. Use this when responses are unexpected, to understand context the LLM receives, or to diagnose data issues.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill convex-agents-debugging --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/ai-llm/convex-agents-debugging/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

## Purpose Debugging tools help understand what's happening inside agents, what the LLM receives, and what's stored. Essential for developing reliable agent applications. ## When to Use This Skill - Agent behavior is unexpected - LLM responses are off-target - Investigating why certain context isn't being used - Understanding message ordering - Checking file storage and references - Auditing tool calls and results - Profiling token usage ## Log Raw LLM Requests and Responses ```typescript const myAgent = new Agent(components.agent, { name: "My Agent", languageModel: openai.chat("gpt-4o-mini"), rawRequestResponseHandler: async (ctx, { request, response }) => { console.log("LLM Request:", JSON.stringify(request, null, 2)); console.log("LLM Response:", JSON.stringify(response, null, 2)); await ctx.runMutation(internal.logging.saveLLMCall, { request, response, timestamp: Date.now(), }); }, }); ``` ## Log Context Messages See exactly what context the LLM receives: ```typescript const myAgent = new Agent(components.agent, { name: "My Agent", languageModel: openai.chat("gpt-4o-mini"), contextHandler: async (ctx, args) => { console.log("Context Messages:", { recent: args.recent.length, sea

What's inside
Steps it walks through
  1. Purpose
  2. When to Use This Skill
  3. Log Raw LLM Requests and Responses
  4. Log Context Messages
  5. Inspect Database Tables
  6. Fetch Context Manually
  7. Trace Tool Calls
  8. Fix Type Errors
  9. Analyze Message Structure
  10. Key Principles
  11. Next Steps
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the Convex Agents Debugging skill do?

Troubleshoots agent behavior, logs LLM interactions, and inspects database state. Use this when responses are unexpected, to understand context the LLM receives, or to diagnose data issues.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill convex-agents-debugging --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going