08-stack-web-default

08-stack-web-default is a cursor rule for Cursor from Mazalucas/El-DT-Lightweight-Army. It costs 27 tokens per session (876 once invoked), scanned A, original, MIT.

A default technology choice for new web projects: Node.js with Firebase for the backend, database, authentication, and hosting-related services.

In plain words
What is it for?
It helps plan web apps, dashboards, APIs, authentication, databases, deployments, and MVPs.
Why use it?
It gives web work a starting architecture while allowing the existing repository or an explicit user choice to take priority.

Cursor rule for Cursor

Written for Cursor: installed under .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/mazalucas/el-dt-lightweight-army/08-stack-web-default
Clone the repo
git clone --depth 1 https://github.com/Mazalucas/El-DT-Lightweight-Army

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 08-stack-web-default

README.md
[![agentmods](https://agentmods.dev/badge/rules/mazalucas/el-dt-lightweight-army/08-stack-web-default.svg)](https://agentmods.dev/rules/mazalucas/el-dt-lightweight-army/08-stack-web-default)
Your own site
<a href="https://agentmods.dev/rules/mazalucas/el-dt-lightweight-army/08-stack-web-default"><img src="https://agentmods.dev/badge/rules/mazalucas/el-dt-lightweight-army/08-stack-web-default.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 876 The whole file, excluding the scripts and references it only reads on demand.
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.1 $0.00027 $0.00876
Opus 5 $0.00014 $0.00438
Sonnet 5 $0.00005 $0.00175
Haiku 4.5 $0.00003 $0.00088

Measured 2d ago against content hash f2ffaa192c14, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

08-stack-web-default 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.

.cursor/rules/08-stack-web-default.mdc · 89 lines

How it starts

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

Stack web canónico (Firebase + Node)

Fuente de datos: vitals/data/engineering/web-stack.yaml. Override local opcional: .agents/engineering-stack.md.

Cuándo aplica

Activar esta regla cuando el pedido implique desarrollo web o arquitectura de producto web:

  • App web, SPA, dashboard, admin panel
  • Landing con backend o autenticación
  • API REST/HTTP para cliente web o mobile
  • MVP, PRD o SRD con componente técnico web
  • Deploy, auth, base de datos o hosting para producto web

No aplica como stack DB/backend cuando: solo diseño Atelier sin implementación; video Remotion; tareas puramente de docs/marketing sin código.

Precedencia (soft default)

Resolver en este orden (mayor prioridad primero):

  1. Opt-out explícito del usuario — respeta la elección; documenta trade-offs si difiere del default.
  2. Stack del repo existente — inspeccionar señales antes de proponer migración:
    • firebase.json, firestore.rules, firestore.indexes.json
    • package.json (dependencias firebase, vite, react)
    • requirements.txt, go.mod, Cargo.toml, docker-compose con Postgres/MySQL
    • README o docs de arquitectura del proyecto
  3. .agents/engineering-stack.md — si existe, usar como stack confirmado del proyecto.
  4. Default DTweb-stack.yaml: Node + Firebase completo; frontend Vite + React.

Si el repo ya tiene stack claro distinto (p. ej. Python/Django + Postgres), respetarlo. Mencionar el default DT solo como nota, no empujar migración.

Stack default (proyecto nuevo o ambiguo)

Capa Default
Runtime Node.js LTS
Auth Firebase Auth
Base de datos Firestore
Backend/API Cloud Functions for Firebase (Node)
Hosting Firebase Hosting / App Hosting
Archivos Cloud Storage
Secrets Firebase Secrets
Frontend Vite + React (Firebase JS SDK modular v9+)

Alternativas (Supabase, Postgres, Python, etc.): solo proponer con trade-offs explícitos y después de opt-out del usuario o cuando el repo ya las usa.

Read the full file on GitHub · 89 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 · 89 lines · 27 tokens per session scan A f2ffaa192c14

Subscribe to this mod's changes

08-stack-web-default is a cursor rule published in the GitHub repository Mazalucas/El-DT-Lightweight-Army (4 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 876 once invoked, about $0.0001 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-09-03.