Add automated lexicon style guide checker#101
Conversation
|
|
I reviewed all 17 lexicons against the ATProto Lexicon Style Guide and created a compliance report. Key Findings: ❌ Critical: badge/response.json uses enum instead of knownValues (violates schema evolution rules) Most things are done well - naming conventions, descriptions, strong references, and open unions all follow the guide correctly. |
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
|
@copilot There shouldn't be a changeset here, but there should be a new |
09fc4d7 to
983b7f9
Compare
ccfbacc to
fdf0fdf
Compare
Co-authored-by: aspiers <100738+aspiers@users.noreply.github.com>
fdf0fdf to
a631af7
Compare
Implements automated validation of lexicon definitions against ATProto style guide rules. Addresses common schema quality issues: missing constraints, incomplete descriptions, inconsistent naming.
Changes
scripts/check-lexicon-style.js- Validates 10+ style rules across lexicon files:LEXICON_STYLE_GUIDE.md- Codifies ATProto best practices for referenceIntegration - Added
npm run check-lexicon-stylewith JSON and verbose output modesCI Workflow - Added
.github/workflows/style.ymlthat automatically runs the style checker on all pull requests and pushes to main/develop branchesOutput Example
Three severity levels enable incremental adoption: errors block CI, warnings flag issues for review, info suggests improvements.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.