Mark vendored agent skills as linguist-vendored - #6
Merged
dsmcewan merged 1 commit intoJul 31, 2026
Conversation
The bundled vercel-labs skills under .claude/skills and .agents/skills contain 178 .mjs files, which makes GitHub classify this docs repo as JavaScript and makes CodeQL Default Setup select javascript-typescript. CodeQL then skips those dot-directories, finds no processable source, and fails with a configuration error. Mark the skill trees as linguist-vendored so GitHub excludes them from language detection (and diffs). Scope is limited to .../skills/** so the first-party .claude/settings.json and .claude/hooks/ stay counted. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AXwZrvvxDWUe9bn1kMqkYp
dsmcewan
marked this pull request as ready for review
July 31, 2026 02:34
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
CodeQL Default Setup fails on this repo with a configuration error. Root cause: the bundled
vercel-labsskills (PR #3) added 178.mjsfiles under.claude/skills/and.agents/skills/, so GitHub's linguist classifies this docs repo as JavaScript and Default Setup selectsjavascript-typescript. CodeQL's extractor then skips those dot-directories, finds no processable source (No JavaScript or TypeScript code found), and errors out. There is no first-party CodeQL-supported code here.Change
Adds a root
.gitattributesmarking the vendored skill trees aslinguist-vendored:This excludes the vendored code from GitHub's language stats and code-scanning language detection (and collapses it in diffs), so the repo is no longer misclassified as JavaScript.
Scoped deliberately to
…/skills/**only —.claude/settings.jsonand.claude/hooks/are first-party and stay counted. Verified withgit check-attr:.claude/skills/.../SKILL.md→linguist-vendored: set.claude/settings.json,.claude/hooks/session-start.sh→linguist-vendored: unspecifiedCompanion step (yours — I can't toggle it)
Disable CodeQL Default Setup in Settings → Code security → Code scanning. There's genuinely no first-party code to scan, so leaving it on would keep a red check on
main. This PR stops the false "JavaScript" classification that triggered it.Generated by Claude Code