pricing-display

pricing-display is a cursor rule for Cursor from moasq/ios-dev-agent. It costs 408 tokens per session, scanned A, original, MIT.

A set of rules for displaying subscription and in-app purchase prices using current StoreKit or RevenueCat data. StoreKit is Apple's system for handling App Store purchases.

In plain words
What is it for?
It guides paywalls, upgrade prompts, onboarding price text, and subscription metadata.
Why use it?
It prevents apps from showing outdated or manually entered prices, trial periods, or savings claims.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: positional $N argument.

Good fit It guides paywalls, upgrade prompts, onboarding price text, and subscription metadata.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/moasq/ios-dev-agent/pricing-display
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/moasq/ios-dev-agent

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 pricing-display

README.md
[![agentmods](https://agentmods.dev/badge/rules/moasq/ios-dev-agent/pricing-display/github.svg)](https://agentmods.dev/rules/moasq/ios-dev-agent/pricing-display)
Your own site
<a href="https://agentmods.dev/rules/moasq/ios-dev-agent/pricing-display"><img src="https://agentmods.dev/badge/rules/moasq/ios-dev-agent/pricing-display/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 pricing-display

Your own site · 80×15
<a href="https://agentmods.dev/rules/moasq/ios-dev-agent/pricing-display"><img src="https://agentmods.dev/badge/rules/moasq/ios-dev-agent/pricing-display.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 408 This file is loaded in full into every session.
When invoked 408 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.00408 $0.00408
Opus 5 $0.00204 $0.00204
Sonnet 5 $0.00082 $0.00082
Haiku 4.5 $0.00041 $0.00041

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

Security

Grade A, and why

pricing-display 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/pricing-display.mdc · 62 lines

What it actually says

Pricing Display Rules

Use these rules for an app's own subscriptions and in-app purchases.

Source Of Truth

Paywall, upgrade prompts, onboarding price mentions, and subscription metadata must use live StoreKit or RevenueCat data. Do not hardcode price, period, trial duration, or savings claims in Swift.

Banned Patterns

let yearlyPrice: Decimal = 29.99
Text("$29.99")
Text("$2.50 / month")
Text("Save 60%")
Text("7-day free trial")
Text("Was $59.99").strikethrough()
String(format: "$%.2f / mo", monthly)

Allowed Patterns

Text(package.storeProduct.localizedPriceString)

if let trial = package.storeProduct.freeTrialDescription {
    Text(trial)
}

if let savings = annual.savingsPercent(comparedTo: weekly) {
    Text("Save \(savings)%")
}

The helper methods may compute values from StoreKit/RevenueCat package data, but the view layer should not invent pricing strings.

Release Audit

Before submission, scan Swift source for:

  • Numeric price literals.
  • Hardcoded currency symbols in paywall copy.
  • Hardcoded /mo, /month, /yr, /year, /week labels attached to prices.
  • Hardcoded savings percentages.
  • Hardcoded trial durations.

All matches must be derived from StoreKit/RevenueCat data or replaced with generic copy.

Metadata Copy

App Store metadata should avoid price literals unless the team is prepared to verify and update them before every release. Prefer generic copy such as "Choose annual for the best per-month value" over specific numbers.

Apple Review

Auto-renewing subscriptions must clearly disclose subscription length, price, and renewal terms. The safest implementation is to display the values returned by StoreKit or RevenueCat for the current storefront.

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 · 62 lines · 408 tokens per session scan A 596f78359c12

Subscribe to this mod's changes

pricing-display is a cursor rule published in the GitHub repository moasq/ios-dev-agent (4 stars, last pushed 3mo ago), licensed MIT. It adds 408 tokens to every session, about $0.0020 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-03.