← 返回 Skills 市场
melvynx

Codeline Cli

作者 Melvyn · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
301
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install codeline-cli
功能描述
Manage codeline via CLI - tools, products, orders, users, coupons. Use when user mentions 'codeline', 'products', 'orders', 'coupons', 'school platform', or...
使用说明 (SKILL.md)

codeline-cli

Setup

If codeline-cli is not installed, install it from GitHub:

npx api2cli install Melvynx/codeline-cli

If codeline-cli is not found, install and build it:

bun --version || curl -fsSL https://bun.sh/install | bash
npx api2cli bundle codeline
npx api2cli link codeline

api2cli link adds ~/.local/bin to PATH automatically. The CLI is available in the next command.

Always use --json flag when calling commands programmatically.

Authentication

codeline-cli auth set "your-token"
codeline-cli auth test

Resources

tools

Command Description
codeline-cli tools list --json List all available tools
codeline-cli tools run --tool list_products --json Run tool by name
codeline-cli tools run --tool get_user --params '{"email":"[email protected]"}' --json Run tool with JSON parameters
codeline-cli tools run --tool list_orders --params '{"limit":10}' --fields id,status --json Run tool with custom field output

products

Command Description
codeline-cli products list --json List all products
codeline-cli products list --fields id,name,price --json List with specific columns
codeline-cli products get --id abc123 --json Get product by ID

orders

Command Description
codeline-cli orders list --json List all orders
codeline-cli orders list --limit 10 --json List orders with max results
codeline-cli orders list --fields id,status,total --json List with custom columns
codeline-cli orders get --id abc123 --json Get order by ID

users

Command Description
codeline-cli users list --json List all users
codeline-cli users list --fields id,email,name --json List users with columns
codeline-cli users get --id abc123 --json Get user by ID
codeline-cli users get --id "[email protected]" --json Get user by email address

coupons

Command Description
codeline-cli coupons list --json List all coupons
codeline-cli coupons list --fields code,discount,type --json List with specific columns
codeline-cli coupons create --code SAVE20 --discount 20 --json Create percentage discount (20%)
codeline-cli coupons create --code FLAT10 --discount 10 --type fixed --json Create fixed amount coupon
codeline-cli coupons create --code LAUNCH --discount 50 --max-uses 100 --json Create with usage limit
codeline-cli coupons create --code SPECIAL --discount 15 --expires-at "2026-12-31" --json Create with expiration
codeline-cli coupons create --code PRODUCT5 --discount 5 --product-id xyz789 --json Create for specific product

Global Flags

All commands support: --json, --format \x3Ctext|json|csv|yaml>, --verbose, --no-color, --no-header

安全使用建议
This SKILL.md looks coherent for a Codeline CLI client, but take these precautions before installing or granting access: 1) Expect to provide a Codeline API token — the skill did not declare required env vars; only provide a token with minimal scope (read-only if possible). 2) The instructions run network installers (npx and a curl|bash installer for bun). Prefer to install and inspect codeline-cli and bun yourself rather than allowing an agent to run those commands automatically. 3) Review the GitHub repo (Melvynx/codeline-cli) for source trustworthiness and to confirm what the token allows (create/delete operations). 4) If you allow autonomous invocation, be aware the skill can run CLI commands that modify your Codeline data (create coupons, change users/orders); consider requiring manual confirmation or using a limited-scope token for safety.
功能分析
Type: OpenClaw Skill Name: codeline-cli Version: 0.1.0 The SKILL.md file contains setup instructions that direct the AI agent to perform high-risk operations, including a 'curl | bash' command to install the Bun runtime and an 'npx' command to install a CLI from a specific GitHub repository (Melvynx/codeline-cli). While these are common developer patterns, they introduce significant supply chain and remote code execution (RCE) risks within an autonomous agent environment. There is no explicit evidence of malicious intent like data exfiltration, but the automated execution of unverified remote scripts is a major security concern.
能力评估
Purpose & Capability
Name/description match the commands in SKILL.md (tools, products, orders, users, coupons). The CLI commands shown line up with the stated e‑commerce management purpose.
Instruction Scope
Instructions are focused on installing/using codeline-cli and running commands against the Codeline API. They do not instruct reading unrelated local files or exfiltrating arbitrary system data. They do expect an API token to be set via 'codeline-cli auth set'.
Install Mechanism
No formal install spec is declared, but SKILL.md tells the agent to run network installs: 'npx api2cli install Melvynx/codeline-cli' and 'curl -fsSL https://bun.sh/install | bash'. These are from recognizable hosts (npm via npx and bun.sh), but piping remote install scripts to shell and dynamic npm installs raise typical supply-chain risks and warrant manual review before allowing automated execution.
Credentials
SKILL.md expects an API token (shows 'codeline-cli auth set "your-token"') but the skill metadata lists no required environment variables or primary credential. This mismatch means the skill will need a credential to function but does not declare it up-front; users may be surprised when asked for a token. Verify what token scope is needed and avoid providing high‑privilege tokens.
Persistence & Privilege
The skill is user-invocable and not 'always' enabled. It can be invoked autonomously (default allowed), which combined with the ability to run installs and CLI commands means it could perform actions (create coupons, modify orders/users) without manual confirmation unless the agent's policy prevents it. No self-modifying or cross-skill config changes are present in the SKILL.md.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install codeline-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /codeline-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of codeline-cli. - Introduces CLI commands to manage Codeline tools, products, orders, users, and coupons. - Supports authentication and offers usage examples for each resource. - Provides flexible command options for listing, getting, and creating items (including coupons). - Includes global flags for output formatting and verbosity. - Detailed setup instructions provided for installation and linking.
元数据
Slug codeline-cli
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Codeline Cli 是什么?

Manage codeline via CLI - tools, products, orders, users, coupons. Use when user mentions 'codeline', 'products', 'orders', 'coupons', 'school platform', or... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 301 次。

如何安装 Codeline Cli?

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

Codeline Cli 是免费的吗?

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

Codeline Cli 支持哪些平台?

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

谁开发了 Codeline Cli?

由 Melvyn(@melvynx)开发并维护,当前版本 v0.1.0。

💬 留言讨论