Token导航 LogoToken导航TokenDH.com
AI 工具敏感数据github未标认证来源可访问clear审计通过

kotlin-development科特林开发

Agent Skill

kotlin-development 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,240

周安装

260

GitHub Stars

87

下载量

2,080
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:kotlin-development(科特林开发)
来源仓库:https://github.com/mindrally/skills
仓库路径:skills/kotlin-development
安装命令:
npx skills add https://github.com/mindrally/skills --skill kotlin-development
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/mindrally/skills --skill kotlin-development

简介

kotlin-development 用于记录 Kotlin 开发过程中的错误、纠正和经验积累,适合在 Codex、Claude、Cursor、Gemini CLI 中持续沉淀问题和最佳实践。

  • 适用于团队协作、知识共享或技能提升等场景,可帮助 Agent 在后续任务中避免重复错误并优化实现方式。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认是否支持本地持久化或仅提供临时记忆功能。
  • 使用前应检查仓库维护状态、权限范围,并注意是否会触发文件读写或网络同步,避免影响本地环境或数据泄露风险。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Kotlin Development Best Practices

General Principles

  • Use English for all code and documentation
  • Always declare the type of each variable and function
  • Avoid the any type; create necessary types instead
  • No blank lines within function bodies

Naming Conventions

Case Standards

  • PascalCase: Classes, interfaces, enums
  • camelCase: Variables, functions, methods, parameters
  • UPPERCASE: Environment variables, constants
  • underscores_case: Files and directories

Naming Guidelines

  • Start each function with a verb (get, set, create, update, delete, etc.)
  • Use complete words over abbreviations

- Allowed abbreviations: API, URL, i/j for loops, err, ctx, req/res/next

  • Avoid magic numbers; define constants instead
  • Boolean variables use prefixes: isLoading, hasError, canDelete

Function Design

Size and Responsibility

  • Keep functions under 20 instructions
  • Each function should have a single responsibility
  • Extract logic into utility functions when complexity increases

Naming Functions

  • Use verb-based naming that describes the action
  • Prefix boolean-returning functions with is, has, or can
  • Prefix void functions with action verbs like execute, save, send

Reducing Nesting

  • Use early returns to handle edge cases first
  • Extract nested logic into separate functions
  • Employ higher-order functions (map, filter, reduce) to minimize loops
  • Prefer arrow functions for simple operations; use named functions otherwise

Parameters

  • Use default parameters instead of null checks
  • When functions have multiple parameters, consolidate them into objects (RO-RO pattern)
  • Keep parameter lists short (max 3-4 parameters)

Data Handling

Data Classes

  • Use data classes for data structures
  • Encapsulate primitive types in composite types when they represent domain concepts
  • Validate data internally within data classes

Immutability

  • Prefer immutability for data
  • Use val for variables that don't change
  • Use immutable collections when possible
  • Create new instances instead of mutating existing ones

Classes and Objects

Size Guidelines

  • Keep classes under 200 instructions
  • Limit to fewer than 10 public methods
  • Limit to fewer than 10 properties

Design Principles

  • Follow SOLID principles
  • Favor composition over inheritance
  • Use interfaces for abstraction
  • Keep classes focused on a single responsibility

Exception Handling

When to Use Exceptions

  • Reserve exceptions for truly unexpected errors
  • Don't use exceptions for control flow
  • Catch exceptions only to:

- Fix an anticipated issue - Add context before re-throwing

Best Practices

  • Create custom exception types for domain-specific errors
  • Include meaningful error messages
  • Log exceptions at appropriate levels

Testing

Unit Tests

  • Follow Arrange-Act-Assert convention
  • Write unit tests for all public functions
  • Use test doubles (mocks, stubs, fakes) for dependencies
  • Name tests descriptively to document behavior

Acceptance Tests

  • Follow Given-When-Then convention
  • Test user-facing behavior and scenarios
  • Keep tests independent and repeatable

Code Organization

  • Group related functionality together
  • Keep files focused and cohesive
  • Use packages/modules to organize code by feature or layer
  • Maintain consistent file structure across the project

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.29%
按下载量换算568

OpenCode

22.12%
按下载量换算460

Antigravity

20.12%
按下载量换算418

windsurf

12.49%
按下载量换算260

Codex

7.74%
按下载量换算161

Gemini CLI

3.86%
按下载量换算80

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills