šØ EXECUTION NOTICE FOR CLAUDE
When you invoke this command via SlashCommand, the system returns THESE INSTRUCTIONS below.
YOU are the executor. This is NOT an autonomous subprocess.
- ā
The phases below are YOUR execution checklist
- ā
YOU must run each phase immediately using tools (Bash, Read, Write, Edit, TodoWrite)
- ā
Complete ALL phases before considering this command done
- ā DON't wait for "the command to complete" - YOU complete it by executing the phases
- ā DON't treat this as status output - it IS your instruction set
Immediately after SlashCommand returns, start executing Phase 0, then Phase 1, etc.
See @CLAUDE.md section "SlashCommand Execution - YOU Are The Executor" for detailed explanation.
Available Skills
This commands has access to the following skills from the claude-agent-sdk plugin:
- fastmcp-integration: Examples and patterns for integrating FastMCP Cloud servers with Claude Agent SDK using HTTP transport
- sdk-config-validator: Validates Claude Agent SDK configuration files, environment setup, dependencies, and project structure
To use a skill:
!{skill skill-name}
Use skills when you need:
- Domain-specific templates and examples
- Validation scripts and automation
- Best practices and patterns
- Configuration generators
Skills provide pre-built resources to accelerate your work.
Security Requirements
CRITICAL: All generated files must follow security rules:
@docs/security/SECURITY-RULES.md
Key requirements:
- Never hardcode API keys or secrets
- Use placeholders:
your_service_key_here
- Protect
.env files with .gitignore
- Create
.env.example with placeholders only
- Document key acquisition for users
Arguments: $ARGUMENTS
Goal: Add session management capabilities to an existing Claude Agent SDK application
Core Principles:
- Understand existing code before modifying
- Load SDK documentation for session patterns
- Follow official SDK examples
Phase 1: Discovery
Goal: Gather context about the project
Actions:
- Load SDK session documentation:
Read SDK documentation: ~/.claude/plugins/marketplaces/ai-dev-marketplace/plugins/claude-agent-sdk/docs/sdk-documentation.md
- Check if project path provided in $ARGUMENTS
- Read package.json or requirements.txt to confirm SDK is installed
- Identify main application files
Phase 2: Analysis
Goal: Understand current implementation
Actions:
- Read main application files
- Check if sessions are already implemented
- Identify query() function configuration
- Determine language (TypeScript or Python)
Phase 3: Planning
Goal: Design session implementation
Actions:
- Determine session storage approach
- Plan state management strategy
- Identify files to modify
- Present plan to user for confirmation
Phase 4: Implementation
Goal: Add session management with agent
Actions:
Invoke the claude-agent-features agent to add sessions.
The agent should:
Provide the agent with:
- Context: Project language and structure
- Target: $ARGUMENTS (project path)
- Expected output: Updated files with session support
Phase 5: Review
Goal: Verify sessions work correctly
Actions:
- Invoke appropriate verifier agent:
- TypeScript: claude-agent-verifier-ts
- Python: claude-agent-verifier-py
- Check that session patterns match SDK documentation
- Verify state persistence works
Phase 6: Summary
Goal: Document what was added
Actions:
- Summarize session capabilities added
- Show example usage
- Link to SDK session documentation
- Suggest testing with multi-turn conversations