skill: add visual consistency and heading anchor checks to frontend review#65
Merged
Merged
Conversation
…eview
Add two new check groups to frontend-interaction-review that surfaced
as repeated failure classes during content-page UX iteration:
- Visual consistency: CSS variable references for spacing, divider
borders audited as a set, scoped decorative heading styles, inline
critical CSS for FOUC prevention on dark themes, typography baseline
proximity (GitHub Markdown CSS as reference point).
- Heading anchors: left-positioned anchors for predictable layout,
tabindex="-1" + aria-label instead of aria-hidden on focusable
elements, Unicode-aware slugify (\p{L}\p{N} with u flag),
history.replaceState with getAttribute('href') for intra-page
navigation.
Both groups are Layer 2 — generic criteria with no project-specific
paths or values.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
wilsonwangdev
added a commit
that referenced
this pull request
May 7, 2026
…ules (#67) Add three rules to AGENTS.md Quality Baseline that encode the content-page UX lessons captured in session memory (`feedback_content_page_ux.md`). ## Changes Three new bullets in the Quality Baseline section: - Spacing, border-width, and colors must reference `--space-*`, `--border-*`, and color tokens. Bare `rem`/`px` literals for margin, padding, gap, or border-width are a review finding. Points at the new `content/guides/css-variable-consistency/` guide for rationale. - Adding or changing a divider-style border requires auditing all existing dividers in the file as a set. Mixed widths (1px vs 2px) or mixed color tokens (`--border` vs `--border-bright`) count as inconsistency. - Dark-theme pages must inline critical `background`/`color` CSS in `<head>` with a light-mode media-query fallback to prevent FOUC. ## Why The frontend-interaction-review skill's new Visual consistency group (PR #65) already encodes these rules. Mirroring them in the Quality Baseline makes them discoverable during pre-work without requiring the agent to open the skill file first — most pre-work checks live in AGENTS.md today. ## Relation to other open PRs - PR #65 adds the skill-level version of the same rules. - PR #66 adds the Layer 1 rationale guide. - This PR (#?) adds the project-specific baseline enforcement. Each lives in a different file; no rebase coordination needed. ## Tested `npm run build` succeeds — 26 pages generated. The added guide reference (`content/guides/css-variable-consistency/en.md`) is correct relative to merged state once PR #66 lands. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend
skills/frontend-interaction-review/SKILL.mdwith two new check groups that surfaced as repeated failure classes during content-page UX iteration (captured in memoryfeedback_content_page_ux.md).Changes
Visual consistency (new)
--space-sm,--space-lg) rather than barerem/pxliterals.h3.<head>with a light-mode media query to prevent dark-theme FOUC.Heading anchors (new)
tabindex="-1"+aria-labelinstead ofaria-hiddenon focusable elements.\p{L}\p{N}with theuflag).history.replaceStatewithelement.getAttribute('href')— notelement.href.Why
The six existing check groups (tooltip, overflow, hover, transition, responsive, scroll) did not cover these patterns, and each recurred across multiple sessions. Encoding them here moves the lesson from session memory into the Layer 2 skill so any project adopting the skill benefits.
Tested
npm run buildsucceeds — 26 pages generated. The skill file remains Layer 2 (no project-specific paths or values).