Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add google-ai-edge/litert-samples --skill litert-google-tensorgit clone --depth 1 https://github.com/google-ai-edge/litert-samplesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/google-ai-edge/litert-samples/litert-google-tensor)<a href="https://agentmods.dev/skills/google-ai-edge/litert-samples/litert-google-tensor"><img src="https://agentmods.dev/badge/skills/google-ai-edge/litert-samples/litert-google-tensor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/google-ai-edge/litert-samples/litert-google-tensor"><img src="https://agentmods.dev/badge/skills/google-ai-edge/litert-samples/litert-google-tensor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00260 | $0.15283 |
| Opus 5.5 | $0.00104 | $0.06113 |
| Sonnet 5.5 | $0.00052 | $0.03057 |
| Haiku 4.5 | $0.00026 | $0.01528 |
Grade D, and why
litert-google-tensor scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
Debian/Ubuntu `python3 -m venv` may need `sudo apt install python3-venv`. If Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
`adb shell ls -la <base>` and `adb shell rm -rf <base>/run-*`, where `<base>` How it starts
The opening of the file, as written. The whole thing — 796 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LiteRT on Google Tensor: compile, benchmark, package for apps
Three scriptable workflows for Pixel TPUs:
- Compile a plain
.tfliteinto a Google Tensor AOT-compiled.tflitewith the public LiteRT Python API (ai_edge_litert.aot) - either locally on Linuxx86_64or remotely on a Google Colab VM (--colabviagoogle-colab-cli) when the user is on macOS/Windows or lacks a Linux box. - Benchmark a compiled model on a connected Pixel with LiteRT's
benchmark_modelbinary, NPU-only, optionally next to a CPU baseline, including TPU tile time (pure TPU compute time) and TPU energy per inference, both from the Tensor runtime's hooks. - Package compiled builds for an Android (Gradle) app: a Google Play AI
pack written by LiteRT's own exporter (
ai_edge_litert.aot.ai_pack) from the files as they are, the Google Tensor NPU runtime as a feature module (from Google Maven), a Kotlin loader and a step-by-stepINTEGRATION.md. For an app that already ships Google Tensor builds, it prepares only the files to replace, under the app's own paths, with anUPDATE.md. When the user agrees, the agent applies the plan to the project (one approval, separate OKs for risky changes) and checks the app on a Pixel.
Everything runs synchronously in the user's terminal; the scripts never start
background processes and always clean up what they pushed to the phone or
allocated on Colab. All paths below are relative to this skill's directory
(SKILL_DIR).
SKILL_DIR/
versions.json # LiteRT versions the scripts use (single source)
scripts/check_compiled.py # is this .tflite already Tensor-compiled?
scripts/compile_model.py # AOT compile (local Linux x86_64 or --colab)
scripts/benchmark_on_device.py # adb push -> benchmark -> parse -> cleanup
scripts/package_ai_pack.py # compiled builds -> AI pack + Gradle modules for an app, or an update of one
scripts/install_and_verify.py # build the app, install it like Google Play, read the NPU/CPU result
templates/ # Gradle, Kotlin, INTEGRATION.md and UPDATE.md templates (package_ai_pack.py)
references/compile-flags.md # API, compiler flags, and --colab reference
references/benchmark-flags.md # benchmark_model flags, output, binaries
references/app-integration.md # packaging for an app: contents, delivery modes, checks
references/troubleshooting.md # symptom -> fix tables
references/contributing.md # maintainers: adopting a new LiteRT release
Every script supports --help and --dry-run (check_compiled.py is
read-only, so its --dry-run is a no-op) and is Python 3 standard library only.
compile_model.py imports LiteRT only for a local compile: its --help,
--dry-run, --print-install ([--colab]), and --colab runs work with any
local python3, while a local compile must use the virtualenv's interpreter
(<venv>/bin/python SKILL_DIR/scripts/compile_model.py ..., or activate the
venv first). package_ai_pack.py likewise imports LiteRT only for a real
run, which needs a Python with ai-edge-litert (the compile venv works; the
Beta SDK is not needed); its --check-project mode and the other scripts run
with any python3.
What ships with it
21 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- README.md 21 KB
- references/app-integration.md 28 KB
- references/benchmark-flags.md 36 KB
- references/compile-flags.md 13 KB
- references/contributing.md 18 KB
- references/troubleshooting.md 47 KB
- scripts/benchmark_on_device.py 78 KB runs code
- scripts/check_compiled.py 7.7 KB runs code
- scripts/compile_model.py 63 KB runs code
- scripts/install_and_verify.py 26 KB runs code
- scripts/package_ai_pack.py 141 KB runs code
- templates/ai_pack/build.gradle.kts 1.2 KB
- templates/google_tensor_runtime/build.gradle.kts 1.5 KB
- templates/google_tensor_runtime/src/main/AndroidManifest.xml 1.5 KB
- templates/INTEGRATION_quick_test.md 1.9 KB
- templates/INTEGRATION.md 7.5 KB
- templates/runtime_strings/build.gradle.kts 1.1 KB
- templates/runtime_strings/src/main/res/values/strings.xml 869 B
- templates/TensorModelLoader.kt 7.1 KB
- templates/UPDATE.md 1.9 KB
- versions.json 4.4 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 796 lines · 260 tokens per session scan D f8bbb30c8b34
litert-google-tensor is a skill published in the GitHub repository google-ai-edge/litert-samples (508 stars, last pushed 5d ago), licensed Apache-2.0. It adds 260 tokens to every session and 15,283 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-28.
litert-google-tensor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| litert-google-tensorgoogle-ai-edge/litert-samples | Skill | 508 | 5d ago | Apache-2.0 | D | 260 | Claude Code, Codex |
| android-adb-controlAbdullahMalik17/malikclaw | Skill | 22 | 3d ago | MIT | A | 22 | Claude Code, Codex |
| core-nfcTalissonVitorino/kmp-ios-skills | Skill | 16 | today | MIT | A | 247 | Claude Code, Codex |
| kotlin-expertpersonamanagmentlayer/pcl | Skill | 46 | 1mo ago | Apache-2.0 | A | 55 | Claude Code |
| android-expertpersonamanagmentlayer/pcl | Skill | 46 | 1mo ago | Apache-2.0 | A | 64 | Claude Code |
| wifiFoneClaw-AI/foneclaw-android | Skill | 29 | 4d ago | MIT | A | 54 | Claude Code, Codex |
| autofish-controlfelinics/Autofish | Skill | 121 | 3mo ago | Apache-2.0 | A | 42 | Claude Code, Codex |