← 返回 Skills 市场
sprintmint

cpbox-suggest

作者 springmint · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
167
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cpbox-suggest
功能描述
USE FOR query autocomplete/suggestions. Fast (<100ms). Returns suggested queries as user types. Supports rich suggestions with entity info. Typo-resilient.
使用说明 (SKILL.md)

Suggest / Autocomplete

Paid Suggest proxy via x402 pay-per-use (HTTP 402).

Prerequisites: This skill requires x402-payment. Complete the setup steps before first use.

Security: Documentation only — no executable code or credentials. Wallet/keys stay on your machine; never stored here.

Service URLs

Role Domain
API Provider https://www.cpbox.io
Facilitator https://www.cppay.finance

Endpoint (Agent Interface)

GET /api/x402/suggest

Payment Flow (x402 Protocol)

  1. First request -> 402 Payment Required with requirements JSON
  2. Sign & retry with PAYMENT-SIGNATURE -> result JSON

With @springmint/x402-payment or x402-sdk-go, payment is automatic.

Quick Start (cURL)

Basic Suggestions

curl -s "https://www.cpbox.io/api/x402/suggest?q=how+to+" \
  -H "Accept: application/json"

With All Parameters

curl -s "https://www.cpbox.io/api/x402/suggest" \
  -H "Accept: application/json" \
  -G \
  --data-urlencode "q=albert" \
  --data-urlencode "country=US" \
  --data-urlencode "lang=en" \
  --data-urlencode "count=10" \
  --data-urlencode "rich=true"

Using with x402-payment

npx @springmint/x402-payment \
  --url "https://www.cpbox.io/api/x402/suggest?q=albert&rich=true&count=10" \
  --method GET

Optional Headers:

  • Accept-Encoding: gzip — Enable response compression

Parameters

Parameter Type Required Default Description
q string Yes Suggest search query (1-400 chars, max 50 words)
lang string No en Language preference (2+ char language code, e.g. fr, de, zh-hans)
country string No US Search country (2-letter country code or ALL)
count int No 5 Number of suggestions (1-20). Actual results may be fewer
rich bool No false Enhance with entity info (title, description, image). Paid Search plan required

Response Fields

Field Type Description
type string Always "suggest"
query.original string The original suggest search query
results array List of suggestions (may be empty)
results[].query string Suggested query completion
results[].is_entity bool? Whether the suggested enriched query is an entity (rich only)
results[].title string? The suggested query enriched title (rich only)
results[].description string? The suggested query enriched description (rich only)
results[].img string? The suggested query enriched image URL (rich only)

Fields with null values are excluded from the response. Non-rich results contain only the query field.

Rich Response Example (rich=true)

{
  "type": "suggest",
  "query": { "original": "albert" },
  "results": [
    {
      "query": "albert einstein",
      "is_entity": true,
      "title": "Albert Einstein",
      "description": "German-born theoretical physicist",
      "img": "https://imgs.search.provider/..."
    },
    { "query": "albert einstein quotes", "is_entity": false }
  ]
}

Use Cases

  • Search-as-you-type UI: Real-time autocomplete dropdown. Debounce 150-300ms.
  • Query refinement for RAG: Expand partial/ambiguous queries before calling web-search or llm-context.
  • Entity detection: Use rich=true to detect entities with title, description, and image for preview cards.
  • Typo-tolerant input: Get clean suggestions from misspelled input without separate spellcheck.

Notes

  • Latency: Designed for \x3C100ms response times
  • Country/lang: Hints for suggestion relevance, not strict filters
  • Typo handling: Suggestions handle common typos without separate spellcheck
安全使用建议
This skill is functionally coherent for autocomplete/suggestions and doesn't request credentials, but it directs you to an external payment flow that uses third‑party SDKs (the npx command) and an external facilitator domain. Before installing or running it: 1) verify the reputations of https://www.cpbox.io and https://www.cppay.finance and the @springmint package on npm; 2) do not run npx commands unless you trust and have reviewed the package (npx downloads and executes remote code); 3) keep any signing keys in a secure, isolated wallet and consider using a dedicated low-value key for testing; 4) if you want stronger assurance, ask the publisher for a reproducible install (pinned package version or vendor-provided binary) and audit the x402 SDK source code before using the automatic payment flow. If you cannot confirm the SDK/package origins, prefer manual payment signing outside of automated agent execution.
功能分析
Type: OpenClaw Skill Name: cpbox-suggest Version: 1.0.0 The skill bundle 'cpbox-suggest' is a documentation-only package (SKILL.md) that provides instructions for an AI agent to use a search suggestion API hosted at cpbox.io. It describes a pay-per-use mechanism (x402 protocol) and suggests using a specific npm package (@springmint/x402-payment) to facilitate transactions. There is no executable code within the bundle, and the instructions are strictly aligned with the stated purpose of providing autocomplete and entity suggestion services.
能力评估
Purpose & Capability
Name, description, endpoints, parameters, and response fields all align with a query-autocomplete/suggest service. No unrelated environment variables, binaries, or config paths are declared.
Instruction Scope
Most instructions stay within the suggest/HTTP API scope (GET to https://www.cpbox.io/api/x402/suggest). However the doc recommends using third‑party SDKs (e.g., npx @springmint/x402-payment or x402-sdk-go) to perform payment signing — this instructs the operator/agent to execute code fetched from npm or other tooling and to perform cryptographic signing steps, which widens scope beyond simple HTTP queries.
Install Mechanism
There is no formal install spec (instruction-only), which is low risk. But the Quick Start suggests using npx to run @springmint/x402-payment; npx dynamically downloads and executes code from the npm registry at runtime, which can be a vector for executing remote code if followed. The skill itself does not ship code, but its recommended workflow depends on remote packages.
Credentials
The skill declares no required env vars or credentials, which matches a public suggest API. However the x402 payment flow implies use of a local wallet/key to sign requests; those keys are not declared or explained by the skill. The SKILL.md states 'wallet/keys stay on your machine', but does not describe how signing is performed or what local access is needed, so users must ensure signing is done safely (e.g., with a dedicated wallet) and not exfiltrated.
Persistence & Privilege
No always:true, no requested persistent system presence, and no instructions to modify other skills or system-wide settings. The skill is user-invocable and does not ask to enable itself permanently.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cpbox-suggest
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cpbox-suggest 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial publish
元数据
Slug cpbox-suggest
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

cpbox-suggest 是什么?

USE FOR query autocomplete/suggestions. Fast (<100ms). Returns suggested queries as user types. Supports rich suggestions with entity info. Typo-resilient. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 167 次。

如何安装 cpbox-suggest?

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

cpbox-suggest 是免费的吗?

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

cpbox-suggest 支持哪些平台?

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

谁开发了 cpbox-suggest?

由 springmint(@sprintmint)开发并维护,当前版本 v1.0.0。

💬 留言讨论