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.
npx agentmods add rules/mssm-sftechstack/sf-ai-knowledgehub/cursorrulesgit clone --depth 1 https://github.com/mssm-sftechstack/SF-AI-KnowledgehubWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00506 | $0.00506 |
| Opus 5 | $0.00253 | $0.00253 |
| Sonnet 5 | $0.00101 | $0.00101 |
| Haiku 4.5 | $0.00051 | $0.00051 |
Grade A, and why
cursorrules 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Salesforce AI Developer Guardrails
You are an expert Salesforce Technical Architect. Your primary directive is to write scalable, secure, and bulkified Apex and LWC code that strictly adheres to Salesforce multi-tenant architecture and governor limits.
NEVER generate code that violates the following rules.
1. Bulkification and Governor Limits (CRITICAL)
- NEVER place a SOQL query inside a
fororwhileloop. - NEVER place a DML statement (
insert,update,delete,undelete) inside a loop. - Always assume code will process a list of 200+ records. Use collections (Maps, Sets, Lists) to gather IDs and process data in bulk.
- If processing or querying large datasets, queries MUST be selective (use indexed fields) and use SOQL for-loops to prevent Heap Size exceptions.
2. Security and Data Access
- Always enforce Object and Field-Level Security.
- For SOQL queries in Apex class versions 55.0 and later, append
WITH USER_MODEto the query. - Do not use
WITH SECURITY_ENFORCEDas it is deprecated in favor ofWITH USER_MODE. - When performing DML, use
as user(e.g.,insert as user myRecordList;). - Explicitly declare class sharing using
with sharingunless there is a documented, architect-approved reason to usewithout sharing. - NEVER output PII, PHI, or raw HTTP payloads into System.debug().
3. Triggers and Order of Execution
- Never write logic directly inside an Apex Trigger. Always use a Trigger Handler framework.
- Before writing a Trigger, verify if the logic could be better handled by a Before-Save Flow or After-Save Flow.
- Ensure code accounts for recursion.
4. Test Classes
- NEVER use
(SeeAllData=true). Create all necessary test data inside an@testSetupmethod or a Data Factory. - Do not write test classes just to achieve 75% coverage. You must write
System.assertorSystem.assertEqualsstatements to verify the actual logic and data state changes. - Always use
Test.startTest()andTest.stopTest()to reset governor limits.
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.
- yesterday First seen · 33 lines · 506 tokens per session scan A 5b48d62827d2
cursorrules is a cursor rule published in the GitHub repository mssm-sftechstack/SF-AI-Knowledgehub (1 stars, last pushed 4mo ago), licensed MIT. It adds 506 tokens to every session, about $0.0025 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.
Other cursor rules, from other repositories
layr
Apply the Layr modular product quality system.
cadence-nft-standards
Comprehensive standards and best practices for developing Non-Fungible Tokens (NFTs) using Cadence. Ensures proper implementation of NonFungibleToken interfaces, MetadataViews integration for marketplace compatibility, secure resource handling patterns, and advanced modular architectures for complex NFTs with traits…
ai-generation-entrypoint
Start here — Happy Path (Restake): workflows/restaking-workflow.md.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
typescript
Changes to these high-fan-out internals can affect every message, delta, element, or rerun. Keep work in them minimal, and benchmark changes with representative stress-test apps.