general-llm-anti-patterns-07-09

general-llm-anti-patterns-07-09 is a cursor rule for Cursor from beettlle/pi-spine. It costs 3,678 tokens per session, scanned A, original, MIT.

A set of rules for avoiding common mistakes in AI-assisted software work, including ignoring existing code patterns, mishandling context, and using poor agent workflows. An agent workflow is the sequence an AI tool follows to complete a task.

In plain words
What is it for?
Use it to guide an AI coding assistant before it changes a codebase, especially when it must inspect existing patterns, manage context, or plan multi-step work.
Why use it?
It helps keep new code consistent with the existing project and prevents wasted effort caused by missing conventions or using an unsuitable process.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to guide an AI coding assistant before it changes a codebase, especially when it must inspect existing patterns, manage context, or plan multi-step work.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/beettlle/pi-spine/general-llm-anti-patterns-07-09
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/beettlle/pi-spine

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-llm-anti-patterns-07-09

README.md
[![agentmods](https://agentmods.dev/badge/rules/beettlle/pi-spine/general-llm-anti-patterns-07-09/github.svg)](https://agentmods.dev/rules/beettlle/pi-spine/general-llm-anti-patterns-07-09)
Your own site
<a href="https://agentmods.dev/rules/beettlle/pi-spine/general-llm-anti-patterns-07-09"><img src="https://agentmods.dev/badge/rules/beettlle/pi-spine/general-llm-anti-patterns-07-09/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-llm-anti-patterns-07-09

Your own site · 80×15
<a href="https://agentmods.dev/rules/beettlle/pi-spine/general-llm-anti-patterns-07-09"><img src="https://agentmods.dev/badge/rules/beettlle/pi-spine/general-llm-anti-patterns-07-09.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,678 This file is loaded in full into every session.
When invoked 3,678 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.03678 $0.03678
Opus 5.5 $0.01471 $0.01471
Sonnet 5.5 $0.00736 $0.00736
Haiku 4.5 $0.00368 $0.00368

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

Security

Grade A, and why

general-llm-anti-patterns-07-09 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.

.cursor/rules/general-llm-anti-patterns-07-09.mdc · 259 lines

How it starts

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

Pack: general-llm-anti-patterns.mdc (0–3) · general-llm-anti-patterns-04-06.mdc (4–6) · general-llm-anti-patterns-07-09.mdc (7–9) · general-llm-anti-patterns-10-12.mdc (10–12 + Summary)

General LLM Anti-Patterns (continued)

Companion to general-llm-anti-patterns.mdc. Section numbers preserved.

Category 7: Context & Understanding Anti-Patterns

7.1 Ignoring Existing Patterns

CRITICAL: Before implementing, check existing codebase patterns and conventions.

❌ Bad: Not following established codebase conventions, different pattern for same problem, duplicate implementations, ignoring architectural decisions ✅ Good: Review existing code before implementing, follow established patterns and conventions, use consistent naming and structure ⚠️ Why: Creates inconsistency, makes codebase harder to understand, violates established architecture, wastes effort 🔧 Fix: Review existing code before implementing; follow established patterns and conventions; use consistent naming and structure; ask questions if pattern unclear

Detect: Not following established codebase conventions, different pattern for same problem, duplicate implementations, ignoring architectural decisions


7.2 Context Window Limitations

CRITICAL: Break down complex tasks. Don't try to implement entire features in one response.

❌ Bad: Trying to implement entire feature in one go, not breaking down complex tasks, incomplete implementations due to context limits, restarting sessions unnecessarily for related tasks ✅ Good: Break complex tasks into smaller steps, implement one piece at a time, review and test each step, keep context loaded for related tasks when working on connected features ⚠️ Why: Context window exhaustion, incomplete implementations, missing important details, difficult to review and test; maintaining context for related tasks improves coherence and reduces redundant file loading 🔧 Fix: Break complex tasks into smaller steps; implement one piece at a time; review and test each step; use iterative development; maintain context for related tasks (don't restart unnecessarily)

Read the full file on GitHub · 259 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 · 259 lines · 3,678 tokens per session scan A 71c8c046fa3f

Subscribe to this mod's changes

general-llm-anti-patterns-07-09 is a cursor rule published in the GitHub repository beettlle/pi-spine (3 stars, last pushed today), licensed MIT. It adds 3,678 tokens to every session, about $0.0147 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-17.

Related

general-llm-anti-patterns-07-09 compared with cursor rules from other repositories

general-llm-anti-patterns-07-09 next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
general-llm-anti-patterns-07-09beettlle/pi-spineCursor rule3todayMITA3,678Cursor
ponytailDietrichGebert/ponytailCursor rule202k9d agoMITA604Cursor
angular-20angular/angularCursor rule102ktodayMITA0Cursor
dev-standardapache/supersetCursor rule76kyesterdayApache-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