AI Architecture, skill collection
Claude Agent SDK
Use this pack to build agents with the Claude Agent SDK or Managed Agents: setup, streaming, session lifecycle, and subagents. The skills were rewritten against the current documentation; still check the installed package version before copying an example.
agent-sdkWhat to give your agent
A skill supplies a procedure. Give your agent the project evidence and constraints needed to apply it.
- The installed SDK and runtime versions, plus a minimal runnable task.
- Session storage and resume requirements.
- Allowed tools, interruption behavior, and a bounded test environment.
Resume a support agent without sending twice
An agent drafts a support response, waits for approval, and sends it. The process crashes after the provider accepts the send but before the local success record is saved.
Define the run state
Store the request identifier, draft version, approval record, and send-operation identifier outside the model context. Make the allowed transitions explicit.
Design recovery around the effect
Persist the operation identifier before sending. On resume, query the provider or use its idempotency support to reconcile an uncertain result. An internal checkpoint alone cannot prove that a message was not sent.
Exercise the harness
Inject a crash before the send and after acceptance. Also change the draft after approval. Check that recovery preserves the intended effect and that changed content needs a new approval.
drafted -> awaiting_approval -> approved -> sending -> sent
Stored: draft_hash, approval_id, operation_id, provider_receipt
Uncertain send: reconcile before retry
Changed draft: return to awaiting_approvalHow to check the result
- No send happens without approval of that draft version.
- A crash after acceptance does not produce a second message.
- Repeated tool failures terminate within the run budget.
A failure to watch for
Saving the conversation is insufficient for recovery. Persist authoritative state and the identity of external operations separately.
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.
5 of 5 skills
Claude Agent SDK Quickstartagent-sdk-quickstart
Build a first agent with the Claude Agent SDK (TypeScript or Python): install, run query(), read result messages, restrict tools and permissions, add custom tools through an in-process MCP server, and guard tool calls with hooks. Also explains when to pick the Agent SDK, the Client SDK, or Managed Agents. Use this skill when starting a new agent project, migrating from a hand-written messages.create tool loop, or choosing between the Agent SDK, the Client SDK, and Managed Agents. Activate when: Claude Agent SDK, @anthropic-ai/claude-agent-sdk, claude-agent-sdk, query(), ClaudeAgentOptions, createSdkMcpServer, build agent, agent SDK quickstart.
Use it when
- Building an agent that reads and edits files, runs commands, or searches code in your own environment
- Replacing a hand-written messages.create tool loop with a maintained harness
- Adding subagents, hooks, MCP servers, or resumable sessions without building them yourself
Inside the source file
- Choose the Right Surface
- Workflow
- Best Practices
Install this skill individually
npx skills add latestaiagents/agent-skills --skill agent-sdk-quickstartAgent SDK Streamingagent-sdk-streaming
Stream Claude Agent SDK output to a UI: the default message flow, enabling partial messages with includePartialMessages / include_partial_messages, handling stream_event deltas for text and tool input, attributing subagent output, and handling cut-off streams. Use this skill when building a chat or progress UI on top of the Agent SDK, showing tool activity live, or debugging missing or out-of-order streamed output. Activate when: agent SDK streaming, includePartialMessages, include_partial_messages, stream_event, StreamEvent, SDKPartialAssistantMessage, text_delta, input_json_delta, real-time agent output.
Use it when
- A chat UI that should show text as it is generated
- A progress view that shows which tool is running
- Diagnosing why streamed output looks incomplete or ordered unexpectedly
Inside the source file
- Workflow
- Best Practices
Install this skill individually
npx skills add latestaiagents/agent-skills --skill agent-sdk-streamingManaged Agents APImanaged-agents-api
Use Claude Managed Agents (beta), where Anthropic runs the agent loop and a per-session sandbox: create a versioned agent once, an environment, then sessions that you drive with events over SSE. Covers the correct object model, tool permission policies, custom tools, outcomes, session budgets, data-retention limits, and when to choose it over the Agent SDK. Use this skill when building hosted, long-running, or scheduled agents on the Claude API, deciding between Managed Agents and the Agent SDK, or fixing code that puts model or tools on the session or calls agents.create on every run. Activate when: Managed Agents, Claude Managed Agents, /v1/agents, /v1/sessions, /v1/environments, client.beta.agents, client.beta.sessions, sessions.events.stream, agent_toolset, server-side agent.
Use it when
- Long-running or asynchronous tasks (minutes to hours, many tool calls)
- You want a sandbox with bash and file tools without operating one
- Persisted, versioned agent configurations shared across many runs
- Scheduled runs (the platform supports scheduled deployments)
Inside the source file
- When NOT to Use
- Workflow
- Managed Agents vs Agent SDK
- Best Practices
Install this skill individually
npx skills add latestaiagents/agent-skills --skill managed-agents-apiSession Lifecyclesession-lifecycle
Manage agent sessions correctly in both the Claude Agent SDK (local transcripts with continue, resume, and forkSession) and Claude Managed Agents (server-side sessions with idle, running, rescheduling, and terminated states). Covers capturing session IDs, resuming across processes and hosts, forking to explore alternatives, when to start fresh, and retention. Use this skill when building multi-turn agents, debugging "my agent forgot the earlier context", choosing between continue, resume, fork, or a new session, or designing session retention. Activate when: agent session, session resume, continue conversation, forkSession, fork_session, session ID, ClaudeSDKClient, Managed Agents session status, session retention.
Use it when
- Designing multi-turn agent UX
- An agent lost context between calls or after a restart
- Choosing between continue, resume, fork, or starting fresh
- Setting retention and cleanup for stored sessions
Inside the source file
- Workflow
- Best Practices
Install this skill individually
npx skills add latestaiagents/agent-skills --skill session-lifecycleSubagent Delegationsub-agent-delegation
Delegate work to subagents in the Claude Agent SDK: define them with the agents option (AgentDefinition), restrict their tools, pass the right context in the Agent tool prompt, detect subagent messages, resume subagents, and cap depth, concurrency, and spend. Use this skill when parallelizing research or review across subagents, keeping the main context small, giving a subtask specialized instructions or read-only tools, or debugging why Claude does not delegate. Activate when: subagent, sub-agent, agents option, AgentDefinition, Agent tool, Task tool, parallel agents, delegate to agent, parent_tool_use_id, CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS.
Use it when
- Independent subtasks that can run in parallel (for example style, security, and test-coverage reviews)
- Exploration that would flood the main context with file contents
- A subtask that needs a specialized prompt or a narrower tool set
Inside the source file
- When NOT to Use
- Workflow
- Best Practices
Install this skill individually
npx skills add latestaiagents/agent-skills --skill sub-agent-delegationInstall 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/claude-agent-sdkChoose 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 agentsInstall 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.