Skip to content

Fix audit-pr output drift, extend its checks, and update packages - #624

Merged
AlexJSully merged 5 commits into
mainfrom
ajs-261121-pr-skill
Nov 24, 2026
Merged

AlexJSully merged 5 commits into
mainfrom
ajs-261121-pr-skill

Conversation

@AlexJSully

@AlexJSully AlexJSully commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

The audit-pr skill now returns one report in a fixed shape, and every fixable finding carries its corrected code.

The skill said the run "does not fix what it finds" while also requiring a Suggested fix. Its only output template sat in the middle of the file. The report shape now lives in one section at the end of the file, with a filled example and a five-point check before sending. audit-quality gets the same structure, plus a section on what the run does when its mode allows edits.

audit-pr also checks tests against the ticket's goals at each test level the project runs. It checks SOLID and DRY across every changed file, simpler forms of the same code, comments against the code, idempotency, and personal or health data in logs. A new category checks calls to external systems against the provider's current documentation.

typescript-code-and-test-standards now cites the Google TypeScript Style Guide for each section and corrects seven digest rules against it. One example from the guide: "An underscore prefix indicates a syntactically-required identifier will not be used." The skill adds a TypeScript Handbook digest and an accessibility reference sourced from MDN. Its two subagents and its Copilot instructions template carry the new rules.

PR also includes the following changes:

  • audit-docs is rewritten around three phases: sync with the change, audit the Markdown pages, and audit the comments in code. Its five subagents each gain a contents list. voice-and-ai-tells.md is restructured around the target style, with examples, and SKILL.md gains an ordered list of tests applied to each existing comment.
  • audit-docs.prompt.md, audit-pr.prompt.md, and audit-quality.prompt.md carry the same changes as their skills.
  • check-skill-publishability.mjs gains checks drawn from the skill authoring best practices: every file in references/ and assets/ is linked from SKILL.md, every bundled Markdown file over 100 lines opens with a contents list naming each section, and a description is in the third person. A name or description cannot hold an XML tag, a name cannot contain anthropic or claude, and a file path cannot use a backslash. The script's test file gains cases for each check.
  • CLAUDE.md, .github/copilot-instructions.md, and the rules under .claude/rules/ state the same conventions: the Git and GitHub permissions, the comment-tightening rule, the @ts-expect-error guidance, and an accessibility section for reviews. CLAUDE.md now names the writing-tests and checking-skills skills by their directory names.
  • Dependency updates: Next.js 16.4.6, MUI 9.5.0, Sentry 11.11.0, Firebase 13.2.0, ESLint 10.14.0, and patch releases.
  • The dependency review workflow allows CC-BY-4.0 and MPL-2.0, the licences of caniuse-lite and axe-core in the lockfile.
  • Sentry bundleSizeOptimizations in next.config.js removes the SDK's debug code and the unused Session Replay code. The Sentry build options say: "If set to true, the Sentry SDK will attempt to tree-shake any debugging code within itself during the build."
  • axe-core 4.14.0 reported label-content-name-mismatch ("Elements must have their visible text as part of their accessible name") on the eFP-Seq Browser "Web App" button, whose BAR logo contains SVG text. The project link buttons now take their accessible name from their visible text, and a Jest test covers it.
  • The Cypress accessibility check prints each violation's rule and element in the terminal, through a logA11yViolations task in cypress.config.ts.
brag.mp4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
portfolio Ready Ready Preview Nov 24, 2026 1:03pm UTC

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Accessibility reporting can omit offending selectors, and the showcase tests leave anchor accessible names, destinations, and the BAR-logo case insufficiently covered.

5 open issues
What changed in this PR

This PR standardizes the portfolio repository’s audit reports and expands their review guidance. It also updates dependencies and addresses project-control accessible names as part of issue #620’s broader accessibility work.

Changes:

  • Defines fixed audit report formats with corrected-code examples and final checks.
  • Extends testing, privacy, external-system, TypeScript, and accessibility guidance.
  • Updates packages, configures Sentry bundle exclusions, and adds accessibility assertions and terminal diagnostics.
File Description
src/​components/​projects/​ProjectsGrid.tsx Removes explicit accessible-name overrides.
src/​components/​projects/​ProjectsGrid.test.tsx Adds an accessible-name and tooltip assertion.
package.json Updates runtime and development dependencies.
next.config.js Configures Sentry debug and replay-code exclusions.
cypress/​support/​commands.ts Sends accessibility violations to a terminal task.
cypress.config.ts Adds the accessibility-reporting task.
CLAUDE.md Documents Git and GitHub permission requirements.
.github/​prompts/​audit-quality.prompt.md Standardizes the quality-audit report format.
.github/​prompts/​audit-pr.prompt.md Expands checks and standardizes review output.
.github/​copilot-instructions.md Revises TypeScript and accessibility guidance.
.claude/​skills/​write-tests/​SKILL.md Updates description wording.
.claude/​skills/​typescript-code-and-test-standards/​SKILL.md Adds type-system and accessibility references.
.claude/​skills/​typescript-code-and-test-standards/​references/​typescript-handbook-digest.md Adds a TypeScript Handbook digest.
.claude/​skills/​typescript-code-and-test-standards/​references/​test-standards.md Expands accessibility-testing guidance.
.claude/​skills/​typescript-code-and-test-standards/​references/​project-detection.md Adds compiler-option detection guidance.
.claude/​skills/​typescript-code-and-test-standards/​references/​google-typescript-style-digest.md Revises rules and adds source citations.
.claude/​skills/​typescript-code-and-test-standards/​references/​accessibility.md Adds source-based accessibility guidance.
.claude/​skills/​typescript-code-and-test-standards/​README.md Describes the expanded guidance.
.claude/​skills/​typescript-code-and-test-standards/​assets/​project-rules.template.md Corrects the underscore-prefix override example.
.claude/​skills/​typescript-code-and-test-standards/​assets/​copilot-instructions.template.md Adds type-system and accessibility rules.
.claude/​skills/​typescript-code-and-test-standards/​agents/​test-quality-reviewer.md Adds a contents list.
.claude/​skills/​typescript-code-and-test-standards/​agents/​comment-and-jsdoc-auditor.md Adds a contents list.
.claude/​skills/​typescript-code-and-test-standards/​.claude-plugin/​plugin.json Updates the plugin description.
.claude/​skills/​audit-quality/​SKILL.md Defines the fixed report shape and checklist.
.claude/​skills/​audit-quality/​README.md Documents the report structure.
.claude/​skills/​audit-quality/​.claude-plugin/​plugin.json Updates the plugin description.
.claude/​skills/​audit-pr/​SKILL.md Expands triage and defines the report contract.
.claude/​skills/​audit-pr/​references/​security-and-privacy.md Expands sensitive-data logging checks.
.claude/​skills/​audit-pr/​references/​review-categories.md Extends testing, design, and external-system checks.
.claude/​skills/​audit-pr/​README.md Describes expanded checks and corrected-code output.
.claude/​skills/​audit-pr/​assets/​review-summary.template.md Adds fenced fixes to finding examples.
.claude/​skills/​audit-pr/​agents/​finding-refuter.md Adds a contents list.
.claude/​skills/​audit-pr/​.claude-plugin/​plugin.json Updates the plugin description.
.claude/​skills/​audit-docs/​SKILL.md Updates description wording.
.claude/​skills/​audit-docs/​agents/​surface-auditor.md Adds a contents list.
.claude/​skills/​audit-docs/​agents/​diagram-reviewer.md Adds a contents list.
.claude/​skills/​audit-docs/​agents/​curation-reviewer.md Adds a contents list.
.claude/​skills/​audit-docs/​agents/​coverage-mapper.md Adds a contents list.
.claude/​skills/​audit-docs/​agents/​claim-verifier.md Adds a contents list.
.claude/​skills/​audit-docs/​.claude-plugin/​plugin.json Updates description wording.
.claude/​rules/​code-style.md Corrects Google style-guide carve-outs.
.claude-plugin/​marketplace.json Synchronizes plugin descriptions.

Review effort: Balanced

Comment thread cypress.config.ts Resolved
Comment thread .claude/skills/audit-pr/SKILL.md Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AlexJSully
AlexJSully merged commit 64e8d8f into main Nov 24, 2026
9 checks passed
@AlexJSully
AlexJSully deleted the ajs-261121-pr-skill branch November 24, 2026 13:31

This branch was successfully deployed

1 active deployment
Preview — 5a96acdf Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants