home/productivity/kotlin-instructions-2

Kotlin.instructions

GPTClaudeDeepSeek··1,310 copies·updated 2026-07-14
kotlin-instructions-2.prompt
---
description: Kotlin standards for Android and JVM services.
applyTo: "**/*.kt"
---

# Kotlin Instructions

## Idioms

- Prefer data classes for simple models.
- Avoid nullable types when invariants can be enforced.

## Coroutines

- Use structured concurrency.
- Do not leak scopes.

## Testing

- Prefer deterministic tests.
- Test coroutine cancellation paths for async workflows.

when to use it

Community prompt sourced from the open-source GitHub repo ReactSphere/awesome-copilot-agents (MIT). A "Kotlin.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

ReactSphere/awesome-copilot-agents · MIT