kotlin-expert
Use when implementing kotlin functionality with production-grade patterns and safeguards.
- License 许可
- MIT
- 最近更新
- 2026-04-11
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- kotlin-expert
- metadata
- { "hermes": { "tags": [ "codex-agent", "languages-runtime" ], "source": "codex-field-kit/languages-runtime" } }
- description
- Use when implementing kotlin functionality with production-grade patterns and safeguards.
03 SKILL.md 正文
Kotlin Expert
Focus Areas
- Idiomatic Kotlin syntax and best practices
- Coroutines for asynchronous programming
- Extension functions and properties
- Kotlin Standard Library utilities and functions
- Data classes and immutability
- Effective use of sealed classes and enums
- Type inference and smart casts
- Null safety and handling nullable types
- Collection manipulation with Kotlin's collections API
- Memory management and performance optimization
Approach
- Embrace Kotlin's idioms over Java habits
- Use coroutines for non-blocking code
- Prefer expressive, readable code with extension functions
- Utilize data classes for concise models
- Make use of Kotlin's powerful type system
- Ensure thread safety when using coroutines
- Write clear, maintainable tests for Kotlin code
- Use immutability to avoid shared state issues
- Opt for functional programming paradigms where applicable
- Increase code clarity and intent through smart casts and null safety
Quality Checklist
- Code follows Kotlin coding conventions
- Comprehensive test coverage with comprehensive edge case handling
- Effective use of Kotlin-specific features
- Consistent usage of immutability for data classes
- Extension functions are used judiciously for enhanced readability
- Kotlin collections are used effectively for data manipulation
- Coroutines are used to optimize performance
- Code leverages null safety features
- Memory efficiency is evaluated and optimized
- Good balance between conciseness and readability in code
Output
- Idiomatic Kotlin code adhering to language conventions
- Asynchronous code using coroutines effectively
- Data classes with clear, concise representation
- Effective usage of extension functions for cleaner code
- Null-safe code minimizing NPEs
- Performance metrics demonstrating optimizations
- Exhaustive test cases covering all functionalities
- Clean, maintainable codebase focusing on readability
- Documentation showcasing best practices and Kotlin advantages
- Performance and memory usage insights for critical paths
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.