Repository navigation
Conversation
rules/40-accessibility.md gains a section requiring an automated check the project keeps, a manual pass with per-component checks for the Decorator's widgets, a report of what ran, and waivers only from an authorized owner. The rule files keep two sentences and point to DECORATOR.md for the rest, so CLAUDE.md stays within the kit's 25,000-character budget (24,891). The skill's reference page carries the full text. A finding in the chrome follows the canvas rule: stop and say so rather than editing the chrome. Adapted from the accessibility gate in the TritonAI Skills Library's retired ucsd-branding skill (dbalders/UCSD-Skills-Library#8).
Member
Author
|
Closing this one. Looking closer, a written process for agents to follow doesn't fit how the kit enforces things (CI checks like |
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.
Why
The accessibility rule lists what to get right in the markup but says nothing about checking it before a page ships. An agent can follow every rule, run nothing, and report the page as done. The TritonAI Skills Library had that missing piece in its
ucsd-brandingskill (dbalders/UCSD-Skills-Library#8). That skill was retired in favor ofucsd-decorator, which now syncs from this repo, so the check belongs here.What changed
rules/40-accessibility.mdgains "Before a page ships"<!-- on-demand: before you call a page done or publish it -->:test:a11yor equivalent), run from the default test command, in PR checks, and in the production deploy. It scans every route at mobile and desktop widths, fails on violations, browser errors, overflow and keyboard failures, and saves a report artifact.Skill:
skills/ucsd-decorator/SKILL.mdadds one paragraph to its Accessibility section pointing to the new section.references/accessibility.mdcarries the full text, so the skill works withoutDECORATOR.md.Generated:
CLAUDE.md,AGENTS.md,.cursorrules,.github/copilot-instructions.md,DECORATOR.md, and the reference page were recompiled.library/was resynced.Budget
CLAUDE.mdcompiles to 24,891 characters, under the 25,000KIT_BUDGET, which leaves 109 characters of headroom. That's why the always-loaded part is two sentences. Everything else is on demand.Not in this PR
The
3:1contrast line in "Content and presentation" is still wrong for normal-size text (WCAG 2.1 AA requires 4.5:1). That fix is tracked separately in #12.Verification
npm test: 152 pass.compile-rules --checkandcheck-libraryare current.Merges cleanly with Point the skill to ucsd-accessibility-compliance for audits and non-page content #14 (pointer to
ucsd-accessibility-compliance) in either order, andnpm testpasses with both applied.The repo's
CIworkflow passes on the fork: https://github.com/dbalders/decorator-kit/actions/runs/38025483992. On this repo it's waiting for maintainer approval, as usual for a first-time contributor.