general

general is a cursor rule for Cursor from robearlam/sitecoreai-harness-engineering. It costs 359 tokens per session, scanned A, original, Apache-2.0.

A set of general coding principles for a Sitecore project, covering reusable code, modular design, clear data flow, input checks, and testable code.

In plain words
What is it for?
It guides decisions about functions, modules, dependencies, validation, and tests when developing the project.
Why use it?
It helps prevent duplicated, tightly connected, or unclear code and encourages safer handling of errors and external services.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It guides decisions about functions, modules, dependencies, validation, and tests when developing the project.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/robearlam/sitecoreai-harness-engineering/general
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/robearlam/sitecoreai-harness-engineering

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 general

README.md
[![agentmods](https://agentmods.dev/badge/rules/robearlam/sitecoreai-harness-engineering/general/github.svg)](https://agentmods.dev/rules/robearlam/sitecoreai-harness-engineering/general)
Your own site
<a href="https://agentmods.dev/rules/robearlam/sitecoreai-harness-engineering/general"><img src="https://agentmods.dev/badge/rules/robearlam/sitecoreai-harness-engineering/general/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 general

Your own site · 80×15
<a href="https://agentmods.dev/rules/robearlam/sitecoreai-harness-engineering/general"><img src="https://agentmods.dev/badge/rules/robearlam/sitecoreai-harness-engineering/general.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 359 This file is loaded in full into every session.
When invoked 359 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.00359 $0.00359
Opus 5.5 $0.00144 $0.00144
Sonnet 5.5 $0.00072 $0.00072
Haiku 4.5 $0.00036 $0.00036

Measured 14d ago against content hash 93da3f6c4291, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

general 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 14d 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.

src/headapps/rob-harness-engineering/.cursor/rules/general.mdc · 81 lines

What it actually says

General Coding Principles

Universal Standards

DRY Principle:

  • Don't Repeat Yourself - extract common functionality
  • Create reusable utilities and helper functions
  • Use composition over inheritance
  • Share types and interfaces across modules

SOLID Principles:

  • Single Responsibility: each function/class has one purpose
  • Open/Closed: extend functionality through composition
  • Dependency Inversion: depend on abstractions, not implementations

Code Clarity:

  • Write self-documenting code with clear intent
  • Use meaningful names that express business concepts
  • Prefer explicit over implicit behavior
  • Make dependencies and requirements obvious

Architecture Patterns

Modular Design:

  • Organize code into focused, cohesive modules
  • Minimize coupling between modules
  • Use clear interfaces between layers
  • Follow established patterns consistently

Data Flow:

  • Prefer unidirectional data flow
  • Validate inputs at system boundaries
  • Transform data at appropriate layers
  • Handle errors close to their source

Testing:

  • Write testable code with minimal dependencies
  • Use dependency injection for better testability
  • Mock external services and side effects
  • Test behavior, not implementation details

Development Standards

Version Control:

  • Write descriptive commit messages
  • Keep commits focused and atomic
  • Use branching strategies appropriate to team size
  • Review code before merging

Documentation:

  • Document public APIs and interfaces
  • Include usage examples for complex functionality
  • Keep documentation close to code
  • Update documentation with code changes

Performance:

  • Optimize for readability first, performance second
  • Profile before optimizing
  • Cache expensive operations appropriately
  • Consider memory usage and cleanup

Referenced: @src/app/ @src/components/ @src/lib/

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. 14d ago First seen · 81 lines · 359 tokens per session scan A 93da3f6c4291

Subscribe to this mod's changes

general is a cursor rule published in the GitHub repository robearlam/sitecoreai-harness-engineering (11 stars, last pushed 6d ago), licensed Apache-2.0. It adds 359 tokens to every session, about $0.0014 per session on Opus 5.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-11-16.

Related

general compared with cursor rules from other repositories

general next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generalrobearlam/sitecoreai-harness-engineeringCursor rule116d agoApache-2.0A359Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor
angular-20angular/angularCursor rule102k4d agoMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
shared-plane-packagesprisma/ormCursor rule48ktodayApache-2.0A0Cursor