CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

converting-pytorch-to-litert

Converts PyTorch models (e.g. ResNet, timm, HuggingFace transformers) directly to LiteRT (.tflite) flatbuffer format. Use when converting PyTorch models to TFLite, setting up export environments, or troubleshooting torch-to-litert conversion bugs. Don't use for ONNX exports or converting existing TensorFlow models.

Quality

74%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Failed to scan

The risk profile of this skill

Fix and improve this skill with Tessl

tessl review fix ./SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

47%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body establishes sharp, current constraints (no ONNX, litert-torch over deprecated ai-edge-torch, Python 3.11 with a cited torchao error) but is functionally incomplete: it ends mid-code-fence at the dependency install, so the actual conversion procedure and any output validation are missing entirely. As written it tells an agent what environment to prepare but not how to perform the conversion.

Suggestions

Complete the truncated document: close the pip-install code fence and add the actual conversion steps (a minimal litert-torch export example, e.g. loading a model and writing the .tflite flatbuffer) so the core task is executable, which would lift both actionability and workflow clarity.

Add a validation checkpoint after conversion — such as loading the produced .tflite with ai-edge-litert to confirm it parses — so the workflow includes a feedback loop rather than ending at dependency installation.

Tighten conciseness by merging the duplicated ONNX prohibition ('Bypass ONNX entirely. Do not attempt to export the model to ONNX or use onnx2tf') into a single statement and trimming 'highly recommended for stability' phrasing.

DimensionReasoningScore

Conciseness

The body is mostly lean rules with a concrete install command, e.g. 'Do NOT use Python 3.14' with the exact torchao AttributeError, and only minor padding ('Bypass ONNX entirely. Do not attempt to export the model to ONNX or use onnx2tf' states the same rule twice). Not 5 because of that redundancy and the 'highly recommended for stability' phrasing; not 3 because there is no concept-explanation filler and every section carries operational information.

4 / 5

Actionability

Concrete guidance is minimal: one pip install command and a Python version rule, while the core task — actually invoking litert-torch to convert a model — is never shown in code or commands, and the document ends mid-code-fence after the install line. Matches the score-2 anchor ('high-level hints but missing the specific steps to execute'); a 3 would require at least partial/pseudocode guidance for the conversion step itself, which is absent.

2 / 5

Workflow Clarity

Numbered sections 1-4 imply a rough order (skip ONNX → use litert-torch → set up python3.11 → install deps) but the workflow stops at installation: there is no conversion step, no output validation (e.g., verifying the .tflite loads), and the final code block is unterminated. Fits the score-2 anchor ('rough sequence present but many gaps; validation absent'); not 3 because the sequence does not actually reach the operation it governs.

2 / 5

Progressive Disclosure

With no bundle files present and a short body, the numbered-section structure is appropriate and easy to scan, fitting the under-50-lines simple-skill guidance. Not 5 because the dangling, unclosed code fence and abrupt cutoff after '## 4. Dependencies' leave the document's structure visibly incomplete; not 3 because what exists is well-organized with no content that belongs in separate files.

4 / 5

Total

12

/

20

Passed

Description

87%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong third-person description with a concrete 'what', an explicit multi-trigger 'Use when' clause, and a sharp negative boundary against ONNX and TensorFlow paths. The only soft spot is trigger-term breadth — a few natural synonyms (e.g., 'export to tflite', 'edge deployment') are absent.

DimensionReasoningScore

Specificity

The description names a concrete action ('Converts PyTorch models ... directly to LiteRT (.tflite) flatbuffer format') with specific model families (ResNet, timm, HuggingFace transformers) and supporting tasks ('setting up export environments, or troubleshooting torch-to-litert conversion bugs'), leaving only minor gaps. Not 5 because it centers on a single conversion action rather than comprehensive coverage of multiple distinct operations; not 3 because it goes well beyond naming a domain with 1-2 generic actions.

4 / 5

Completeness

It explicitly answers both questions: 'what' ('Converts PyTorch models ... to LiteRT (.tflite) flatbuffer format') and 'when' via a concrete 'Use when converting PyTorch models to TFLite, setting up export environments, or troubleshooting torch-to-litert conversion bugs' clause, plus negative triggers. Matches the score-5 anchor exactly; a 4 would require the 'when' clause to be less explicit, which it is not.

5 / 5

Trigger Term Quality

Natural phrases users would say are well covered: 'converting PyTorch models to TFLite', 'torch-to-litert conversion bugs', 'ONNX exports', 'TensorFlow models', plus the '.tflite' extension. Not 5 because common synonyms and adjacent phrasings ('LiteRT conversion', 'edge deployment', 'export to tflite') are only partially represented; not 3 because keyword coverage clearly exceeds 'some relevant keywords'.

4 / 5

Distinctiveness Conflict Risk

A clear niche (PyTorch→LiteRT) with distinct triggers and an explicit exclusion boundary ('Don't use for ONNX exports or converting existing TensorFlow models') that actively prevents wrong-skill triggering. Matches the score-5 anchor; only minor theoretical overlap with generic export skills keeps it from being ambiguous, so 4 would undersell the explicit disambiguation.

5 / 5

Total

18

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

google-ai-edge/litert-torch

Path

SKILL.md

Reviewed

Table of Contents

Is this your skill?

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.