← 返回 Skills 市场
bennyqp

Datafast Analytics

作者 bennyqp · GitHub ↗ · v0.1.0
cross-platform ✓ 安全检测通过
752
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install datafast-analytics
功能描述
Query DataFast website analytics and visitor data via the DataFast API for metrics, time series, realtime stats, breakdowns, visitor details, and goal/paymen...
使用说明 (SKILL.md)

DataFast Analytics Skill

Use this skill to call the DataFast API and summarize results for the user.

Quick Workflow

  1. Confirm the request type (overview, timeseries, realtime, breakdown, visitor, goals/payments create/delete).
  2. Gather required inputs:
    • Date range: startAt and endAt together or neither (overview/timeseries support ranges).
    • timezone, fields, interval, limit, offset, and any filter_* parameters.
  3. Build the HTTP request with Authorization: Bearer $DATAFAST_API_KEY and Content-Type: application/json.
  4. Execute with curl and parse JSON.
  5. Summarize results in a table plus a short narrative (totals + key takeaways). Include pagination info if relevant.

Setup

  1. Get your API key from DataFast (starts with df_).
  2. Store it:
mkdir -p ~/.config/datafast
echo "df_your_key_here" > ~/.config/datafast/api_key

Authentication

All requests need:

DATAFAST_API_KEY=$(cat ~/.config/datafast/api_key)
curl ... \
  -H "Authorization: Bearer $DATAFAST_API_KEY" \
  -H "Content-Type: application/json"

If the user hasn't set up the API key, ask them to follow the setup steps above.

Base URL

https://datafa.st/api/v1/

Reference Docs

Use the full API reference at {baseDir}/references/datafast-api-docs.md for endpoint details, response fields, and examples.

Endpoint Guidance

Overview

  • GET /analytics/overview
  • Optional: startAt, endAt, timezone, fields.

Time Series

  • GET /analytics/timeseries
  • Typical params: fields, interval (hour/day/week/month), startAt, endAt, timezone, limit, offset.
  • Accepts filter_* query params for segmentation.
  • Note: fields is required (e.g., fields=visitors,sessions).

Realtime

  • GET /analytics/realtime
  • GET /analytics/realtime/map

Breakdowns

  • GET /analytics/devices
  • GET /analytics/pages
  • GET /analytics/campaigns
  • GET /analytics/goals
  • GET /analytics/referrers
  • GET /analytics/countries
  • GET /analytics/regions
  • GET /analytics/cities
  • GET /analytics/browsers
  • GET /analytics/operating-systems
  • GET /analytics/hostnames

Visitor Details

  • GET /visitors/{datafast_visitor_id}

Goals

  • Create goal: POST /goals
  • Delete goals: DELETE /goals (requires at least one filter or time range; confirm scope)

Payments

  • Create payment: POST /payments
  • Delete payments: DELETE /payments (confirm scope)

Destructive Actions

For DELETE /goals or DELETE /payments:

  • Always confirm exact filters and time range in plain English before executing.
  • If user asks for "all time" deletion, ask for explicit confirmation.
  • Echo the final URL that will be called (without the API key).

Filter Syntax

Use filter_* params for segmentation (e.g., filter_referrer=is:X).

Important: Filter values must match the exact names from breakdown endpoints. For example, X/Twitter is stored as "X" (not "x.com" or "twitter.com"). When in doubt, query the breakdown first:

curl ... "/analytics/referrers?limit=20"

Then use the exact referrer value in your filter.

Example Command Patterns

GET

DATAFAST_API_KEY=$(cat ~/.config/datafast/api_key)
curl -sS "https://datafa.st/api/v1/analytics/overview?startAt=2024-01-01&endAt=2024-01-31&timezone=UTC" \
  -H "Authorization: Bearer $DATAFAST_API_KEY" \
  -H "Content-Type: application/json"

POST

DATAFAST_API_KEY=$(cat ~/.config/datafast/api_key)
curl -sS "https://datafa.st/api/v1/goals" \
  -H "Authorization: Bearer $DATAFAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"datafast_visitor_id":"...","name":"newsletter_signup","metadata":{"email":"..."}}'

DELETE

DATAFAST_API_KEY=$(cat ~/.config/datafast/api_key)
curl -sS -X DELETE "https://datafa.st/api/v1/goals?name=signup&startAt=2023-01-01T00:00:00Z&endAt=2023-01-31T23:59:59Z" \
  -H "Authorization: Bearer $DATAFAST_API_KEY"

Output Expectations

  • Provide a short summary and a flat table of results.
  • Include totals and conversion/revenue metrics when present.
  • For time series, include the top-level totals and the first/last timestamps in the selected range.
  • If pagination exists, report limit, offset, and total, and ask if the user wants the next page.
安全使用建议
This skill appears to do what it says: make authenticated HTTP calls to DataFast and summarize analytics. Before installing, consider: 1) Only provide a DataFast API key you trust (create a limited-scope key if the service supports it). 2) Store the key securely (e.g., ~/.config/datafast/api_key with chmod 600) rather than leaving it world-readable. 3) The skill will make network calls to https://datafa.st — ensure you trust that endpoint. 4) The SKILL.md references a local API docs file that isn't included; ask the publisher or inspect any code repo before cloning into your workspace. 5) When the skill wants to DELETE goals/payments, it correctly asks for explicit confirmation — always verify filters/time ranges before allowing destructive actions.
功能分析
Type: OpenClaw Skill Name: datafast-analytics Version: 0.1.0 The OpenClaw skill 'datafast-analytics' is benign. It is designed to interact with the DataFast API, reading an API key from `~/.config/datafast/api_key` and using it to authenticate `curl` requests to `https://datafa.st/api/v1/`. All instructions in `SKILL.md` and `README.md` are consistent with its stated purpose, focusing on analytics queries and goal/payment management. There is no evidence of data exfiltration to unauthorized endpoints, malicious command execution (e.g., `curl|bash`), persistence mechanisms, or prompt injection attempts designed to make the agent deviate from its task or access unrelated sensitive data. Destructive actions are explicitly guarded with confirmation prompts.
能力评估
Purpose & Capability
Name/description match the instructions: all runtime actions are calls to the DataFast API (GET/POST/DELETE analytics, visitors, goals, payments). The skill does not ask for unrelated binaries, cloud credentials, or system-wide access.
Instruction Scope
Instructions are narrowly scoped to building HTTP requests with curl, reading the API key from ~/.config/datafast/api_key, parsing JSON, and summarizing results. The SKILL.md correctly warns to confirm destructive DELETE actions. Minor gap: it references a local docs file at references/datafast-api-docs.md which is not included in the manifest — that is a missing file, not an escalation of privileges.
Install Mechanism
No install spec and no code files — instruction-only skill. This minimizes disk writes and arbitrary code execution risk.
Credentials
The only secret the skill uses is a DataFast API key stored in ~/.config/datafast/api_key (SKILL.md shows reading it into DATAFAST_API_KEY). No unrelated environment variables or credentials are requested. Recommend securing the API key file (avoid world-readable permissions) and using a limited-scope key when possible. The skill does not declare required env vars in the registry metadata; instead it relies on a local config file — this is coherent but worth noting.
Persistence & Privilege
always:false and no install actions. The skill does not request permanent agent-level privileges, nor does it modify other skills or system-wide config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install datafast-analytics
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /datafast-analytics 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of the DataFast Analytics skill: - Enables querying of DataFast analytics and visitor data via the DataFast API. - Supports overview, time series, realtime stats, breakdowns, visitor details, and goal/payment management. - Provides clear setup instructions for API key and authentication. - Includes guidance on required parameters, filters, destructive actions, and safe confirmation steps. - Standardizes result output: short narrative summary and table, with pagination info as needed.
元数据
Slug datafast-analytics
版本 0.1.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Datafast Analytics 是什么?

Query DataFast website analytics and visitor data via the DataFast API for metrics, time series, realtime stats, breakdowns, visitor details, and goal/paymen... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 752 次。

如何安装 Datafast Analytics?

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

Datafast Analytics 是免费的吗?

是的,Datafast Analytics 完全免费(开源免费),可自由下载、安装和使用。

Datafast Analytics 支持哪些平台?

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

谁开发了 Datafast Analytics?

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

💬 留言讨论