Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 78
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-pitfalls

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clade-known-pitfalls in Claude Code

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 →

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.

clade-known-pitfalls Install

Add to stack

Loading.