clade-known-pitfalls
Skill by jeremylongshore
Lists ten common mistakes when building with the Anthropic API and shows how to avoid each one. Aimed at developers who want to audit a Claude integration in Claude Code.
Install clade-known-pitfalls
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clade-known-pitfalls ~/.claude/skills/clade-known-pitfallsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clade-known-pitfalls ~/.gemini/antigravity-cli/skills/clade-known-pitfallsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clade-known-pitfalls in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Known Pitfalls is a Claude Code skill that covers ten common mistakes in Anthropic API code. Examples include a missing max_tokens parameter, a system prompt placed in the messages array, non-alternating messages, an unchecked stop_reason, and a new client created for each request. It also covers 529 overload errors, hardcoded model IDs, output token costs, missing streaming, and unnecessary PII.
Each pitfall has a BAD and GOOD code comparison, and a quick reference table summarizes the fixes. The skill's output checklist asks the assistant to check a codebase against all ten pitfalls. It is intended for developers who build with the Anthropic Messages API and want to review an existing Claude integration. The skill is MIT licensed and is at version 1.1.0.
Written from the project's SKILL.md and checked against it.
What it can do
- Pitfall auditChecks a codebase against ten known Anthropic API mistakes.
- max_tokens checkFlags messages.create calls that omit the required max_tokens parameter.
- System prompt fixMoves system prompts to the top-level system parameter.
- Message alternationFinds consecutive user or assistant messages that break strict alternation.
- Stop reason checkLooks for unchecked stop_reason values that signal truncated responses.
- Client reuseRecommends one shared client instance instead of one per request.
- Model ID configurationSuggests reading model IDs from an environment variable.
- Streaming adviceRecommends streaming responses for user-facing applications.
What you need
- Claude Code
- Familiarity with the Anthropic Messages API
- Active Claude integration to audit
- Access to the codebase for pattern review
Try asking
- Audit my codebase for the known Anthropic API pitfalls.
- Check every messages.create call for a missing max_tokens parameter.
- Find places where I create a new Anthropic client for each request.
Good to know
- Covers ten pitfalls only, as listed in the source.
- Error handling refers to a separate clade-common-errors skill.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/clade-known-pitfalls/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEdit
-
SKILL.md5 KB -
references/one-pager.md2 KB
Alternatives to clade-known-pitfalls
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
clade-known-pitfalls: common questions
What happens if max_tokens is left out of an Anthropic API call?
The source says max_tokens is required in the Anthropic API, and omitting it returns a 400 error.
Where should the system prompt go when calling Claude?
The source says Claude uses a top-level system parameter, not a system message in the messages array.
What platform is this skill designed for?
The source says it is designed for Claude Code and is released under the MIT license.
How do I install clade-known-pitfalls?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clade-known-pitfalls free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is clade-known-pitfalls safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to clade-known-pitfalls?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
