project-conventions

project-conventions is a cursor rule for Cursor from kequach/uniqlo-sales-alerter. It costs 1,033 tokens per session, scanned A, original, MIT.

A set of project rules for the Uniqlo Sales Alerter. It defines when to run tests and linting and when to update the changelog and README.

In plain words
What is it for?
Use it after changing the project's source or tests, especially when checking failures, lint errors, changelog entries, release versions, or README updates.
Why use it?
It reduces missed verification and keeps user-facing documentation aligned with code changes.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it after changing the project's source or tests, especially when checking failures, lint errors, changelog entries, release versions, or README updates.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kequach/uniqlo-sales-alerter/project-conventions
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/kequach/uniqlo-sales-alerter

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/kequach/uniqlo-sales-alerter/project-conventions/github.svg)](https://agentmods.dev/rules/kequach/uniqlo-sales-alerter/project-conventions)
Your own site
<a href="https://agentmods.dev/rules/kequach/uniqlo-sales-alerter/project-conventions"><img src="https://agentmods.dev/badge/rules/kequach/uniqlo-sales-alerter/project-conventions/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 project-conventions

Your own site · 80×15
<a href="https://agentmods.dev/rules/kequach/uniqlo-sales-alerter/project-conventions"><img src="https://agentmods.dev/badge/rules/kequach/uniqlo-sales-alerter/project-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,033 This file is loaded in full into every session.
When invoked 1,033 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.01033 $0.01033
Opus 5 $0.00517 $0.00517
Sonnet 5 $0.00207 $0.00207
Haiku 4.5 $0.00103 $0.00103

Measured 9d ago against content hash 307a826732bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 9d 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 · 47 lines

How it starts

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

Project Conventions

After every change

  • Run python -m pytest tests/ --tb=short and fix any failures before finishing — only when code in src/ or tests/ was modified. Skip for documentation-only changes (README.md, CHANGELOG.md, .cursor/rules/, etc.).
  • Run python -m ruff check src/ tests/ and fix any lint errors — same rule: only when code was modified.
  • Update CHANGELOG.md under the current version section for user-visible changes. The current version is the version field in pyproject.toml — never invent a new version number. Whenever the changelog is updated, also update the current version header's date to today's date (format: ## vX.Y.Z — YYYY-MM-DD).
  • When fixing a bug that was introduced within the current unreleased version, do not add a new Fixed entry — instead edit the existing changelog entry for that feature so it describes the correct final behaviour. Only document a Fixed entry when the bug affected a previously released version. (If unsure whether a behaviour shipped in an earlier release, check git log/git tag.)
  • Update README.md when user-facing behaviour changes: new config options, new CLI flags, new API endpoints, changed notification format, new Docker examples, or anything a user would need to know.
  • When modifying config.yaml, add or preserve comments that explain any new or changed keys and list supported option values where applicable.

Architecture

  • Country capabilities: Use config.capabilities (the CountryCapabilities registry in config.py) for any country-specific logic. Never hardcode country checks like if country == "ph".
  • Price display has three states in all notification channels:
    • has_known_discount=True and discount_percentage > 0 -- strikethrough with percentage
    • has_known_discount=False -- "Sale" label (limited countries, unknown discount)
    • has_known_discount=True and discount_percentage == 0 -- just the price, no label
  • has_known_discount is determined by whether the item came from the sale feed (in_sale_feed), not by the promo field.
  • Stock verification: Controlled by CountryCapabilities.stock_api. Countries with stock_api="v5" trust the stock data — items where all sizes are OOS are dropped. Countries with stock_api="none" (PH, TH) skip the stock call but still fetch L2 variant data for accurate product URLs; items are never dropped.
  • Product URL style: Controlled by CountryCapabilities.url_style. Countries with url_style="display_code" (default) use /{priceGroup}?colorDisplayCode=XX&sizeDisplayCode=YYY. Countries with url_style="code" (PH, TH) use ?colorCode=COLXX&sizeCode=SMAYYY without a price-group path segment. build_product_url handles both.

Read the full file on GitHub · 47 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. 9d ago First seen · 47 lines · 1,033 tokens per session scan A 307a826732bf

Subscribe to this mod's changes

project-conventions is a cursor rule published in the GitHub repository kequach/uniqlo-sales-alerter (30 stars, last pushed 20d ago), licensed MIT. It adds 1,033 tokens to every session, about $0.0052 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-09-01.