service-quality-drill

service-quality-drill is a cursor rule for Cursor from pallerana/agentic-loop-engineering-kit. It costs 689 tokens per session, scanned A, original, Apache-2.0.

A quality checklist for Java and Spring Boot services, including tests, builds, code coverage, and review findings. A monorepo is one repository containing multiple projects or services.

In plain words
What is it for?
Use it when changing Java or Spring Boot services with Gradle to run the full build, inspect JaCoCo coverage, add regression tests, and resolve serious review issues.
Why use it?
It gives each change a repeatable way to check that the code works and that important paths are tested, without weakening coverage rules just to pass.

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/pallerana/agentic-loop-engineering-kit/service-quality-drill
Clone the repo
git clone --depth 1 https://github.com/pallerana/agentic-loop-engineering-kit

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 service-quality-drill

README.md
[![agentmods](https://agentmods.dev/badge/rules/pallerana/agentic-loop-engineering-kit/service-quality-drill.svg)](https://agentmods.dev/rules/pallerana/agentic-loop-engineering-kit/service-quality-drill)
Your own site
<a href="https://agentmods.dev/rules/pallerana/agentic-loop-engineering-kit/service-quality-drill"><img src="https://agentmods.dev/badge/rules/pallerana/agentic-loop-engineering-kit/service-quality-drill.svg" alt="Measured on agentmods" height="20"></a>
Per session 689 This file is loaded in full into every session.
When invoked 689 The same file — it is already loaded in full.
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.00689 $0.00689
Opus 5 $0.00345 $0.00345
Sonnet 5 $0.00138 $0.00138
Haiku 4.5 $0.00069 $0.00069

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

Security

Grade A, and why

service-quality-drill 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 3d 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/service-quality-drill.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.

Service Quality Drill

Applies to Java/Gradle services in consumer monorepos using the Agentic Loop Engineering Kit.

Also follow java-springboot-standards.mdc for coding patterns, layering, and ArchUnit rules.

Quality drill — every change

  1. Implement — smallest correct fix; match repo conventions; no speculative refactors.
  2. Regression test — unit for branches; integration/WebMvcTest/WireMock for wiring and HTTP contracts. Every Copilot/CodeQL thread must cite a named test.
  3. Local build: ./gradlew clean build from the repo root (full suite — not -x test).
  4. JaCoCo gate — read build.gradle.kts in the repo you are changing:
    • Default line ratio ≥ 0.80 unless build.gradle.kts states otherwise — never assume; do not inflate exclusions to pass the gate.
    • High-coverage services (e.g. MVP repos): ≥ 1.00 on measured packages when profile jacoco_line_ratio requires it.
    • On failure: inspect build/reports/jacoco/jacocoTestReport.html and add tests for uncovered measured lines.
  5. ce-code-review vs main — fix all P0/P1 before commit. For PR reviews, follow pr-code-review.mdc.
  6. Commit only when the user asks; batch logically.
  7. Push once per batch (minimize CI workflow runs).
  8. CI green: gh pr checks <n> --repo <org>/<repo-name> — wait for:
    • lint, build-and-test, Trivy, dependency-review, gitleaks, CodeQL
  9. Review threads: fix in code + test → reply → resolve. No “follow-up only” replies without implementation.
  10. Wiki writeback (when LLM-wiki is installed): append docs/wiki/log.md, update docs/wiki/current-status.md for durable outcomes.

Required merge checks (common across repos)

Branch protection on main expects the CI checks above plus code-owner reviews, conversation resolution, and linear history. CodeQL uses GitHub default setup — do not add a duplicate CodeQL workflow file.

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. 3d ago First seen · 47 lines · 689 tokens per session scan A faa7940c6983

Subscribe to this mod's changes

service-quality-drill is a cursor rule published in the GitHub repository pallerana/agentic-loop-engineering-kit (4 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 689 tokens to every session, about $0.0034 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-31.