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.
npx agentmods add rules/lsampaioweb/ai-instructions/spring-boot-actuatorgit clone --depth 1 https://github.com/lsampaioweb/ai-instructionsWrote 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/lsampaioweb/ai-instructions/spring-boot-actuator)<a href="https://agentmods.dev/rules/lsampaioweb/ai-instructions/spring-boot-actuator"><img src="https://agentmods.dev/badge/rules/lsampaioweb/ai-instructions/spring-boot-actuator.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.00737 |
| Opus 5 | $0.00000 | $0.00368 |
| Sonnet 5 | $0.00000 | $0.00147 |
| Haiku 4.5 | $0.00000 | $0.00074 |
Grade A, and why
spring-boot-actuator 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.
How it starts
The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spring Boot Actuator Engine
Rules
- Keep actuator endpoint exposure allowlist-based.
- Expose only
healthandinfoby default. - Allow
metrics,prometheus, or any additional actuator endpoint only with explicit module-level opt-in. - Record the reason for any non-default actuator exposure in configuration comments or documentation.
- Configure the
infoendpoint to expose at most application name and version. - Keep base health details set to
when-authorizedunless a stricter policy is required. - Allow profile-specific health detail overrides when justified by environment needs.
- Prefer
alwaysonly for local or development profiles. - Prefer
neverfor production profiles unless an authenticated operational requirement is documented. - Keep
/actuator/healthpublicly accessible for liveness and readiness probes. - Set
management.endpoint.health.probes.enabled: trueinapplication.ymlfor container-aware deployments to activate/actuator/health/livenessand/actuator/health/readiness. - Configure explicit liveness (
/actuator/health/liveness) and readiness (/actuator/health/readiness) probe groups for container deployments. - Keep non-health actuator endpoints authenticated when Spring Security is active.
- Configure the management server on a dedicated port (
8081by default) to isolate actuator endpoints from application traffic. - Set
management.endpoints.web.base-pathto/actuatorexplicitly inapplication.yml. - Override
management.endpoints.web.base-pathin a profile file only when that profile uses a different base path. - Include metrics exposure only when runtime monitoring requires it.
- Keep metrics visibility consistent across active profiles.
- Use Micrometer Tracing as the tracing abstraction layer.
- Set
spring.application.nameas the service name for all trace spans. - Use W3C TraceContext (
traceparent) as the trace context propagation format. - Set sampling rate to
1.0for local and development profiles. - Set sampling rate to
0.1or lower for production profiles unless a higher rate is operationally justified and documented. - Configure the exporter endpoint explicitly in every profile that enables tracing.
- Keep a shared exporter endpoint definition in
application.ymlwhen all environments use the same externalized property key. - Override the exporter endpoint in a profile file only when that profile requires a different effective value or a local-development fallback.
- Disable tracing in test classes by setting
management.tracing.sampling.probability=0.0via environment variable override or inline@TestPropertySourcein test configuration. - Use
@Observedon service methods to create automatic spans via AOP when custom span boundaries are needed. - Use Micrometer
BaggageAPI to propagate contextual key-value pairs (e.g.,user.id,tenant.id) alongside trace context across service boundaries. - Externalize exporter endpoint URLs as configuration properties.
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.
- 5d ago First seen · 48 lines · 0 tokens per session scan A a64bfd051a27
spring-boot-actuator is a cursor rule published in the GitHub repository lsampaioweb/ai-instructions (1 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 737 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-31.
Other cursor rules, from other repositories
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.
cli-error-handling
CLI command error handling patterns.
prefer-assertions-over-defensive-checks
Prefer assertions over defensive checks when data is guaranteed to be valid.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.