/claude-api

Loads Claude API reference material and provides subcommands for API management.

What /claude-api does

This skill loads Claude API and Managed Agents reference material for your project's language. It also activates automatically with Anthropic SDK imports. It offers subcommands like `migrate` for model updates, `upgrade` for SDK version changes, `prompt-audit` for prompt optimization, and `cost-optimize` for spend analysis.

Syntax

/claude-api

Added `upgrade` subcommand to migrate Python projects from `anthropic` 0.x to 1.x, and updated the skill's Python reference for 1.x.

Quick drill

Three cards from the /cards deck. Open each to check your answer.

  1. Which command loads Claude API reference material and provides subcommands for API management?

    • Generates Claude API keys.
    • Tests Claude API connectivity.
    • Loads Claude API reference material.
    • Installs the Claude API SDK.
    Show answer

    /claude-api: Loads Claude API reference material.

  2. Which command starts a new conversation with empty context, optionally naming the previous one?

    • Clears the current context window.
    • Resumes a previous conversation.
    • Starts a new conversation.
    • Deletes all conversation history.
    Show answer

    /clear: Starts a new conversation.

  3. Which command reviews code diffs, PRs, or branches for correctness and cleanup opportunities?

    • Generates new code from a prompt.
    • Formats code according to style guides.
    • Compares two different code versions.
    • Reviews code diffs and PRs.
    Show answer

    /code-review: Reviews code diffs and PRs.

Drill all 112 commands in /cards

Spaced repetition so the right command comes to mind in your terminal.