You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/litert_cli/SKILL.md
+24-49Lines changed: 24 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,66 +9,41 @@ This skill allows the agent to download, convert, quantize, run, benchmark, and
9
9
visualize LiteRT models using the `litert` command on desktop, device, or Google
10
10
Cloud.
11
11
12
-
## Setup & Prerequisites
12
+
## Setup & Prerequisites (Agent Auto-Setup Guide)
13
13
14
-
Before running any `litert` commands, an agent should ensure it is in a Python
15
-
virtual environment and `litert-cli` is installed.
14
+
When an agent invokes this skill, they **MUST** automatically verify the environment and install dependencies using the following logical workflow. Do not prompt the user; perform these checks and setup steps proactively:
16
15
17
-
### 1. Check/Create Virtual Environment
16
+
### Step 1. Check if `litert` is already installed
18
17
19
-
We highly recommend using **`uv`** (written in Rust) for extremely fast environment management and package installs.
18
+
First, check if the `litert` command-line tool is already available and
19
+
functioning: `bash litert --help` If this succeeds, you can **skip the remaining
20
+
setup steps** and proceed directly to executing commands!
20
21
21
-
**Option A: Use UV (Recommended - Super Fast):**
22
-
```bash
23
-
24
-
# Create a virtual environment with Python 3.13.
25
-
26
-
# We use --seed to pre-install pip, setuptools, and wheel inside the venv.
27
-
28
-
# This is critical to allow our CLI dynamic dependency auto-installers (deps.py) to function.
29
-
30
-
# When meeting dependency resolution error, try to set environment variable:
22
+
### Step 2. Verify or create a Python Virtual Environment
31
23
32
-
# UV_INDEX_URL=https://pypi.org/simple
24
+
If `litert` is not found, check if a Python virtual environment is currently active (e.g., by checking if the `$VIRTUAL_ENV` environment variable is set). If not, create and activate one:
0 commit comments