core-principles

core-principles is a cursor rule for Cursor from omergulcicek/omergulcicek.com. It costs 492 tokens per session, scanned A, original, MIT.

A set of project rules for writing and changing TypeScript and React code consistently, including naming, error handling, validation, and secret protection.

In plain words
What is it for?
Use it when implementing features, reviewing existing code, organizing files and exports, and running type checks and linting.
Why use it?
It reduces inconsistent code, hidden failures, unsafe logging, unnecessary changes, and work that has not passed the required checks.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/omergulcicek/omergulcicek.com/core-principles
Clone the repo
git clone --depth 1 https://github.com/omergulcicek/omergulcicek.com

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 core-principles

README.md
[![agentmods](https://agentmods.dev/badge/rules/omergulcicek/omergulcicek.com/core-principles.svg)](https://agentmods.dev/rules/omergulcicek/omergulcicek.com/core-principles)
Your own site
<a href="https://agentmods.dev/rules/omergulcicek/omergulcicek.com/core-principles"><img src="https://agentmods.dev/badge/rules/omergulcicek/omergulcicek.com/core-principles.svg" alt="Measured on agentmods" height="20"></a>
Per session 492 This file is loaded in full into every session.
When invoked 492 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00492 $0.00492
Opus 5 $0.00246 $0.00246
Sonnet 5 $0.00098 $0.00098
Haiku 4.5 $0.00049 $0.00049

Measured 3d ago against content hash dcfbf105daaf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

core-principles 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 3d 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/core-principles.mdc · 56 lines

What it actually says

Core Constitution

Constraints

  • INTENTIONAL_TODO Rule: Usage is ONLY permitted for non-functional placeholders (e.g., temporary mock UI, future logging).
  • Business Integrity: Forbidden to use INTENTIONAL_TODO for business logic, error handling, or API integrations.
  • Pseudo-code: Forbidden. Provide working TypeScript/React code.
  • Reference: Do not say "Usually done like this"; link to repo rules.
  • Validation: Do not deliver without passing pnpm check-types and pnpm lint.
  • Search First: Analyze existing patterns before coding.
  • Minimal Intervention: Modify only necessary areas.
  • Source of Truth: Reference the codebase. Correct it if erroneous.
  • Boy Scout: Clean unused imports, console.log, and dead code.
  • Naming: kebab-case for folders/non-component files; PascalCase for React components. File type suffixes: *.types.ts, *.constants.ts, *.config.ts, *.test.ts, *.spec.ts, *.stories.tsx, *.schema.ts, *.api.ts, *.store.ts (base name in kebab-case).
  • Exports: Group exports with index.ts.
  • No Silent Failures: Do not swallow errors. Manage try/catch blocks.
  • Secret Protection: Do not log .env content.
  • Dependency: Obtain approval for new packages.

Bans

  • Comments (except JSDoc).
  • Placeholders/incomplete code.
  • catch (e) {} (Silent catch).
  • Logging secrets.
  • Out-of-scope refactoring.
  • // ...existing code (Provide full blocks).
  • Standard TODO or FIXME comments.
  • Using INTENTIONAL_TODO to skip core logic implementation.
  • Parent-relative imports (../, ../../). Use path aliases only.

Correct Implementation

Incorrect Implementation

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. 3d ago First seen · 56 lines · 492 tokens per session scan A dcfbf105daaf

Subscribe to this mod's changes

core-principles is a cursor rule published in the GitHub repository omergulcicek/omergulcicek.com (15 stars, last pushed 8d ago), licensed MIT. It adds 492 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-09-01.