Add android-project-full-audit and local-worker-handoff skills; sync scaffold skill
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
216cf3478d
commit
59fc08fa5f
27 changed files with 1064 additions and 11 deletions
|
|
@ -0,0 +1,11 @@
|
|||
# Architecture & State
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** Overall pattern and layering: MVVM/MVI/MVP/Clean, state holders, data flow, boundaries.
|
||||
|
||||
**Look for:** ViewModel shape (StateFlow/LiveData/Compose state, UiState sealed classes, events/effects/intents); repository + use-case layers; domain models vs DTO vs entity mapping; single source of truth / offline-first; unidirectional data flow; layer violations.
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Background Work
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** Work that outlives a screen.
|
||||
|
||||
**Look for:** WorkManager workers (periodic/one-time, constraints), foreground services (+ type), JobScheduler/AlarmManager, sync adapters, BroadcastReceivers, boot receivers, push message handling (FirebaseMessagingService).
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Build & Modules
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** Gradle setup, module graph, versions, build variants, plugins, toolchain.
|
||||
|
||||
**Look for:** settings.gradle includes; version catalog (libs.versions.toml) with actual versions; AGP/Kotlin/JDK/compileSdk/minSdk/targetSdk; convention plugins (build-logic/buildSrc); module-to-module dependencies (`project(":x")`); flavors/buildTypes; R8/proguard rules; KSP/KAPT; CI workflows.
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Concurrency & Async
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** Threading and async model.
|
||||
|
||||
**Look for:** Coroutines (scopes: viewModelScope/lifecycleScope/custom app scope; dispatchers and whether they are injected), Flow/StateFlow/SharedFlow operators (stateIn, combine, flatMapLatest), RxJava, Executors/Handlers, LiveData, synchronization (Mutex, atomic), cancellation & error handling, structured concurrency violations (GlobalScope).
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Dependency Injection
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** How objects get constructed and wired.
|
||||
|
||||
**Look for:** Hilt (@HiltAndroidApp, @AndroidEntryPoint, @Module/@InstallIn, scopes, qualifiers, assisted inject), Dagger components, Koin modules, kotlin-inject/Anvil, manual service locators, test replacements.
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# User-Facing Features
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** What the app lets a USER do, inferred from screens, routes, strings, manifest entries and workers.
|
||||
|
||||
**Look for:** Each screen/flow (entry point file + route), user actions it supports (buttons, forms, gestures — read the composable/fragment and strings.xml labels), background capabilities the user perceives (sync, notifications, widgets, share targets, deep links). Write feature entries in user language: '<Feature> — lets the user …'.
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# File Tree Organization
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** How code is physically arranged: modules, packages, source sets, naming.
|
||||
|
||||
**Look for:** package-by-feature vs package-by-layer; core/feature/data/domain module split; naming conventions (*Screen, *ViewModel, *Repository, *UseCase, *Dao); where tests live; api/impl module pairs; outliers that break the scheme.
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Navigation
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** How screens are wired together and how users move between them.
|
||||
|
||||
**Look for:** Navigation Compose (string routes vs type-safe @Serializable routes), NavHost/NavController, nav graphs XML, Fragment transactions, multiple activities, deep links (manifest intent-filters + nav deepLink), bottom bars/drawers, back handling, result passing, third-party (Voyager/Decompose).
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Networking
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** Remote I/O: HTTP clients, API definitions, interceptors, auth, caching, real-time.
|
||||
|
||||
**Look for:** OkHttp (interceptors, auth, logging, cache, cert pinning), Retrofit service interfaces, Ktor, GraphQL/Apollo, gRPC, WebSockets/SSE, base URL/env config, error handling + result wrappers, retry/backoff, network monitoring (ConnectivityManager).
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Observability
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** Logging, analytics, crash and performance reporting, feature flags.
|
||||
|
||||
**Look for:** Timber/Log usage, Crashlytics/Sentry, analytics event wrappers, Remote Config/feature flags, StrictMode, performance tracing/baseline profiles, debug-only tooling (LeakCanary, Chucker, Flipper).
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Observations
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** Cross-cutting notes: inconsistencies, migrations in progress, tech debt, risks, dead code, notable strengths.
|
||||
|
||||
**Look for:** Two patterns for the same job (e.g. Gson AND Moshi, LiveData AND StateFlow), half-finished migrations, deprecated APIs, TODO/FIXME clusters, unused modules, layer violations, risky code (GlobalScope, main-thread I/O, !! chains), good practices worth preserving.
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Persistence
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** Local storage: databases, key-value, files, caching.
|
||||
|
||||
**Look for:** Room (entities, DAOs, migrations, TypeConverters, Flow queries), SQLDelight, Realm, DataStore (Preferences/Proto), SharedPreferences, file storage, encrypted storage, cache invalidation.
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Platform Integration
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** Android OS surface area the app touches.
|
||||
|
||||
**Look for:** Manifest components, permissions (declared + runtime request flow), notifications/channels, widgets (Glance/AppWidget), share/intent handling, content providers, camera/media/location/bluetooth, app shortcuts, tiles, Wear/TV/Auto targets, edge-to-edge, splash screen, in-app updates/review.
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Security & Auth
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** Authentication, authorization, secrets, data protection.
|
||||
|
||||
**Look for:** Login/session flow, token storage & refresh (OkHttp Authenticator), OAuth/Credential Manager, biometric, Keystore/EncryptedSharedPreferences, certificate pinning, network security config, exported components, hardcoded keys/secrets (flag, do not copy secret values), obfuscation.
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Serialization
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** How data is encoded/decoded: JSON, protobuf, parcelables.
|
||||
|
||||
**Look for:** kotlinx.serialization/Moshi/Gson (adapters, codegen vs reflection), protobuf/proto DataStore, Parcelize, custom type adapters, naming strategies.
|
||||
|
||||
## Findings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Testing
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** Test strategy as implemented.
|
||||
|
||||
**Look for:** Unit test frameworks (JUnit4/5, MockK/Mockito, Turbine, Truth/AssertJ), fakes vs mocks, coroutine test dispatchers, Robolectric, instrumented/Espresso/Compose UI tests, screenshot tests, test modules/fixtures, rough ratio of tested to untested areas.
|
||||
|
||||
## Findings
|
||||
11
skills/android-project-full-audit/templates/library/ui.md
Normal file
11
skills/android-project-full-audit/templates/library/ui.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# UI
|
||||
|
||||
> Audit library doc. Findings come from reading source files — never from README/docs.
|
||||
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
|
||||
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
|
||||
|
||||
**Scope:** UI toolkit and presentation: Compose vs Views, theming, design system, image loading, lists, previews.
|
||||
|
||||
**Look for:** Compose (Material2/3, custom theme, design-system module), XML layouts/ViewBinding/DataBinding, Fragments/Activities, adaptive layouts/window size classes, image loading (Coil/Glide), lists (LazyColumn/RecyclerView/Paging), animations, accessibility, previews.
|
||||
|
||||
## Findings
|
||||
Loading…
Add table
Add a link
Reference in a new issue