wiki-safety

wiki-safety is a cursor rule for Cursor from olgasafonova/mediawiki-mcp-server. It costs 208 tokens per session, scanned A, original, MIT.

Safety rules for AI-assisted editing of MediaWiki wikis. They define how to check page names, preview bulk changes, format links, and handle outdated content.

In plain words
What is it for?
Use them when searching for pages, previewing find-and-replace or formatting changes, writing edit summaries, linking pages, and marking outdated content.
Why use it?
They reduce the risk of editing the wrong page, making unreviewed replacements, breaking links, or deleting information that should be retained.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use them when searching for pages, previewing find-and-replace or formatting changes, writing edit summaries, linking pages, and marking outdated content.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/olgasafonova/mediawiki-mcp-server/wiki-safety
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/olgasafonova/mediawiki-mcp-server

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 wiki-safety

README.md
[![agentmods](https://agentmods.dev/badge/rules/olgasafonova/mediawiki-mcp-server/wiki-safety/github.svg)](https://agentmods.dev/rules/olgasafonova/mediawiki-mcp-server/wiki-safety)
Your own site
<a href="https://agentmods.dev/rules/olgasafonova/mediawiki-mcp-server/wiki-safety"><img src="https://agentmods.dev/badge/rules/olgasafonova/mediawiki-mcp-server/wiki-safety/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 wiki-safety

Your own site · 80×15
<a href="https://agentmods.dev/rules/olgasafonova/mediawiki-mcp-server/wiki-safety"><img src="https://agentmods.dev/badge/rules/olgasafonova/mediawiki-mcp-server/wiki-safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 208 This file is loaded in full into every session.
When invoked 208 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.00208 $0.00208
Opus 5 $0.00104 $0.00104
Sonnet 5 $0.00042 $0.00042
Haiku 4.5 $0.00021 $0.00021

Measured 11d ago against content hash 84ec2887fe66, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

wiki-safety 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 11d 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.

rules/wiki-safety.mdc · 14 lines

What it actually says

Wiki editing safety guardrails

  1. Always use preview=true before executing mediawiki_find_replace, mediawiki_bulk_replace, or mediawiki_apply_formatting. Show the preview and get user confirmation.
  2. Don't guess page titles; they are case-sensitive. Use mediawiki_resolve_title when the exact title is uncertain.
  3. Use internal wiki links [[Page Title]] or [[Page Title|Display Text]], never full URLs for internal wiki pages.
  4. Provide clear edit summaries explaining what changed and why.
  5. Use mediawiki_search_in_page to find text within a known page instead of fetching the entire page.
  6. Don't create names as email links ([[mailto:...|Name]]); wiki doesn't render these properly. Use "Name (email)" format instead.
  7. For outdated content, add {{Expired}} at the top and [[Category:Expired]] at the bottom rather than deleting.
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. 11d ago First seen · 14 lines · 208 tokens per session scan A 84ec2887fe66

Subscribe to this mod's changes

wiki-safety is a cursor rule published in the GitHub repository olgasafonova/mediawiki-mcp-server (20 stars, last pushed 2d ago), licensed MIT. It adds 208 tokens to every session, about $0.0010 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.