Skills/ClawHub/token-optimizer-skills

token-optimizer-skills@1.0.2

CAUTION· static only

Publisher claims: "Full token economy suite for OpenClaw agents. Audits context window usage (skills, history, tool outputs), then applies 5 creative strategies to reduce bloat..." Observed in sandbox: static analysis only — behavior not yet observed.

Registry ClawHubPublisher legiovi · publishing for 223 daysInstalls 892Last detonated 2 h ago

Coverage

Static only; nothing was run yet.

The label rests on the code, the instruction files and the publisher. The honeypot run replaces this verdict when it completes.

Is [email protected] safe to install?

KillerSkills analysed it statically (a sandbox run is pending) on 2026-11-24 and scored it 65/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Fake instruction boundary tag; Fake instruction boundary tag. Summary: static analysis only — behavior not yet observed.

Behavior trace

Queued for honeypot run · static analysis only
t+CategoryObserved action

This version has not been detonated yet. The score above counts behavior as unknown (50/100), so it cannot read Verified until the honeypot run completes and replaces this verdict.

Static findings

CRITICAL
Fake instruction boundary tagSKILL.md:277 · Fake instruction boundary tag….</context><task>Write Python fix.</task> ``` **Why it works:** XML tags like `<context>` are often single tokens in Gemma's 256k vocabulary. You save the tokens that w…Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
MEDIUM
Python subprocess execution detectedskill_runner.py:103 · Python subprocess execution detectedproc = subprocess.run(cmd, capture_output=True, text=True, timeout=60)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File type combined with upload actionskill_runner.py:14 · File type combined with upload action — agent may exfiltrate local data filespython skill_runner.py --tool distill_memory --args '{"--input": "history.json", "--output": "facts.json"}'Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
File type combined with upload actionSKILL.md:361 · File type combined with upload action — agent may exfiltrate local data files| Distill chat to JSON facts | `distill_memory.py` | `python distill_memory.py --input chat.json --output facts.json` |Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
File type combined with upload actionSKILL.md:133 · File type combined with upload action — agent may exfiltrate local data filespython distill_memory.py --input history.json --output facts.jsonFix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
Python subprocess execution detectedmemory_agent.py:142 · Python subprocess execution detectedproc = subprocess.run(cmd, capture_output=True, text=True, timeout=30)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File type combined with upload actionSKILL.md:136 · File type combined with upload action — agent may exfiltrate local data filespython distill_memory.py --input conversation.txt --output facts.jsonFix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
CRITICAL
Fake instruction boundary tagSKILL.md:274 · Fake instruction boundary tag<context>Issue in API.</context><task>Write Python fix.</task>Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
LOW
Fake instruction boundary tagtoken_optimizer_strategies.md:41 · Fake instruction boundary tag · informational: not an instruction file- **Action:** If the model is Gemma, rewrite prompt structures into XML blocks (`<context>`, `<task>`) because Gemma tokenizes these highly efficiently.Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
LOW
Fake instruction boundary taggemma-optimization.md:32 · Fake instruction boundary tag · informational: not an instruction fileXML tags like `<context>` are often single tokens in Gemma. It saves you from writing "The following section is the..." which costs 6+ tokens. Over a long prompt, this adds up to 10-20% savings.Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
LOW
Fake instruction boundary taggemma-optimization.md:28 · Fake instruction boundary tag · informational: not an instruction file<context>Issue happens in the API.</context><task>Write python script.</task>Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01

Cost to the agent

Instructions loaded
≈3,478 tok
1 file · 15 in bundle

Tokens estimated at four characters each. Skills load their instruction text when triggered; the figure is what that costs.

Known vulnerabilities

Vulnerability advisories (OSV) cover npm and PyPI packages; this registry has no advisory database.

What would make this Verified

15 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Unclaimed publisher≈ +8 on the totalClaim legiovi: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  2. Python subprocess execution detected≈ +2 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
  3. File type combined with upload action≈ +2 on the totalRemove the call, or declare the host in frontmatter and explain in the README what is sent and why.
Publish a new version to ClawHub, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim legioviPropose a patch to the maintainer