tianji-artifacts

tianji-artifacts is a skill for Claude Code, Codex from msgbyte/tianji. It costs 72 tokens per session (731 once invoked), scanned A, original, Apache-2.0.

A guide for building and publishing interactive HTML pages in a Tianji workspace. It uses a prepared React and TypeScript setup; React helps structure interactive web interfaces, while TypeScript adds checked types to JavaScript.

In plain words
What is it for?
Use it to make reports, data visualizations, prototypes, or other HTML artifacts and publish them to a Tianji dashboard.
Why use it?
It provides a defined path for creating a page, saving it where others can preview or download it, and updating it later. It also explains what to do when the workspace configuration is missing or incompatible.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to make reports, data visualizations, prototypes, or other HTML artifacts and publish them to a Tianji dashboard.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/msgbyte/tianji/tianji-artifacts
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,127 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-artifacts
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-artifacts

README.md
[![agentmods](https://agentmods.dev/badge/skills/msgbyte/tianji/tianji-artifacts/github.svg)](https://agentmods.dev/skills/msgbyte/tianji/tianji-artifacts)
Your own site
<a href="https://agentmods.dev/skills/msgbyte/tianji/tianji-artifacts"><img src="https://agentmods.dev/badge/skills/msgbyte/tianji/tianji-artifacts/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-artifacts

Your own site · 80×15
<a href="https://agentmods.dev/skills/msgbyte/tianji/tianji-artifacts"><img src="https://agentmods.dev/badge/skills/msgbyte/tianji/tianji-artifacts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 731 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00072 $0.00731
Opus 5.5 $0.00029 $0.00292
Sonnet 5.5 $0.00014 $0.00146
Haiku 4.5 $0.00007 $0.00073

Measured 21d ago against content hash 1d9867d58655, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tianji-artifacts scanned grade A with 0 findings 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 21d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (assets/react/postcss.config.cjs, assets/react/scripts/bundle.mjs, assets/react/tailwind.config.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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tianji-artifacts/SKILL.md · 32 lines

How it starts

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

Tianji Artifacts

Publish a single HTML file to the user's Tianji workspace. Members can preview it, inspect its source, and download it from Artifacts in the dashboard. This Skill works with Claude Code and Codex; it does not require Claude's private artifact runtime.

Configuration

Use TIANJI_SERVER_URL (the instance origin, without /open), TIANJI_WORKSPACE_ID, and TIANJI_API_KEY from the agent's environment. If configuration is missing, ask the user to set it locally. Never print the key, put it in an artifact, or invent a workspace. Keys belong to users; workspace membership and permissions are checked on every request.

Read references/operations.md before calling the API. Check the target server's /open/_document for Artifacts routes first. Report an older server as incompatible instead of guessing endpoints.

Author and publish

  • For interactive React pages, read references/authoring.md. Use the bundled initializer, edit the preconfigured project, then build bundle.html. It includes 40+ shadcn/ui components, path aliases, and a single-file bundler. Simple pages can be authored directly as HTML.
  • Write a complete, self-contained HTML file or fragment, with embedded data. Use a clear title and a short description. Source must be nonblank and at most 1 MiB of UTF-8 bytes.
  • Inline JavaScript and CSS work. Bundle React/JSX or other compiled code before uploading; the viewer does not compile source or allow eval. Do not depend on Claude-specific functions, connectors, runtime libraries, relative assets, cookies, storage, or API calls.
  • Preview runs in an iframe that cannot access the dashboard DOM or login state. Network fetches, forms, nested frames, popups, and top-level navigation are blocked. Embed images/media as data or blob URLs. The exact CDN/font allowances are in the operational reference. Prefer embedded assets when practical.
  • When the user asks to publish, upload using JSON-safe file reading as in the reference. Existing authorization covers that upload; do not add a second confirmation. Do not publish unrelated files or content.
  • On success, return the artifact ID and dashboard URL. The URL requires login and workspace membership; it is not a public hosting URL.

Read the full file on GitHub · 32 lines

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. 21d ago First seen · 32 lines · 72 tokens per session scan A 1d9867d58655

Subscribe to this mod's changes

tianji-artifacts is a skill published in the GitHub repository msgbyte/tianji (3,127 stars, last pushed today), licensed Apache-2.0. It adds 72 tokens to every session and 731 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-08.

Related

tianji-artifacts compared with skills from other repositories

tianji-artifacts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tianji-artifactsmsgbyte/tianjiSkill3.1ktodayApache-2.0A72Claude Code, Codex
resume-builderamruthpillai/reactive-resumeSkill46k2d agoMITA71Claude Code, Codex
kaneo-cliusekaneo/kaneoSkill9.9ktodayMITA73Claude Code, Codex
frontend-featurevstorm-co/full-stack-ai-agent-templateSkill2.0k3d agoMITA64Claude Code
clawd-media-trackfancydirty/mediary-scoutSkill1.9kyesterday0BSDA115Claude Code, Codex
web-artifacts-builderPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA63Claude Code, Codex
webappkortix-ai/sunaSkill21kyesterdaynoneA28Claude Code, Codex