Ensure Noscript Fallback Content for Accessibility
Overview: Ensure the <noscript> content is meaningful and not just a generic 'Enable JavaScript' message. Critical content should be present in the initial HTML and not rely on JavaScript hydration.
Browse agent skills, compare use cases, and open the original source. Share your results after trying a skill.
Overview: Ensure the <noscript> content is meaningful and not just a generic 'Enable JavaScript' message. Critical content should be present in the initial HTML and not rely on JavaScript hydration.
Overview: Before enabling noUncheckedIndexedAccess, ensure that the project's tsconfig.json is configured to support it. Developers must update any array index accesses to include explicit undefined checks or use optional chaining to avoid type errors.
Overview: Before applying this skill, ensure that the TypeScript codebase is set up with ESLint and the @typescript-eslint/no-explicit-any rule enabled. The first deliverable is a list of all 'any' type usages with suggested replacements, formatted as a report.
Overview: Ensure that the codebase uses a modern browser-compatible environment, as older browsers require explicit 'rel="noopener noreferrer"' attributes. Consider configuring ESLint rules like 'jsx-a11y/anchor-is-valid' and 'eslint-plugin-security' to enforce this automatically.
Overview: Ensure that the HTML being validated is the final browser-facing markup, not just the source framework abstraction. Provide descriptive aria-labels such as 'Main navigation' or 'Footer navigation' when multiple nav regions are present.
Overview: Before reviewing stylesheets, ensure that the project uses a defined naming convention like BEM. Prepare by checking the rendered layout across breakpoints and interaction states to identify ambiguous or inconsistent class names.
Overview: Ensure Stryker is installed and configured for the module before running mutation tests. The first deliverable is a mutation score report, which should be reviewed to identify surviving mutants in critical code paths.
Overview: Ensure the code is running in a JavaScript environment that supports modern array methods. Prepare the source code for review, and identify specific loops that can be replaced with map(), filter(), or reduce(). The first deliverable is a list of replaced loops with the corresponding modern method implementations.
Overview: Ensure the modal container has role='dialog' and aria-modal='true'. Implement focus trapping so that Tab key cycles only within the modal. Close the modal on Escape key press and return focus to the trigger element. Add aria-labelledby to point to the modal title.
Overview: Use jest.restoreAllMocks() in afterEach to clean up mocks and consider MSW for realistic API mocking without coupling to implementation.
Overview: Ensure that mobile viewport tests are included in CI pipelines and that testing covers at least one Android (Chrome) and one iOS (Safari) real device. Use BrowserStack or similar services for testing on devices you don't own.
Overview: Ensure the server configuration is validated before running the check. For frameworks like Next.js, configure headers in next.config.js. Set X-Content-Type-Options: nosniff to prevent MIME sniffing.