android-modernization-upgrade
Bring very old Android projects to a current supported baseline with staged upgrades, deprecated API replacement, 16 KB alignment checks, and explicit handoff to specialized skills.
What this skill does
# Android Modernization Upgrade ## When To Use - Use this skill when the request is about: upgrade old android project, fix android build after agp or kotlin bump, replace deprecated android classes. - Primary outcome: Bring very old Android projects to a current supported baseline with staged upgrades, deprecated API replacement, 16 KB alignment checks, and explicit handoff to specialized skills. - Purpose: end-to-end guidance for bringing very old Android projects to a current supported baseline. - Reach for this skill when the request is repo-wide compatibility and staged upgrade sequencing, not isolated Kotlin cleanup or one-library refactoring. - Trigger language: requests about upgrading old Android codebases, fixing breakage after version bumps, migrating deprecated Android patterns, replacing deprecated classes, resolving old Gradle/AGP/Kotlin issues, handling 16 KB alignment, or modernizing architecture/setup. - Handoff skills when the scope expands: - `android-gradle-build-logic` - `android-viewsystem-foundations` - `android-compose-xml-interoperability` - `android-security-best-practices` - `android-performance-observability` - `android-rxjava-to-coroutines-migration` ## Responsibilities - Diagnose the repository shape: AGP, Gradle, Kotlin, AndroidX/support libraries, SDK levels, native artifacts, and deprecated APIs/classes. - Generate a safe upgrade sequence instead of bumping everything at once. - Branch the migration path for Compose-heavy, View-system, and mixed interoperability projects. - Replace deprecated imports and classes when the fix is deterministic; otherwise emit an explicit remediation item. - Verify native packaging and 16 KB alignment readiness before release. - Hand off focused follow-up work to the right specialized Android skills once the main upgrade blockers are isolated. ## Workflow 1. Scan the project to understand toolchain age, AndroidX status, native packaging, and deprecated APIs. 2. Generate an ordered modernization plan that isolates mechanical fixes from risky semantic changes. 3. Apply deterministic upgrades in small stages and rerun build, test, and lint after each stage. 4. Route remaining failures to the owning specialized skills with exact issue signatures and file paths, including RxJava chains that should move to the dedicated migration skill. 5. Produce a final remediation report that leaves no hidden migration debt. ## Automation Modes - `audit`: inspect the repo and emit a structured diagnosis report without editing files. - `safe-apply`: perform deterministic edits such as repository cleanup, version bumps, obvious support-library replacements, manifest normalization, and straightforward deprecated API replacements. - `report`: summarize unresolved blockers, file paths, issue signatures, and the next specialized skill to use. ## Guardrails - Only auto-apply changes that are deterministic and reviewable. - Preserve working behavior whenever a migration can be staged instead of rewritten. - Treat AGP, Gradle, Kotlin, SDK, AndroidX, and native packaging as one compatibility graph. - Never silently drop deprecated behavior without documenting the replacement and verification path. ## Anti-Patterns - Bumping every version at once with no staged validation. - Applying Compose migration advice to a legacy View-only app by default. - Ignoring native libraries, ABI packaging, or page-size alignment in old apps. - Calling a project modernized while deprecated classes and support libraries still ship. ## Required Tooling - `scripts/scan_project.py` - `scripts/build_compat_matrix.py` - `scripts/generate_remediation_checklist.py` - `scripts/apply_safe_upgrades.py` - `scripts/check_16kb_alignment.py` ## Required References - `references/agp-upgrade-notes.md` - `references/kotlin-compatibility.md` - `references/androidx-migration.md` - `references/gradle-compatibility.md` - `references/sdk-behavior-changes.md` - `references/jetpack-release-notes.md` - `references/deprecated-replacements.md` - `references/upgrade-matrix.md` - `references/issue-signature-catalog.md` ## Examples ### Happy path - Scenario: Scan a support-library era project and generate an ordered upgrade checklist. - Command: `python3 skills/android-modernization-upgrade/scripts/scan_project.py examples/fixtures/legacy-support-app` ### Edge case - Scenario: Recover a project stuck between old AGP and Kotlin versions and verify staged fixes. - Command: `python3 skills/android-modernization-upgrade/scripts/generate_remediation_checklist.py examples/fixtures/legacy-mismatch-app` ### Failure recovery - Scenario: Auto-detect native packaging and 16 KB alignment issues before release. - Command: `python3 skills/android-modernization-upgrade/scripts/check_16kb_alignment.py examples/fixtures/native-misaligned-app/app-release.apk` ## Done Checklist - The implementation path is explicit, minimal, and tied to the right Android surface. - Relevant example commands and benchmark prompts have been exercised or updated. - Handoffs to adjacent skills are documented when the request crosses boundaries. - Official references cover the chosen pattern and the main migration or troubleshooting path. - Known safe fixes are applied automatically; ambiguous migrations are reported instead of silently changed. - Deprecated classes are replaced or listed with exact file paths and replacement guidance. - 16 KB alignment is verified, or the exact third-party/native blocker is called out. ## Official References - [https://developer.android.com/build/releases/gradle-plugin](https://developer.android.com/build/releases/gradle-plugin) - [https://developer.android.com/build/kotlin-support](https://developer.android.com/build/kotlin-support) - [https://developer.android.com/jetpack/androidx/migrate](https://developer.android.com/jetpack/androidx/migrate) - [https://developer.android.com/build/migrate-to-built-in-kotlin](https://developer.android.com/build/migrate-to-built-in-kotlin)
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.