In short.
anchor-smooth-scroll is an accessibility review skill for frontend developers using coding assistants, but its React example takes over link navigation without preserving all normal browser behavior. Its CSS pattern enables smooth scrolling only when users have not requested reduced motion. It also addresses keyboard focus and provides manual verification steps. The JavaScript helper assumes focusable targets, the React snippets omit imports, and unrelated table guidance appears in the exceptions section. Runtime behavior and accessibility outcomes have not been tested.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the supplied complete selected folder contents, skills/anchor-smooth-scroll/SKILL.md and skills/anchor-smooth-scroll/references/rule.md, plus the repository-root LICENSE at revision e8d14d049010e2ce25afcd5e8609dfcbbe63e47e. Other repository content, the external rule page and linked tooling are outside the supplied evidence. Nothing was executed; installation, browser compatibility, rendered navigation, automated accessibility results and assistive-technology behavior remain untested.
The overview
Identity
anchor-smooth-scroll is an instruction-based review skill in thedaviddias/Front-End-Checklist. Its entry point, SKILL.md, introduces the rule “Provide instant anchor scroll option” and points to references/rule.md for implementation examples.
The original folder is [https://github.com/thedaviddias/Front-End-Checklist/tree/main/skills/anchor-smooth-scroll]. The supplied files belong to source revision e8d14d049010e2ce25afcd5e8609dfcbbe63e47e.
Assessment
This is useful, narrowly focused guidance for reviewing animated movement between sections of a page. It connects motion preferences with keyboard focus, rather than treating scrolling as a purely visual effect.
The CSS example is a compact starting point. The custom JavaScript and React examples need additional attention before adoption because scrolling, focus and normal link navigation are separate behaviors. No execution or browser testing establishes that the examples work correctly in a particular application.
Users
The skill suits frontend developers and reviewers working on same-page navigation, rendered components or design-system patterns. A coding assistant can use its instructions to identify affected elements and explain motion and focus problems.
Beginners get a short CSS pattern and concrete manual checks. Experienced developers get implementation sketches for JavaScript and React, but must supply application-specific navigation handling and integration details. The source labels the task beginner difficulty and estimates 10 minutes; that estimate is not a measured implementation time.
Capabilities
The instructions cover respecting prefers-reduced-motion, keeping instant scrolling as the default or fallback, moving focus to the destination and checking subsequent keyboard navigation. They also ask reviewers to inspect native semantics, labels and screen-reader behavior where relevant.
The reference supplies CSS, a TypeScript scrolling function, React hooks, an anchor component and a focusable section example. It suggests browser accessibility tools, axe and Lighthouse alongside manual checks. These are examples and review instructions; the supplied files do not implement an automated scanner.
Using it
Requirements
Applying the guidance requires access to the page’s anchor links, destination elements and relevant styles. Verifying the result requires a rendered page, keyboard navigation and a way to enable the system’s reduced-motion preference.
The JavaScript examples use document.getElementById, matchMedia, scrollIntoView and focus. The React examples additionally use useState, useEffect, useCallback and React types, whose imports are omitted. No assistant-host compatibility, required model, package version, React version or browser support matrix is specified.
Mechanism
The CSS pattern places scroll-behavior: smooth inside a prefers-reduced-motion: no-preference media query. With no other overriding scroll styles, users requesting reduced motion retain the default instant movement.
The JavaScript helper reads the motion preference, selects instant or smooth movement, scrolls to the destination and calls focus with preventScroll. The React hook listens for preference changes and adds tabindex="-1" to destinations lacking a tabindex attribute. The anchor component intercepts links whose href starts with # and invokes that hook.
Setup
Keep SKILL.md together with references/rule.md so the entry point’s relative reference remains available. The supplied files do not document an assistant-specific installation command or directory convention.
For page integration, begin with native anchor links and inspect existing scroll styles before applying the media-query pattern. If custom scrolling is necessary, add the missing imports and connect the example to the application’s destination IDs, focus handling and navigation requirements. Actual setup behavior is untested.
Example
For a link to #features, the reference shows a destination section with id="features" and tabindex="-1". That tabindex allows programmatic focus without adding the section to the ordinary Tab sequence. Its CSS example enables smooth movement only within the no-preference media query.
The proposed verification is to enable reduced motion, activate the link, confirm instant movement and destination focus, then press Tab to check that navigation continues from the destination. These are suggested checks, not observed results.
Assessment & evidence
Limitations
The standalone JavaScript helper calls focus without making a non-focusable destination focusable. The React hook adds tabindex when absent, but its reduced-motion state initially starts as false and updates in an effect; behavior before that effect runs is untested.
The React component prevents default navigation for every href beginning with #. It contains no code to update the URL fragment or history, preserve modified-click behavior, or fall back when a destination is missing. The snippets therefore need adaptation where those behaviors matter.
The reference’s exceptions section discusses data-table semantics rather than scrolling, an apparent editing mismatch. Its focus CSS also removes the ordinary outline before restoring one through :focus-visible, so visible focus deserves direct verification. Browser compatibility, screen-reader output and accessibility conformance have not been assessed.
Reasoning
The source explains that animated scrolling can cause vertigo, nausea or disorientation for people with vestibular disorders. Its proposed response is to respect motion preferences and make instant navigation available.
A practical inference from the examples is to start with native links and the CSS pattern: this changes animation without adding a click handler. Custom JavaScript introduces extra responsibilities for focus, URL state and input handling. The evidence supports that implementation tradeoff, but contains no comparative usability study or performance benchmark.
Alternatives
Within the supplied guidance, the simplest option is to leave navigation instant for everyone. Another option is native anchor navigation with smooth scrolling enabled through the no-preference media query. Custom JavaScript or React handling is available when the application needs explicit scrolling and focus control.
The source names axe, Lighthouse and browser accessibility tooling as verification aids. They complement the manual motion and focus checks. No competing skill, package or tool comparison is provided, so relative quality is unknown.
Evidence
The resource evidence consists of the skill entry point [https://raw.githubusercontent.com/thedaviddias/Front-End-Checklist/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/anchor-smooth-scroll/SKILL.md] and implementation reference [https://raw.githubusercontent.com/thedaviddias/Front-End-Checklist/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/anchor-smooth-scroll/references/rule.md], together with the repository-root MIT licence.
The files link to [https://frontendchecklist.io/rules/accessibility/anchor-smooth-scroll], but that page’s contents are not supplied. There are no execution logs, browser results, automated accessibility reports or assistive-technology results. Findings about the examples come from reading their supplied text.
Access & freshness
Costs
The captured MIT licence grants permission to use, copy and modify the material free of charge. The skill files specify no subscription, paid API or required commercial service.
Total adoption cost is unknown. Assistant usage, implementation effort, browser testing and assistive-technology verification costs are not established by the evidence. The source’s 10-minute estimate is not a cost measurement.
Rights
The repository-root MIT licence identifies David Dias as the copyright holder for 2017–2026. It permits use, modification, redistribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions. It supplies the material without warranty.
The captured notice is available at [https://raw.githubusercontent.com/thedaviddias/Front-End-Checklist/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/LICENSE]. Retain it when sharing the skill and its reference file.
Freshness
The supplied snapshot was captured on 2026-11-16 at 13:44:25.496 UTC and pins all three files to revision e8d14d049010e2ce25afcd5e8609dfcbbe63e47e. This identifies the source version covered here.
The files do not establish a release number, last-change date or compatibility version. Changes after this snapshot and the current contents of the main branch are unknown.
Actions
Inspect the page’s existing anchors and scroll styles, then choose instant navigation or the conditional CSS pattern. If adopting a custom helper, make destinations focusable and explicitly decide how URL fragments, browser history, modified clicks and missing targets should behave.
Verify the rendered result with reduced motion enabled and disabled, keyboard activation, destination focus, visible focus and subsequent Tab navigation. Include screen-reader checks where relevant; treat automated tools as complementary evidence.
When using the skill with a coding assistant, ask for findings tied to exact elements and observed behavior. Keep its reference file and MIT notice with redistributed copies, and treat the unrelated table exceptions as a source limitation.
