ai

ai is a cursor rule for Cursor from leaperone/MultiPost-Extension. It costs 13 tokens per session (154 once invoked), scanned A, original, Apache-2.0.

A set of coding rules for applications that use AI models such as OpenAI, Claude, or DeepSeek. It covers streamed chat interfaces, model calls, error handling, fallbacks, rate limits, input filtering, and secret storage.

In plain words
What is it for?
Use it when building AI chat or generation features with the Vercel AI SDK and when handling model errors, switching, limits, and credentials.
Why use it?
It addresses common failures in AI features, including unavailable models, exceeded quotas, unsafe input handling, and exposed API keys.

Cursor rule for Cursor

About the project

MultiPost-Extension is a browser extension that publishes text, images, videos, and other content to multiple social media platforms from one operation. Content creators use it to distribute a single piece of content across supported platforms, and web applications or scripts can call its extension or REST APIs.

leaperone/MultiPost-Extension · 3,278 stars · on GitHub · multipost.app

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/leaperone/multipost-extension/ai
Clone the repo
git clone --depth 1 https://github.com/leaperone/MultiPost-Extension

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 ai

README.md
[![agentmods](https://agentmods.dev/badge/rules/leaperone/multipost-extension/ai.svg)](https://agentmods.dev/rules/leaperone/multipost-extension/ai)
Your own site
<a href="https://agentmods.dev/rules/leaperone/multipost-extension/ai"><img src="https://agentmods.dev/badge/rules/leaperone/multipost-extension/ai.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 154 The whole file, excluding the scripts and references it only reads on demand.
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.1 $0.00013 $0.00154
Opus 5 $0.00006 $0.00077
Sonnet 5 $0.00003 $0.00031
Haiku 4.5 $0.00001 $0.00015

Measured today against content hash 916ef40ee668, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

ai 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 today.

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/ai.mdc · 16 lines

What it actually says

AI SDK

  • Use the Vercel AI SDK UI for implementing streaming chat UI.
  • Use the Vercel AI SDK Core to interact with language models.
  • Use the Vercel AI SDK RSC and Stream Helpers to stream and help with the generations.
  • Implement proper error handling for AI responses and model switching.
  • Implement fallback mechanisms for when an AI model is unavailable.
  • Handle rate limiting and quota exceeded scenarios gracefully.
  • Provide clear error messages to users when AI interactions fail.
  • Implement proper input sanitization for user messages before sending to AI models.
  • Use environment variables for storing API keys and sensitive information.
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. today First seen · 16 lines · 13 tokens per session scan A 916ef40ee668

Subscribe to this mod's changes

ai is a cursor rule published in the GitHub repository leaperone/MultiPost-Extension (3,278 stars, last pushed 4d ago), licensed Apache-2.0. It adds 13 tokens to every session and 154 once invoked, about $0.0001 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-09-04.