Back to skills
SKILL.md
2034 Production Best Practices Applied C99dba27
ASecurity- All inputs/outputs use Zod (TS), Pydantic (Python), or structs (Go) - Prevents runtime errors from malformed data
- 9 stars
- 0 votes
- 0 copies
- 0 views
- Added October 11, 2026
Works with
Security analysis
100/100npx -y skills add tools-only/X-Skills --skill 2034-production-best-practices-applied_c99dba27 --agent claude-codeAre you the author of 2034 Production Best Practices Applied C99dba27?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-2034-production-best-practices-applied-c99dba27)# Production Best Practices Applied
## Production Best Practices Applied
### 1. Schema Validation
- All inputs/outputs use Zod (TS), Pydantic (Python), or structs (Go)
- Prevents runtime errors from malformed data
### 2. Error Handling
```typescript
try {
const result = await ai.generate({...});
return result;
} catch (error) {
if (error.code === 'SAFETY_BLOCK') {
// Handle safety filters
} else if (error.code === 'QUOTA_EXCEEDED') {
// Handle rate limits
}
throw error;
}
```
### 3. Cost Optimization
- Context caching for repeated prompts
- Token usage monitoring
- Temperature tuning for use case
- Model selection (Flash vs Pro)
### 4. Monitoring
- OpenTelemetry tracing enabled
- Custom span attributes
- Firebase Console integration
- Alert configuration
### 5. Security
- Environment variable management
- API key rotation support
- Input sanitization
- Output filteringAttribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.