← 返回 Skills 市场
qihangyang

logicx-skill-test

作者 Evan Yang · GitHub ↗ · v0.0.8 · MIT-0
cross-platform ✓ 安全检测通过
257
总下载
0
收藏
0
当前安装
8
版本数
在 OpenClaw 中安装
/install logicx-skill-test
功能描述
Call LogicX frontend proxy APIs for health checks, browser binding, password login, user info, orders, payments, and account actions.
使用说明 (SKILL.md)

LogicX Skill

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

  • Only call /api/proxy/* (or /api/health). Never call backend /v1/* directly.
  • Default to browser binding. Only ask for email and password if the user explicitly chooses password login.
  • Confirm before any mutating call: payment/create, payment/cancel, auth/change-password, agent/unlink.
  • Never echo LOGICX_AGENT_SERVICE_KEY or LOGICX_USER_TOKEN in full.
  • Never infer binding, membership, order, or payment state — report API responses only.
  • Summarize results in natural language unless the user asks for raw JSON.

Auth

No user token required:

  • GET /api/health
  • POST agent/link/start
  • POST agent/link/status
  • POST agent/auth/login

All other calls require both headers:

Authorization: Bearer \x3CLOGICX_AGENT_SERVICE_KEY>
X-LogicX-User-Token: \x3CLOGICX_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.

Default Flow

  1. If connectivity is uncertain, run GET /api/health.
  2. If a user token is needed and none exists, start browser binding (see below).
  3. After login, verify with GET user/.
  4. Run the requested action.

Login: Browser Binding (Default)

{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:

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

\x3Clogin_url>

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

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

When the user says they have finished, run:

{baseDir}/scripts/check_link_status.sh

Interpret the response:

  • pending — browser authorization not complete yet; ask the user to confirm and try again
  • expired — ask whether to restart binding
  • confirmed — token saved automatically; verify with GET user/

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

Login: Password (Fallback)

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

{baseDir}/scripts/logicx_api.sh POST agent/auth/login \
  '{"email":"[email protected]","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"}'

Error Handling

  • Agent service key required / Unauthorized — the backend may not have enabled the public key yet; ask the user to try again later or contact LogicX support
  • 429 on login — rate limit hit; wait 15 minutes
  • Auth failure on user-scoped calls — clear the saved token and restart binding

References

  • references/api-reference.md — full endpoint specs
  • examples.md — example dialogues
安全使用建议
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 containing link state or a user_token (file permissions are set to 600). If you stop using the skill, remove that file and/or revoke the token in your LogicX account. If you need stronger assurance, run the scripts in an isolated environment or ask the publisher for an official domain and provenance.
功能分析
Type: OpenClaw Skill Name: logicx-skill-test Version: 0.0.8 The skill is a functional API client for the LogicX platform, facilitating account management, orders, and authentication. It uses bash scripts (logicx_api.sh, check_link_status.sh) to interact with a frontend proxy at http://43.139.104.95:8070 and manages session state locally in ~/.config/logicx/skill-state.json with appropriate file permissions (600). The instructions in SKILL.md include safety guidelines for the AI agent, such as requiring user confirmation for mutating actions and avoiding the disclosure of full authentication tokens.
能力评估
Purpose & Capability
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.
Instruction Scope
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.
Install Mechanism
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.
Credentials
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.
Persistence & Privilege
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install logicx-skill-test
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /logicx-skill-test 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.8
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.
v0.0.7
Version 0.0.7 - Clarified that `LOGICX_BASE_URL` default is `http://43.139.104.95:8070` and cannot be changed, updating language for emphasis and accuracy. - Updated the "Responsibilities" and "Runtime Config" sections to consistently specify the unchangeable base URL and reinforce usage instructions. - No code or file changes, content documentation only.
v0.0.6
- Changed the default LogicX API base URL from https://logicx.ai to http://43.139.104.95:8070; this value can no longer be changed. - Clarified in the runtime config that LOGICX_BASE_URL is fixed and cannot be overridden. - No functional logic changes outside of the base URL and its configurability. - All other usage, flow, and constraints remain the same.
v0.0.5
**This version simplifies the login and state management flow, replacing custom logic with a single check script and clearer runtime conventions.** - Added `scripts/check_link_status.sh` script for unified link status checking. - Removed `scripts/logicx_state.sh` and `references/configuration.md`; state logic is now managed via state files and `logicx_api.sh`. - Updated documentation to clarify the new default `openclaw-public` service key and streamlined state persistence. - State is now stored exclusively in a single JSON file, with clear instructions on file location and management. - Documented fallback and override options for custom installations. - No functional code/logic is included in markdown; all sensitive state remains external.
v0.0.4
**Adds per-user state file management for authentication and login flow.** - Added `scripts/logicx_state.sh` to manage and persist login state per user. - Updated usage rules: prefer `logicx_state.sh` for login state over model memory. - Login flows now use state script for binding, status checking, and password login. - Auth state is stored in recommended per-user JSON files, making login/session management more robust. - Expanded runtime and skill guidelines to reflect file-based state handling.
v0.0.3
- Added explicit rule: never ask the end user to provide LOGICX_AGENT_SERVICE_KEY in chat. - Clarified responsibilities for platform, skill, and runtime; emphasized that per-user auth state must be persisted outside the skill. - Expanded the default operating flow with persistence requirements (install_id, link_code, user_token, status). - Introduced a "Runtime State Contract" section with example state structure and update rules. - Made it clear that user tokens and link state are managed in runtime, not in skill memory.
v0.0.2
logicx-skill-test 0.0.2 - Clarified that OpenClaw must receive LOGICX_AGENT_SERVICE_KEY from skill environment or secret storage; it cannot derive or discover this value automatically. - Updated default operating flow and error handling: If an agent service key or auth error occurs before user login, advise the user to fix LOGICX_AGENT_SERVICE_KEY configuration and retry. - Changed browser login flow: now requires explicit user confirmation in chat after using the login link, instead of auto-polling. - Improved instructions and examples for both login methods, including updated reply styles and prompts.
v0.0.1
Initial release of logicx-skill. - Provides unified LogicX API proxy usage via frontend endpoints only. - Implements two login flows: preferred browser binding with auto-poll, and fallback agent password login. - Enforces strict separation of agent/user secrets and mandates ephemeral token storage. - Default operations include health checks, user info, orders, payments, and account actions via provided shell scripts. - Includes clear usage rules and security constraints for all API operations.
元数据
Slug logicx-skill-test
版本 0.0.8
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 8
常见问题

logicx-skill-test 是什么?

Call LogicX frontend proxy APIs for health checks, browser binding, password login, user info, orders, payments, and account actions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 257 次。

如何安装 logicx-skill-test?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install logicx-skill-test」即可一键安装,无需额外配置。

logicx-skill-test 是免费的吗?

是的,logicx-skill-test 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

logicx-skill-test 支持哪些平台?

logicx-skill-test 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 logicx-skill-test?

由 Evan Yang(@qihangyang)开发并维护,当前版本 v0.0.8。

💬 留言讨论