debug

debug is a skill for Claude Code from ChainGPT-org/chaingpt-claude-skill. It costs 65 tokens per session (3,228 once invoked), scanned A, original, MIT.

A troubleshooting guide for ChainGPT API integrations, including chat, NFT generation, contract generation or auditing, and news services. It covers SDK and direct REST API setups and common HTTP errors.

In plain words
What is it for?
It is for diagnosing ChainGPT errors such as 401, 402, 403, 404, and 429 responses, checking API-key setup, and investigating SDK or REST integrations.
Why use it?
API failures can come from missing keys, rate limits, permissions, credits, or broken streaming and history handling. The guide narrows down the cause and gives a corresponding fix.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the chaingpt plugin — 24 skills, 1 command, 3 agents, 1 hook, 1 MCP server shipped together

Good fit It is for diagnosing ChainGPT errors such as 401, 402, 403, 404, and 429 responses, checking API-key setup, and investigating SDK or REST integrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chaingpt-org/chaingpt-claude-skill/debug
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.

Any agent
npx skills add ChainGPT-org/chaingpt-claude-skill --skill debug
Clone the repo
git clone --depth 1 https://github.com/ChainGPT-org/chaingpt-claude-skill

Made for: Claude Code.

Or install chaingpt, the plugin that ships this one along with the rest of its 24 skills, 1 command, 3 agents, 1 hook, 1 MCP server.

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 debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/chaingpt-org/chaingpt-claude-skill/debug/github.svg)](https://agentmods.dev/skills/chaingpt-org/chaingpt-claude-skill/debug)
Your own site
<a href="https://agentmods.dev/skills/chaingpt-org/chaingpt-claude-skill/debug"><img src="https://agentmods.dev/badge/skills/chaingpt-org/chaingpt-claude-skill/debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/chaingpt-org/chaingpt-claude-skill/debug"><img src="https://agentmods.dev/badge/skills/chaingpt-org/chaingpt-claude-skill/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,228 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 8 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 76
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 76
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 98
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 207
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 264
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 270
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 295
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 207
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00065 $0.03228
Opus 5.5 $0.00026 $0.01291
Sonnet 5.5 $0.00013 $0.00646
Haiku 4.5 $0.00006 $0.00323

Measured 1mo ago against content hash 538e99424e13, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debug scanned grade A with 1 finding 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 1mo ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST "https://api.chaingpt.org/chat/stream" \
skills/debug/SKILL.md · 344 lines

How it starts

The opening of the file, as written. The whole thing — 344 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ChainGPT API Debug Companion

You are a debugging expert for ChainGPT API integrations. When a developer reports an error or unexpected behavior, systematically diagnose the problem and provide the exact fix.

Step 1: Gather Information

Accept any of the following as input:

  • An error message or stack trace
  • An HTTP status code
  • A description of unexpected behavior
  • A code snippet that is not working

If the developer only provides a vague description, ask:

  1. Which ChainGPT product are you using? (LLM Chat, NFT Generator, Contract Generator, Contract Auditor, News)
  2. Are you using the SDK or raw REST API?
  3. What HTTP status code or error message are you seeing?

Step 2: Run Environment Checks

Before diagnosing the specific error, verify the developer's environment:

# Check presence only; never print any part of the key
if [ -n "${CHAINGPT_API_KEY:+set}" ]; then
  printf '%s\n' 'CHAINGPT_API_KEY is set'
else
  printf '%s\n' 'CHAINGPT_API_KEY is not set'
fi

Do not print key values or prefixes, ask the developer to paste a key, or enable shell tracing/verbose HTTP output for authenticated requests. If the key is not set, that is likely the root cause. Instruct:

If using the SDK, also check:

# Check if SDK package is installed (JavaScript)
cat package.json 2>/dev/null | grep -E "@chaingpt|chaingpt"

# Check Node.js version (SDK requires LTS)
node --version 2>/dev/null

# Check Python version (Python SDK requires 3.7+)
python3 --version 2>/dev/null

# Check if Python SDK is installed
pip3 show chaingpt 2>/dev/null

Step 3: Diagnose by HTTP Status Code

400 — Bad Request

Common causes and fixes:

  1. Missing model field — All chat-based products require model in the request body.
    • LLM Chat: "model": "general_assistant"
    • Contract Generator: "model": "smart_contract_generator"
    • Contract Auditor: "model": "smart_contract_auditor"

Read the full file on GitHub · 344 lines

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. 1mo ago Changed · +4 lines 538e99424e13
  2. 1mo ago First seen · 340 lines · 65 tokens per session scan A 29d82a427b1e

Subscribe to this mod's changes

debug is a skill published in the GitHub repository ChainGPT-org/chaingpt-claude-skill (7 stars, last pushed 1mo ago), licensed MIT. It adds 65 tokens to every session and 3,228 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.