Overview
This plugin helps you quickly start new Agent SDK projects with the latest SDK versions and ensures your applications follow official documentation patterns. Key Features:- Interactive project setup with clarifying questions
- Automatic SDK version checking and installation
- Language support for TypeScript and Python
- Built-in verification agents
- Working examples tailored to your use case
Command: /new-sdk-app
Interactive command that guides you through creating a new Claude Agent SDK application.What It Does
Asks Clarifying Questions
- Language choice (TypeScript or Python)
- Project name
- Agent type (coding, business, custom)
- Starting point (minimal, basic, or specific example)
- Tooling preferences (npm/yarn/pnpm or pip/poetry)
Sets Up Project
- Checks for and installs the latest SDK version
- Creates all necessary project files and configuration
- Sets up proper environment files (.env.example, .gitignore)
- Provides a working example tailored to your use case
Usage
With a project name:Example Workflow
- Language: TypeScript or Python?
- Agent type: Coding, business, or custom?
- Starting point: Minimal, basic, or specific example?
- Tooling: npm/yarn/pnpm (TS) or pip/poetry (Python)?
- Create the project directory
- Install the latest SDK version
- Set up TypeScript/Python environment
- Create a working example
- Verify the setup automatically
Agents
agent-sdk-verifier-ts
Thoroughly verifies TypeScript Agent SDK applications for correct setup and best practices. Verification Checks:- SDK installation and version
- TypeScript configuration (tsconfig.json)
- Correct SDK usage and patterns
- Type safety and imports
- Agent initialization and configuration
- Environment and security (.env, API keys)
- Error handling and functionality
- Documentation completeness
- After creating a new TypeScript SDK project
- After modifying an existing TypeScript SDK application
- Before deploying a TypeScript SDK application
/new-sdk-app creates a TypeScript project, or you can trigger it manually:
- Overall status (PASS / PASS WITH WARNINGS / FAIL)
- Critical issues that prevent functionality
- Warnings about suboptimal patterns
- List of passed checks
- Specific recommendations with SDK documentation references
agent-sdk-verifier-py
Thoroughly verifies Python Agent SDK applications for correct setup and best practices. Verification Checks:- SDK installation and version
- Python environment setup (requirements.txt, pyproject.toml)
- Correct SDK usage and patterns
- Agent initialization and configuration
- Environment and security (.env, API keys)
- Error handling and functionality
- Documentation completeness
- After creating a new Python SDK project
- After modifying an existing Python SDK application
- Before deploying a Python SDK application
/new-sdk-app creates a Python project, or manually:
- Overall status (PASS / PASS WITH WARNINGS / FAIL)
- Critical issues that prevent functionality
- Warnings about suboptimal patterns
- List of passed checks
- Specific recommendations with SDK documentation references
Complete Workflow Example
Here’s a typical workflow using this plugin:Automatic Verification
The command automatically runs
agent-sdk-verifier-ts to ensure everything is correctly set up.Best Practices
Use Latest SDK
/new-sdk-app checks for and installs the latest version automaticallyVerify Before Deploy
Run the verifier agent before deploying to production
Secure API Keys
Never commit
.env files or hardcode API keysFollow Documentation
The verifier agents check against official SDK patterns
Troubleshooting
Type Errors in TypeScript Project
Issue: TypeScript project has type errors after creation Solution:- The
/new-sdk-appcommand runs type checking automatically - If errors persist, check that you’re using the latest SDK version
- Verify your
tsconfig.jsonmatches SDK requirements
Python Import Errors
Issue: Cannot import fromclaude_agent_sdk
Solution:
- Ensure you’ve installed dependencies:
pip install -r requirements.txt - Activate your virtual environment if using one
- Check that the SDK is installed:
pip show claude-agent-sdk
Verification Fails with Warnings
Issue: Verifier agent reports warnings Solution:- Review the specific warnings in the report
- Check the SDK documentation references provided
- Warnings don’t prevent functionality but indicate areas for improvement
Resources
Plugin Information
Author: Ashwin Bhat (ashwin@anthropic.com)Version: 1.0.0