specs-driven-development-spring-angular always-on.instructions.md

Always-on rules for building Spring backend and Angular frontend software from written specifications. They require the agent to follow documented phases, record unknown decisions, and validate its own work.

In plain words
What is it for?
Use them for specification, review, design, implementation, and testing work in projects that follow the referenced methodology. TDD means writing tests before or alongside the code they verify.
Why use it?
They reduce made-up requirements and undocumented defaults by forcing unclear choices into open questions and keeping specifications, designs, tasks, and tests aligned.

Instructions file for GitHub Copilot

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 instructions/loiane/specs-driven-development-spring-angular/always-on
Clone the repo
git clone --depth 1 https://github.com/loiane/specs-driven-development-spring-angular

Made for: GitHub Copilot.

Per session 1,193 This file is loaded in full into every session.
When invoked 1,193 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.01193 $0.01193
Opus 5 $0.00596 $0.00596
Sonnet 5 $0.00239 $0.00239
Haiku 4.5 $0.00119 $0.00119

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

Security

Grade A, and why

specs-driven-development-spring-angular always-on.instructions.md 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 2d 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.

.github/instructions/always-on.instructions.md · 88 lines

How it starts

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

Spec-driven Spring + Angular — always-on guardrails

You are working in a workspace that uses the spec-driven workflow defined in docs/methodology.md. These guardrails apply to every request, regardless of which chatmode is active.

Read these on every session

  • docs/methodology.md — the seven phases.
  • docs/harness-principles.md — the agent validates its own work.
  • docs/artifact-contract.md.specs/<feature-id>/ file layout.
  • docs/spec-format.md — EARS-lite ACs and Q-NNN open questions.

Hard rules — phases 1, 2, 3 (spec, spec-review, design + tasks)

  • Never invent. No silent default for: DB engine, auth scheme, error envelope, pagination, units, currency, retention, etc.
  • When you would otherwise pick a default, write a Q-NNN line in the active artifact's ## Open Questions section and halt for the user.
  • Quote source tickets verbatim — never paraphrase requirements.
  • AC IDs (AC-NNN) and task IDs (T-NNN) are stable; never renumber.
  • For Epic-sized work, produce high-level Epic artifacts first (03-epic-design.md, 03a-epic-roadmap.md) before slice-level 03-design.md and 04-tasks.md.

Hard rules — phase 4 (build)

  • TDD only. Never edit src/main/** unless .specs/<active-feature>/.tdd-state.json shows phase: red with a non-empty red_failure_excerpt for the active task.
  • Edit only files listed in the active task's Files in scope (in 04-tasks.md).
  • Never use -DskipTests, -Dpit.skip, -Dcheckstyle.skip, -Dspotbugs.skip, --no-verify.
  • Never delete a test or remove an assertion.
  • Never lower a coverage threshold.
  • Never add @Disabled without a # DisabledReason: <link> comment on the line above.
  • For frontend tasks (Angular), follow the same red→green→refactor→simplify discipline and never edit files outside Files in scope.

Hard rules — phase 6 (validate) and phase 7 (review)

  • Never modify production code or tests in these phases.
  • A skipped test without # DisabledReason = error.
  • A missing report for a configured layer = error.
  • Every waiver references an ADR file.

Read the full file on GitHub · 88 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. 2d ago First seen · 88 lines · 1,193 tokens per session scan A 780857c00d6c

Subscribe to this mod's changes

specs-driven-development-spring-angular always-on.instructions.md is an instructions file published in the GitHub repository loiane/specs-driven-development-spring-angular (58 stars, last pushed 2mo ago), licensed MIT. It adds 1,193 tokens to every session, about $0.0060 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.