Agent skill
validate-sdk
Validates TypeScript SDK code (build, types, lint, tests) in the sdk/ directory
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/validate-sdk
SKILL.md
Validate SDK Skill
CLAUDE: When this skill is invoked with /validate-sdk, run these commands in sequence:
cd sdk && bun run build && bun run type-check && bun run lint && bun run test
Purpose
Validates the TypeScript MCP client SDK for build integrity, type safety, lint compliance, and test correctness.
Usage
/validate-sdk
What It Validates
Build Verification
cd sdk && bun run build
- Compiles TypeScript via esbuild
- Generates
dist/output - Validates module exports
TypeScript Check
cd sdk && bun run type-check
- Validates type definitions
- Ensures generated types are valid
- Checks MCP protocol types
ESLint
cd sdk && bun run lint
- Code style consistency
- TypeScript best practices
- Import validation
Tests
cd sdk && bun run test
- Unit tests for SDK components
- Integration tests with server
- E2E protocol compliance
Full Validation Command
cd sdk && bun run build && bun run type-check && bun run lint && bun run test
Additional Commands
Specific Test Categories
cd sdk && bun run test:unit # Unit tests only
cd sdk && bun run test:integration # Integration tests
cd sdk && bun run test:e2e # End-to-end tests
cd sdk && bun run test:all # All test categories
Type Generation
cd sdk && bun run generate-types
Regenerates TypeScript types from Rust tool schemas.
MCP Inspector
cd sdk && bun run inspect
Interactive debugging with MCP inspector.
Success Criteria
- Build completes without errors
- All TypeScript types valid
- Zero ESLint violations
- All tests pass
- Generated types match Rust definitions
Related Skills
generate-sdk-types- Regenerate TypeScript types from Rusttest-mcp-compliance- MCP protocol validation
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?