frontend-principles
Criterios de trabajo para HTML semántico, CSS y JavaScript vanilla.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Frontend Principles
Propósito
Definir criterios operativos para mantener HTML semántico, CSS claro y JavaScript vanilla simple en este repositorio estático.
HTML semántico
- Usar etiquetas semánticas (
header,nav,main,section,article,footer). - Mantener jerarquía lógica de títulos (
h1→h2→h3). - Evitar
divsi existe una etiqueta semántica adecuada. - Mantener una estructura clara y fácil de leer.
CSS (orden, responsive, simplicidad)
- Priorizar estilos legibles y consistentes.
- Mantener un orden lógico (layout → componentes → utilidades).
- Usar enfoque mobile-first y ajustar con breakpoints mínimos.
- Evitar reglas innecesarias o duplicadas.
- Preferir cambios locales antes que reestructuras globales.
JavaScript vanilla (claridad, modularidad básica)
- Usar JavaScript vanilla, sin librerías ni frameworks.
- No agregar JS si el cambio puede resolverse solo con HTML o CSS.
- Mantener funciones pequeñas y legibles.
- Agrupar lógica por módulo simple (objeto, IIFE o patrón equivalente).
- Evitar variables globales innecesarias.
- Inicializar lógica en
DOMContentLoadedcuando aplique.
Regla final
- Si un cambio rompe claridad o simplicidad, detenerse y pedir confirmación.
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!