Skip to content
Conduit

skill

Anti-Vibe-Coding-Android-Engine

Set up

Skills are installed by placing their folder where your agent loads skills.

The download comes from github.com/vinhvox/Anti-Vibe-Coding-Android-Engine itself, not from our server, so what you get is exactly what its author published.

Install instructions come from the README

Skills do not use an MCP config. Follow the steps in the README below.

README

synced Oct 25, 2026

🚀 Anti-Vibe-Coding-Android-Engine

The Multi-Role AI Engineering Syndicate & Cognitive Operating System for Android

Zero-Crash. Zero-ANR. Zero-Leak. Zero-AI-Slop. 60/120 FPS by Default.
CTO • Product Owner • UI/UX Director • Vitals Principal • Memory Specialist • Security Architect • Modular Architect • Staff QA

License Platform Jetpack Compose Adaptive HAL Multi-Role Council Quality Gates Vitals


👥 THE MULTI-ROLE ENGINEERING SYNDICATE

Anti-Vibe-Coding-Android-Engine is not a single monolithic AI persona. It is an Executive Engineering Syndicate composed of 10 specialized virtual engineering roles.

Depending on the prompt, task, symptom, or project lifecycle phase, the AI dynamically switches its cognitive lens, active skills, and enforcement gates to collaborate like an entire senior engineering department:

flowchart TD
    Project(["📱 Your Android Project Codebase"])
    
    subgraph Syndicate ["👥 The Multi-Role Engineering Syndicate"]
        CTO["1. Chief Technology Officer (CTO)<br/>Architecture & Tech Stack Governance"]
        PO["2. Product Owner (PO)<br/>5-State UI, Defensiveness & User Empathy"]
        UIUX["3. Lead UI/UX Architect<br/>Rule 36 & UI/UX Pro Max: Anti-AI-Slop"]
        Vitals["4. Android Vitals Principal<br/>Zero-Crash, TTID < 500ms, Baseline Profiles"]
        Memory["5. Low-Level Memory Specialist<br/>Stack vs Heap, 16KB Alignment, Value Classes"]
        SDK["6. Modular Core & SDK Architect<br/>Minimal Surface, :testing Fakes, ABI Defense"]
        QA["7. Staff QA & Test Architect<br/>TDD Red-Green, Turbine, Real Gradle Gate"]
        Security["8. Security & Cryptography Specialist<br/>Keystore, FLAG_SECURE, Vault Encryption"]
        Domain["9. Ubiquitous Language Guardian<br/>Rule 37, CONTEXT.md, 1-to-1 Domain Mapping"]
        Router["10. Chief Meta-Router (ask-cto)<br/>Instant Technical Symptom Routing"]
    end
    
    Syndicate <--> Project

📋 10-Role Responsibility & Governance Matrix

#Specialist / RoleCognitive Lens & Core ResponsibilityGoverned Rules & SkillsInvariants & Acceptance Standards
1Chief Technology Officer (CTO) & Principal ArchitectOverall architecture, Clean Architecture boundaries, technical debt governance, proactive technical advisory & constructive pushback (Anti-Yes-Man Protocol).rules/00-system-mandate.mdrules/01-architecture.mdrules/01-tech-stack.mdSingle Source of Truth (SSOT), strictly forbids presentation leaks into data layer, auto-extracts Living ADRs into docs/adr/.
2Product Owner (PO) & Product StrategistProduct viability, seamless user experience with zero dead-ends, conversion rate optimization.memory/06-user-preference-memory.mdskills/spec-driven-development5-State UI Matrix (Empty, Loading, Error, Content, Offline), minimum 48x48dp touch bounds, non-linear 200% font scaling defense.
3Lead UI/UX Architect & Product Design DirectorCompletely eliminates rigid AI aesthetic tropes (Anti-AI-Slop); enforces premium visual depth and human-grade craft.rules/36-ui-ux-design-standard.mdskills/ui-ux-pro-maxGate E27Subtle 0.5dp translucent borders, layered tonal surfaces, 8-pt grid visual rhythm, 3-tier typography, 0% neon purple glows or vibrating pills.
4Google Play Vitals & Zero-Crash Principal EngineerOptimizes Google Play Console vitals, eliminates silent crashes and background ANRs, accelerates cold startup.rules/27-app-quality-vitals.mdrules/19-build.mdskills/app-quality-vitalsCold start TTID < 500ms, TTFD < 800ms, 2-Tier Hybrid Splash Orchestration, Baseline Profiles, Zero-Crash & Zero-ANR invariants.
5Low-Level Memory & ART Runtime SpecialistStack vs Heap memory discipline, eliminates Garbage Collection (GC) churn in Composable render loops, optimizes 60/120 FPS.rules/26-stack-heap-memory.mdskills/stack-heap-memoryZero object allocations in render loops, mandatory @JvmInline value class for IDs, primitive State, 16KB memory page alignment.
6Principal Modular Core & SDK ArchitectAdvanced modular design, shared library isolation, host app protection from 3rd-party SDK crashes.rules/34-sdk-modular-architecture.mdskills/sdk-modular-engineeringGate E25All APIs internal by default, bundled :testing fakes, zero ContentProvider auto-init, binary backward compatibility (ABI).
7Staff QA & Test Automation ArchitectTest-Driven Development (TDD), eliminates flaky tests, asynchronous Flow stream testing, adversarial red-team audits.rules/20-testing.mdrules/42-adversarial-red-team-verification.mdskills/subagent-modesRed-Green-Refactor lifecycle, Flow testing with Turbine, DI graph validation (verify()), Gate E39 Mirror Self-Review & Gate E40 Bounded 3-Round QA.
8Senior Android Security & Cryptography SpecialistProtects sensitive data at rest and in transit, guards against reverse engineering, device abuse, and tampering.rules/17-security.mdrules/38-device-network-abuse-policy.mdGate E29Hardware Android Keystore, REQUIRE_SECURE_ENV container defense, FLAG_SECURE compliance, Zero DCL, Android 14+ FGS types, UIDT API.
9Domain Modeler & Ubiquitous Language GuardianUnifies business vocabulary between Product and Code, enforces self-documenting naming & zero magic literals, executes vertical slices.rules/37-ubiquitous-language-standard.mdskills/writing-plansGate E28Living domain dictionary (CONTEXT.md), 1-to-1 concept-to-symbol mapping, Gates E28.6–E28.10 coding conventions, Tracer-Bullet Vertical Slicing.
10Chief Engineering Router & Meta-OrchestratorInstant diagnosis of technical symptoms and precise routing to the exact specialist skills & quality gates.skills/ask-cto/SKILL.mdskills/dispatching-parallel-agentsRoutes symptoms (dropped FPS, memory leak, process death, offline sync) to the exact 1-2 skills and quality gates without context bloat.

💡 THE MANIFESTO: WHAT IS "ANTI-VIBE-CODING"?

In recent years, AI coding assistants have introduced a massive productivity paradox known as "Vibe Coding":

  • ❌ Guessing & Hallucination: Fabricating non-existent APIs, guessing business rules, or using deprecated methods without verifying official documentation.
  • ❌ Try-Catch Sprawl: Wrapping entire screens, ViewModels, or Composable functions in generic try-catch (e: Exception) blocks to hide underlying architectural flaws and crashes.
  • ❌ Fake Simulation & Delays: Inserting dummy delay(1000) calls with hardcoded mock lists to fake feature completion, leaving the developer with broken production code.
  • ❌ "AI-Slop" UI: Generating clichéd, uninspired interfaces (purple-on-dark neon glow, vibrating biscuit pill badges, nested cards 4-levels deep, zero accessibility bounds).
  • ❌ Android Lifecycle Ignorance: Dropping frames on unkeyed LazyColumn layouts, losing form input on screen rotation/Process Death, forgetting keyboard imePadding(), and ignoring the 16KB memory page alignment mandated by Android 15+.
  • ❌ False "Done" Claims: Declaring tasks "completely finished" without ever executing a real terminal compilation command or verifying Gradle test logs.
  • ❌ Dogmatic Library Imposition: Forcing arbitrary frameworks onto existing legacy codebases, breaking project architecture.

Anti-Vibe-Coding-Android-Engine transforms your AI agent from a fragile auto-complete into a Multi-Role Executive Engineering Syndicate. It provides a deterministic, 8-layer cognitive operating system governed by 46 Standards (00-45) and 40 automated Quality Gates (E1 to E40), adapting seamlessly to your existing project without dictating your tech stack.


⚖️ SIDE-BY-SIDE: VIBE CODING VS. ANTI-VIBE-CODING ENGINE

Engineering Aspect❌ The "Vibe Coding" AI Experience✅ Anti-Vibe-Coding-Android-Engine
Thinking RhythmImmediately spits out code on the first prompt based on intuition and guesswork.11-Engine Brain Pipeline: Clarifies ambiguity, computes confidence score (>=85% required), and plans before touching code.
Error HandlingParanoic try-catch sprawl across UI and ViewModel to sweep crashes under the rug.Structural Safety: Kotlin null safety, exhaustive when, and strict I/O boundary wrapping with AppResult<T>.
Feature DeliveryInjects delay(1000) and fake dummy lists, then claims "Feature works perfectly!".Stub/Placeholder Ban: Scans and forbids fake stubs. Binds real DataSources, repositories, and Room entities.
UI/UX DesignPurple-on-dark neon glowing cards, vibrating pills, unkeyed lists that stutter at 20 FPS.Rule 36 & UI/UX Pro Max: 0.5dp subtle borders, tonal surfaces, 8-pt grid, explicit key + contentType for 60/120 FPS.
Platform DefenseApp crashes on screen rotation, keyboard covers input fields, rejected on Android 15+ (16KB).19 Core Domains: SavedStateHandle process death survival, .imePadding(), 16KB memory alignment flags.
Verification Gate"I have completed all changes!" (Zero compilation performed, project fails to build).Adversarial Dev ↔ QA + Compiler Gate: Gate E39 Dev Mirror Self-Review, Gate E40 Blind-Context QA Audit, and real ./gradlew verification.
Tech Stack PolicyDictates "You must use library X", breaking existing code.Adaptive Stack HAL: Auto-detects Hilt vs Koin, Retrofit vs Ktor, and enforces safety on your stack.

🏛️ THE 8-TIER COGNITIVE OPERATING SYSTEM

Every prompt and feature request processed by the AI flows through an invariant 8-tier cognitive sequence:

flowchart TD
    User([User Request / Prompt]) --> Phase0[Phase 0: Workspace & Stack Auto-Discovery]
    Phase0 --> Brain[Tier 1: Brain Engine - 11 Cognitive Engines]
    Brain --> Memory[Tier 2: Memory Core - 6-Tier Architecture Knowledge]
    Memory --> HAL[Tier 3: Adaptive Stack HAL - Koin/Hilt & Ktor/Retrofit]
    HAL --> Workflow[Tier 4: Workflow Engine - 10 Disciplined Pipelines]
    Workflow --> Skills[Tier 5: Skills Engine - Specialized Blueprints]
    Skills --> Rules["Tier 6: Rules Engine - 46 Standards (00-45) & Gates E1-E40"]
    Rules --> PlanGate{Plan Approval Gate}
    PlanGate -->|User Explicit Approval| Implementation["Implementation: dev-builder + Gate E39 Mirror Self-Review"]
    Implementation --> Verification["Tier 7: Independent QA Audit (qa-enforcer + Gate E40 Bounded 3-Round Convergence)"]
    Verification --> Reflection["Tier 8: Reflection & Gate E1-E40 Audit"]
    Reflection --> MemoryUpdate[Memory & Living ADR Auto-Update]
    MemoryUpdate --> FinalDelivery([CTO-Grade Production Delivery])

1. The 11 Cognitive Engines (brain/)

The AI thinks before acting through a sequential cognitive pipeline:

  1. Context Engine (02-context-engine.md): Collects codebase architecture, Gradle catalogs, and constraints.
  2. Clarification Engine (03-clarification-engine.md): Identifies missing business logic; stops and clarifies instead of guessing.
  3. Assumption Engine (04-assumption-engine.md): Marks assumptions with reasons and impact; forbids inventing business requirements.
  4. Decision Engine (05-decision-engine.md): Chooses execution strategy (Clarify, Plan, Implement, Refactor, Debug).
  5. Confidence Engine (06-confidence-engine.md): Calculates internal confidence. If < 85%, halts execution to ask the user.
  6. Planning Engine (07-planning-engine.md): Designs Tracer-Bullet Vertical Slices before writing any code.
  7. Execution Engine (08-execution-engine.md): Coordinates disciplined, incremental coding.
  8. Reflection Engine (09-reflection-engine.md): Self-evaluates: Did we solve the real problem? Is there duplicate code?
  9. Enforcement Engine (21-enforcement-engine.md): Audits code against all 40 Quality Gates (E1 to E40).
  10. Initiative Engine (10-initiative-engine.md): Proactively highlights performance risks, memory leaks, and architectural bottlenecks.
  11. Learning Engine (11-learning-engine.md): Extracts reusable design patterns and lessons learned into long-term memory.

2. The 6-Tier Memory Core (memory/)

Prevents "AI dementia" by preserving stable knowledge across sessions:

  • Project Memory (01-project-memory.md): Active project profile, architecture boundaries, and module graph.
  • Session Memory (02-session-memory.md): Ephemeral conversation context and immediate working objectives.
  • Task Memory (03-task-memory.md): Living task state, dependencies, blockers, and completion criteria.
  • Decision Memory (04-decision-memory.md): Architecture Decision Records (ADRs) to never repeat past mistakes.
  • Pattern Memory (05-pattern-memory.md): Approved UI and architectural patterns verified within the codebase.
  • User Preference Memory (06-user-preference-memory.md): Developer collaboration style, Anti-AI-slop rules, no auto-commit.

3. ⚔️ Zero-Compromise Dev (dev-builder) ↔ QA (qa-enforcer) Adversarial Architecture (Rule 42 & Gates E39–E40)

To eliminate AI self-grading bias while preventing infinite ping-pong loops, the framework enforces a two-tier quality architecture:

  • Tier 1 — Mandatory 4-Step Dev Mirror Self-Review (Gate E39): Before handing off any implementation, dev-builder (enable_write_tools = true) must physically re-read 100% of modified files on disk (view_file / git diff), audit Draft 1 across the 5-Mirror Lenses (Minimalism, Self-Documenting Naming & Zero Magic Literals, Vitals/Safety, Architecture/UI, 6-Dimension Edge Cases), self-refactor Draft 1 into Clean Draft 2, and emit a 🪞 Dev Mirror Self-Review report block.
  • Tier 2 — Uncompromising Blind-Context qa-enforcer (Gate E40): Spawned with a hard read-only lock (enable_write_tools = false) in a 100% blind fresh context (receiving only Spec + Exact Diff + Raw Test Logs). Issues strictly binary verdicts (VERDICT: APPROVED or VERDICT: REJECTED) governed by the 4 Laws of Bounded 3-Round Convergence (Gate E40):
    1. Bounded 3-Round Cap & Circuit Breaker (Gate E40.1): MAX_QA_ROUNDS = 3. If Round 3 still fails, triggers 🛑 CIRCUIT BREAKER TRIGGERED: ARCHITECTURAL PIVOT REQUIRED and escalates to the user.
    2. Delta-Only Scope in Rounds 2–3 (Gate E40.2): Rounds 2 and 3 audit strictly the remediation delta and prior open clusters.
    3. Pattern-Clustered [CLUSTER-XX] Batching & Systemic Codebase Sweep (Gate E40.3): Identical root causes are grouped into a single [CLUSTER-XX] item and swept across all modified files in one pass.
    4. Zero Moving Goalposts (Gate E40.4): Untouched code that passed Round 1 cannot be newly flagged for subjective nitpicks in Rounds 2–3.

⚡ ADAPTIVE STACK ARCHITECTURE (HARDWARE ABSTRACTION LAYER)

The Anti-Vibe-Coding Engine is framework-agnostic. During Phase 0 (Workspace & Stack Auto-Discovery), it inspects your settings.gradle.kts, build.gradle.kts, or libs.versions.toml and binds the corresponding stack driver:

graph TD
    HAL[Adaptive Stack Hardware Abstraction Layer]
    
    subgraph DI [Dependency Injection Driver]
        Koin[Koin 4.x: singleOf / viewModelOf]
        Hilt[Hilt / Dagger: @HiltViewModel / @Inject]
    end
    
    subgraph Net [Networking Driver]
        Ktor[Ktor Client: CIO / OkHttp / ContentNegotiation]
        Retrofit[Retrofit + OkHttp: suspend / Moshi / Converters]
    end
    
    subgraph Nav [Navigation Driver]
        Nav3[Navigation 3: SnapshotStateList / Type-Safe NavKeys]
        NavCompose[Jetpack Navigation Compose: @Serializable Routes]
    end
    
    subgraph Storage [Storage Driver]
        Room[Room Database: SQLite WAL / MigrationTestHelper]
        SQLDelight[SQLDelight: Type-Safe SQL Drivers]
    end
    
    HAL --> DI
    HAL --> Net
    HAL --> Nav
    HAL --> Storage
Architectural LayerAdaptive Stack Drivers (Auto-Detected)Universal Cognitive Invariants (Mandatory)
UI ToolkitJetpack Compose / Compose MultiplatformMaterial 3 Design Tokens, 60/120 FPS, explicit key & contentType on Lazy Layouts.
AestheticsRule 36 (World-Class UI/UX)Subtle 0.5dp borders, tonal surfaces, 8-pt grid, anti-AI design clichés.
Dependency InjectionKoin 4.x OR Hilt / Dagger100% Constructor Injection. Zero manual instantiation in Presentation. Scope isolation.
NetworkingKtor Client OR Retrofit + OkHttpNon-blocking I/O (Dispatchers.IO), DTO-to-Domain mappers, structured AppResult<T> boundary.
NavigationNavigation 3 OR Jetpack Nav ComposeCompile-time type safety via Kotlin @Serializable routes. 400ms transition debounce.
Local StorageRoom Database OR SQLDelightSingle Source of Truth (SSOT), WAL mode enabled, zero data loss migration defense.
PresentationMVI / UDF (BaseViewModel<State, Intent, Effect>)Immutable StateFlow<UIState> exposed to UI. Pure UI intent emission.
Android VitalsApp Quality Vitals & Stack vs HeapZero-Crash, Zero-ANR, Zero-Leak, Startup TTID < 500ms, 16KB page alignment.

🛡️ THE 40 QUALITY GATES (E1 — E40) DEEP DIVE

Every piece of code generated or reviewed by the AI must pass all 40 automated quality gates defined in rules/21-enforcement-engine.md:

Gate IDCategoryNameEnforcement Invariant
Gate E1ArchitectureClean Architecture BoundaryDomain has zero dependencies on Data or Presentation.
Gate E2PresentationBaseViewModel InheritanceEvery ViewModel extends BaseViewModel<State, Intent, Effect>. Direct ViewModel() is forbidden.
Gate E3ConcurrencySafe Coroutine ScopeAll ViewModel coroutines use safeLaunch {}. Direct viewModelScope.launch is banned.
Gate E4PresentationPure MVI Intent & Modifier PurityExhaustive when (intent) without else ->; E4.6 enforces Root-only modifier and parameter order.
Gate E5PresentationStateFlow ImmutabilityPresentation exposes only read-only StateFlow<UIState>. MutableStateFlow is strictly private.
Gate E6NavigationType-Safe Route DefinitionInternal navigation routes MUST use @Serializable classes/objects. Raw string paths are banned.
Gate E7ArchitectureSingle Source of Truth (SSOT)UI observes local database. Network syncs to database; network never feeds UI directly.
Gate E8NavigationNavigation DebounceNavigation actions must debounce with a minimum 400ms threshold to prevent double-push.
Gate E9DataDTO Boundary IsolationDTOs live strictly in Data layer and map to pure Domain models before leaving Repository.
Gate E10DataError Boundary WrappingRemote/local operations must wrap exceptions in AppResult<T> or Result<T>.
Gate E11UIDesign System Token PurityZero hardcoded colors (Color(0x...)) or sizes (16.dp). 100% mapped to AppTheme tokens.
Gate E12UILazy Layout Key StabilityEvery item in LazyColumn/LazyRow MUST specify an explicit key = { it.id } and contentType.
Gate E13UIRecomposition StabilityExternal models annotated with @Immutable or @Stable. Lambdas memoized via remember.
Gate E14UIDark Theme CompatibilityDirect use of Color.White or Color.Black is forbidden. All surfaces adapt to theme mode.
Gate E15UIAccessibility BoundsAll clickable elements have a minimum touch target of 48x48dp (minimumInteractiveComponentSize).
Gate E16ConcurrencyMain-Thread PurityZero blocking calls or file/network I/O on Dispatchers.Main. All I/O runs on Dispatchers.IO.
Gate E17ConcurrencyCancellation PreservationNever swallow CancellationException in coroutine exception handling blocks.
Gate E18BackgroundWorkManager NonCancellableDeferrable background work uses WorkManager. Cleanup blocks run in NonCancellable.
Gate E19StorageDatabase WAL & MigrationsRoom database configured with WAL mode. fallbackToDestructiveMigration() forbidden in prod.
Gate E20SecurityHardware Keystore & SecurityTokens stored in EncryptedSharedPreferences / Keystore. FLAG_SECURE on payment screens.
Gate E21AuditEnforcement Pre-Delivery AuditFull self-audit across modified files. Zero violations tolerated before task handover.
Gate E22MinimalismAnti-Overengineering GateZero redundant wrappers or 1-line delegate UseCases. Ponytail minimalist standard.
Gate E23ResilienceThe 7 AI Blind Spots DefenseSavedStateHandle survives Process Death, .imePadding(), JIT permissions, zero fake delays.
Gate E24TestingModern Testing & QA GateStateFlow emissions tested via Turbine. Fakes preferred over fragile mocks.
Gate E25SDK/CoreModular Public Surface IsolationCore libraries use internal by default. Pluggable :testing fakes provided.
Gate E26ReleaseDB Migration & R8 ProGuard GateProGuard consumer-rules.pro synthesized. Release builds verified with R8 minification.
Gate E27AestheticWorld-Class UI/UX AuditZero purple neon AI clichés. Subtle 0.5dp borders, tonal depth, 8-pt grid, domain palette.
Gate E28DomainUbiquitous Language & Conventions1-to-1 CONTEXT.md mapping; E28.6–E28.10 Self-Documenting Naming, Zero Magic Literals, Affirmative Booleans, Named Args, internal/private Visibility.
Gate E29PolicyGoogle Play 2026–2027 12-Pillar Policy [#policy]Zero DCL, Android 14–16 FGS & 2027 Geofencing FGS Ban, UIDT API, REQUIRE_SECURE_ENV, FLAG_SECURE, WebView Guard, Web Account Deletion, AI Disclosure, Age-Gate, PickContact Mandate.
Gate E30Resilience8-Vector Hostile Runtime DefenseProcess Death <500KB bundle, Captive Portal check, 401 Mutex, Preserved Cancellation, 400ms Debounce, AtomicFile, 200% Font Scale, JIT Permissions.
Gate E31Testing6-Dimension Edge-Case Torture MatrixRejects happy-path-only tests; enforces Empty/Blank/Overflow, Multi-Tap <400ms, Concurrent Races, and Process Death tests.
Gate E32RefactoringSenior Refactoring Safety NetCharacterization tests & Green Baseline required before structural edits; enforces micro-step discipline.
Gate E33AgenticScientific Closed-Loop & Red-Team GateMinimal Failing Test before bugfix, Single-Variable Isolation, 1-to-1 Living Traceability, Adversarial Audit.
Gate E34Vitals 2026–2027Google Play 2026–2027 Core Vitals MandateCrash <0.05%, ANR <0.02%, 16KB Page Alignment, Target SDK 36, Zero Excessive WakeLocks, Bitmap RAM <50MB BG P90, R8 DEX Opt >=75%, Zero-Tap RestoreCredentials.
Gate E35InteropHybrid XML & Compose InteroperabilityDisposeOnViewTreeLifecycleDestroyed, ViewBinding nullification in onDestroyView, AndroidView onRelease.
Gate E36Modern XML100% Pure Modern XML ArchitectureListAdapter + DiffUtil, WindowInsetsCompat Edge-to-Edge, SafeArgs compile-time type safety.
Gate E37ContextGSD Wave Context IsolationFresh-context subagent wave execution for multi-file features; automatic milestone archiving.
Gate E38Pre-FlightZero-Tolerance Pre-Flight Vitals AuditBans verbal safety claims; enforces static Zero-Crash, Zero-ANR <5ms Main Thread, and Zero-Leak audit.
Gate E39Self-ReviewMandatory Dev Mirror Self-Reviewview_file physical read-back, 5-Mirror Lens self-refactor (Draft 1 -> Clean Draft 2), and 🪞 Dev Mirror Self-Review block.
Gate E40ConvergenceBounded 3-Round QA Convergence & Circuit BreakerMAX_QA_ROUNDS = 3, Pattern-Clustered [CLUSTER-XX] batching + Systemic Sweep, Delta-Only Rounds 2–3, Zero Moving Goalposts.

📱 THE 19 CORE MOBILE ENGINEERING DOMAINS

The engine embeds deep architectural defenses across the 19 core mobile domains defined in rules/31-mobile-engineering-core.md:

1. Lifecycle & State Management    7. Adaptive UI & Insets            13. Cross-Platform Bridge
2. Background Execution           8. Accessibility (a11y)            14. System Integrations (Camera/Sensors)
3. Permissions & Privacy           9. Localization & Theming          15. Security & Cryptography
4. Networking & Offline-First     10. Concurrency & Asynchronous Flow 16. Build & 16KB Release Engineering
5. Persistence & Migration        11. Performance & Android Vitals   17. Observability, Telemetry & Tracing
6. Navigation & Deep Links        12. Platform-Specific Behaviors    18. Testing & Automation Strategy
                                                                     19. Complete Failure Modeling

👁️ THE 7 AI BLIND SPOTS DEFENSE MATRIX

AI models typically introduce 7 recurring architectural bugs when generating Android code. The engine automatically monitors and blocks them:

  1. Lazy Layout Recomposition Lag: AI forgets key = { it.id } and contentType, causing Compose to recompose the entire list on every state change and dropping FPS to 20.
    Engine Fix: Gate E12 automatically checks and requires key on every Lazy list item.
  2. Duplicate Click Race Conditions: Fast double-tapping a button launches duplicate network requests or pushes duplicate screens onto the backstack.
    Engine Fix: Mandates ViewModel-level click locks and a 400ms navigation debounce.
  3. Loss of Form State on Rotation / Process Death: AI uses simple remember { mutableStateOf("") } which resets user inputs when the device rotates or Android OS reclaims memory.
    Engine Fix: Mandates rememberSaveable or hoisting state into SavedStateHandle.
  4. Keyboard Covering Input Fields: Bottom input fields become inaccessible when the soft keyboard appears.
    Engine Fix: Mandates Modifier.imePadding() with scrollable containers and BringIntoViewRequester.
  5. String Concatenation in UI: AI writes Text("$count items") or Text("$ " + price), breaking pluralization and localization rules.
    Engine Fix: Mandates pluralStringResource and localized string templates.
  6. Fake Simulations & Delays: AI adds delay(1000) and fake dummy lists when it doesn't know how to implement the real API.
    Engine Fix: Stub/Placeholder detection blocks fake delays and requires real DataSource bindings.
  7. 16KB Memory Page Alignment Blindness: Starting in Android 15, all native C/C++ libraries (.so) MUST be aligned to 16KB page boundaries or the app crashes immediately on launch.
    Engine Fix: Rule 19 & Rule 31 automatically enforce 16KB linker flags (-Wl,-z,max-page-size=16384) and audit 3rd-party dependencies.

📦 QUICKSTART INSTALLATION (IN 60 SECONDS)

Option 1: One-Line Automated Installer (Recommended)

Run this single command in your terminal (macOS / Linux / WSL):

curl -fsSL https://raw.githubusercontent.com/vinhvox/Anti-Vibe-Coding-Android-Engine/main/scripts/install.sh | bash

The installer automatically:

  1. Detects your operating system and shell environment.
  2. Installs or updates the engine into ~/.antigravity.
  3. Auto-configures Antigravity CLI (agy) by binding the System Mandate in ~/.gemini/GEMINI.md and symlinking skills into ~/.gemini/antigravity-cli/skills/.
  4. Grants execution permissions and runs an automated environment diagnostic.

⚡ Option 2: Fast One-Line Update (For Existing Users)

Update an existing ~/.antigravity installation and ~/.gemini/GEMINI.md mandate in seconds (100% non-interactive, preserves custom 01-project-memory.md, and automatically backs up ~/.antigravity/memory to ~/.antigravity_backups/):

  • Remote 1-Liner:
    curl -fsSL https://raw.githubusercontent.com/vinhvox/Anti-Vibe-Coding-Android-Engine/main/scripts/update.sh | bash
    
  • Local CLI Shortcut:
    ~/.antigravity/bin/agy-update
    # or: bash ~/.antigravity/scripts/update.sh
    
  • Check-Only Mode (Preview Incoming Updates Without Applying):
    ~/.antigravity/bin/agy-update --check
    

Option 3: Clone and Install Locally

git clone https://github.com/vinhvox/Anti-Vibe-Coding-Android-Engine.git
cd Anti-Vibe-Coding-Android-Engine
bash scripts/install.sh

Option 4: Initialize in an Existing Android Project

To bind the engine and project memory directly to any Android / KMP project repository:

cd /path/to/your/android-project
bash ~/.antigravity/scripts/init-project.sh

Option 5: Run Diagnostic Health Check

Verify that your development environment (JDK 17+, Android SDK, Git) is fully configured:

bash ~/.antigravity/scripts/doctor.sh

❓ ANTIGRAVITY CLI FAQ & TROUBLESHOOTING

Q: Why does the initial Antigravity CLI terminal screen look default?

Answer: The initial startup ASCII header ("Welcome to Antigravity CLI") is compiled statically into the agy binary. The engine's CTO Persona, 46 Standards (00-45), and 40 Quality Gates (E1–E40) live inside the AI's cognitive pipeline and are activated upon your very first message or tool call.

Q: How do I verify that the engine is active in Antigravity CLI?

Answer: Run agy in your terminal and test either of these:

  1. Type /skills — You will see custom skills listed (ask-cto, subagent-modes, ui-ux-pro-max, app-quality-vitals, etc.).
  2. Ask: "Who are you and what rules do you follow?" — The assistant will immediately identify as the CTO & Android Principal Architect enforcing the 46 Standards (00-45) and 40 Quality Gates (E1–E40).

🛠️ CUSTOMIZING FOR YOUR PROJECT

The engine is 100% plug-and-play. To customize it for a specific project repository:

  1. Run the project initializer inside your project's root:
    bash ~/.antigravity/scripts/init-project.sh
    
  2. Or copy the project memory template manually:
    mkdir -p .antigravity/memory
    cp templates/memory/project-memory.template.md .antigravity/memory/01-project-memory.md
    
  3. Fill in your application's details (Package name, active DI framework, database, and repository boundaries).
  4. Any AI coding assistant (Antigravity CLI, Cursor, Claude Code, Gemini CLI) will automatically discover your project's profile and enforce CTO-grade engineering.

🤖 AI COMPATIBILITY MATRIX

Anti-Vibe-Coding-Android-Engine is designed to empower any modern AI coding tool:

AI Tool / EnvironmentIntegration MethodSupported Features
Google Antigravity CLI (agy)Native custom framework (~/.antigravity)Full 8-tier cognitive pipeline, skills, subagents (dev-builder / qa-enforcer), 46 Standards & 40 Gates.
Cursor IDEInclude as .cursorrules or system prompt referenceFull 40 Quality Gates (E1–E40), Clean Architecture enforcement, Rule 36 UI/UX.
Claude Code (Anthropic)Load via CLAUDE.md linking to .context-digest.mdInvariant enforcement, Tracer-Bullet planning, compiler verification.
Gemini CLINative custom configurationBrain reasoning, adaptive HAL, zero-crash default invariant.
Windsurf / GitHub CopilotWorkspace rules referenceCompose stability, design system token purity, 19 core mobile domains.

🗂️ REPOSITORY DIRECTORY LAYOUT

Anti-Vibe-Coding-Android-Engine/
├── .github/
│   ├── workflows/lint-and-validate.yml  # GitHub Actions CI for path sanitization & syntax
│   └── ISSUE_TEMPLATE/                  # Standardized bug reports & feature requests
├── bin/
│   ├── agy-doctor                       # Fast CLI diagnostic shortcut
│   ├── agy-update                       # Fast CLI non-interactive updater shortcut
│   └── load-antigravity.py              # Context bootstrap utility
├── brain/                               # 11 Cognitive engines (Context, Clarification, Decision...)
│   ├── 00-master-cognition.md
│   ├── ...
│   └── 11-learning-engine.md
├── rules/                               # 46 Standards (00-45) & Gates E1 to E40
│   ├── 00-system-mandate.md             # Highest system priority mandate
│   ├── 01-tech-stack.md                 # Adaptive Stack Hardware Abstraction Layer (HAL)
│   ├── 09-networking.md                 # Ktor Client & Retrofit + OkHttp standards
│   ├── 12-dependency-injection.md       # Koin 4.x & Hilt/Dagger standards
│   ├── 21-enforcement-engine.md         # The 40 Quality Gates (E1 to E40)
│   ├── 27-app-quality-vitals.md         # 2026-2027 Google Play Core Vitals & 16KB alignment
│   ├── 31-mobile-engineering-core.md    # The 19 Core Mobile Engineering Domains
│   ├── 36-ui-ux-design-standard.md      # World-Class UI/UX & Anti-AI-Slop standard
│   ├── 37-ubiquitous-language-standard.md # Domain Dictionary & Self-Documenting Conventions
│   ├── 38-device-network-abuse-policy.md # Google Play 2026-2027 12-Pillar Policy Defense
│   ├── 42-adversarial-red-team-verification.md # Dev Mirror Self-Review & Bounded 3-Round QA
│   └── 45-apk-reverse-audit.md          # Automated APK/AAB/DEX Reverse Audit standard
├── workflow/                            # 10 Specialized engineering workflows
│   ├── 00-master-workflow.md            # Central orchestrator (Phases 0 to 8)
│   ├── 03-architecture-design.md        # Architecture design & driver binding
│   ├── 04-implementation-planning.md    # Tracer-Bullet Vertical Slicing planning
│   ├── 06-code-review.md                # Gates E1-E40 code review audit
│   └── 07-testing-validation.md         # Mandatory real terminal compiler execution
├── skills/                              # Specialized drop-in domain skills
│   ├── ask-cto/                         # Meta-router for instant technical diagnosis
│   ├── subagent-modes/                  # Zero-Compromise Dev (dev-builder) & QA (qa-enforcer)
│   ├── ui-ux-pro-max/                   # 240+ UI styles, 170+ palettes, 150+ font pairings
│   ├── app-quality-vitals/              # Google Play Vitals, Zero-Crash, TTID < 500ms
│   ├── stack-heap-memory/               # Stack vs Heap memory allocation discipline
│   ├── dex-optimization/                # R8 fullMode, Baseline Profiles & >=75% DEX Opt
│   ├── policy/                          # Instant #policy 12-Pillar Google Play compliance audit
│   ├── panda-ads-integration/           # High-ROAS AdMob & Mediation lifecycle architecture
│   ├── rea/ & reverse-engineer-anything/# Deep APK/DEX/SO binary & Smali reverse audit
│   ├── gsd-orchestrator/                # Context-isolated wave execution & milestone archiving
│   ├── ai-product-team/                 # Autonomous multi-role product & architecture studio
│   ├── screenshot-to-compose/           # Pixel-accurate Compose M3 synthesis from mockups
│   ├── ponytail-minimalist/             # Zero over-engineering & Kotlin idioms
│   ├── spec-driven-development/         # Tri-Artifact standard (Spec -> Plan -> Tasks)
│   └── systematic-debugging/            # 4-step scientific root cause analysis
├── memory/                              # 6-Tier memory architecture & generic profile
│   ├── 00-memory-core.md
│   └── 01-project-memory.md
├── templates/                           # Reusable project starter templates
│   └── memory/
│       ├── project-memory.template.md   # App identity & architecture template
│       └── user-preference.template.md  # Developer preferences template
├── scripts/                             # Automation scripts
│   ├── install.sh                       # Automated curl-to-bash installer
│   ├── update.sh                        # Fast non-interactive git delta updater & memory backup
│   ├── doctor.sh                        # Environment diagnostic health check
│   ├── rever_audit.py                   # Automated APK/AAB/DEX reverse security auditor
│   └── uninstall.sh                     # Safe uninstaller with backup archiving
├── .context-digest.md                   # Ultra-dense 5.4K token instant boot context
├── INDEX.md                             # Full cross-reference index
├── CONTRIBUTING.md                      # Open-source contribution guidelines
├── LICENSE                              # Apache License 2.0
├── README.md                            # Comprehensive project homepage
└── install.sh                           # Root installer convenience wrapper

🤝 CONTRIBUTING

We welcome contributions from Android architects, mobile engineers, and AI developers passionate about bringing true engineering rigor to AI coding assistants!

Please read our Contributing Guidelines to learn how to propose new Quality Gates, domain skills, or architectural drivers.


📄 LICENSE

This project is open-sourced under the Apache License 2.0 — see the LICENSE file for details.

↑↓ navigate openesc close