api-debug

Query PrdAgent APIs to retrieve production data and LLM request logs.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/MiDouTech/myTapd --skill api-debug-midoutech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-debug
Source: https://github.com/MiDouTech/myTapd/tree/main/.claude/skills/api-debug
Command: npx skills add https://github.com/MiDouTech/myTapd --skill api-debug-midoutech

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a direct, authenticated way to query the PrdAgent API and retrieve real runtime data so engineers can diagnose issues, verify system state, and inspect LLM request logs without guessing.

Core Features & Use Cases

  • Authenticated API queries: Use AI access key and optional impersonation header to call internal endpoints safely.
  • LLM log inspection: Retrieve recent LLM request logs to inspect requestPurpose, status, errors, and requestBody for troubleshooting.
  • Endpoint coverage: Supports user management, projects, model management, visual agent operations, and system initialization checks.
  • Use Case: A support engineer reproduces a user-reported failure by fetching the related LLM log entry and associated project and user records for root-cause analysis.

Quick Start

Use curl with the AI access key and X-AI-Impersonate header to GET the LLM logs at http://localhost:8000/api/logs/llm?limit=10 and inspect the returned JSON for requestPurpose, status, and error details.

Frequently Asked Questions about api-debug

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve real production LLM logs for API debugging?

To retrieve real production LLM logs for API debugging, query the PrdAgent API using curl with your AI access key via the X-AI-Access-Key header to fetch recent request logs and inspect status, errors, and requestBody details.

Can I impersonate a user when querying internal API endpoints to reproduce issues?

Yes, you can impersonate a user when querying internal API endpoints by including the optional X-AI-Impersonate header in your curl request to reproduce user-reported failures and diagnose API behavior.

What API endpoints can I inspect to diagnose system state and verify user projects?

You can inspect API endpoints covering user management, projects, model management, visual agent operations, and system initialization checks to diagnose system state and verify user project records.

Do I need an AI access key to fetch runtime data from the PrdAgent API?

Yes, you need an AI access key to fetch runtime data from the PrdAgent API, as authentication via the X-AI-Access-Key header is required for all authenticated API queries.