Skip to content

Mark vendored agent skills as linguist-vendored - #6

Merged
dsmcewan merged 1 commit into
mainfrom
claude/request-req-011cdpikfwn4fcfumncmciof-oj372d
Jul 31, 2026
Merged

Mark vendored agent skills as linguist-vendored#6
dsmcewan merged 1 commit into
mainfrom
claude/request-req-011cdpikfwn4fcfumncmciof-oj372d

Conversation

@dsmcewan

Copy link
Copy Markdown
Owner

Why

CodeQL Default Setup fails on this repo with a configuration error. Root cause: the bundled vercel-labs skills (PR #3) added 178 .mjs files under .claude/skills/ and .agents/skills/, so GitHub's linguist classifies this docs repo as JavaScript and Default Setup selects javascript-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 .gitattributes marking the vendored skill trees as linguist-vendored:

.claude/skills/** linguist-vendored
.agents/skills/** linguist-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.json and .claude/hooks/ are first-party and stay counted. Verified with git check-attr:

  • .claude/skills/.../SKILL.mdlinguist-vendored: set
  • .claude/settings.json, .claude/hooks/session-start.shlinguist-vendored: unspecified

Companion 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

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
dsmcewan marked this pull request as ready for review July 31, 2026 02:34
@dsmcewan
dsmcewan merged commit 7ac783c into main Jul 31, 2026
1 of 2 checks passed
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