Conversation
|
47a03cc to
fa10bc7
Compare
📚 Branch Preview Links🔍 First Generation Visual Regression Test ResultsWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
Deployed to Azure Blob Storage: If the changes are expected, update the |
90c1390 to
fdbda95
Compare
d51a80a to
86ad45b
Compare
fdbda95 to
a06247e
Compare
a06247e to
d5bfa08
Compare
…skill - The a11y migration analysis doc is a full authoring playbook, not a linting rule. Moves it from .ai/rules/ to .ai/skills/ with a SKILL.md that mirrors the component-migration-analysis skill structure. - Also fixes a stale .cursor/ path reference in component-migration-analysis/SKILL.md.
- Delete .cursor/README.md and .cursor/config.json - Delete all skill files under .cursor/skills/
7bdadee to
117b2a4
Compare
- Add validate.js entry point running 3 checks, exits with code 1 on errors - Add validate-agents-paths.js — checks relative links in AGENTS.md files - Add validate-config-schema.js — validates .ai/config.json structure - Add validate-story-tags.js — validates tags in 2nd-gen stories files - Add lint:ai script to package.json; include in overall lint command - Add AI tooling validation step to .github/workflows/lint.yml Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
d5bfa08 to
74a0e0d
Compare
caseyisonit
left a comment
There was a problem hiding this comment.
approving known #6137 will resolve the failing linting CI
Description
Can be merged directly into
feat-agnostic-ai-folder-stuffbefore or after the washing machine skills PR #6127 or the memory/retro skill PR #6138Adds Node-based validators under
.ai/scripts/and wires them intoyarn lintand the Lint GitHub Actions workflow so AI-related docs and config stay consistent with the rules we expect agents to follow.Orchestrator
.ai/scripts/validate.js: Runs four checks in sequence, prints per-section pass/fail (errors fail the process; warnings are reported only).Checks
validate-story-tags.jsa. Scans 2nd-gen
*.stories.tsfor Storybooktagsb. values must be in the "allowed set" that is aligned with
.ai/rules/stories-format.mdc. each file must include
migratedsomewhere in atagsdeclaration.validate-agents-paths.jsa. Finds
AGENTS.mdfiles under the repo (skipping common build/vendor dirs)b. verifies relative markdown links resolve to existing paths so agent bootstrap links do not silently rot.
validate-config-schema.jsa. Validates
.ai/config.jsonstructure (branch/Jira/text-formatting rules, etc.) and that regex patterns compile.validate-symlinks.jsa. Checks that
.cursor/rules/*.mdcper-file symlinks exist, are symlinks (not real files), and point to the correct../../.ai/rules/<name>.mdtargetb. detects stale
.mdcsymlinks with no matching.ai/rules/*.mdsourcec. checks that the three directory symlinks (
.cursor/skills,.claude/rules,.claude/skills) exist and point to the correct.ai/targetsIntegration
package.json: extendslintwithlint:ai.github/workflows/lint.ymlhas a new step to "Validate AI tooling”. It should runyarn lint:aiafter install (full repo check, not diff-scoped like some other linters).Follow-up commit: Minor grammar/wording fix in workflow-related messaging (consistent grammar in workflow steps).
Motivation and context
.ai/rules andAGENTS.mdonly help if tags, links, and config stay valid. Automated checks catch drift at PR time instead of in agent sessions.Related issue(s)
Screenshots (if appropriate)
Author's checklist
Reviewer's checklist
patch,minor, ormajorfeaturesManual review test cases
yarn lint:ai(ornode .ai/scripts/validate.js) passes on this branchAGENTS.mdlink and confirm the relevant validator reports an error.rm .claude/rules && mkdir .claude/rules) and confirm the validator reports it as "exists but is not a symlink".ai/rules/stories-format.mdand project conventions (including exclusion tags like!test).AGENTS.mddiscovery matches intent (no false positives/negatives for skipped directories).NOTE: AGENTS.md paths will fail until we merge #6137
Device review
Accessibility testing checklist
Required: Complete each applicable item and document your testing steps (replace the placeholders with your component-specific instructions).
Keyboard
_ Adds Node scripts and CI only._
Screen reader
Story-tag validation indirectly supports consistent a11y-tagged stories in 2nd-gen docs.