Xpersona
A

aitubiao-chart

CLAWHUB · Unverified

AI智能图表生成。根据用户数据生成图表配置并创建可视化项目。当用户想要创建图表、可视化数据时使用,触发词包括"创建图表"、"做个图表"、"可视化数据"、"用表格生成图表"、"create chart"、"make a chart"、"visualize data"等。 Skill: aitubiao-chart Owner: aitubiao Summary: AI智能图表生成。根据用户数据生成图表配置并创建可视化项目。当用户想要创建图表、可视化数据时使用,触发词包括"创建图表"、"做个图表"、"可视化数据"、"用表格生成图表"、"create chart"、"make a chart"、"visualize data"等。 Tags: latest:1.1.5 Version history: v1.1.5 | 2026-04-23T08:53:55.677Z | user Version 1.1.5 changes: - Added new bash CLI script (scripts/aitubiao-cli.sh) to standardize all API and credential operations. - Updated all API access and crede

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17bfd6atd8sje15j8ehx6j4bn83zz7g:aitubiao-ai-chart
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-aitubiao-aitubiao-ai-chart/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

44,106 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: aitubiao-chart
description: AI智能图表生成。根据用户数据生成图表配置并创建可视化项目。当用户想要创建图表、可视化数据时使用,触发词包括"创建图表"、"做个图表"、"可视化数据"、"用表格生成图表"、"create chart"、"make a chart"、"visualize data"等。
license: MIT
compatibility: Requires network access to api.aitubiao.com, Bash shell, curl, and jq
metadata:
  author: aitubiao
  version: "1.1.5"
allowed-tools: Bash Read
---

# AI 智能图表生成

根据用户提供的数据,生成图表配置并创建可视化项目。

## 强制规则

**以下规则必须严格执行,不得跳过、变通或使用替代方案:**

1. **认证优先**:在执行任何操作之前,必须先检查凭证状态。认证未通过时,禁止执行任何后续步骤。
2. **按顺序执行**:工作流程的 5 个步骤必须按顺序执行,禁止跳步。
3. **费用确认前禁止调用生成接口**:必须成功查询配额、计算费用、并获得用户明确确认后,才能调用创建接口。
4. **仅通过 API 创建图表**:禁止使用本地工具(Chart.js、ECharts、matplotlib、D3.js、Plotly 等)生成图表。无论 API 因何种原因失败,都**绝对禁止使用本地工具**,没有任何例外。API 失败时正确做法是停止并告知用户,不是寻找替代方案。
5. **401/403 立即停止**:任何步骤中收到 HTTP 401/403(CLI exit 1),立即停止并引导用户前往 [API Key 管理页面](https://app.aitubiao.com/setting/api-keys) 检查或重新创建 API Key。401/403 不是超时,禁止重试。
6. **超时/500 不自动重试创建接口**:创建接口不可重试(可能重复扣费)。告知用户失败原因,由用户决定是否重新发起。

**⚠️ 以下想法是错误的,如果你发现自己在这样想,请立即停止:**
- ❌ "API 不可用,我可以用本地工具生成图表作为替代" → 违反规则 4
- ❌ "至少让用户看到一些可视化结果" → 本技能唯一输出方式是 aitubiao API
- ❌ "401 可能是暂时性的,重试几次" → 401 是认证失败,重试无意义,按规则 5 处理

## 认证

在调用任何 API 之前,先检查凭证状态。

### 检查凭证

```bash
bash scripts/aitubiao-cli.sh check-auth
```

- **Exit 0** → 认证通过
- **Exit 1** → 凭证问题,按 stderr 提示处理:
  - 文件不存在/API_KEY 为空 → 执行下方"配置凭证"流程
  - API_KEY 格式无效 → 告知用户"当前 API Key 已失效,请前往 [API Key 管理页面](https://app.aitubiao.com/setting/api-keys) 重新创建一个 API Key"
  - BASE_URL 与当前技能包环境不一致 → 说明凭证中残留了旧环境地址;向用户索要当前仍有效的 API Key,并执行下方"配置凭证"流程重写凭证(通常不需要重新创建 API Key)

### 配置凭证

1. 向用户索要 API Key(格式:`sk_v1_...`)。如果没有,引导用户前往 [API Key 管理页面](https://app.aitubiao.com/setting/api-keys) 创建一个新的 API Key,然后将创建好的 Key 粘贴回来。
2. 保存凭证:
```bash
bash scripts/aitubiao-cli.sh auth <用户提供的key>
```
3. 验证:再次运行 `bash scripts/aitubiao-cli.sh check-auth` 确认配置成功。

凭证保存在 `~/.aitubiao/credentials`,跨会话持久生效。

## Windows / Git Bash 注意事项(仅 Windows 用户需要关注)

在 Windows 上通过 Git Bash 运行本 CLI 时,**禁止把含中文等非 ASCII 字符的 JSON 直接写在 heredoc 里**——MSYS 会按 Windows 系统代码页(常为 GBK/CP936)转换 argv 字节,传到后端就是乱码。

正确做法:先用 Write 工具把完整 UTF-8 JSON 写到一个临时文件,然后用 `--body-file` 让 CLI 从文件读取(绕过任何 argv/控制台编码转换):

```bash
# 第一步:用 Write 工具把请求体写到 /tmp/aitubiao-payload.json(内容必须是 UTF-8)
# 第二步:用 --body-file 调用 CLI
bash scripts/aitubiao-cli.sh --body-file /tmp/aitubiao-payload.json create-chart
```

`--body-file` 可用于所有读取 stdin JSON 的命令:`create-chart` / `create-ppt` / `create-sankey` / `create-3d` / `download-project`。CLI 会自动剥离 UTF-8 BOM 和 CRLF。

macOS / Linux 上无需改动,仍然可以使用 heredoc。

## 工作流程

**每一步必须在前一步完成后才能开始。禁止跳步。**

### 第一步:认证(前置条件:无)

运行检查凭证流程。认证未通过时按"认证"章节流程处理。

**认证未通过时,停止。不要读取用户数据,不要做任何分析。**

### 第二步:识别和确认数据(前置条件:第一步认证通过)

判断用户如何提供数据:

- **直接粘贴文本**:自行解析为 Markdown 表格。
- **本地文件**(CSV/TXT):用 Read 工具读取,然后解析为 Markdown 表格。
- **Excel 文件**(.xlsx/.xls):使用 xlsx skill 或 Read 工具读取,禁止手动编写 Python 脚本解析 XML。

向用户展示解析后的 Markdown 表格,并询问:
- 数据是否正确?
- 有没有特别的要求?

### 第三步:检查配额并确认费用(前置条件:第二步数据已确认)

在创建图表前,**必须**检查用户的 AI贝余额和项目配额,并向用户确认费用后才能继续。

#### 3.1 查询配额

```bash
bash scripts/aitubiao-cli.sh quota --skill chart
``

_meta.json

{
  "ownerId": "kn7d874ecrqhxc83h3aejwz0t983nh12",
  "slug": "aitubiao-ai-chart",
  "version": "1.1.5",
  "publishedAt": 1776934435677
}

skill-card.md

## Description: <br>
AI智能图表生成:根据用户提供的数据生成图表配置,并通过 aitubiao API 创建可视化项目。 <br>

This skill is ready for commercial/non-commercial use. <br>

## Publisher: <br>
[aitubiao](https://clawhub.ai/user/aitubiao) <br>

### License/Terms of Use: <br>
MIT-0 <br>


## Use Case: <br>
External users and developers use this skill to turn provided tables or files into aitubiao chart projects after authentication, quota checking, and user cost confirmation. <br>

### Deployment Geography for Use: <br>
Global <br>

## Known Risks and Mitigations: <br>
Risk: The skill stores a persistent aitubiao API key in ~/.aitubiao/credentials and the CLI loads that file as shell code. <br>
Mitigation: Use only a revocable API key from the legitimate aitubiao API-key page, inspect or delete ~/.aitubiao/credentials after use, and rotate the key if it may have been exposed or tampered with. <br>
Risk: The API key can query quota and create billable projects through the aitubiao service. <br>
Mitigation: Confirm quota and cost before creating projects, and install the skill only when the user trusts aitubiao with submitted data and billing actions. <br>


## Reference(s): <br>
- [ClawHub skill page](https://clawhub.ai/aitubiao/aitubiao-ai-chart) <br>
- [aitubiao API key management](https://app.aitubiao.com/setting/api-keys) <br>


## Skill Output: <br>
**Output Type(s):** [markdown, shell commands, configuration, guidance] <br>
**Output Format:** [Markdown with inline shell commands and JSON API results] <br>
**Output Parameters:** [1D] <br>
**Other Properties Related to Output:** [May produce chart project URLs, project identifiers, screenshot links, quota details, and downloaded export files through the aitubiao service.] <br>

## Skill Version(s): <br>
1.1.5 (source: ClawHub release evidence and skill frontmatter) <br>

## Ethical Considerations: <br>
Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>

Sponsored

Ads related to aitubiao-chart and adjacent AI workflows.