tianji-data-query

tianji-data-query is a skill for Claude Code, Codex from msgbyte/tianji. It costs 47 tokens per session (1,355 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

Written for no agent in particular: nothing here depends on one.

Good fit Checking traffic and pageviews, monitor status, survey results, telemetry events, Lighthouse scores, and other available Tianji statistics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/msgbyte/tianji/tianji-data-query
About the project

Tianji is a self-hosted application that combines website analytics, uptime monitoring, server-status tracking, notifications, telemetry, and related tools in one service. It is intended for users who need lightweight insight into websites, servers, and deployments without running several separate monitoring applications.

msgbyte/tianji · 3,113 stars · on GitHub · tianji.dev

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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tianji-data-query

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,355 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00047 $0.01355
Opus 5.5 $0.00019 $0.00542
Sonnet 5.5 $0.00009 $0.00271
Haiku 4.5 $0.00005 $0.00136

Measured 27d ago against content hash ba91f9f0a257, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 27d 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 --fail-with-body --silent --show-error \
skills/tianji-data-query/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 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

Before querying data, fetch and read the target instance's OpenAPI document. TIANJI_BASE_URL is the instance URL without the /open suffix:

curl --fail-with-body --silent --show-error \
  "${TIANJI_BASE_URL%/}/open/_document"

Confirm a successful response containing an OpenAPI JSON object with openapi and paths, not HTML or an error payload. If discovery fails, report the failure and stop API queries; do not substitute bundled paths or guess endpoints. The instance must enable OpenAPI to serve this document.

Use the live document to confirm the operation's method, path, path/query parameters, response schema, and authentication. Resolve referenced schemas ($ref), including required fields, types, formats, defaults, enums, and pagination. Resolve servers against the target instance before appending an operation path (normally /open; do not add it twice). Keep authenticated requests on the intended instance and send the API key via Authorization: Bearer ..., never in the URL or output.

Only GET requests are allowed, even though the live document also describes writes. If the requested operation has no exported GET route, report that limitation. Do not derive /open routes from dashboard tRPC procedures; those need separate maintained references and are outside this skill.

The target document takes precedence over bundled references and examples. Reuse it within the same task and target; fetch again after switching instances, an upgrade, or a schema-related failure. Parse successful API responses as JSON and report HTTP/API errors rather than treating them as query results.

Read the full file on GitHub · 129 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. 27d ago Changed · +4 lines · -35 tokens per session ba91f9f0a257
  2. 1mo 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,113 stars, last pushed today), licensed Apache-2.0. It adds 47 tokens to every session and 1,355 once invoked, about $0.0002 per session on Opus 5.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.