frontend-best-practices

Enforces Kimen constitution standards for StencilJS web components, including WCAG 2.2 AA compliance.

Updated Jul 4, 2026
One-click install
npx skills add https://github.com/kimen-dev/kimen --skill frontend-best-practices-kimen-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-best-practices
Source: https://github.com/kimen-dev/kimen/tree/main/.agents/skills/frontend-best-practices
Command: npx skills add https://github.com/kimen-dev/kimen --skill frontend-best-practices-kimen-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces rigorous, constitutional engineering standards for Kimen web components, preventing technical debt, accessibility failures, and inconsistent design patterns in StencilJS projects.

Core Features & Use Cases

  • Component Architecture: Ensures all components follow the Kimen constitution, including proper shadow DOM usage, logical CSS properties, and strict Nx-based scaffolding.
  • Accessibility & Form Compliance: Validates WCAG 2.2 AA compliance and enforces the use of ElementInternals for robust, form-associated custom elements.
  • Use Case: When building a new form control, use this Skill to verify that your implementation correctly handles form submission, validation, and reset lifecycles while maintaining a zero-hardcoded-value styling contract.

Quick Start

Use the frontend-best-practices skill to audit the current component implementation against the Kimen constitution and provide a checklist for necessary refactors.

Frequently Asked Questions about frontend-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce WCAG 2.2 AA compliance when building StencilJS web components?

This Skill audits StencilJS web components against constitutional rules to enforce strict WCAG 2.2 AA and EN 301 549 compliance, validating semantic structure and ensuring proper ElementInternals usage for form-associated custom elements.

What is the best way to prevent hardcoded values in StencilJS component CSS?

The best way to prevent hardcoded CSS values is to enforce a zero-hardcoded-value styling contract using design tokens, auditing component code to ensure strict adherence to semantic token usage and logical CSS properties within the shadow DOM.

How do I handle form submission and validation lifecycles for custom elements?

Use the ElementInternals API to build form-associated custom elements that correctly handle form submission, validation, and reset lifecycles while maintaining strict compliance with deterministic gate enforcement standards.

Does this frontend architecture tool support Nx-based scaffolding for web components?

Yes, this tool supports Nx-based scaffolding by enforcing strict architectural rules for StencilJS web components, ensuring proper shadow DOM usage, logical CSS properties, and consistent component scaffolding to prevent technical debt.

When do I need to audit my component code against frontend engineering standards?

You need to audit component code against frontend engineering standards during development, code review, and refactoring phases to identify accessibility failures, inconsistent design patterns, and technical debt, providing a checklist for necessary refactors.

Why does my StencilJS component fail deterministic gate enforcement checks?

Your StencilJS component fails deterministic gate enforcement when it violates constitutional rules, such as using hardcoded CSS values instead of semantic design tokens, improper shadow DOM architecture, or failing WCAG 2.2 AA accessibility validations.