global

A set of project-wide rules for Tianji, a monitoring and analytics platform organized as a monorepo. A monorepo is one repository containing multiple apps and shared packages.

In plain words
What is it for?
Following Tianji's naming rules, understanding its repository layout, and working across its apps, shared software packages, React interface, and MCP server.
Why use it?
It prevents naming inconsistencies and tells the assistant not to add or remove files through Git. It also explains where the platform's applications, libraries, and frontend code are located.

Cursor rule for Cursor

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 rules/msgbyte/tianji/global
Clone the repo
git clone --depth 1 https://github.com/msgbyte/tianji

Made for: Cursor.

Per session 1,368 This file is loaded in full into every session.
When invoked 1,368 The same file — it is already loaded in full.
Security scan A 0 findings. 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.01368 $0.01368
Opus 5 $0.00684 $0.00684
Sonnet 5 $0.00274 $0.00274
Haiku 4.5 $0.00137 $0.00137

Measured yesterday against content hash 1ece7d821d63, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

global 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 yesterday.

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.

.cursor/rules/global.mdc · 149 lines

How it starts

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

Tianji Project Cursor Rules

IMPORTANT: Do not operate my git to add or rm files at any time.

Project Overview

Tianji is the project name - a proprietary monitoring and analytics platform. Always use "Tianji" (not "tianji" or other variations) when referring to the project in documentation, comments, and user-facing text.

Project Structure (Monorepo)

This is a monorepo with the following structure:

tianji/
├── apps/                           # Application packages
│   ├── appstore-review/           # App store review automation
│   ├── daily-ai-trigger/          # Daily AI trigger service
│   └── mcp-server/                # MCP server implementation
├── packages/                       # Shared packages
│   ├── client-sdk/                # Client SDK for external integration
│   ├── react/                     # React components sdk library
│   └── react-native/              # React Native sdk library
├── src/
│   ├── client/                     # Frontend application (React)
│   │   ├── components/             # React components
│   │   │   └── ui/                 # Shadcn/ui components
│   │   ├── routes/                 # Application routes
│   │   ├── hooks/                  # Custom React hooks
│   │   ├── store/                  # State management
│   │   └── utils/                  # Client utilities
│   ├── server/                     # Backend application (Node.js)
│   │   ├── model/                  # Database models and business logic
│   │   ├── router/                 # Express routes
│   │   ├── trpc/                   # tRPC API definitions
│   │   ├── middleware/             # Express middleware
│   │   └── utils/                  # Server utilities
│   ├── shared/                     # Shared code between client/server
│   └── tracker/                    # Tracking library
├── website/                        # Documentation website (Docusaurus)
├── geo/                           # Geographic data
├── docker/                        # Docker configurations
└── example/                       # Example applications
    ├── expo/                      # React Native example
    └── web/                       # Web example

Read the full file on GitHub · 149 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. yesterday First seen · 149 lines · 1,368 tokens per session scan A 1ece7d821d63

Subscribe to this mod's changes

global is a cursor rule published in the GitHub repository msgbyte/tianji (3,084 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,368 tokens to every session, about $0.0068 per session on Opus 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-08-30.