com-example-service-NewAnnotationsShowcase

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

Rules for a Java service containing restricted database operations, performance-sensitive calculations, and handling of sensitive data.

In plain words
What is it for?
Controlling who may call database-wipe operations, keeping Fibonacci calculations allocation-free and side-effect-free, sanitizing raw SQL input, and masking credit-card and password values.
Why use it?
They limit dangerous callers, side effects, SQL injection risks, and accidental exposure of passwords or payment details in logs.

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-newannotationsshowcase
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-NewAnnotationsShowcase

README.md
[![agentmods](https://agentmods.dev/badge/rules/pisberg/vibetags/com-example-service-newannotationsshowcase.svg)](https://agentmods.dev/rules/pisberg/vibetags/com-example-service-newannotationsshowcase)
Your own site
<a href="https://agentmods.dev/rules/pisberg/vibetags/com-example-service-newannotationsshowcase"><img src="https://agentmods.dev/badge/rules/pisberg/vibetags/com-example-service-newannotationsshowcase.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 455 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.00455
Opus 5 $0.00000 $0.00228
Sonnet 5 $0.00000 $0.00091
Haiku 4.5 $0.00000 $0.00046

Measured 4d ago against content hash 43cc021f835e, 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-NewAnnotationsShowcase 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 4d 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-NewAnnotationsShowcase.mdc · 48 lines

What it actually says

Rules for NewAnnotationsShowcase

Rules for method executeSecureDatabaseWipe

  • Allowed Callers: [com.example.service.PricingService, com.example.payment.PaymentProcessor]

Rules for method calculateFastFibonacci

  • Policy: ZERO_ALLOCATION
  • Rule: Strictly limit or prevent object allocations.

Rules for method calculateFastFibonacci

  • Rule: Must remain a pure function. Forbid state modifications and side effects.
  • Reason: Memoized elsewhere on the assumption it is referentially transparent; adding logging or a cache mutation here would corrupt those callers

Rules for parameter NewAnnotationsShowcase.executeDatabaseQuery(java.lang.String)#sqlRawInput

  • Target Filters: SQL_INJECTION
  • Rule: Run raw input strings through approved sanitizers.

Secure Logging Masking

  • Rule: Never pass these raw variables to log appenders or stdout streams.

Rules for parameter NewAnnotationsShowcase.registerUserSession(java.lang.String,java.lang.String,java.lang.String)#creditCardNumber

  • Policy: MASK_CREDIT_CARD

Rules for parameter NewAnnotationsShowcase.registerUserSession(java.lang.String,java.lang.String,java.lang.String)#passwordRaw

  • Policy: HASH

Rules for method runComplexMatrixMath

  • Complexity Level: HIGH
  • Rule: Any logic modification requires updating a walkthrough/markdown file with structured architectural rationale.

Rules for method deprecatedLegacyCalculatePrice

  • Status: Strict Deprecation (No new references)
  • JIRA Ticket: DEBT-742
  • Replacement: com.example.service.PricingService

Rules for method temporaryUpstreamBypass

  • Expiration: 2028-12-31
  • Reason: Hotfix workaround until upstream payment provider updates their API.
  • Rule: Hotfix or stub that must be removed before expiration.
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. 4d ago First seen · 48 lines · 0 tokens per session scan A 43cc021f835e

Subscribe to this mod's changes

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