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.
git clone --depth 1 https://github.com/madebyaris/poinf-of-salesWrote 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.
[](https://agentmods.dev/rules/madebyaris/poinf-of-sales/business-logic-patterns)<a href="https://agentmods.dev/rules/madebyaris/poinf-of-sales/business-logic-patterns"><img src="https://agentmods.dev/badge/rules/madebyaris/poinf-of-sales/business-logic-patterns/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.
<a href="https://agentmods.dev/rules/madebyaris/poinf-of-sales/business-logic-patterns"><img src="https://agentmods.dev/badge/rules/madebyaris/poinf-of-sales/business-logic-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00017 | $0.07226 |
| Opus 5 | $0.00009 | $0.03613 |
| Sonnet 5 | $0.00003 | $0.01445 |
| Haiku 4.5 | $0.00002 | $0.00723 |
Grade A, and why
business-logic-patterns 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 13d 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.
How it starts
The opening of the file, as written. The whole thing — 975 lines — stays where its author put it; the contents beside it link to each section on GitHub.
🍽️ POS Business Logic & Domain Patterns
🎯 Core Business Domain Understanding
Restaurant Operations Model
The POS system orchestrates complex restaurant operations with multiple stakeholders and intricate workflows:
// Domain Model - Core Business Entities
interface RestaurantDomain {
// Revenue Generation
orders: OrderLifecycle[]
payments: PaymentProcessing[]
inventory: InventoryManagement
// Operations Management
tables: TableManagement
staff: StaffOperations
kitchen: KitchenWorkflow
// Business Intelligence
analytics: BusinessAnalytics
reporting: FinancialReporting
}
// Business Rules Engine
class POSBusinessRules {
validateOrderCreation(order: CreateOrderRequest): ValidationResult
calculatePricing(items: OrderItem[]): PricingCalculation
manageInventory(productId: string, quantity: number): InventoryResult
optimizeKitchenWorkflow(orders: Order[]): WorkflowOptimization
}
🔄 Critical User Journeys & Performance Optimization
1. Server Journey: Dine-In Order Creation (Target: <30 seconds)
// ✅ PERFORMANCE-OPTIMIZED: Server workflow
class ServerWorkflowOptimization {
// Pre-load critical data for instant access
private async preloadServerData(): Promise<ServerContext> {
const [products, categories, tables, activeOrders] = await Promise.all([
this.productService.getAvailableProducts(), // Cache for 5 minutes
this.categoryService.getActiveCategories(), // Cache for 1 hour
this.tableService.getTableStatus(), // Real-time, 30s cache
this.orderService.getActiveOrders() // Real-time, 10s cache
])
return { products, categories, tables, activeOrders }
}
// Optimistic order creation with rollback
async createOrderOptimistic(orderData: CreateOrderRequest): Promise<Order> {
// 1. Immediate UI feedback (0ms)
this.ui.showOrderCreating(orderData)
// 2. Validate business rules locally (5-10ms)
const validation = await this.validateOrderBusiness(orderData)
if (!validation.isValid) {
throw new BusinessRuleError(validation.errors)
}
// 3. Optimistic update (10-15ms)
const optimisticOrder = this.generateOptimisticOrder(orderData)
this.ui.showOrderCreated(optimisticOrder)
// 4. Background server sync (100-200ms)
try {
const serverOrder = await this.orderService.createOrder(orderData)
this.reconcileOptimisticOrder(optimisticOrder, serverOrder)
return serverOrder
} catch (error) {
// Rollback optimistic changes
this.rollbackOptimisticOrder(optimisticOrder)
throw error
}
}
// Business rule validation (prevent API round-trips)
private async validateOrderBusiness(order: CreateOrderRequest): Promise<ValidationResult> {
const errors: string[] = []
// Table availability check
if (order.table_id && !this.isTableAvailable(order.table_id)) {
errors.push('Table is not available')
}
// Product availability batch check
const unavailableItems = order.items.filter(item =>
!this.isProductAvailable(item.product_id, item.quantity)
)
if (unavailableItems.length > 0) {
errors.push(`Products unavailable: ${unavailableItems.map(i => i.product_id).join(', ')}`)
}
// Business hours validation
if (!this.isDuringBusinessHours()) {
errors.push('Orders cannot be created outside business hours')
}
return { isValid: errors.length === 0, errors }
}
}
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.
- 13d ago First seen · 975 lines · 17 tokens per session scan A b7d0e78f7859
business-logic-patterns is a cursor rule published in the GitHub repository madebyaris/poinf-of-sales (142 stars, last pushed 1y ago), licensed MIT. It adds 17 tokens to every session and 7,226 once invoked, about $0.0001 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.
Other cursor rules, from other repositories
ehs-ims-conventions
EHS IMS app — RBAC, data layer, tRPC, migrations, AI boundaries.
paddle-integration
Conventions for Paddle integration code.
vtex-io-vtex-io-storefront-theme-app
Apply when designing or modifying a VTEX IO storefront theme app — the app that owns store/blocks.json, store/routes.json, store/templates/, store/contentSchemas.json, and the storefront page tree assembled from store.home, store.product, store.search, store.custom, and other native page templates. Covers how a theme…
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.