android-library-pro
Skill8 starsChanged 12 days agoMITView on GitHub
Builds, reviews, and publishes Android and Kotlin library modules that apps depend on — library module setup (namespace, resource prefix, AAR metadata, Kotlin and SDK floors), explicit API mode, binary compatibility and ABI dumps (binary-compatibility-validator, KGP abiValidation), Java interop, consumer R8 rules, Compose library APIs, Dokka, and signed Maven Central publishing through the Central Portal. Use when building a library rather than an app, before a release, when deciding whether a change breaks consumers, or when setting up publishing.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- android-accessibility-proSkill
- android-adaptive-layout-proSkill
- android-compose-proSkill
- android-coroutines-proSkill
- android-design-system-proSkill
- android-gradle-architecture-proSkill
- android-memory-storage-proSkill
- android-modularization-proSkill
- app-intents-proSkill
- beta-deployment-proSkill
- coredata-swift6-proSkill
- cross-platform-parity-proSkill
- flaky-tests-proSkill
- foundation-models-proSkill
- instruments-profiling-proSkill
- linting-proSkill
- localization-proSkill
- motion-design-proSkill
- r8-shrink-proSkill
- store-compliance-proSkill
- swift-accessibility-proSkill
- swift-adaptive-layout-proSkill
- swift-concurrency-proSkill
- swiftdata-proSkill
- swift-design-system-proSkill
- swift-docc-proSkill
- swift-error-handling-proSkill
- swift-library-proSkill
- swift-logging-proSkill
- swift-memory-storage-proSkill
- swift-modularization-proSkill
- swift-package-proSkill
- swift-testing-proSkill
- swiftui-proSkill
- visionos-proSkill
- xcode-security-proSkill
- xml-to-compose-migration-proSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Audit: run the checklist below over the whole library.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Keep an Android library safe to depend on: apps upgrade without compile or runtime breaks, the AAR adds nothing consumers didn't ask for, and every release is signed, documented, and reproducible. This is the deep companion to the always-on android-library-authoring.md rule. android-gradle-architecture-pro reviews build-logic and convention plugins; r8-shrink-pro owns keep-rule syntax and is the authority for consumer-rules.pro content. Report only genuine problems.
Pick the mode from the request:
- Review a change: classify every public-API and ABI-dump difference (
references/api-and-abi.md) and name the required version bump. - Set up a module: produce the library
build.gradle.kts, explicit API, ABI validation, and consumer rules (references/module-setup.md). - Publish: wire signing and the Central Portal, POM, sources and docs jars, and the release workflow (
references/publishing.md). - Audit: run the checklist below over the whole library.
Load only the reference you need:
references/module-setup.md—com.android.libraryconfiguration,namespace, SDK levels withouttargetSdk,resourcePrefix, non-transitive R,aarMetadata, KotlinapiVersion/coreLibrariesVersionfloors,apivsimplementation, JVM vs Android vs Multiplatform modules, consumer rules andlintPublish, test fixtures and sample apps, Compose libraries.references/api-and-abi.md— explicit API mode, what breaks source vs binary compatibility in Kotlin, data classes, default parameters and@JvmOverloads, sealed and enum growth, inline functions and@PublishedApi,@RequiresOptIn, Java interop annotations, ABI dumps with binary-compatibility-validator or KGPabiValidation, deprecation levels.references/publishing.md— Maven Central through the Central Portal, namespace verification, signing with in-memory keys, thecom.vanniktech.maven.publishplugin and plainmaven-publish, POM requirements, Dokka for docs and Javadoc jars, BOMs, versioning, GitHub Packages for internal libraries, and a release workflow.
Review Checklist
- Module:
com.android.library,namespace, noapplicationIdortargetSdk,resourcePrefix, not minified,consumer-rules.prowired. - Floors:
minSdk, KotlinapiVersion/languageVersion,coreLibrariesVersion, and Java bytecode target chosen for consumers, not for the build machine. - Dependencies:
apionly for types in public signatures; no SNAPSHOT or dynamic versions; nothing pulled in that only the sample uses. - API:
explicitApi()on;internalby default; no public data classes; experimental API behind@RequiresOptIn; Java callers covered. - ABI: dump committed, CI fails on unreviewed changes, version bump matches the dump diff.
- Deprecation: removals went through
WARNING→ERROR→HIDDENwithReplaceWith. - Publishing: signed, sources and docs jars, complete POM, Gradle Module Metadata, released from CI on a tag.
- Docs and samples: KDoc on every public symbol, Dokka builds, a sample app that uses only the public API.
Output Format
Organize findings by file. For each issue give the file and lines, the rule broken, the consumer impact (compile break, runtime NoSuchMethodError, R8 crash, version conflict), and a before/after fix. For a change review, end with a table of API differences and the required SemVer bump. Finish with a prioritized summary.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

