# MCPcat TypeScript SDK - Task Completion Checklist

When completing a coding task, ensure you:

## 1. Code Quality
- [ ] Code follows TypeScript conventions
- [ ] Proper error handling with try-catch blocks
- [ ] Uses async/await appropriately
- [ ] Includes JSDoc comments for public APIs
- [ ] No console.log statements (use writeToLog instead)

## 2. Testing
- [ ] Write tests for new functionality
- [ ] Run `pnpm test` to ensure all tests pass
- [ ] Add integration tests if needed
- [ ] Test error scenarios

## 3. Type Safety
- [ ] Run `pnpm typecheck` - must pass without errors
- [ ] Export types properly with `export type`
- [ ] No `any` types unless absolutely necessary

## 4. Code Style
- [ ] Run `pnpm lint` - must pass without errors
- [ ] Consistent naming conventions
- [ ] Proper imports with `.js` extensions

## 5. Build Verification
- [ ] Run `pnpm build` - must complete successfully
- [ ] Check dist/ folder for proper output

## 6. Documentation
- [ ] Update relevant documentation
- [ ] Add inline comments for complex logic
- [ ] Update type definitions if needed

## 7. Final Checks
- [ ] Run `pnpm run prepublishOnly` for full validation
- [ ] Review changes with `git diff`
- [ ] Ensure no sensitive data in code