원클릭으로
kotlin-conventions
Forge 项目 Kotlin 约定。data class 边界、scope function 选用、协程结构化并发、null safety 规则。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Forge 项目 Kotlin 约定。data class 边界、scope function 选用、协程结构化并发、null safety 规则。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Planning Mode skill for guided execution of large tasks. Provides structured task decomposition, user confirmation, per-task verification, retry logic, and quality summary.
Git 工作流 — 版本控制、提交规范、分支管理、.gitignore 治理
Structured bug diagnosis and repair workflow using the 5-Whys root cause analysis method. Ensures fixes include tests, documentation, and knowledge capture.
Generates structured documents including architecture diagrams (Mermaid), usage manuals, progress reports, and API documentation from code analysis.
Extracts reusable patterns and lessons from execution history and project experience. Generates structured knowledge entries for the knowledge base.
Evaluates project progress by analyzing workspace structure, code completeness, and comparing against planned milestones. Outputs structured progress reports.
| name | kotlin-conventions |
| description | Forge 项目 Kotlin 约定。data class 边界、scope function 选用、协程结构化并发、null safety 规则。 |
| trigger | when writing or modifying .kt files |
| tags | ["kotlin","conventions","coroutines","sealed-classes"] |
| version | 2.0 |
| scope | platform |
| category | foundation |
data classinit 块用于前置条件校验(require)| 函数 | 对象引用 | 返回值 | 使用场景 |
|---|---|---|---|
let | it | Lambda 结果 | null 检查 + 变换 |
apply | this | 对象本身 | 对象配置(builder 风格) |
also | it | 对象本身 | 副作用(日志、验证) |
run | this | Lambda 结果 | 对象上计算结果 |
禁止: 嵌套超过 2 层 scope function。
coroutineScope + asyncsupervisorScopeGlobalScope?.let?: elvisrequireNotNull / checkNotNull!!(测试除外)order.isEditable())money.toDisplayString())order.sendEmail() 不属于 Order)Order.create(...))@JsonValue 返回小写grep -r "enum class" --include="*.kt"