This skill should be used when the user asks about "callbacks", "lifecycle hooks", "before_model_call", "after_tool_call", "plugins", "session state", "state management", "artifacts", "file uploads", "events", "EventActions", "human-in-the-loop", "confirmation", "memory", "MemoryService", "long-term memory", "remember across sessions", "RAG", "retrieval augmented generation", "grounding", "knowledge base", "vector search", or needs guidance on customizing agent behavior, intercepting execution, managing state across turns, implementing approval workflows, or implementing persistent memory or grounding agent responses in external knowledge.
Guides customizing agent behavior with callbacks, state, memory, events, and RAG grounding.
/plugin marketplace add MattMagg/agentic-plugins/plugin install adk-builder@agentic-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
CLAUDE.mdreferences/artifacts.mdreferences/callbacks.mdreferences/confirmation.mdreferences/events.mdreferences/grounding.mdreferences/memory-service.mdreferences/plugins.mdreferences/state.mdGuide for customizing agent behavior through callbacks, state, artifacts, events, memory, and grounding. Enables interception of execution, state persistence (session and long-term), human-in-the-loop workflows, and knowledge grounding.
@adk-core instead@adk-tools instead@adk-multi-agent insteadCallbacks intercept lifecycle events: before_model_callback, after_model_callback, before_tool_callback, after_tool_callback. Return content to override default behavior.
Session State persists data across conversation turns via ctx.state. Access with get() and update with dictionary assignment.
Plugins bundle reusable callbacks. Create custom plugins for logging, security, or monitoring.
Artifacts handle binary data and file uploads. Store files via artifact service for multi-turn access.
EventActions control flow: skip steps, escalate to parent, terminate session.
Human-in-the-Loop requires confirmation before sensitive actions by returning confirmation prompts from callbacks.
Session State persists within a conversation but is lost when session ends. Use ctx.state for temporary data.
MemoryService provides long-term memory across sessions. Agents can remember facts, preferences, and context over time.
Grounding (RAG) connects agents to external knowledge bases. Use Vertex AI Search or custom vector stores to retrieve relevant context before responding.
Knowledge Attribution enables agents to cite sources when grounding responses, improving transparency and trust.
Detailed guides with code examples:
references/callbacks.md - Lifecycle callback patternsreferences/plugins.md - Reusable callback bundlesreferences/state.md - Session state managementreferences/artifacts.md - File/binary handlingreferences/events.md - EventActions and flow controlreferences/confirmation.md - Human-in-the-loop patternsreferences/memory-service.md - Long-term memory patternsreferences/grounding.md - RAG and knowledge groundingThis skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.