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.
git clone --depth 1 https://github.com/loiane/specs-driven-development-spring-angularWrote 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/loiane/specs-driven-development-spring-angular/frontend-code)<a href="https://agentmods.dev/rules/loiane/specs-driven-development-spring-angular/frontend-code"><img src="https://agentmods.dev/badge/rules/loiane/specs-driven-development-spring-angular/frontend-code/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.
<a href="https://agentmods.dev/rules/loiane/specs-driven-development-spring-angular/frontend-code"><img src="https://agentmods.dev/badge/rules/loiane/specs-driven-development-spring-angular/frontend-code.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00000 | $0.00457 |
| Opus 5.5 | $0.00000 | $0.00183 |
| Sonnet 5.5 | $0.00000 | $0.00091 |
| Haiku 4.5 | $0.00000 | $0.00046 |
Grade A, and why
frontend-code 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 25d 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.
What it actually says
Frontend code rule (Angular)
When about to edit an Angular source file (*.ts, *.html, *.scss, *.css under src/):
- Read
.specs/<active-feature>/.tdd-state.json. - For production files (anything except
*.spec.ts), verifytasks[<active-task>].phaseisred,green,refactor, orsimplify,red_atis set,red_failure_excerptis non-empty, AND the file appears infiles_in_scope. - For
*.spec.tsfiles, verify the file appears infiles_in_scope. - If verification fails, stop and tell the user: "No failing test for task
<task-id>. Invoke/build <task-id>to write the test first."
Build-phase rules (TDD)
- Test-first: write/extend failing tests before implementing behavior.
- Never skip frontend tests to force green.
- Never remove assertions from existing tests.
Angular implementation rules
Apply skills: .windsurf/skills/angular-developer/SKILL.md, .windsurf/skills/clarity-over-cleverness/SKILL.md.
- Prefer standalone components and typed interfaces/models.
- Keep smart/container logic separate from presentational components where practical.
- Avoid hardcoded API URLs in components; route all calls through services.
- Keep templates accessible: semantic buttons/inputs, labels, and keyboard-operable controls.
Test rules
- Add/maintain component/service tests for new behavior.
- Every user-input validation rule needs a negative-path test.
- For optimistic-update flows, test both success and rollback paths.
Validate/review rules
- During
/validateand/review, never modify production code or tests. - Missing frontend validation outputs (lint/test/build for changed UI scope) is an error.
- Any waiver must reference an ADR.
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.
- 25d ago First seen · 42 lines · 0 tokens per session scan A d1e41c96e7d2
frontend-code is a cursor rule published in the GitHub repository loiane/specs-driven-development-spring-angular (66 stars, last pushed 22d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 457 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-11-05.
frontend-code compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| frontend-codeloiane/specs-driven-development-spring-angular | Cursor rule | 66 | 22d ago | MIT | A | 0 | Windsurf |
| scopesgetsentry/sentry-java | Cursor rule | 1.4k | today | MIT | A | 7 | Cursor |
| metricsgetsentry/sentry-java | Cursor rule | 1.4k | today | MIT | A | 2 | Cursor |
| sddpattilaszasz/sdd-pilot | Cursor rule | 99 | 1mo ago | MIT | A | 15 | Windsurf |
| project-modules-and-stackSiborne/YiSmart-Cloud | Cursor rule | 5 | 11d ago | MIT | A | 418 | Cursor |
| backend-mapper-conventionsSiborne/YiSmart-Cloud | Cursor rule | 5 | 11d ago | MIT | A | 0 | Cursor |
| front-vue-page-conventionsSiborne/YiSmart-Cloud | Cursor rule | 5 | 11d ago | MIT | A | 0 | Cursor |