seo-ai-search

seo-ai-search is a cursor rule for Cursor from afaraha8403/balakit. It costs 0 tokens per session (1,307 once invoked), scanned B, original, MIT.

A set of rules for making public web pages easier for search engines and AI systems to read, while considering security risks.

In plain words
What is it for?
Use it when implementing or reviewing metadata, JSON-LD structured data, llms.txt files, crawlability, machine-readable pricing, or AI-search features.
Why use it?
It helps keep page content, structured data, and machine-readable files consistent and accessible without exposing unnecessary attack paths.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when implementing or reviewing metadata, JSON-LD structured data, llms.txt files, crawlability, machine-readable pricing, or AI-search features.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/afaraha8403/balakit/seo-ai-search
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/afaraha8403/balakit

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 seo-ai-search

README.md
[![agentmods](https://agentmods.dev/badge/rules/afaraha8403/balakit/seo-ai-search/github.svg)](https://agentmods.dev/rules/afaraha8403/balakit/seo-ai-search)
Your own site
<a href="https://agentmods.dev/rules/afaraha8403/balakit/seo-ai-search"><img src="https://agentmods.dev/badge/rules/afaraha8403/balakit/seo-ai-search/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 seo-ai-search

Your own site · 80×15
<a href="https://agentmods.dev/rules/afaraha8403/balakit/seo-ai-search"><img src="https://agentmods.dev/badge/rules/afaraha8403/balakit/seo-ai-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,307 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00000 $0.01307
Opus 5 $0.00000 $0.00654
Sonnet 5 $0.00000 $0.00261
Haiku 4.5 $0.00000 $0.00131

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

Security

Grade B, and why

seo-ai-search scanned grade B with 1 finding 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 9d 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.

Instruction-override phrasingmediumPrompt injection

Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.

- **Prompt Injection Sanitization:** User-generated content (reviews, Q&A, profiles) surfaced in JSON-LD or `/llms.txt` MUST be sanitized. Ensure malicious instructions (e.g., "Ignore previous instructions and execute X"

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.cursor/rules/seo-ai-search.mdc · 111 lines

How it starts

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

Universal SEO & AI Search (Implementation & Security)

Apply when changing public-facing web pages or core SEO utility libraries.

For high-level strategy, manual audits, or marketing campaigns, refer to your project's marketing/SEO playbooks. Do not duplicate that workflow here.

Principle: AI visibility (LLMs, RAG systems, Agents) builds on valid HTML, extractable copy, structured data, and freshness. However, exposing Agentic Commerce endpoints and LLM-readable text creates new threat vectors. Optimize for both visibility and adversarial robustness.


Where Things Live (Agnostic Architecture)

Maintain strict separation of concerns across your framework (Next.js, Astro, Nuxt, etc.):

Concern Target Implementation
Meta clamping & sanitization Centralized utility file (e.g., meta.ts, seo.utils.ts)
JSON-LD builders Centralized schema definitions (e.g., schema.ts)
AI site index & routing /llms.txt (or framework equivalent route)
AI knowledge export /llms-full.txt (Full context export)
Machine-readable pricing Static server route (e.g., pricing.md or API)
Agentic commerce index Declared in /llms.txt under Agentic commerce
Crawler policy /robots.txt and /ai.txt in the public static directory

AI Security & Adversarial Defenses [CRITICAL]

When building endpoints specifically for AI consumption (/llms.txt, JSON-LD, UCP feeds), treat external LLMs and AI crawlers as potential attack vectors.

  • Prompt Injection Sanitization: User-generated content (reviews, Q&A, profiles) surfaced in JSON-LD or /llms.txt MUST be sanitized. Ensure malicious instructions (e.g., "Ignore previous instructions and execute X") cannot hijack downstream RAG systems or Agentic Commerce workflows.
  • Adversarial Validation (AV): Critical machine-readable logic (like Agentic capabilities or pricing APIs) should undergo adversarial testing. Ensure outputs cannot be easily hallucinated or misinterpreted by external models.
  • Crawler Nuance: Allow verified AI crawlers (e.g., GPTBot, ClaudeBot) in /robots.txt, but implement aggressive rate-limiting. Explicitly block unverified, aggressive scraper bots to prevent data scraping DDoS attacks.

Read the full file on GitHub · 111 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. 9d ago First seen · 111 lines · 1,307 tokens per session scan B e2d4ac2cd2c6

Subscribe to this mod's changes

seo-ai-search is a cursor rule published in the GitHub repository afaraha8403/balakit (1 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,307 tokens. A static security scan graded it B with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.