agentleFS
Luis000923Luis000923/Foker/skills/next-route/SKILL.md

next-route

Skill2 starsChanged 9 days agoApache-2.0View on GitHub

Implementa rutas Next.js y route handlers con límites de confianza explícitos.

The file

Files
SKILL.md

next-route

Procedimiento

  1. Identifica si el cambio es una página o un route handler y revisa las convenciones del proyecto.
  2. Mantén secretos y acceso a datos en el servidor; valida parámetros y cuerpo recibidos.
  3. Para route handlers con mutación usa assertSameOrigin antes de procesar entradas, conforme a §22.2; revisa el helper existente y prueba rechazo de orígenes ajenos.
  4. Comprueba autenticación y autorización antes de leer o mutar recursos; responde con estados HTTP apropiados sin filtrar datos internos.
  5. Define caché y manejo de errores conscientemente. Ejecuta typecheck, lint y test y prueba casos rechazados.

Errores comunes

  • Exponer secretos en componentes cliente.
  • Omitir assertSameOrigin o autorización en mutaciones.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.