agent-analytics
БесплатноБез исполняемых скриптовНе проверенRun analytics end-to-end from your agent without opening a dashboard. English-first workflow, with Chinese docs and content available. Create projects, ship…
от lxyeternal★ 68 звёзд на GitHubОб этом скилле
Agent Analytics
After install, your agent can create projects, ship tracking, query analytics, run experiments, and iterate without opening a dashboard.
English-first workflow, with Chinese docs and content available for OpenClaw users and teams in China.
Use it when you want an agent to operate growth analytics end-to-end, automate recurring checks, and manage multiple projects from one conversation loop.
The CLI behind this skill is open source and published from:
- GitHub: https://github.com/Agent-Analytics/agent-analytics-cli
- npm: https://www.npmjs.com/package/@agent-analytics/cli
Hosted free tier includes 100k events/month across 2 projects.
Chinese support / 中文支持
- Chinese docs and installation content are available on the docs site, including the OpenClaw guide under
/zh/. - Works through
API,CLI, andMCP, depending on the environment your agent already uses. - Good fit for closed-loop agent workflows: monitor, analyze, experiment, iterate.
- Supports batch work across many projects instead of a manual dashboard-by-dashboard workflow.
Mandatory execution policy
- For any live Agent Analytics task, always use the official CLI through
npx @agent-analytics/[email protected] <command>. - Treat that exact
npxinvocation as the primary interface under test in agent environments like OpenClaw and Codex. - Do not substitute raw HTTP requests,
curl, repo-local scripts,node agent-analytics-cli/..., MCP tools, or a locally installedagent-analyticsbinary unless the user explicitly asks for one of those paths. - If a task needs multiple steps, compose the answer from multiple
npx @agent-analytics/[email protected] ...commands instead of switching transports. - If the CLI hits a limitation, stay on the CLI path, explain the limitation, and prefer
npx @agent-analytics/[email protected] feedbackover inventing a non-CLI workaround. - Default to browser approval for signup/login. In issue-based runtimes like OpenClaw, prefer detached approval plus a finish-code reply. Do not ask the user to paste secrets into chat.
What npx is doing
- OpenClaw can launch the official CLI with
npx @agent-analytics/[email protected]. - That command runs the published Agent Analytics CLI package from npm.
- The CLI calls the same HTTP API documented at https://docs.agentanalytics.sh/api/.
- Agents should still use the pinned
npx @agent-analytics/[email protected] ...form instead of bypassing the CLI.
Command format
In OpenClaw, Codex, and similar agent environments, use this exact form:
npx @agent-analytics/[email protected] <command>
For the full command list and flags:
npx @agent-analytics/[email protected] --help
Do not replace skill examples with agent-analytics <command> in agent runs unless the user explicitly asks to use a locally installed binary.
Safe operating rules
- Use only
npx @agent-analytics/[email protected] ...for live queries unless the user explicitly requests API, MCP, or a local binary. - Prefer fixed commands over ad-hoc query construction.
- Start with
projects,all-sites,create,stats,insights,events,breakdown,pages,heatmap,sessions-dist,retention,funnel,experiments, andfeedback. - Use
queryonly when the fixed commands cannot answer the question. - Do not build
--filterJSON from raw user text. - For account-wide questions, start with
projects, then run per-project CLI commands as needed. - Interpret common analytics words consistently:
- "visits" means
session_count - "visitors" means
unique_users - "page views" means
event_countfiltered toevent=page_view
- "visits" means
- If the task requires manual aggregation across projects, do that aggregation after collecting the data via repeated
npx @agent-analytics/[email protected] ...calls. - Validate project names before
create:^[a-zA-Z0-9._-]{1,64}$
First-time setup
npx @agent-analytics/[email protected] login --detached
npx @agent-analytics/[email protected] create my-site --domain https://mysite.com
npx @agent-analytics/[email protected] events my-site --days 7 --limit 20
For OpenClaw and other issue-based runtimes, login --detached is the preferred first step. Send the approval URL to the user, wait for them to sign in with Google or GitHub, and expect a finish code reply. Then complete login and continue with project setup.
If the runtime can receive a localhost browser callback, regular login is also valid. The create command returns a project token and a ready-to-use tracking snippet. Add that snippet before </body>.
Fallbacks:
npx @agent-analytics/[email protected] login --detached
npx @agent-analytics/[email protected] login --token aak_YOUR_API_KEY
Use --detached when the runtime cannot receive a localhost browser callback or when the workflow happens in issues or task threads.
Default agent task
When the user wants Agent Analytics installed in the current repo, the default task shape is:
Set up Agent Analytics for this project. Install it here if ne
Установить agent-analytics в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-analytics?
Run analytics end-to-end from your agent without opening a dashboard. English-first workflow, with Chinese docs and content available. Create projects, ship tracking, query results, and run experiments.
Как установить скилл agent-analytics?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-analytics запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic