com-example-service-OrderService

com-example-service-OrderService is a cursor rule for Cursor from PIsberg/vibetags. It costs 0 tokens per session (569 once invoked), scanned A, original, MIT.

A set of rules for an order service that calculates taxes, processes payments, validates orders, applies discounts, sends confirmations, and manages database transactions.

In plain words
What is it for?
Use it when modifying order processing, including Avalara tax calls, Stripe payments, validation, discount types, transaction handling, or confirmation emails.
Why use it?
It records business and security constraints around payment, tax, validation, database access, discounts, and customer emails, helping prevent unsafe changes.

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/pisberg/vibetags/com-example-service-orderservice
Clone the repo
git clone --depth 1 https://github.com/PIsberg/vibetags

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 com-example-service-OrderService

README.md
[![agentmods](https://agentmods.dev/badge/rules/pisberg/vibetags/com-example-service-orderservice.svg)](https://agentmods.dev/rules/pisberg/vibetags/com-example-service-orderservice)
Your own site
<a href="https://agentmods.dev/rules/pisberg/vibetags/com-example-service-orderservice"><img src="https://agentmods.dev/badge/rules/pisberg/vibetags/com-example-service-orderservice.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 569 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00569
Opus 5 $0.00000 $0.00284
Sonnet 5 $0.00000 $0.00114
Haiku 4.5 $0.00000 $0.00057

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

Security

Grade A, and why

com-example-service-OrderService 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.

examples/basic/.cursor/rules/com-example-service-OrderService.mdc · 53 lines

How it starts

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

Rules for OrderService

Rules for method calculateTax

  • Reason: Tax calculation uses Avalara API integration. Credentials and endpoint configuration managed by finance team.

Rules for method processPayment

  • Reason: Payment processing uses Stripe API v2024.10. Changes require PCI compliance review.

Rules for method validateOrder

  • Reason: Order validation implements 47 business rules. Last changed in Q2 2024 after 3-month testing cycle. DO NOT MODIFY without running full test suite.

Context & Focus

  • Focus: Maintain transactional integrity. All database operations must use proper transaction management.
  • Avoid: Raw SQL queries, direct database connections without connection pooling

Rules for method calculateDiscount

  • Instruction: Implement discount calculation supporting: percentage discounts, fixed amount discounts, buy-one-get-one-free, and tiered discounts based on cart value. Apply maximum one discount per order unless overridden by admin.

Rules for method generateOrderConfirmation

  • Instruction: Generate order confirmation email content including: order summary, itemized list, shipping address, estimated delivery date, and customer support contact information. Support HTML and plain text formats.

Rules for method searchOrders

  • Instruction: Implement order search with filters: date range, status, customer ID, minimum/maximum amount. Support pagination (default 20 items per page). Return results sorted by creation date descending.

Rules for method updateOrderStatus

  • Instruction: Implement order status workflow: CREATED -> PAYMENT_PENDING -> PAYMENT_CONFIRMED -> PROCESSING -> SHIPPED -> DELIVERED. Support status history tracking with timestamps. Allow cancellation only before SHIPPED status.

Rules for method generateOrderConfirmation

  • Rule: Never log or expose runtime values of this element.
  • Reason: Output contains customer shipping address and contact details (PII)

Read the full file on GitHub · 53 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 · 53 lines · 0 tokens per session scan A bbdeee6e024c

Subscribe to this mod's changes

com-example-service-OrderService is a cursor rule published in the GitHub repository PIsberg/vibetags (15 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 569 tokens. 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.