Bendc frontend guidelines

From Asymmetric-al/core · View interactive version

Bendc frontend guidelines is an AI agent skill from the GitHub repository Asymmetric-al/core. HTML, CSS, and JavaScript craft guidelines from bendc/frontend-guidelines — semantics, a11y basics, selector discipline, motion-friendly CSS, and readable JS. Use for markup review, static HTML/CSS, email HTML, or general front-end hygiene; pair with repo frontend rules and TypeScript lint policy.

How to use this skill

Skill file

bendc Frontend Guidelines

Triggers

Use this skill when the task benefits from foundational HTML, CSS, and vanilla JS craft guidance from the vendored CODE0 checklist, including:

Also load docs/ai/rules/frontend.md for any apps/* or packages/ui work in this monorepo.

Do not use when

Precedence (this repo wins)

The full text of the upstream guide lives in references/readme-original.md. When that reference conflicts with the Precedence table below, follow the table.

| Topic | Authoritative in this repo |

| ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

| Tailwind, Maia/Zinc tokens, cn(), no arbitrary hex in components | docs/ai/rules/frontend.md |

| Motion timing, tokens, reduced motion, transition-all ban, route view transitions | docs/ai/rules/frontend.md, docs/ai/skills/emil-design-engineering/SKILL.md, docs/ai/skills/anim/SKILL.md |

| General JavaScript / TypeScript code shape, control flow, helper extraction | ESLint, TypeScript configuration, formatter output, and nearby source patterns — prefer explicit, straightforward code over upstream terseness, loop avoidance, recursion, or shorthand |

| TypeScript types, strict, equality (===), linted patterns | ESLint / TS config and existing code style — do not adopt upstream examples that rely on loose equality or patterns that fail lint here |

| React component structure, Server Components, hooks | Next.js docs and docs/ai/skills/react-component-dev/SKILL.md |

Use the bendc guide as a second opinion on semantics, DOM clarity, CSS discipline, and readable JS. Do not copy upstream JavaScript advice about terseness, avoiding loops, recursion, composition, or shorthand unless it improves clarity under this repo's AGENTS.md conventions.

Workflow

  1. Confirm the surface is in scope (markup, styles, or JS where the upstream checklist applies).
  2. Load references/readme-original.md (or skim the sections you need: HTML, CSS, JavaScript).
  3. Cross-check Precedence above before recommending a change that touches tokens, Tailwind, motion, JS/TS code shape, or TS types.
  4. For shared UI or app routes, reconcile recommendations with docs/ai/rules/frontend.md and nearby components.
  5. Prefer small, evidence-based edits; do not rewrite large areas solely to match upstream brevity examples if repo style differs.

Checklist

See also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.