project-conventions

project-conventions is a cursor rule for Cursor from mablanco/pricegrab. It costs 794 tokens per session, scanned A, original, MIT.

A repository-specific rulebook for how work is done in the PriceGrab project. It can override selected personal rules while leaving other preferences unchanged.

In plain words
What is it for?
Following the project's commit message format, creating feature branches, opening pull requests, and applying its rules for protected branches and remotes.
Why use it?
It prevents project instructions from conflicting with general preferences. It also keeps commits, branches, pull requests, and publishing consistent.

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/mablanco/pricegrab/project-conventions
Clone the repo
git clone --depth 1 https://github.com/mablanco/pricegrab

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 project-conventions

README.md
[![agentmods](https://agentmods.dev/badge/rules/mablanco/pricegrab/project-conventions.svg)](https://agentmods.dev/rules/mablanco/pricegrab/project-conventions)
Your own site
<a href="https://agentmods.dev/rules/mablanco/pricegrab/project-conventions"><img src="https://agentmods.dev/badge/rules/mablanco/pricegrab/project-conventions.svg" alt="Measured on agentmods" height="20"></a>
Per session 794 This file is loaded in full into every session.
When invoked 794 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.00794 $0.00794
Opus 5 $0.00397 $0.00397
Sonnet 5 $0.00159 $0.00159
Haiku 4.5 $0.00079 $0.00079

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

Security

Grade A, and why

project-conventions 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 5d 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/project-conventions.mdc · 70 lines

How it starts

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

PriceGrab — Project Conventions

These conventions apply to this repository only. They override matching global rules (e.g., the "commits in Spanish" rule from the user's global preferences). Any rule not addressed here continues to follow the user's global preferences.

Commit messages

  • Write commit messages in English.
  • Use Conventional Commits prefixes: feat:, fix:, docs:, chore:, refactor:, test:, style:, perf:, ci:, build:.
  • Subject line: imperative mood, ≤ 72 characters, no trailing period.
  • Body (optional): wrap at ~72 columns, explain the why, not the what.

Branching & PR flow

  • Never push directly to main. Always work on a feature branch and open a PR.
  • Branch naming: <type>/<short-slug> — e.g. feat/compare-screen, fix/decimal-parsing-es, chore/bootstrap-project.
  • Delete the remote branch after the PR is merged.
  • Keep main protected (required reviews + passing CI) once CI exists.

Publishing & remotes

  • git push and gh pr create are allowed without prior confirmation, as long as:
    • The push targets a feature branch, never main directly.
    • The branch content has been reviewed by the agent against .gitignore, the constitution and this file (no secrets, no legacy prototype sources, no *.aia files, no AI assistant state).
    • When CI fails on an open PR, follow-up "fix CI" commits may be pushed to the same feature branch without asking, until the PR is green or the agent hits a blocker it cannot resolve.
  • Only Marco merges pull requests. Never run gh pr merge, never enable auto-merge, never squash/rebase/merge via the API. Leaving the PR "ready for review" is the end state for the agent.
  • Never push to main directly, not even for a one-liner. Always open a PR.
  • Never force-push to main under any circumstance. Force-pushing a feature branch is allowed only when strictly necessary (e.g. rebase to resolve conflicts) and must be preceded by a note to Marco in the PR.
  • Never commit legacy prototype sources (*.aia) or any sensitive authentication material (tokens, keystores, .env, cloud credentials, AI assistant state). Rely on .gitignore to enforce this; verify with git status before every commit.

Read the full file on GitHub · 70 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. 5d ago First seen · 70 lines · 794 tokens per session scan A ca0d72a78a69

Subscribe to this mod's changes

project-conventions is a cursor rule published in the GitHub repository mablanco/pricegrab (11 stars, last pushed 4d ago), licensed MIT. It adds 794 tokens to every session, about $0.0040 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.