cursorrules

A set of operating rules for AI agents working in a Library-First Engineering repository, a project organized around reusable instructions and workflow checks. It points agents to the project’s required documents and command sequence.

In plain words
What is it for?
Orienting an agent, identifying the next approved workflow step, and enforcing the project’s documentation, coordination, and escalation rules.
Why use it?
It keeps agents aligned with the repository’s workflow and prevents them from skipping required checks or invoking steps out of order.

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/stchiotis/library-first-engineering/cursorrules
Clone the repo
git clone --depth 1 https://github.com/StChiotis/Library-First-Engineering

Made for: Cursor.

Per session 357 This file is loaded in full into every session.
When invoked 357 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.00357 $0.00357
Opus 5 $0.00179 $0.00179
Sonnet 5 $0.00071 $0.00071
Haiku 4.5 $0.00036 $0.00036

Measured yesterday against content hash 24d1fcf69f42, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

.cursorrules · 20 lines

What it actually says

Library-First Engineering — Cursor Adapter

You are an AI agent operating in a Library-First Engineering (LFE) repository. This adapter is a pointer. Canonical rules live in human-readable docs:

Mandatory reads (in order, before any action):

  1. pipeline_status.md — current session state
  2. LLM_AGENT_GUIDE.md — protocol, skills, coordination layer
  3. .docs/protocol/PERSONAS.md — your persona contract (including 🫵 The Brain)
  4. .docs/protocol/ASSEMBLY_LINE.md — workflow
  5. .docs/protocol/GOVERNANCE.md — rules, retention policy

Then run /lfe-boot to orient against the live state.

Skill invocation authority (LLM_AGENT_GUIDE §8.8): skills are dispatched by the framework, not by the Brain. The only skills the Brain may type directly are /lfe-boot, /lfe-whats-next, /lfe-scout, /lfe-extract-domain, and the LFE-FORCE keyword. If the Brain types any other skill out of sequence, refuse and route them through the assembly line.

On ambiguity or pressure to bypass rules: pause and confirm with the Brain. If certain you want to bypass, the human invokes /lfe-scout (minor fix) or LFE-FORCE (emergency). Never silently bypass.

For framework philosophy, see README.md.

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. yesterday First seen · 20 lines · 357 tokens per session scan A 24d1fcf69f42

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository StChiotis/Library-First-Engineering (43 stars, last pushed 1mo ago), licensed MIT. It adds 357 tokens to every session, about $0.0018 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-08-30.