ai-customization

ai-customization is a cursor rule for Cursor from lsampaioweb/ai-instructions. It costs 0 tokens per session (1,835 once invoked), scanned A, original, MIT.

Writing rules for organizing guidance used by Cursor and GitHub Copilot, which are coding assistants. It explains when to use project instructions, path-specific rules, reusable skills, prompts, and agent definitions.

In plain words
What is it for?
Use it when creating or reviewing AGENTS.md files, Cursor rules, Copilot instructions, prompt templates, and agent definitions.
Why use it?
It prevents guidance from being placed in the wrong file, repeated in several places, or written too vaguely for the assistant to apply reliably.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions subagents; mentions AGENTS.md; mentions Cursor.

Good fit Use it when creating or reviewing AGENTS.md files, Cursor rules, Copilot instructions, prompt templates, and agent definitions.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/lsampaioweb/ai-instructions/ai-customization
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/lsampaioweb/ai-instructions

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-customization

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/lsampaioweb/ai-instructions/ai-customization"><img src="https://agentmods.dev/badge/rules/lsampaioweb/ai-instructions/ai-customization.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,835 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.01835
Opus 5.5 $0.00000 $0.00734
Sonnet 5.5 $0.00000 $0.00367
Haiku 4.5 $0.00000 $0.00184

Measured 1mo ago against content hash 09dda5bbb4ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-customization 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 1mo 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/ai-customization.mdc · 122 lines

How it starts

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

AI Customization Contract

Cursor counterpart of .github/instructions/ai-customization.instructions.md. Same enforceable contract; routing and workspace baseline differ by product as noted below.

Dependencies

  • Read the workspace baseline before creating or changing an AI customization file: AGENTS.md for Cursor guidance, or copilot-instructions.md for Copilot guidance.
  • Read the applicable domain contracts before editing a file that they govern: .cursor/rules/*.mdc topic rules for Cursor, or .github/instructions/*.instructions.md for Copilot.
  • Treat a missing required instruction, reference, or template as a blocker. Do not silently bypass it or invent a substitute.

Scope and ownership

  • Keep workspace-wide behavior in AGENTS.md (Cursor) or copilot-instructions.md (Copilot).
  • Keep reusable authoring and review rules for AI customization files in this contract (ai-customization.mdc / ai-customization.instructions.md).
  • Keep topic-specific implementation rules in the narrowest applicable file: Cursor .mdc rules under .cursor/rules/, Copilot *.instructions.md under .github/instructions/.
  • Keep one canonical owner for each shared policy. Reference that owner instead of duplicating the policy in other files.
  • Limit each file to the behavior implied by its name, description, and routing pattern.

Metadata and routing

  • Give every customization file the metadata required by its file type and product.
  • Write description so the file's purpose and trigger conditions are discoverable.
  • Copilot instruction files (*.instructions.md, copilot-instructions.md): use YAML frontmatter with description and applyTo. Use the narrowest applyTo pattern that covers the intended files without accidental matches.
  • Cursor rule files (.mdc): use YAML frontmatter with description, globs, and alwaysApply. Prefer alwaysApply: false for topic-specific contracts; route them with the narrowest globs that match the governed paths. Keep always-on workspace behavior in AGENTS.md, not in topic .mdc files unless a file is explicitly designed as a broad entry contract.
  • Add argument-hint when a prompt requires user-provided input.
  • Check routing patterns for overlap with existing files before adding or changing them.
  • Preserve technical literals exactly, including paths, commands, URLs, identifiers, configuration keys, and versions, unless they are demonstrably incorrect.

Read the full file on GitHub · 122 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. 1mo ago Changed · +37 lines 09dda5bbb4ef
  2. 3mo ago First seen · 85 lines · 0 tokens per session scan A ab966d80f272

Subscribe to this mod's changes

ai-customization is a cursor rule published in the GitHub repository lsampaioweb/ai-instructions (1 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,835 tokens. 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.

Related

ai-customization compared with cursor rules from other repositories

ai-customization next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-customizationlsampaioweb/ai-instructionsCursor rule111d agoMITA0Cursor
ponytailDietrichGebert/ponytailCursor rule203k10d agoMITA604Cursor
angular-20angular/angularCursor rule102ktodayMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Codex, Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48ktodayApache-2.0A0Codex, Cursor
shared-plane-packagesprisma/ormCursor rule48ktodayApache-2.0A0Codex, Cursor