Install
$ agentstack add skill-gdvega-super-android-kotlin-firebase-skill-kotlin-core ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
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
- Read the current Kotlin style and version.
- Identify state, error and async boundaries.
- Choose sealed types, Result or domain errors intentionally.
- Preserve cancellation and structured concurrency.
- 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
*.ktViewModel filesdomain modelsrepository interfacestest 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.
- Author: GDvega
- Source: GDvega/super-android-kotlin-firebase-skill
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.