windsurfrules

windsurfrules is a cursor rule for Windsurf from robearlam/sitecoreai-harness-engineering. It costs 1,820 tokens per session, scanned A, original, Apache-2.0.

A set of coding rules for a Sitecore content-management project built with Next.js and TypeScript. It describes the technologies, naming rules, and preferred coding practices.

In plain words
What is it for?
It helps an agent write and organise TypeScript, React, and Next.js code for Sitecore XM Cloud, including component names, folders, and internationalisation conventions.
Why use it?
It gives a coding agent project-specific guidance, reducing inconsistent code and repeated explanations about how this application is organised.

Cursor rule for Windsurf

Written for Windsurf: a Windsurf rule.

Good fit It helps an agent write and organise TypeScript, React, and Next.js code for Sitecore XM Cloud, including component names, folders, and internationalisation conventions.

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

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 windsurfrules

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/robearlam/sitecoreai-harness-engineering/windsurfrules"><img src="https://agentmods.dev/badge/rules/robearlam/sitecoreai-harness-engineering/windsurfrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,820 This file is loaded in full into every session.
When invoked 1,820 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.01820 $0.01820
Opus 5.5 $0.00728 $0.00728
Sonnet 5.5 $0.00364 $0.00364
Haiku 4.5 $0.00182 $0.00182

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

Security

Grade A, and why

windsurfrules 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/.windsurfrules · 291 lines

How it starts

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

Sitecore Content SDK Next.js App Router Project - Windsurf AI Rules

Project Purpose and Tech Stack

This is a Sitecore Content SDK application built with Next.js App Router and TypeScript. The project follows Sitecore best practices for XM Cloud development and leverages the latest Next.js App Router features for improved performance and developer experience.

Key Technologies

  • Next.js App Router - React framework with Server Components and modern routing
  • Sitecore Content SDK - Official SDK for Sitecore XM Cloud integration
  • TypeScript - Type-safe JavaScript development
  • Sitecore XM Cloud - Headless CMS platform
  • React Server Components - Server-side rendering for better performance
  • next-intl - Internationalization support

Coding Standards

TypeScript Standards

  • Use strict mode in tsconfig.json
  • Prefer type assertions over any: value as ContentItem
  • Use discriminated unions for complex state management
  • Enable strict null checks and strict function types

Naming Conventions

  • Variables/Functions: camelCase (getUserData(), isLoading, currentUser)
  • Components: PascalCase (SitecoreComponent, PageLayout, ContentBlock)
  • Constants: UPPER_SNAKE_CASE (API_ENDPOINT, DEFAULT_TIMEOUT)
  • Directories: kebab-case (src/components, src/api-clients)
  • Types/Interfaces: PascalCase (ContentItem, LayoutProps, SitecoreConfig)

Modular Layout (App Router)

src/
  app/                 # App Router pages and layouts
  components/          # UI components (React)
  lib/                 # Configuration and utilities
  i18n/                # Internationalization setup
  types/               # TypeScript type definitions
  hooks/               # Custom React hooks

Library Usage

@sitecore-content-sdk

  • Use SitecoreClient for content fetching
  • Implement proper error handling with try/catch blocks
  • Cache API responses using React Query or SWR
  • Handle content preview vs. published content scenarios

Read the full file on GitHub · 291 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. 14d ago First seen · 291 lines · 1,820 tokens per session scan A 759fab0c606b

Subscribe to this mod's changes

windsurfrules 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 1,820 tokens to every session, about $0.0073 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

windsurfrules compared with cursor rules from other repositories

windsurfrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
windsurfrulesrobearlam/sitecoreai-harness-engineeringCursor rule116d agoApache-2.0A1,820Windsurf
vue-typescript-patternssoaring-xiongkulu/easyaiotCursor rule7673d agoMITA381Cursor
nextjs-typescript-app-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A66Cursor
tsun-pany/v3-admin-viteCursor rule7.1k4mo agoMITA287Cursor
typescript-securityfmflurry/settings-opencodeCursor rule17024d agoMITA0Cursor
naming-conventions-ruleholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA64Cursor
typescriptjeffgreendesign/textrawlCursor rule62d agoMITA0Cursor