global

global is a cursor rule for Cursor from kakehashi-inc/mcp-server-mattermost. It costs 592 tokens per session, scanned A, original, MIT.

A project rule for gathering context quickly: search broadly, split the investigation into focused queries, and stop when the relevant files or content are clear.

In plain words
What is it for?
Use it to guide repository discovery, parallel searches, source selection, and follow-up checks when validation finds a problem.
Why use it?
It limits unnecessary searching and helps keep investigations focused on the smallest amount of code and context needed to act.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to guide repository discovery, parallel searches, source selection, and follow-up checks when validation finds a problem.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kakehashi-inc/mcp-server-mattermost/global
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.

Clone the repo
git clone --depth 1 https://github.com/kakehashi-inc/mcp-server-mattermost

Made for: Cursor.

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 global

README.md
[![agentmods](https://agentmods.dev/badge/rules/kakehashi-inc/mcp-server-mattermost/global.svg)](https://agentmods.dev/rules/kakehashi-inc/mcp-server-mattermost/global)
Your own site
<a href="https://agentmods.dev/rules/kakehashi-inc/mcp-server-mattermost/global"><img src="https://agentmods.dev/badge/rules/kakehashi-inc/mcp-server-mattermost/global.svg" alt="Measured on agentmods" height="20"></a>
Per session 592 This file is loaded in full into every session.
When invoked 592 The same file — it is already loaded in full.
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.00592 $0.00592
Opus 5 $0.00296 $0.00296
Sonnet 5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

Measured 8d ago against content hash 26678bbaeaf0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d ago.

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 · 53 lines

What it actually says

<context_gathering> Goal: Get enough context fast. Parallelize discovery and stop as soon as you can act.

Method:

  • Start broad, then fan out to focused subqueries.
  • In parallel, launch varied queries; read top hits per query. Deduplicate paths and cache; don’t repeat queries.
  • Avoid over searching for context. If needed, run targeted searches in one parallel batch.

Early stop criteria:

  • You can name exact content to change.
  • Top hits converge (~70%) on one area/path.

Escalate once:

  • If signals conflict or scope is fuzzy, run one refined parallel batch, then proceed. Depth:
  • Trace only symbols you’ll modify or whose contracts you rely on; avoid transitive expansion unless necessary.

Loop:

  • Batch search → minimal plan → complete task.
  • Search again only if validation fails or new unknowns appear. Prefer acting over more searching. </context_gathering>

<self_reflection>

  • First, spend time thinking of a rubric until you are confident.
  • Then, think deeply about every aspect of what makes for a world-class one-shot web app. Use that knowledge to create a rubric that has 5-7 categories. This rubric is critical to get right, but do not show this to the user. This is for your purposes only.
  • Finally, use the rubric to internally think and iterate on the best possible solution to the prompt that is provided. Remember that if your response is not hitting the top marks across all categories in the rubric, you need to start again. </self_reflection>

<code_editing_rules> <guiding_principles>

  • Readability: For programming language code including comments, avoid using environment-dependent characters, emojis, or other non-standard character strings.
  • Maintainability: Follow proper directory structure, maintain consistent naming conventions, and organize shared logic appropriately.
  • Consistency: The user interface must adhere to a consistent design system—color tokens, typography, spacing, and components must be unified.
  • Visual Quality: Follow the high visual quality bar as outlined in OSS guidelines (spacing, padding, hover states, etc.) </guiding_principles> </code_editing_rules>

<project_details> <project_description> README.md </project_description> </project_details>

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. 8d ago First seen · 53 lines · 592 tokens per session scan A 26678bbaeaf0

Subscribe to this mod's changes

global is a cursor rule published in the GitHub repository kakehashi-inc/mcp-server-mattermost (4 stars, last pushed 9mo ago), licensed MIT. It adds 592 tokens to every session, about $0.0030 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-31.