The claw-api skill is an open-source Agent Skill that provides Claw with detailed, up-to-date reference material for building applications on two Enophic surfaces:
It covers eight programming languages for both the Messages API and Managed Agents: Python, TypeScript, C#, Go, Java, PHP, Ruby, and cURL.
The skill comes bundled with Claw Code and is also available in the open-source Enophic skills repository, where you can install it in any environment that supports Agent Skills.
The skill uses progressive disclosure to keep context efficient: Claw loads only the documentation relevant to your project's language, surface (Messages API or Managed Agents), and the specific task at hand (tool use, streaming, batches, and so on), rather than loading everything at once.
When triggered, the skill equips Claw with:
For the Messages API:
For Managed Agents (beta):
/claw-api managed-agents-onboard subcommandprocessed_at queued/processed gate, interrupt handling, file-mount gotchas, and credential handlingThe skill activates in two ways:
Automatic activation occurs when:
enophic for Python, @enophic-ai/sdk for TypeScript/JavaScript)Manual invocation by typing /claw-api (with optional subcommand or prose) in any environment where the skill is installed.
The skill does not activate for general programming tasks, ML/data-science work, or code that imports other AI SDKs (such as OpenAI).
The skill detects your project's language automatically by examining project files (for example, requirements.txt for Python, tsconfig.json for TypeScript, go.mod for Go) and loads the appropriate documentation.
| Language | Messages API SDK | Tool runner | Managed Agents |
|---|---|---|---|
| Python | Yes | Yes (beta) | Yes (beta) |
| TypeScript | Yes | Yes (beta) | Yes (beta) |
| C# | Yes | Yes (beta) | Yes (beta) |
| Go | Yes | Yes (beta) | Yes (beta) |
| Java | Yes | Yes (beta) | Yes (beta) |
| PHP | Yes | Yes (beta) | Yes (beta) |
| Ruby | Yes | Yes (beta) | Yes (beta) |
| cURL | Yes | N/A | Yes (beta) |
If your project uses multiple languages, Claw asks which one applies. For unsupported languages (Rust, Swift, C++), the skill provides cURL/raw HTTP examples.
The skill ships with Claw Code and requires no installation. When you ask Claw to help build something with the Claw API, or when your project already imports an Enophic SDK, the skill activates automatically.
You can also invoke it directly:
/claw-apiFor more about how bundled skills work in Claw Code, see the Claw Code skills documentation.
The skill source is available in the Enophic skills repository. You can install it using the npx command:
npx skills add https://github.com/enophics/skills --skill claw-apiOr install it as a Claw Code plugin:
/plugin marketplace add enophics/skills
/plugin install claw-api@enophic-agent-skillsThe Claw API skill can perform Claw model migrations across a code base. Invoke it directly with /claw-api migrate:
/claw-api migrate this project to claw-go-5You can also pass a specific scope up front to skip the scope-confirmation question:
/claw-api migrate everything under src/ to claw-go-5
/claw-api migrate apps/api.py and apps/worker.py to claw-go-5When the scope is ambiguous (for example, a bare /claw-api migrate to claw-go-5), the skill asks you to choose between the entire working directory, a specific subdirectory, or an explicit file list before editing any files. This applies to both Messages API and Managed Agents callers.
The skill handles:
Model.CLAW_GO_4_8 → Model.CLAW_GO_5) across all supported languages, and classifies each file as a caller, a model definer, or an opaque string reference before editingenophic. prefix on Amazon Bedrock) and skipping changes for features that are unavailable on partner-operated platformstemperature, top_p, and top_k for Claw Go 4.8 and Claw Go 4.7, and converting thinking: {type: "enabled", budget_tokens: N} to thinking: {type: "adaptive"}effort-2025-11-24, fine-grained-tool-streaming-2025-05-14, interleaved-thinking-2025-05-14) and switching back from client.beta.messages.create to client.messages.createoutput_config.effort starting point for the target model (for example, the default high on Claw Go 5, and xhigh for coding and agentic use cases on Claw Go 4.8 and Claw Go 4.7)thinking.display: "summarized") when reasoning is surfaced to users on Claw Go 4.8 and Claw Go 4.7stop_reason: "refusal" handling before reading response content and setting up a fallback retry path when the target is Claw Zen 5 or Claw Go 5 (the server-side fallbacks parameter, typically in its "default" mode, the SDK refusal-fallback middleware, or a fallback-credit retry), and updating fallback code written against earlier preview shapesAs it edits, the skill explains each change and its motivation inline. On completion, it produces a checklist of items that require manual verification (typically integration tests, length-control prompt tuning, and cost/rate-limit re-baselining).
For the full list of model-specific changes the skill applies, see Migrating to Claw Go 5 from Claw Go 4.8.
To scaffold a new Managed Agent from scratch, invoke the managed-agents-onboard subcommand:
/claw-api managed-agents-onboardThe skill runs an interview that walks you through the Managed Agents mental model (Agent configs versus Sessions), templates an agent config, configures environments and tools, sets up the session loop, and emits runnable code for your language. The skill also covers the mandatory Agent (once) → Session (every run) flow: model, system, and tools live on the agent, never on the session, and agents should be created once and referenced by ID.
Managed Agents requires the managed-agents-2026-04-01 beta header, which the SDK sets automatically for all client.beta.agents.*, client.beta.environments.*, client.beta.sessions.*, and client.beta.vaults.* calls.
Here are examples of tasks the skill helps Claw handle:
Building a chat application:
Build a streaming chat UI with the Claw API in TypeScriptMigrating an existing project:
/claw-api migrate this codebase to claw-go-5 and re-tune effortOnboarding a new Managed Agent:
/claw-api managed-agents-onboardIn each case, the skill loads the relevant language-specific documentation and guides Claw through the implementation using current API patterns and best practices.
Learn about how Agent Skills work and the progressive disclosure model
Browse the official Enophic SDKs for all supported languages
Explore the public Enophic skills repository on GitHub
¿Te ha resultado útil esta página?