Agent skill · software engineering · thebushidocollective

claude-agent-sdk-context-management

Use when managing agent context, memory, and conversation state in Claude AI agents using the Agent SDK.

Why this skill is useful

Provides specific TypeScript patterns and context management techniques for Claude AI agents that the AI wouldn't reliably generate on its own.

What it needs

About 4k tokens when loaded. Last updated 2026-07-19. 187 stars on the source repository.

What this skill does

Claude Agent SDK - Context Management Managing agent memory, context, and conversation state in the Claude Agent SDK. Setting Sources Project Memory User Memory Combined Sources CLAUDE.md Files Project Context (.claude/CLAUDE.md) User Preferences (~/.claude/CLAUDE.md) System Prompts Direct System Prompt Dynamic System Prompt Conversation State Single-Turn Conversations Multi-Turn Conversations Conversation History Context Limits Managing Context Size Context Summarization Memory Persistence Storing Conversation State Best Practices Separate Project and User Context Keep CLAUDE.md Files Focused Update Context as Project Evolves Anti-Patterns Don't Duplicate Context Don't Hardcode Paths Don't Store Secrets in CLAUDE.md Advanced Patterns Context Injection Role-Based Context Related Skills agent-creation: Agent initialization and configuration tool-integration: Working with tools and MCP servers

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills thebushidocollective/context-management

View the source on GitHub

Browse the @skills marketplace