Repository navigation
docs(agents): add lint-rule authoring guidance to the lint skill - #21946
brettlangdon wants to merge 3 commits into
Conversation
Guides contributors and the Thematic Rule Suggestions bot toward ast-grep-first, existing-tooling-first lint rules, with criteria for when a review theme is automatable and lessons from earlier bot PRs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y hits Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codeowners resolved asResolved from the full PR diff against |
Dependency direction analysis
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
The documented lint commands, ast-grep examples, and CI wiring are consistent with the repository configuration. No actionable errors were identified in the authoring guidance.
🤖 Bits Code Review · Commit e2430e7
LLM ValidationLLM Validation Gate — python-tracer-agent✅ PASS
AnalysisChanged instruction file(s): No safety or blocking-case regressions across 10 case(s). Overall pairwise win-rate 51% [49%–52%], quality +1.0 — see the verdict above for whether that clears the noise band. Results
Cases
Per-dimension scores, token usage, latency, and estimated cost are in the CI job logs. |
Description
Adds guidance for turning recurring, mechanically detectable review themes into lint or static-analysis rules. It is a short "Authoring a new lint rule" section in the existing
lintskill, with detail in.agents/skills/lint/references/authoring-rules.md.AGENTS.mdlinks to it from the existing lint row. This is intended for contributors and for the Thematic Rule Suggestions bot, which looks in the skills for lint or static-analysis guidance.The reference covers:
.sg/rules, the default), Datadog static-analysis config, extending an existingscripts/check_*.py, and a new script only as a last resort.scripts/lint sg-testandsg. Rules are blocking (errorseverity) and allow no new violations. Existing hits are fixed in the same PR or allow-listed by exact path. If neither is practical, the rule is not added.The reference's inventory of existing checks and its lessons from earlier PRs are partly inference from the PR discussions, so a maintainer should verify them.
The detail is a linked reference file so that the
lintskill, which every coding agent loads, stays short.Testing
scripts/lint spellingon the changed files produced no output.scripts/lint sg-testpassed (28 passed, 0 failed) earlier, before the docs edits.changelog/no-changelog.🤖 Generated with Claude Code
Jira: BRETT-11