AI Platform, skill collection

Claude API features

Use this pack to apply Claude API features correctly: thinking and effort, prompt caching, long context, the memory tool, code execution, web search and fetch, and computer use. The skills point to the current documentation for version strings and limits, so check those against the model you deploy.

7 skillsMIT licensemessages-api-features

What to give your agent

A skill supplies a procedure. Give your agent the project evidence and constraints needed to apply it.

  • The exact model identifier, API surface, and SDK version.
  • A representative task and an uncached or feature-disabled baseline.
  • Usage records and a check for whether the feature was actually applied.

Evaluate whether caching helps a repeated task

An application repeatedly sends a long stable instruction prefix with a small changing request. Before relying on savings, measure whether the intended prefix is reused.

  1. Separate stable and changing input

    Identify the instruction and reference material that stays identical across calls. Check the provider’s current cache eligibility and lifetime rules for the chosen model.

  2. Measure cold and warm calls

    Run a cold request and repeated requests with the same eligible prefix. Save cache-related usage fields, latency, and output-quality checks.

  3. Test invalidation

    Change the prefix or allow the applicable lifetime to expire. Verify the resulting usage rather than assuming every later call is a hit.

Example result structure
Recorded: model, API version, input structure
Usage: creation, read, and ordinary input units
Comparison: cold, warm, changed prefix, expired
Decision: measured workload cost and output quality

How to check the result

  • The usage record confirms the intended cache behavior.
  • Cost uses the current rates for the selected model and cache mode.
  • The comparison includes misses and cache creation.

A failure to watch for

A source example’s model name or numeric limit may no longer apply. Check the deployed API before using the example unchanged.

This is an illustrative exercise. Run the checks against your own project to establish the result.

Skills in this pack

Open a skill to see its activation guidance, source sections, and individual install command. These descriptions come from the linked source files.

7 of 7 skills

Code Execution Toolcode-execution

Use the Claude API code execution tool so the model runs Bash and Python in an Anthropic-hosted sandbox during a response — for calculation, data analysis, file generation, and checking its own work. Covers tool versions, file upload, retrieving generated files, container reuse, limits, and data-retention constraints. Use this skill when building features where Claude must actually run code (not just write it), when choosing a code execution tool version, or when debugging missing output files or expired containers. Activate when: Claude code execution, code_execution tool, Python sandbox, run code tool, data analysis agent, code interpreter, container_upload, container reuse, OUTPUT_DIR.

Use it when

  • Data analysis on uploaded files (CSV, JSON, Excel, PDF)
  • Charts, reports, and other generated files returned through the Files API
  • Math or statistics the model should verify by running, not estimate
  • Running tests or scripts the model just wrote, inside an isolated environment

Inside the source file

  • When NOT to Use
  • Workflow
  • Sandbox Facts (as documented)
  • Pricing Notes
  • Anti-Patterns
  • Best Practices
Read code-execution/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill code-execution
Computer Usecomputer-use

Build desktop and browser automation agents with the Claude API computer use toolset — screenshots, clicks, typing, scrolling — run by your own harness inside an isolated VM or container. Covers choosing the toolset version, the agent loop, batch actions, sandboxing, prompt-injection risk, and when an API integration is the better choice. Use this skill when building agents that operate GUIs (legacy apps, browsers without APIs), migrating from an older computer use tool version, or reviewing the safety of a computer use deployment. Activate when: Claude computer use, computer_toolset, computer_20251124, computer_20250124, desktop agent, screen control, click and type agent, GUI automation.

Use it when

  • Automating applications that have no API
  • Cross-application workflows (read in one app, enter in another)
  • Exploratory UI testing where a scripted test would be brittle

Inside the source file

  • When NOT to Use
  • Workflow
  • Cost and Latency
  • Anti-Patterns
  • Best Practices
Read computer-use/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill computer-use
Long Contextlong-context

Work with large Claude context windows deliberately — check the window for your model, count tokens before sending, structure long inputs for recall, cache the stable part, and manage growing conversations with compaction, context editing, or memory instead of stuffing everything in. Use this skill when feeding large codebases, document sets, or long agent histories to Claude, when weighing long context against retrieval, or when a conversation is approaching the context limit. Activate when: long context, context window, 1M context, context limit, prompt is too long, context rot, compaction, context editing, long context vs RAG, token counting.

Use it when

  • Cross-document reasoning over a corpus that fits in the window
  • Whole-repository review or refactoring where relevance is hard to predict
  • Long-running agents whose history keeps growing
  • Deciding between long context, retrieval (RAG), or both

Inside the source file

  • Workflow
  • Long Context vs Retrieval
  • Latency
  • Anti-Patterns
  • Best Practices
Read long-context/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill long-context
Memory Toolmemory-tool

Give Claude agents persistent memory across conversations with the Claude API memory tool — a client-side file store under /memories that Claude reads and writes through commands your application executes. Covers setup, the six commands, SDK helpers, path-traversal protection, and pairing memory with compaction or context editing. Use this skill when an agent must remember preferences, project state, or decisions between sessions, when implementing a memory handler, or when reviewing a memory implementation for security. Activate when: Claude memory tool, memory_20250818, agent memory, persistent memory, /memories directory, cross-session state, long-term memory agent, BetaLocalFilesystemMemoryTool.

Use it when

  • Agents that work across many sessions on the same project
  • Remembering user or customer preferences without re-sending them each time
  • Long tasks that may be interrupted and must resume from recorded progress
  • Keeping active context small by reading facts back on demand

Inside the source file

  • When NOT to Use
  • Workflow
  • Data Handling
  • Anti-Patterns
  • Best Practices
Read memory-tool/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill memory-tool
Prompt Cachingprompt-caching

Use Claude API prompt caching to reuse processed prompt prefixes across requests — automatic vs explicit breakpoints, 5-minute and 1-hour TTLs, minimum cacheable lengths, what invalidates the cache, and how to measure hit rate from usage fields. Use this skill when building apps with large repeated context (system prompts, tool definitions, documents, long conversations), reducing API spend, or debugging cache reads that stay at zero. Activate when: prompt caching, cache_control, cache hit rate, cache_read_input_tokens, 1 hour cache, ttl 1h, ephemeral cache, cache breakpoint, cache invalidation.

Use it when

  • Large system prompts or tool lists reused across requests
  • Many questions against the same document or codebase
  • Multi-turn conversations and agent loops whose history grows
  • Any workload where usage.cache_read_input_tokens is zero but should not be

Inside the source file

  • Workflow
  • Debugging Zero Cache Reads
  • Anti-Patterns
  • Best Practices
Read prompt-caching/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill prompt-caching
Thinking and Effortthinking-and-effort

Configure Claude's thinking and the effort parameter correctly — adaptive vs legacy budget-based thinking, the display setting, effort levels, thinking with tool use, cost control with max_tokens, and how thinking settings interact with prompt caching. Model behavior differs, so the skill shows how to check per-model rules instead of assuming them. Use this skill when enabling or tuning reasoning, migrating code that uses budget_tokens, debugging 400 errors on thinking parameters, empty thinking blocks, or truncated answers, or trading quality against latency and cost. Activate when: extended thinking, adaptive thinking, budget_tokens, effort parameter, output_config effort, thinking blocks, thinking display, interleaved thinking, reasoning tokens, thinking_tokens.

Use it when

  • Multi-step reasoning: math, debugging, planning, code generation
  • Agent loops where the model should evaluate tool results before acting
  • Migrating code written for fixed budget_tokens thinking
  • A request returns 400 on its thinking field, or answers are truncated

Inside the source file

  • Workflow
  • Migrating From budget_tokens
  • Anti-Patterns
  • Best Practices
Read thinking-and-effort/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill thinking-and-effort
Web Search and Web Fetchweb-search-and-fetch

Give Claude live web access with the Claude API web search and web fetch server tools — choosing tool versions, domain filtering, max_uses, citations, dynamic filtering, handling errors that arrive inside a 200 response, multi-turn requirements, cost, and data-exfiltration safeguards. Use this skill when an application needs current information, cited answers, or the contents of a specific URL or PDF, or when debugging web tool errors, missing citations, or unexpected cost. Activate when: Claude web search, web_search tool, web fetch, web_fetch tool, browse the web API, citations, allowed_domains, blocked_domains, max_uses, dynamic filtering, pause_turn.

Inside the source file

  • When NOT to Use
  • Workflow
  • Cost
  • Anti-Patterns
  • Best Practices
Read web-search-and-fetch/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill web-search-and-fetch

Install the skills

With Node.js and npm available, run this in your project’s terminal. The CLI prompts for skills, agent, and installation scope.

npx skills add https://github.com/latestaiagents/agent-skills/tree/main/skills/messages-api-features

Choose scope, then verify discovery

Choose project scope for instructions tied to this repository, or global scope when you want them available across projects. Check the selected agent’s installed skill list, then try a representative task from the example above.

For one skill, open its contents entry and use the individual command. Installation support and skill behavior vary by agent.

Skills CLI documentation and supported agents

Install commands follow the repository’s current branch. The inventory on this page is pinned to the source revision below, so a later install may differ.

Source and review status

This inventory is taken from commit a5e492b, committed November 4, 2026. Skill instructions and bundled integrations have not completed a technical review. The worked example is editorial guidance, separate from the source file contents.

Browse this pack’s source

Engineering notes