AgentStack
SKILL verified MIT Self-run

Kotlin Core

skill-gdvega-super-android-kotlin-firebase-skill-kotlin-core · by GDvega

Use for Kotlin null safety, data classes, sealed classes/interfaces, coroutines, Flow, Result, extension functions and error handling.

No reviews yet
0 installs
3 views
0.0% view→install

Install

$ agentstack add skill-gdvega-super-android-kotlin-firebase-skill-kotlin-core

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Kotlin Core? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Purpose

Keep Kotlin code idiomatic, cancellable, explicit and testable.

When to use

  • Refactoring Kotlin domain, data or ViewModel code.
  • Modeling UI state, domain results or errors.
  • Fixing coroutine, Flow, cancellation or nullability issues.

Inputs to inspect

  • Kotlin version and compiler/plugin setup.
  • Code under change and tests.
  • Coroutine scopes, dispatchers and Flow operators.
  • Expected error and state behavior.

Required workflow

  1. Read the current Kotlin style and version.
  2. Identify state, error and async boundaries.
  3. Choose sealed types, Result or domain errors intentionally.
  4. Preserve cancellation and structured concurrency.
  5. Add or update unit tests for changed behavior.

Rules

  • Never use GlobalScope.
  • Do not swallow CancellationException.
  • Avoid !! except at hard verified boundaries.
  • Keep extension functions focused and discoverable.
  • Expose immutable state to consumers.

Related existing skills

Local skills to invoke

  • android-architecture
  • testing
  • dependency-injection
  • ui-state-design

External companion skills to use when installed

Do not assume these companion skills are installed. Prefer the local skills above first, then consult [Companion Skills](../../docs/COMPANION_SKILLS.md) for install and verification commands.

  • android/skills — use for official Android workflow alignment when a first-party companion skill exists for the task.

Files commonly touched

  • *.kt
  • ViewModel files
  • domain models
  • repository interfaces
  • test files

Commands to validate

./gradlew test
./gradlew compileDebugKotlin
./gradlew lint

Common mistakes to avoid

  • Launching coroutines without lifecycle or owner scope.
  • Mixing UI strings into domain errors.
  • Using nullable types where a sealed state is clearer.
  • Creating magical extensions that hide side effects.

Checklist

  • Nullability explicit.
  • Cancellation preserved.
  • Flow/state testable.
  • Errors modeled.
  • Tests added or recommended.

Example prompts

  • Use $super-android-kotlin-firebase to convert this callback API to Flow.
  • Use $super-android-kotlin-firebase to model loading/success/error state in Kotlin.

Expected response style

Respond with: brief diagnosis, change plan, affected files, code or diff summary, validation commands, tests added or recommended, risks, and next step. For review tasks, lead with findings ordered by severity.

References

  • ../../docs/audits/FUENTES_LOCALES.md
  • references/kotlin-state-and-errors.md
  • templates/result-state-template.md

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.