首页龙虾技能列表 › LogicX Skill Test — LogicX 技能测试

LogicX Skill Test — LogicX 技能测试

v0.0.8

LogicX 技能测试工具。

0· 206·0 当前·0 累计
by @qihangyang (Evan Yang)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/19
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
medium confidence
The skill's code, instructions, and required tools are consistent with its stated purpose (calling LogicX frontend proxy APIs); it stores a user token locally and uses a raw IP base URL which you should verify before trusting.
评估建议
This skill appears to do what it says: it uses the included bash scripts to call only the frontend proxy endpoints and stores a user token locally for authenticated calls. Before installing or using it, verify that the base URL/IP (http://43.139.104.95:8070) and the skill's publisher are trustworthy. Prefer the browser-binding flow (do not paste your password into chat unless you explicitly choose the password login fallback). Be aware the skill will create ~/.config/logicx/skill-state.json cont...
详细分析 ▾
用途与能力
Name/description match the implemented behavior: two bash scripts that call LogicX frontend proxy endpoints via curl. Required binaries (curl, bash) are appropriate. Everything requested and present (scripts, examples, API reference) aligns with a client/agent integration for LogicX.
指令范围
SKILL.md is specific: it confines calls to /api/proxy/* or /api/health, requires confirmation before mutating calls, and instructs use of the provided scripts only. The scripts implement the documented flows (browser binding, password fallback). Notable behavior: the scripts auto-save and load link state and user_token to/from ~/.config/logicx/skill-state.json and will export LOGICX_USER_TOKEN when the script runs; the skill instructs not to echo tokens and the scripts do not print tokens explicitly, but token persistence and use are active and worth noticing.
安装机制
No install/download step is specified (instruction-only plus included scripts). There is no network fetch/installation at runtime beyond contacting the LogicX API. This represents a low install risk.
凭证需求
The skill requests no declared environment variables but uses sensible defaults (LOGICX_BASE_URL, LOGICX_AGENT_SERVICE_KEY=openclaw-public) and requires LOGICX_USER_TOKEN for user-scoped calls (it will load this from the local state file if not set). This is proportionate to the described functionality, but the default LOGICX_BASE_URL is a raw IP (http://43.139.104.95:8070) rather than an official domain — you should verify the legitimacy of that host before using the skill.
持久化与权限
The skill persists state (link_code, install_id, user_token) to a file in the user's home (~/.config/logicx/skill-state.json) with 600 permissions. always:false and no system-wide modifications are present. Persisting a user token locally is expected for this auth flow but increases local persistence surface that you may want to manage (inspect, delete, revoke) yourself.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv0.0.82026/3/17

No major code or behavior changes; this update revises documentation and metadata. - Improved and clarified SKILL.md documentation for easier use and understanding. - Added homepage and OpenClaw metadata (emoji, requirements) in SKILL.md. - Simplified language, emphasizing default browser login and confirmation before sensitive actions. - Expanded error handling and flow explanations for onboarding and edge cases. - No changes detected in code or scripts; update is documentation-only.

● 无害

安装命令 点击复制

官方npx clawhub@latest install logicx-skill-test
镜像加速npx clawhub@latest install logicx-skill-test --registry https://cn.clawhub-mirror.com

技能文档

Interact with the LogicX platform on behalf of the user. All API calls go through the frontend proxy (/api/proxy/). Use scripts/logicx_api.sh for every request — never write ad-hoc curl commands.

Rules

  • 仅 call /api/proxy/ (或 /api/health). Never call backend /v1/* directly.
  • 默认 到 browser binding. 仅 ask 对于 email 和 密码 如果 用户 explicitly chooses 密码 登录.
  • Confirm 之前 任何 mutating call: payment/创建, payment/取消, auth/更改-密码, agent/unlink.
  • Never echo LOGICX_AGENT_SERVICE_KEYLOGICX_USER_TOKEN 在...中 满.
  • Never infer binding, membership, order, 或 payment state — 举报 API responses 仅.
  • Summarize results 在...中 natural language unless 用户 asks 对于 raw JSON.

Auth

No user token required:

  • 获取 /api/health
  • POST agent/链接/开始
  • POST agent/链接/status
  • POST agent/auth/登录

All other calls require both headers:

Authorization: Bearer 
X-LogicX-User-Token: 

The script handles headers automatically. Built-in defaults: LOGICX_BASE_URL=http://43.139.104.95:8070, LOGICX_AGENT_SERVICE_KEY=openclaw-public.

默认 Flow

  • 如果 connectivity uncertain, run 获取 /api/health.
  • 如果 用户 令牌 needed 和 无 exists, 开始 browser binding (see 下面).
  • 之后 登录, 验证 带有 获取 用户/.
  • Run requested action.

登录: Browser Binding (默认)

{baseDir}/scripts/logicx_api.sh POST agent/link/start '{"install_id":"openclaw-main"}'

The script auto-saves link_code and install_id to ~/.config/logicx/skill-state.json.

Reply to the user:

你可以点击以下链接登录并完成授权:

登录完成后请回来告诉我一声,比如直接回复"我登录好了"。

如果你不想跳转浏览器,也可以直接把用户名和密码告诉我,我可以直接帮你登录。

When the user says they have finished, run:

{baseDir}/scripts/check_link_status.sh

Interpret the response:

  • 待处理 — browser authorization 不 complete 尚未; ask 用户 到 confirm 和 try again
  • 已过期 — ask whether 到 restart binding
  • confirmed — 令牌 saved automatically; 验证 带有 获取 用户/

If the script fails with "No bind state found", restart with agent/link/start.

登录: 密码 (Fallback)

Only when the user explicitly chooses not to use the browser flow.

{baseDir}/scripts/logicx_api.sh POST agent/auth/login \
  '{"email":"user@example.com","password":"secret","install_id":"openclaw-main"}'

Rate limit: 5 attempts per 15 minutes per IP + email. On 429, tell the user to wait before retrying.

After success, verify:

{baseDir}/scripts/logicx_api.sh GET user/

Common Calls

# Health
{baseDir}/scripts/logicx_api.sh GET /api/health

# Account {baseDir}/scripts/logicx_api.sh GET user/

# Orders {baseDir}/scripts/logicx_api.sh GET payment/orders {baseDir}/scripts/logicx_api.sh GET payment/orders/ORDER_NO

# Payment (confirm before calling) {baseDir}/scripts/logicx_api.sh POST payment/create '{"plan":"pro_monthly","gateway":"mock"}' {baseDir}/scripts/logicx_api.sh POST payment/cancel '{"orderNo":"ORDER_NO"}'

# Password change (confirm before calling) {baseDir}/scripts/logicx_api.sh POST auth/change-password '{"currentPassword":"old","newPassword":"new-min-8"}'

# Unlink device (confirm before calling) {baseDir}/scripts/logicx_api.sh POST agent/unlink '{"install_id":"INSTALL_ID"}'

错误 Handling

  • Agent 服务 键 必填 / Unauthorized — backend 可能 不 有 已启用 公开 键 尚未; ask 用户 到 try again later 或 contact LogicX support
  • 429 在...上 登录 — rate limit hit; wait 15 minutes
  • Auth failure 在...上 用户-scoped calls — 清除 saved 令牌 和 restart binding

References

  • references/api-reference.md — 满 endpoint specs
  • examples.md — 示例 dialogues
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务