/kernel-plugin:kernel-source-historyfrom kernel-plugin
Fetches Linux kernel source at named tags, diffs functions across releases, and checks if code paths changed upstream. Use when citing kernel line numbers or verifying mainline changes.
Ships in kernel-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Answer "what does the kernel do here, and is it still true on current mainline?" with source fetched at named tags, not from memory and not from a local checkout of unknown age. Every line number you cite is pinned to a tag.
| Use this skill when... | Use something else when... |
|---|---|
| Quoting kernel functions or line numbers in a report | Searching mailing-list discussion: /kernel:lore-search |
| Checking whether a code path changed after the kernel you traced | Diagnosing where threads block: code-quality-plugin:debugging-methodology |
| Finding the first release that contains a commit | Patching vendored or forked code: git-plugin:git-upstream-fix-check |
The plain/ endpoint on git.kernel.org serves one file at one ref, with no
clone and no bot check:
B=https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain
curl -fsSL "$B/fs/xfs/xfs_reflink.c?h=v7.0" -o xfs_reflink.c-v7.0
T: line of its MAINTAINERS entry; XFS's for-next is
https://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git/plain/<path>?h=for-next.curl -fsSL "$B/MAINTAINERS?h=v7.4-rc1" | awk '/^XFS FILESYSTEM$/,/^$/'.-f is load-bearing. git.kernel.org returns intermittent 503s; without
-f the error page lands in the file and every later grep "finds nothing".Kernel style puts the function name at column 0 on its own line, so an awk
range extracts one body:
for v in v7.0 v7.2 v7.3 v7.4-rc1; do
printf '%s ' "$v"
awk '/^xfs_reflink_find_shared\(/,/^}/' "xfs_reflink.c-$v" | md5
done
Equal hashes mean the body is byte-identical. When they differ, diff the
extracted bodies, not the whole files: most churn in a release is elsewhere.
Check every function on the path you care about (a traced stack is the list),
because the locking can move into a callee while the caller stays identical.
gh api repos/torvalds/linux/compare/<tag>...<sha> --jq .status on the GitHub
mirror:
status | Meaning |
|---|---|
behind or identical | The commit is in <tag> |
ahead or diverged | It is not in <tag> |
diverged is the trap: it means the commit sits on a branch the tag does not
contain (a subsystem tree merged later). Counting it as contained mislabels
first-release versions. Commit lists per path:
gh api 'repos/torvalds/linux/commits?path=fs/xfs/xfs_buf.c&since=2026-04-12T00:00:00Z' --paginate --jq '.[] | "\(.sha[0:12]) \(.commit.message | split("\n")[0])"'.
file:line with the tag, and repeat the line numbers for the newest
tag when the report claims the code is unchanged.xfs_reflink.c-v7.0), so line references stay checkable after
upstream moves. Kernel source is GPL-2.0; say so in the file list.7.0.0-1014-gcp is Ubuntu's build of
7.0 with its own patches; 7.2.12 is a stable point release, not the v7.2
tag. Compare against the tag and state the gap.The same wait can show different frames on different kernels, so quote a stack with its kernel version and arch:
xfs_buf_get_map → xfs_buf_lookup → xfs_buf_find_lock; from 7.3
xfs_buf_read_map calls xfs_buf_find_lock directly. Same lock, different
frames.xfs_buf_lookup.constprop.0, or the frame
missing entirely on another build.__x64_sys_ioctl vs __arm64_sys_ioctl.Observed 2026-11 (XFS FIEMAP contention): diffing the stack's functions at v7.0, v7.2, v7.3, v7.4-rc1 and xfs
for-nextshowed the locking path unchanged while the buffer cache was restructured around it twice (v7.1, v7.3), so the report could claim "unchanged through v7.4-rc1" with line numbers and still warn that 7.3+ stacks look different.
| Context | Command |
|---|---|
| One file at a tag | curl -fsSL "$B/<path>?h=<tag>" -o <file>-<tag> |
| Function identical across tags? | awk '/^<fn>\(/,/^}/' <file> | md5 per tag |
| Commit in a release? | gh api repos/torvalds/linux/compare/<tag>...<sha> --jq .status |
| Subject of a commit | gh api repos/torvalds/linux/commits/<sha> --jq '.commit.message | split("\n")[0]' |
| Find a commit by subject | gh api 'search/commits?q=repo:torvalds/linux+"<subject words>"' --jq '.items[].sha' |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub laurigates/claude-plugins --plugin kernel-plugin4 skills in this plugin
/kernel-list-reportWrite and send a report to a Linux kernel mailing list: recipients, plain text, git send-email. Use when reporting to linux-xfs, fsdevel or similar./kernel-lore-searchSearch kernel mailing lists via lore git mirrors. Use when checking prior art before a report, verifying a quote, or finding a sent message./kernel-repro-harnessStandalone kernel reproducer maintainers can rerun: syscall loop, controls, loop images, OrbStack then GCP. Use when reducing an app's kernel bug.Other plugins' skills for the same job