project-rules

A set of project rules for GuideAnts, an application with a desktop web interface and a .NET server. It defines the project layout, required technologies, file standards, and coding conventions.

In plain words
What is it for?
Use it when adding or reviewing GuideAnts frontend or backend code, choosing the required languages and frameworks, or following its formatting and versioning rules.
Why use it?
It gives coding agents the constraints they need to make changes that fit the existing project.

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/elumenotion/guideants/project-rules
Clone the repo
git clone --depth 1 https://github.com/Elumenotion/GuideAnts

Made for: Cursor.

Per session 1,168 This file is loaded in full into every session.
When invoked 1,168 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.01168 $0.01168
Opus 5 $0.00584 $0.00584
Sonnet 5 $0.00234 $0.00234
Haiku 4.5 $0.00117 $0.00117

Measured yesterday against content hash 236a6036f449, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

project-rules 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.

src/.cursor/rules/project-rules.mdc · 213 lines

How it starts

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

GuideAnts Project Rules

Project Structure

root/
  ├── client/                  # Frontend Electron application
  │   ├── src/                # Source code for React application
  │   ├── electron/           # Electron-specific code
  │   ├── public/             # Static assets
  │   ├── dist/               # Build output
  │   └── resources/          # Application resources
  └── server/                 # Backend .NET application
      ├── GuideAntsApi/       # Main API project
      ├── GuideAntsApi.DataModel/  # Data models and EF Core
      └── code-interpreter/   # Code interpretation services

Technology Stack Requirements

Frontend

  • Electron: ^36.3.1
  • Vite: ^6.3.5
  • React: ^19.1.0
  • TypeScript: ^5.8.3
  • TailwindCSS: ^3.4.1

Backend

  • ASP.NET Core: ^8.0
  • Entity Framework Core: ^8.0
  • SQL Server Database
  • Azure AD Authentication

Development Standards

General

  1. All new code must be written in TypeScript (frontend) or C# (backend)
  2. Use UTF-8 encoding for all text files
  3. Use LF (\n) for line endings
  4. Maximum line length: 120 characters
  5. Follow semantic versioning (MAJOR.MINOR.PATCH)

Frontend Standards

  1. Component Structure:

    • One component per file
    • Use functional components with hooks
    • Follow React best practices
  2. TypeScript Usage:

    • Strict mode enabled
    • No 'any' types unless absolutely necessary
    • Define interfaces for all props
  3. Styling:

    • Use TailwindCSS for styling
    • Follow utility-first approach
    • Maintain consistent spacing
  4. State Management:

    • Use React Context for global state
    • Prefer hooks for local state
    • Implement proper error boundaries

Backend Standards

  1. API Design:

    • RESTful principles
    • Proper HTTP methods
    • Consistent endpoint naming
    • Version control in URL
  2. Database:

    • Use data annotations
    • UTC timestamps
    • Proper cascade rules
    • Initialize collections
  3. Security:

    • HTTPS only
    • JWT authentication
    • Input validation
    • XSS prevention
    • CORS configuration

Read the full file on GitHub · 213 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. yesterday First seen · 213 lines · 1,168 tokens per session scan A 236a6036f449

Subscribe to this mod's changes

project-rules is a cursor rule published in the GitHub repository Elumenotion/GuideAnts (54 stars, last pushed 9d ago), licensed Apache-2.0. It adds 1,168 tokens to every session, about $0.0058 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.