android-error-handling
Skill by cosmictaserdev-creator
Android error handling skill that provides a typed Result wrapper, shared error types and helper functions for Android and KMP apps. It is for developers who want explicit success and failure outcomes across data, domain and presentation layers.
Install android-error-handling
Built from the published package, never by AI.
git clone --depth 1 https://github.com/cosmictaserdev-creator/Convx /tmp/Convx && mkdir -p ~/.claude/skills && cp -r /tmp/Convx/contributor/skills/android-error-handling ~/.claude/skills/android-error-handlingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/cosmictaserdev-creator/Convx /tmp/Convx && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Convx/contributor/skills/android-error-handling ~/.gemini/antigravity-cli/skills/android-error-handlingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install android-error-handling in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill sets out a generic Result<D, E> type with Success and Error cases, plus an EmptyResult alias for operations that return no data. It includes extension helpers map, onSuccess, onFailure and asEmptyResult, which return Result so they can be chained. It also defines shared DataError types for network and local failures, and shows how to map errors to user-facing text with a toUiText function.
The skill covers a safe call pattern for Ktor HttpClient that converts HTTP status codes and exceptions into typed DataError.Network results. It sets a rule that expected failures return Result.Error instead of throwing, and that each layer catches the exceptions it owns. It is aimed at Android and Kotlin Multiplatform developers who define error types, handle success and failure flows, or validate input in any part of an app.
Written from the project's SKILL.md and checked against it.
What it can do
- Result wrapperGeneric Result<D, E> type with Success and Error cases, plus an EmptyResult alias.
- Extension helpersFunctions map, onSuccess, onFailure and asEmptyResult that can be chained.
- DataError typesShared network and local error enums such as NO_INTERNET, UNAUTHORIZED and DISK_FULL.
- Feature-specific errorsPattern for custom error enums, such as a password validation error type.
- Safe call helpersTyped get, post and delete extensions on Ktor HttpClient that map responses to Result.
- Error to UI text mappingGuidance and an example for a DataError.toUiText extension in core:presentation.
What you need
- Android or Kotlin Multiplatform project
- Ktor HttpClient for the safe call helpers
- BuildConfig.BASE_URL defined for the safe call helpers
Try asking
- Create a Result wrapper and EmptyResult type for my Android app
- Add a typed password validation error and return it as EmptyResult
- Wrap my Ktor get and post calls so they return Result with DataError.Network
Good to know
- Each Result holds a single error type, so multiple validation errors are not supported
- The safe call helpers depend on Ktor and a BuildConfig.BASE_URL value
- Only the Android and KMP patterns in the source are covered
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: contributor/skills/android-error-handling/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB
Alternatives to android-error-handling
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
android-error-handling: common questions
Where should Result and the extension helpers live?
The source places the Result definition and its extension helpers in the core:domain module, alongside the shared error types.
Should every function return Result instead of throwing?
The source says expected failures should return Result.Error rather than throw exceptions, and each layer catches the exceptions it owns.
Where should a toUiText mapping go?
The source says feature-specific errors map in the feature's presentation module, and shared errors such as DataError map in core:presentation.
How do I install android-error-handling?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is android-error-handling free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is android-error-handling safe to use?
It scores 87 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to android-error-handling?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
