always-on

always-on is a cursor rule for Windsurf from loiane/specs-driven-development-spring-angular. It costs 24 tokens per session (978 once invoked), scanned A, original, MIT.

A set of always-active rules for a Spring Boot 4 project that uses a written, step-by-step development process. The rules require reading project specifications first, recording unknown decisions as questions, and following a test-first workflow before editing application code.

In plain words
What is it for?
They are for spec-driven feature work, tracking requirements and open questions, preparing larger work in stages, and enforcing test-driven development (TDD), where a failing test is written before the implementation.
Why use it?
They prevent the coding agent from inventing unspecified choices or changing code without the required design, scope, and failing-test evidence.

Cursor rule for Windsurf

Written for Windsurf: installed under .windsurf/. Also seen: mentions Claude Code.

Good fit They are for spec-driven feature work, tracking requirements and open questions, preparing larger work in stages, and enforcing test-driven development (TDD), where a failing test is written before the implementation.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/loiane/specs-driven-development-spring-angular/always-on
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.

Clone the repo
git clone --depth 1 https://github.com/loiane/specs-driven-development-spring-angular

Made for: Windsurf.

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 always-on

README.md
[![agentmods](https://agentmods.dev/badge/rules/loiane/specs-driven-development-spring-angular/always-on/github.svg)](https://agentmods.dev/rules/loiane/specs-driven-development-spring-angular/always-on)
Your own site
<a href="https://agentmods.dev/rules/loiane/specs-driven-development-spring-angular/always-on"><img src="https://agentmods.dev/badge/rules/loiane/specs-driven-development-spring-angular/always-on/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.

agentmods 80×15 button for always-on

Your own site · 80×15
<a href="https://agentmods.dev/rules/loiane/specs-driven-development-spring-angular/always-on"><img src="https://agentmods.dev/badge/rules/loiane/specs-driven-development-spring-angular/always-on.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 978 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00024 $0.00978
Opus 5.5 $0.00010 $0.00391
Sonnet 5.5 $0.00005 $0.00196
Haiku 4.5 $0.00002 $0.00098

Measured 4d ago against content hash e2bfe4665261, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

always-on 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.

.windsurf/rules/always-on.md · 67 lines

How it starts

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

Always-on rules

You are working in a workspace governed by docs/methodology.md (seven-phase spec-driven workflow) and docs/harness-principles.md (the agent validates its own work).

Read-first

At the start of every session, read:

  • docs/methodology.md
  • docs/harness-principles.md
  • docs/artifact-contract.md
  • docs/spec-format.md
  • The active feature's .specs/<feature-id>/ files, in numerical order.

Hard rules — phases 1–3 (no invention)

  • Never invent a default. When you would otherwise pick one (DB engine, auth, error envelope, pagination, units, currency, retention, etc.), append a Q-NNN to the active artifact's ## Open Questions and halt for the user.
  • Quote source tickets verbatim.
  • Stable IDs — AC-NNN, T-NNN, Q-NNN are never renumbered.
  • For Epic-sized work, produce 03-epic-design.md and 03a-epic-roadmap.md before detailed slice-level 03-design.md and 04-tasks.md.

Hard rules — phase 4 (TDD)

  • Before any edit to src/main/**, read .specs/<active-feature>/.tdd-state.json. Refuse the edit unless the active task's phase == "red" and red_failure_excerpt is non-empty AND the file is in files_in_scope.
  • If you discover the precondition is not met, run the matching workflow first (e.g. invoke spring-test-engineer to write the failing test).
  • Never use -DskipTests, -Dpit.skip, -Dcheckstyle.skip, -Dspotbugs.skip, --no-verify.
  • Never delete a test or remove an assertion.
  • Never add @Disabled without a # DisabledReason: <link> on the line above.
  • Never lower a coverage threshold.

Hard rules — phases 6 and 7

  • spring-validator and spring-code-reviewer never edit production code or tests; they only write the validation/review artifact.
  • A skipped test without # DisabledReason = error.
  • A missing report for a configured layer = error.
  • Every waiver references an ADR.

Spring Boot 4 conventions

Apply .windsurf/skills/spring-boot-4-conventions/SKILL.md, archunit-rules/SKILL.md, spring-security-baseline/SKILL.md.

Read the full file on GitHub · 67 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. 4d ago First seen · 67 lines · 24 tokens per session scan A e2bfe4665261

Subscribe to this mod's changes

always-on is a cursor rule published in the GitHub repository loiane/specs-driven-development-spring-angular (62 stars, last pushed 3d ago), licensed MIT. It adds 24 tokens to every session and 978 once invoked, about $0.0001 per session on Opus 5.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-10-12.