tianji-data-query

tianji-data-query is a skill for Claude Code, Codex from msgbyte/tianji. It costs 82 tokens per session (1,094 once invoked), scanned A, original, Apache-2.0.

A read-only connection to Tianji, a platform for website analytics, uptime monitoring, surveys, telemetry, and related application data.

In plain words
What is it for?
Checking traffic and pageviews, monitor status, survey results, telemetry events, Lighthouse scores, and other available Tianji statistics.
Why use it?
It lets an agent answer questions about tracked services without changing the data.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/msgbyte/tianji/tianji-data-query
Any agent
npx skills add msgbyte/tianji --skill tianji-data-query
Clone the repo
git clone --depth 1 https://github.com/msgbyte/tianji

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tianji-data-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/msgbyte/tianji/tianji-data-query.svg)](https://agentmods.dev/skills/msgbyte/tianji/tianji-data-query)
Your own site
<a href="https://agentmods.dev/skills/msgbyte/tianji/tianji-data-query"><img src="https://agentmods.dev/badge/skills/msgbyte/tianji/tianji-data-query.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,094 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00082 $0.01094
Opus 5 $0.00041 $0.00547
Sonnet 5 $0.00016 $0.00219
Haiku 4.5 $0.00008 $0.00109

Measured 4d ago against content hash a2fba2dab042, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tianji-data-query scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (build.sh, scripts/filter-openapi.cjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -H "Authorization: Bearer {TIANJI_API_KEY}" \
skills/tianji-data-query/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tianji Analytics

Query any read-only data from the Tianji monitoring and analytics platform.

Configuration

Three values are required (provided via skill config):

Variable Description
TIANJI_BASE_URL Tianji instance URL (e.g. https://tianji.example.com)
TIANJI_API_KEY API key for authentication
TIANJI_WORKSPACE_ID Default workspace ID

Making API Requests

All endpoints are under {TIANJI_BASE_URL}/open and require a Bearer token:

curl -H "Authorization: Bearer {TIANJI_API_KEY}" \
  "{TIANJI_BASE_URL}/open/workspace/{TIANJI_WORKSPACE_ID}/website/all"

Only GET requests are allowed. All responses are JSON.

Service Domains

Find the exact endpoint and parameters in api-endpoints.md. For full parameter schemas, consult openapi-readonly.json.

Domain Endpoints Typical Questions
Website 13 Traffic stats, pageviews, geo distribution, Lighthouse scores
Monitor 9 Uptime status, recent check data, monitor events
Survey 8 Survey responses, result stats, AI categories
Telemetry 7 Custom event counts, telemetry pageviews, metrics
Billing 7 Usage quotas, subscription tier, credit balance
Feed 6 Feed channels, event streams, feed states
Application 5 App store reviews, app info, event stats
AI/AIGateway 5 Gateway logs, model pricing, quota alerts
Worker 3 Worker list, worker details, revisions
Page 2 Status pages
Workspace 2 Members, service counts
Global 1 Platform configuration
AuditLog 1 Audit trail

Workflow

  1. Identify the service domain from the user's question
  2. Read api-endpoints.md to find the endpoint
  3. Construct the GET request with required path/query parameters
  4. Parse the JSON response and summarize for the user

Read the full file on GitHub · 125 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 125 lines · 82 tokens per session scan A a2fba2dab042

Subscribe to this mod's changes

tianji-data-query is a skill published in the GitHub repository msgbyte/tianji (3,084 stars, last pushed today), licensed Apache-2.0. It adds 82 tokens to every session and 1,094 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

file-issue

File a GitHub issue on this repo with the required title prefix and labels. Use when opening an issue, or when a finding during other work is worth tracking rather than fixing inline.

piperbox/piper · 41 tokens

dokku-deploy

PaaS deployment with Dokku.

bidewio/better-openclaw · 12 tokens

notipo

Publish blog posts from AI agents to WordPress via Notion. One API call handles page creation, markdown conversion, image uploads, featured image generation, and SEO metadata.

kfuras/notipo-app · 37 tokens

talkies

Self-hosted OpenAI-compatible speech service. /v1/audio/transcriptions fronts 14 open ASR models (Whisper, Parakeet, Nemotron-3.5-ASR, Canary, Sherpa-ONNX, Vosk, plus wav2vec2 and ZIPA phoneme recognizers that emit IPA); /v1/audio/transcriptions/stream accepts live PCM over WebSocket. /v1/audio/speech fronts 3 TTS…

psyb0t/docker-talkies · 179 tokens

money-printer-turbo

MoneyPrinterTurbo 是目前 AI 短视频生成领域最具代表性的开源项目之一(11.6 万+ star):给定一个主题或关键词,它会调用大模型生成视频脚本,从 Pexels / Pixabay / Coverr 挑选高清素材(也可用本地素材或 WaveSpeed 按脚本生成画面),再合成 TTS 配音、字幕、背景音乐和转场,输出竖屏 9:16 或横屏 16:9 成品视频。仓库同时提供 AI Agent Skill、WebUI、API、CLI 四种使用方式,支持批量生成、多语言脚本、预设导入导出,并可一键发布到 TikTok、Instagram 与 YouTube Shorts。.

AvalonLee/AstraCraft-Program · 0 tokens

arcreel

ArcReel 是面向 AI 漫剧与小说改编、旁白/解说短视频、广告与带货短片的开源自托管工作台。它把内容分析、资产管理、分镜、媒体生成、费用追踪和导出组织成一条可审核、可中断恢复的生产流水线。.

AvalonLee/AstraCraft-Program · 0 tokens