Guides the agent to orchestrate and implement a standalone LiteRT-LM Android demo app with backend selection and multi-modality support using Bazel 9. Use when asked to create a demo app for LiteRT-LM on Android. Don't use for general Android app development without LiteRT-LM, or for building the core library alone without an app.
70
85%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Critical
Do not install without reviewing
This skill ensures that the generated LiteRT-LM Android demo app captures all requirements on the first pass, strictly follows platform constraints, and implements the user interface, state machine, and feature specifications.
task.md to detect any
loss of context or deviation from plan, and for ensuring strict adherence to
all listed compliance items. Do not create duplicate subagents during context
refreshes.Pass item MUST list a direct markdown link to
the live workspace file with exact starting and ending line numbers in the
Evidence column, or print the exact terminal log block. Blank or generic
claims will be flagged as an immediate compliance failure.Pending or Fail status, or if any detailed
checkbox [ ] is left unchecked. Every single row and checkbox MUST be
verified and marked Pass or checked [x] with active evidence.task.md during Step 1
serve as your SOLE, absolute plan. You MUST follow the tasks inside task.md
sequentially step-by-step and track progress exclusively by checking off its
checkboxes.references/*.md) ahead of time. Load and study each guide sheet strictly
just-in-time as required by the active execution step. When loading or copying
these files, resolve their path dynamically relative to where this SKILL.md
is stored to prevent directory drift errors.SKILL.md or task.md. You are NOT allowed
to skip steps, jump ahead, or reorder operations (such as pulling dependencies
early) based on active developer preference, unless you first ask for and
receive explicit approval from the user.WORKSPACE is banned. Compile
exclusively via Bzlmod using MODULE.bazel for all extensions.references/*.md files under an
Environment, Tools & Reference Paths section in the top of task.md
during Step 1 (before your execution Cwd changes). For all subsequent
steps, you MUST use these recorded absolute paths for all view, read, and
copy operations.LiteRT-LM repository, or
intend to build the project from source.references/dependency_source_build.md
for instructions on how to obtain the LiteRT-LM shared library and Kotlin
interface.references/dependency_maven_integration.md for instructions on how to obtain
the LiteRT-LM shared library and Kotlin interface.Create task.md Checklist: Create a task.md file to track progress and constraints.
task.md as a checklist. Do not summarize or omit any steps.SKILL.md verbatim
into the top of task.md to ensure they remain persistently active
constraints in file system memory.task.md directing you to perform the following actions before
beginning any next step (x.) or sub-step (x.y), or if the active
history is compacted:
SKILL.md file from line 1 to the end.references/ui_layout_and_state.md before
initiating 3.2).references/*.md file listed in this
skill from your starting trigger directory, and record them under an
Environment, Tools & Reference Paths section in the top of task.md.Gather Inputs & Initial Environment Setup:
[ROOT]/android_sdk). Use the sdkmanager to install required
platforms, build tools, and strictly NDK version 27.3.13750724, ensuring
all licenses are accepted.https://huggingface.co/litert-community/gemma-4-E2B-it-litert-lm/tree/main,
and ask if they want to change it.Implement App UI and State (Excluding Inference):
references/ui_layout_and_state.md and follow the instructions inside to create the app UI and state machine (everything except actual inference calls).compliance_review_ui.md by copying references/compliance_checklist_ui.md, and initialize all statuses to 'Pending'.compliance_review_ui.md in place and save the file with detailed results and evidence (citing line-numbered links).Obtain LiteRT-LM Shared Library and Kotlin Interface:
references/dependency_source_build.md or references/dependency_maven_integration.md).compliance_review_dependency.md by copying references/compliance_checklist_dependency.md, and initialize all statuses to 'Pending'.compliance_review_dependency.md in place and save the file with detailed results and evidence (citing line-numbered links).Full Implementation with LiteRT-LM Integration:
references/inference_implementation.md to understand the specific rules for integrating LiteRT-LM.compliance_review_inference.md by copying references/compliance_checklist_inference.md, and initialize all statuses to 'Pending'.compliance_review_inference.md in place and save the file with detailed results and evidence (citing line-numbered links).Verification and Compliance Audit:
compliance_review_ui.md,
compliance_review_dependency.md, and
compliance_review_inference.md) sequentially one by one to fully
rehydrate them in your active context, re-running full verification checks
to ensure subsequent changes in later steps did not break earlier passes.
Update your evidence blocks with new integrated code files and line
numbers.Pending or Fail status in
any of the reports. All applicable blocks MUST be signed off as Pass and
checkboxes ticked [x], as required by No Pending Items Constraint.Deploy:
userdebug build of Android to allow installation of debug APKs or
disabling package verification.8096ebb
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.