debug

debug is a skill for Claude Code, Codex from ChainGPT-org/chaingpt-claude-skill. It costs 65 tokens per session (3,149 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 CodeCodex

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

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/chaingpt-org/chaingpt-claude-skill/debug
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, Codex.

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.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.svg" alt="Measured on agentmods" 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,149 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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 $0.00065 $0.03149
Opus 5 $0.00032 $0.01574
Sonnet 5 $0.00013 $0.00630
Haiku 4.5 $0.00006 $0.00315

Measured 4d ago against content hash 29d82a427b1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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 · 340 lines

How it starts

The opening of the file, as written. The whole thing — 340 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 API key is set
echo $CHAINGPT_API_KEY | head -c 10

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"
  2. Missing question or prompt — The primary input field is required.

    • Chat products: question (string, non-empty)
    • NFT Generator: prompt (string, non-empty)
  3. Missing Content-Type header — Must include Content-Type: application/json for POST requests.

Read the full file on GitHub · 340 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. 4d 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 (16 stars, last pushed 5d ago), licensed MIT. It adds 65 tokens to every session and 3,149 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

analyzing-ethereum-smart-contract-vulnerabilities

Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.

mukul975/Anthropic-Cybersecurity-Skills · 49 tokens

analyzing-ethereum-smart-contract-vulnerabilities

Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.

xalgorix/xalgorix · 49 tokens

web3-bug-classes

Complete reference for all 10 DeFi smart contract bug classes. Use this when hunting for specific vulnerability types, need attack patterns for accounting desync, access control, incomplete path, off-by-one, oracle manipulation, ERC4626 vaults, reentrancy, flash loans, signature replay, or proxy/upgrade bugs.

Awarexone/web3-bug-bounty-hunting-ai-skills · 72 tokens

web3-poc-foundry

Complete Foundry PoC writing guide + all cheatcodes + DeFiHackLabs reproduction patterns. Use this when building a proof of concept exploit, setting up a fork test, using Foundry cheatcodes, or reproducing a known DeFi hack for learning.

Awarexone/web3-bug-bounty-hunting-ai-skills · 59 tokens

web3-triage-report

Bug triage validation system, Immunefi report format, and 20 real paid bounty examples dissected. Use this when validating a finding before submitting, writing an Immunefi report, checking if a bug is actually valid, or studying real examples of paid vulnerabilities.

Awarexone/web3-bug-bounty-hunting-ai-skills · 59 tokens

web3-case-study-role-misconfig

Case study - role misconfiguration bug class applied to a yield aggregator protocol. Use as a template for applying all 10 bug classes to a single target.

Awarexone/web3-bug-bounty-hunting-ai-skills · 40 tokens