Style-DNA-Ghostwriter: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from Kaifazad/Style-DNA-Ghostwriter. It costs 517 tokens per session, scanned A, original, MIT.

A set of coding conventions extracted from a project's source files. It tells a coding agent how new and changed code should match the existing style.

In plain words
What is it for?
Use it when adding or editing code in this project, including naming, documentation, imports, error handling, and formatting.
Why use it?
It reduces inconsistent code by giving the agent concrete patterns to follow instead of making style choices from scratch.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

This is Kaifazad/Style-DNA-Ghostwriter's own configuration. It tells Cursor how to work on Style-DNA-Ghostwriter itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Style-DNA-Ghostwriter configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/runner/work/Style-DNA-Ghostwriter/Style-DNA-Ghostwriter)..

Reuse

Borrowing it

Nothing to install: this file belongs to Kaifazad/Style-DNA-Ghostwriter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Kaifazad/Style-DNA-Ghostwriter/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/Kaifazad/Style-DNA-Ghostwriter

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 cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/kaifazad/style-dna-ghostwriter/cursorrules/github.svg)](https://agentmods.dev/rules/kaifazad/style-dna-ghostwriter/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/kaifazad/style-dna-ghostwriter/cursorrules"><img src="https://agentmods.dev/badge/rules/kaifazad/style-dna-ghostwriter/cursorrules/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 cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/kaifazad/style-dna-ghostwriter/cursorrules"><img src="https://agentmods.dev/badge/rules/kaifazad/style-dna-ghostwriter/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 517 This file is loaded in full into every session.
When invoked 517 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.00517 $0.00517
Opus 5.5 $0.00207 $0.00207
Sonnet 5.5 $0.00103 $0.00103
Haiku 4.5 $0.00052 $0.00052

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

Security

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 17d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursorrules · 50 lines

How it starts

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

Style DNA (auto-generated -- do not hand-edit this section)

These conventions were extracted from this codebase's own source (42 files analyzed). Follow them for any new or modified code:

Python Conventions

  • Name functions and variables in snake_case (observed in 31 files from /home/runner/work/Style-DNA-Ghostwriter/Style-DNA-Ghostwriter).
  • Prefix internal/private names with a leading underscore (observed in ~20% of internal names).
  • Write plain-style docstrings on public functions/classes (coverage ~24% in this codebase).
  • Use type hints (observed in ~58% of function signatures).
  • Error handling convention: custom exceptions.
  • Prefer raising custom/domain-specific exception classes over generic ones.
  • Use double quotes for strings, matching the rest of the codebase.
  • Keep functions close to the codebase's typical length (~14 lines on average); avoid sprawling functions.
  • Common decorators in this codebase: property, classmethod, fixture.
  • Import ordering convention: grouped stdlib first.

Web Conventions

JavaScript / TypeScript

  • JS/TS quote style: mixed; prefer single quotes for new strings.
  • Semicolons: mixed in codebase; prefer omitting semicolons for new code.
  • Prefer arrow functions (const fn = () => {}).
  • Prefer named exports.
  • Use path aliases (@/...) instead of relative paths.
  • Prefer interface over type for object shapes in TypeScript.
  • TypeScript typing coverage: ~85% of function signatures are typed.
  • Comment style: JSDoc (/** ... */).

React / Next.js

  • React component style: mixed in codebase; prefer arrow functions (const Button = () => ...) for all new components.
  • Component file naming: PascalCase.
  • ~25% of components use 'use client' directive.
  • Custom hook patterns in use: useCartStore, useProducts.
  • State management: zustand.

CSS / Styling

  • Styling approach: Tailwind CSS utility classes.
  • Uses CSS custom properties (var(--token-name)) for design tokens.
  • Preferred color format: HSL.

Read the full file on GitHub · 50 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. 17d ago First seen · 50 lines · 517 tokens per session scan A cb0f1a0a501a

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository Kaifazad/Style-DNA-Ghostwriter (1 stars, last pushed 18d ago), licensed MIT. It adds 517 tokens to every session, about $0.0021 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-10-20.

Related

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrulesKaifazad/Style-DNA-GhostwriterCursor rule118d agoMITA517Cursor
cursormrwogu/promptscriptCursor rule3552d agoMITA53Cursor
1c-extension-specificsDesko77/cursor-1c-skillsCursor rule74yesterdayMITA0Cursor
swamr-state-managerVedthakar/swamrCursor rule151mo agoMITA37Cursor
cursor-tools-masterymadebyaris/advance-minimax-m3-cursor-rulesCursor rule1264mo agoMITA36Cursor
cursor-asddOneHillAI/ASDDCursor rule65d agoApache-2.0A190Cursor
minimax-mcp-toolsmadebyaris/advance-minimax-m3-cursor-rulesCursor rule1264mo agoMITA27Cursor