Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

guanyuan-data观远数据

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

5,075

周安装

218

GitHub Stars

公开资料未说明

下载量

1,779
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:guanyuan-data(观远数据)
来源仓库:https://github.com/jackeylee007/guanyuan-data
安装命令:
openclaw skills install guanyuan-data
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install guanyuan-data

简介

观远数据API工具 - 支持多种认证方式、Token自动管理、卡片数据获取和CSV导出

SKILL.md

name
guanyuan-data
description
观远数据API工具 - 支持多种认证方式、Token自动管理、卡片数据获取和CSV导出
version
1.0.0
author
Claude Code
tags
[guanyuan, api, data-export, csv, chinese]
requirements

观远数据 API Skill

Description

This skill provides a command-line interface for GuanYuan Data (观远数据) API. It supports multiple authentication methods, automatic token management, card data retrieval, and CSV export with metadata generation.

Usage Instructions

When a user requests GuanYuan data operations:

  1. Choose authentication method:

- Method 1: Provide loginId and password in config for automatic login - Method 2: Provide token directly in config file - Method 3: Use guanyuan token <token> command to set token interactively

  1. Get card data: Use guanyuan card <cardId> to retrieve data in JSON format
  1. Export to CSV: Use guanyuan csv <cardId> --output file.csv to export data

Authentication Methods

Method 1: Automatic Login with Credentials

{
  "baseUrl": "https://your-guanyuan-domain.com",
  "domain": "your-domain",
  "loginId": "your-login-id",
  "password": "your-password"
}

Then run: guanyuan login

Method 2: Direct Token in Config

{
  "baseUrl": "https://your-guanyuan-domain.com",
  "domain": "your-domain",
  "token": "your-token-here"
}

No login needed, directly use commands.

Method 3: Token Command (Interactive)

{
  "baseUrl": "https://your-guanyuan-domain.com",
  "domain": "your-domain"
}

Then run: guanyuan token <your-token> or guanyuan token (interactive)

Available Resources

Main Script

  • scripts/guanyuan.js: Main CLI tool

- login(): Authenticate and save token - getCardData(cardId, options): Retrieve card data - convertToCSV(cardData, sampleRows): Convert data to CSV format - extractMetadata(cardData): Extract field metadata - saveCSVWithMetadata(csv, filename, metadata, cardId): Save CSV and metadata files - getValidToken(config): Auto-discover and use valid token from multiple sources

Configuration Files

  • ~/.guanyuan/config.json: API credentials and settings

- Required: baseUrl, domain - Optional (one of): loginId + password, token, or none (use token command)

  • ~/.guanyuan/user.token: Stored authentication token (auto-managed)

Export Files

  • <filename>.csv: CSV data file
  • <filename>_meta.json: Metadata file with field information

References

  • references/README.md: Detailed user documentation in Chinese

Commands Reference

CommandDescriptionExample
initInitialize configuration (show setup instructions)guanyuan init
loginLogin with credentials from configguanyuan login
token [token]Set token (via parameter or interactive)guanyuan token eyJ0eX...
card <id>Get card data (JSON)guanyuan card abc123 --limit 50
csv <id>Export to CSVguanyuan csv abc123 --output data.csv
statusShow config and token statusguanyuan status
helpShow helpguanyuan help

Options Reference

Common Options

OptionDescriptionDefault
`--view <GRAPH\GRID>`Data view typeGRAPH
--limit <number>Number of rows100
--offset <number>Data offset0

CSV Export Options

OptionDescriptionDefault
--output <filename>Output to filestdout
--sample <number>Sample N rowsall rows

Example Prompts

  • "使用账号密码登录观远数据并获取卡片abc123的数据"
  • "使用token设置观远数据认证"
  • "Export card data to CSV with metadata"
  • "Get the first 50 rows of card l059d768f28bd404caf8df3e"
  • "导出卡片数据到CSV文件,只采样前10行"
  • "Check GuanYuan API configuration status"
  • "Save card data as query_data.csv with metadata"
  • "Set token for GuanYuan API without providing credentials"

Authentication Workflow

┌─────────────────────────────────────────────────────────────┐
│  User wants to access GuanYuan data                         │
└────────────────────┬────────────────────────────────────────┘
                     │
                     v
┌─────────────────────────────────────────────────────────────┐
│  Check ~/.guanyuan/user.token                               │
│  Is there a valid token?                                    │
└────────────────────┬────────────────────────────────────────┘
                     │
            ┌────────┴────────┐
            │                 │
         Yes │                 │ No
            │                 │
            v                 v
┌───────────────────┐  ┌──────────────────────────────────┐
│  Use saved token  │  │  Check config.json              │
└───────────────────┘  │  - Has loginId + password?       │
                      │  - Has token?                   │
                      │  - Neither? → Use token command  │
                      └────────────┬─────────────────────┘
                                   │
                    ┌──────────────┼──────────────┐
                    │              │              │
                Has Creds      Has Token    Neither
                    │              │              │
                    v              v              v
            ┌───────────┐  ┌───────────┐  ┌───────────────┐
            │  Auto     │  │  Use      │  │  Prompt user │
            │  Login    │  │  Config   │  │  to run      │
            │           │  │  Token   │  │  'guanyuan    │
            └───────────┘  └───────────┘  │   token'      │
                                         └───────────────┘

Metadata File Format

When exporting CSV with --output, a _meta.json file is automatically generated:

{
  "cardId": "card-id",
  "cardType": "CHART",
  "chartType": "PIVOT_TABLE",
  "view": "GRAPH",
  "exportTime": "2026-03-25T07:52:00.924Z",
  "totalRows": 10,
  "dataLimit": 10,
  "hasMoreData": false,
  "fields": [
    {
      "name": "字段显示名称",
      "originalName": "字段原始名称",
      "type": "STRING/TIMESTAMP/DOUBLE",
      "metaType": "DIM/METRIC",
      "fieldType": "dimension/metric",
      "fieldId": "field-id"
    }
  ]
}

Output Format

JSON Output

  • Full API response with chart data
  • Includes dimensions, metrics, and formatting info
  • Suitable for debugging and data inspection

CSV Output

  • Tabular format with headers
  • Dimensions first, then metrics
  • Proper CSV escaping for special characters
  • Metadata file with field types and descriptions

Token Management

Token Sources (Priority Order)

  1. ~/.guanyuan/user.token - Saved token (highest priority)
  2. config.json - Token field in config
  3. Auto-login - Using loginId + password from config

Token Behavior

  • With expireAt: Automatically validated against expiration time
  • Without expireAt: Used indefinitely (user-manually set tokens)
  • Expired/Invalid: Triggers auto-refresh (if credentials available) or prompts user

Manual Token Setting

# Via parameter
guanyuan token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...

# Interactive mode
guanyuan token
# Then paste your token when prompted

Notes

  • Flexible Authentication: Three authentication methods for different use cases
  • Token Management: Tokens are automatically discovered from multiple sources
  • Auto-Login: Credentials-based auth with automatic token refresh
  • Password Handling: Passwords are automatically Base64 encoded before API call
  • URL Support: baseUrl can include protocol prefix (http:// or https://)
  • CSV Escaping: Special characters (commas, quotes, newlines) are properly escaped
  • File Safety: Existing files are overwritten without warning
  • Data Limits: Use --limit to control API response size
  • Sampling: Use --sample to export only N rows without fetching all data
  • No Credentials Required: Can work with just baseUrl + domain + token command

API References

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.52%
按下载量换算1,504

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills