android-networking
БесплатноБез исполняемых скриптовНе проверенStandards for Retrofit, OkHttp, and API Communication. Use when integrating Retrofit, OkHttp, or API clients in Android apps. (triggers: **/*Api.kt…
от ComeOnOliver★ 67 звёзд на GitHubОб этом скилле
Android Networking Standards
Priority: P0
Implementation Guidelines
Libraries & Setup
- Client: Use Retrofit 2 with OkHttp 4 for all backend communication.
- Serialization: Use Kotlinx Serialization (preferred). Use
@SerialNamefor JSON field mapping. - Security: Implement Certificate Pinning for sensitive production domains. Use
NetworkSecurityConfigfor cleartext traffic control.
Network Ops
- Interceptors: Use OkHttp Interceptors for global concerns like
Bearer tokeninjection via theAuthorizationheader andHttpLoggingInterceptor(debug only). - Architecture: All API calls must be
suspendfunctions. Use aResultwrapper orEitherto handle success/failure in the Repository layer. - Minification: Ensure
isMinifyEnabledis true inbuild.gradleand define R8/ProGuard rules for Retrofit/OkHttp to prevent runtime crashes. - Testing: Use MockWebServer to simulate API responses in unit and integration tests. Ensure 100% test coverage for error cases (500, 401, 403).
Anti-Patterns
- No Blocking Network Calls: All API functions must be suspend.
- No Logic in API Interface: Only declare endpoints — handle errors in Repository.
- No Raw Converter Factory: Explicitly set "application/json" MediaType with kotlinx.serialization.
References
Установить android-networking в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл android-networking?
Standards for Retrofit, OkHttp, and API Communication. Use when integrating Retrofit, OkHttp, or API clients in Android apps. (triggers: **/*Api.kt, **/*Service.kt, **/*Client.kt, Retrofit, OkHttpClient, @GET, @POST)
Как установить скилл android-networking?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл android-networking запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic