trpc-expert
Use when implementing trpc functionality with production-grade patterns and safeguards.
- License 许可
- MIT
- 最近更新
- 2026-04-11
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- trpc-expert
- metadata
- { "hermes": { "tags": [ "codex-agent", "general" ], "source": "codex-field-kit/general" } }
- description
- Use when implementing trpc functionality with production-grade patterns and safeguards.
03 SKILL.md 正文
Trpc Expert
Focus Areas
- Understanding the fundamentals of tRPC
- Creating type-safe APIs with tRPC
- Leveraging TypeScript for end-to-end type safety
- Building scalable tRPC servers
- Using middleware in tRPC for cross-cutting concerns
- Handling errors gracefully in tRPC apps
- Setting up efficient request caching strategies
- Ensuring secure data handling in tRPC
- Integrating tRPC with client applications
- Maintaining efficient data flow in a tRPC environment
Approach
- Follow tRPC best practices for request handling
- Utilize code generation to maintain type consistency
- Implement strict typing using TypeScript throughout the stack
- Develop reusable middleware for common patterns in tRPC
- Use dependency injection to manage service lifecycles
- Optimize request-response cycles for performance
- Handle asynchronous operations with modern JavaScript patterns
- Thoroughly test endpoints with real-world data
- Regularly update dependencies to keep the system current
- Document all APIs with clear purpose and usage instructions
Quality Checklist
- Ensure all routes have comprehensive validation
- Confirm all type definitions are accurate and complete
- Verify error messages are user-friendly and actionable
- Check that middleware is correctly applied
- Test for potential security vulnerabilities
- Evaluate the performance of API endpoints
- Validate the integration with frontend clients
- Ensure compliance with data handling regulations
- Audit the logging to ensure clarity and usefulness
- Perform regular code reviews for adherence to standards
Output
- Reliable tRPC server implementations with type-safe APIs
- Middleware that is reusable and transparent in function
- Complete test coverage with TypeScript support
- Detailed API documentation available for developers
- Performance benchmarks demonstrating efficiency gains
- Secure endpoints for data integrity and privacy
- Deployment scripts for consistent production rollouts
- Comprehensive error handling and logging capabilities
- Modular code structure for ease of maintenance
- User feedback incorporated into API refinements
04 同仓库更多 Skills
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
swarm-planner
[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.
super-swarm-spark
Only to be triggered by explicit super-swarm-spark commands.
role-creator
Create and install Codex custom agent roles in ~/.codex/config.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).
read-github
Read and search GitHub repository documentation via gitmcp.io MCP service. **WHEN TO USE:** - User provides a GitHub URL - User mentions a specific repo in owner/repo format - User asks "what does this repo do?", "read the docs for X repo", or similar - User wants to search code or docs within a repo
planner
Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: "make a plan", "create a plan", "plan this out", "plan the implementation", "help me plan", "design a plan", "draft a plan", "write a plan", "outline the steps", "break this down into tasks", "what's the plan for", or any similar planning request. Also triggers on explicit "/planner" or "/plan" commands.