Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Baidu Text Translate

v1.0.0

Translate text using Baidu AI Translation API via trans-cli with Baidu-specific language codes, API key management, error handling, and environment diagnostics.

3· 168·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for baidu-translate/baidu-text-translate.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Baidu Text Translate" (baidu-translate/baidu-text-translate) from ClawHub.
Skill page: https://clawhub.ai/baidu-translate/baidu-text-translate
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install baidu-text-translate

ClawHub CLI

Package manager switcher

npx clawhub@latest install baidu-text-translate
Security Scan
Capability signals
Requires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
high confidence
Purpose & Capability
The SKILL.md describes a translation helper that uses trans-cli to call Baidu's Translation API — that purpose is coherent with the described actions (trans text, trans doctor, trans config). However the top-level registry metadata/manifest claims no required binaries or config paths, while the SKILL.md metadata clearly declares the trans binary and an npm install for @bdtrans/trans-cli. This mismatch is unexpected and should be resolved by the author.
Instruction Scope
Runtime instructions are narrowly scoped to running trans-cli commands, parsing its JSON output, diagnosing via `trans doctor`, and reading/writing the trans-cli config (~/.trans-cli/config.json) or TRANS_API_KEY. The skill does not instruct collecting unrelated files or secrets beyond the API key and config file. It explicitly states the agent cannot obtain the key for the user.
Install Mechanism
SKILL.md contains metadata that suggests an npm install of @bdtrans/trans-cli (a public npm package) which is a reasonable install mechanism. But the registry-level install spec is reported as absent — another inconsistency. Installing from a public npm package is moderate-risk (verify package provenance and source); there are no high-risk direct-download URLs in the instructions.
!
Credentials
The skill requires an API key (TRANS_API_KEY or config file field api_key) to function per SKILL.md. The top-level manifest, however, lists no required env vars or config paths. The requested credential (Baidu API key) is proportionate to the stated purpose, but the manifest/metadata disagreement is a red flag: the skill may assume access to ~/.trans-cli/config.json and TRANS_API_KEY even though the registry doesn't declare them.
Persistence & Privilege
The skill does not request always:true or any special persistent privileges. It documents how to write the API key to the trans-cli config, but explicitly says the agent cannot perform the developer portal steps — no unexpected autonomous escalation is indicated.
What to consider before installing
This skill appears to do what it says (wrap trans-cli for Baidu translation), but there are inconsistencies between the SKILL.md and the registry manifest you should resolve before installing: 1) Confirm the trans binary requirement and whether the skill intends to install @bdtrans/trans-cli via npm. 2) Verify the npm package name (@bdtrans/trans-cli) and inspect its source repository and npm page for trustworthiness (owner, downloads, recent releases). 3) Be aware you must supply a Baidu TRANS_API_KEY or write it to ~/.trans-cli/config.json; check that file's permissions and contents before saving secrets there. 4) Prefer installing trans-cli yourself or reviewing the package code rather than blindly running the skill's install step. 5) If you need certainty, ask the skill author to fix the manifest so required env vars, bins, and install steps are declared consistently.

Like a lobster shell, security has layers — review code before you run it.

latestvk97er02sn7ctkyap9513hcfarh856v16
168downloads
3stars
1versions
Updated 4d ago
v1.0.0
MIT-0

baidu_text_translate — Agent Reference

trans text wraps the Baidu AI Translation API. Use --json — it separates success (stdout) from errors (stderr) and gives you structured fields to act on.

trans text --json "你好世界"                             # auto-detect → English
trans text --json --from zh --to jp "你好"               # explicit languages
trans text --json --to fra --reference "使用正式语气" "你好"  # custom instruction
echo "早上好" | trans text --json                        # stdin pipe

Environment Diagnosis

Before translating, verify the environment with trans doctor:

trans doctor           # human-readable output
trans doctor --json    # JSON output for Agent parsing

JSON contract (stdout):

{
  "checks": [
    {"name":"api_key",     "ok":true,  "source":"env/config", "message":"configured"},
    {"name":"connectivity","ok":true,  "latency_ms":243,       "message":"reachable"},
    {"name":"account",     "ok":true,                          "message":"valid"}
  ],
  "all_ok": true
}
Exitall_okMeaning
0trueAll checks passed — ready to translate
2falseAt least one check failed — inspect checks[].ok

When a check fails, help_url in the failing check points to the fix:

  • api_key.ok:false → set TRANS_API_KEY (see Configuration below)
  • account.ok:false → key invalid/expired or quota exhausted

Run trans doctor --json as the first step when diagnosing any trans-cli failure.


JSON Contract

Success (stdout, exit 0):

{"from":"zh","to":"en","source":"你好","translated":"Hello"}
FieldNote
fromAPI-detected language — may differ from --from auto
toTarget language
sourceOriginal input
translatedResult

Error (stderr, exit ≠ 0):

{"code":"AUTH_FAILED","message":"…","help_url":"https://…","raw_code":"52001"}

help_url and raw_code are omitted when not applicable.


Error Decision Tree

ExitcodeCauseAction
0OKUse translated
1INVALID_INPUTEmpty textFix input, don't retry
1INVALID_LANGUAGEWrong lang code (e.g. ja → should be jp)Fix --to/--from, see Language Codes below
2CONFIG_MISSINGTRANS_API_KEY not setStop — run trans doctor --json then guide user to set up API key
2AUTH_FAILEDKey invalid/expired (raw_code 52001–52003)Stop — run trans doctor --json then guide user to API key page
3QUOTA_EXCEEDEDBalance = 0Stop — guide user to recharge (see below)
3RATE_LIMITEDQPS exceededWait 1 s, retry once
3API_ERRORUnexpected API errorRetry once; if persists, report raw_code + message
4NETWORK_ERRORNo connectivityRetry twice with 2 s gap; if persists, report

Exit 2 requires human intervention — the agent cannot fix auth or config. Exit 1 means the agent passed bad arguments — fix the call, not the environment.


Language Codes

Baidu does not follow ISO 639. When unsure of a code, query locally:

trans languages                    # full list (200+ languages)
trans languages --filter jp        # search by code
trans languages --filter 日语      # search by name
trans languages --json             # JSON output for Agent parsing

The six most common ISO traps:

Baidu (correct)ISO (wrong for Baidu)Language
jpjaJapanese
korkoKorean
frafrFrench
spaesSpanish
araarArabic
vieviVietnamese

Other common codes that match ISO: zh cht en ru de pt it nl hi th Use auto for source-language auto-detection.


Configuration

Priority: --api-key flag > TRANS_API_KEY env > ~/.trans-cli/config.json

Config file field: api_key.

trans config init               # create empty config skeleton (~/.trans-cli/config.json)
trans config init --force       # overwrite existing config
trans config set api_key <KEY>  # write api_key (creates file if absent)

Getting an API Key (First-Time Setup)

Guide the user through these steps — the agent cannot do this on their behalf:

  1. Open the Baidu Translation Open Platform and sign in: https://fanyi-api.baidu.com/
  2. Go to Developer Center: https://fanyi-api.baidu.com/manage/developer
  3. Click "Use Now" → select "General Translation" → complete identity verification
  4. Get your API Key: https://fanyi-api.baidu.com/manage/apiKey
  5. Write to config: trans config set api_key <KEY> or set the environment variable TRANS_API_KEY
  6. Verify: trans doctor --jsonall_ok:true means success

Recharging (QUOTA_EXCEEDED)

Recharge portal: https://fanyi-api.baidu.com/manage/account Takes effect immediately — no restart needed. Auto-renewal can be enabled on the same page. Usage details: https://fanyi-api.baidu.com/api/trans/user/usage


Non-Obvious Behaviours

  • Multiple positional args join with a space: trans text hello world"hello world"
  • When both stdin and positional args are given, positional args win silently
  • The from field in JSON is the API's detected language, not the --from flag value
  • trans doctor checks are short-circuit: if api_key fails, connectivity/account are skipped
  • --reference is optional; omitting it sends no extra field to the API

Comments

Loading comments...