/lkml:submit [branch or commit range] [v2|v3 ...]from lkml
Prepares and sends Linux kernel patch series via git send-email, handling v1 and rerolls. Enforces commit message quality, volume caps, Fixes: tags, and recipient/format gates.
Ships in lkml. 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.
Every posting of a series — v1 and every reroll — is a new thread. Review feedback is answered in the old thread (lkml:reply); fixed code is posted fresh. The workflow below is ordered as gates: content, recipients, format, timing, send. A failed gate stops the send.
Commit message = WHY. The subject is subsystem: imperative summary at 70-75 characters; the body says why the change is needed and why this way, hard-wrapped at 75 columns. Mechanism walkthroughs, rejected-alternative essays, and reachability analyses do not belong in the commit body — put them under the --- scissors or in the cover letter. A verbose commit body draws "This is very verbose. Is it AI generated?" and a changes-requested; there is a public precedent of exactly that: https://lore.kernel.org/netdev/[email protected]/
WHY-only is necessary but not sufficient — there is also a volume cap. The working measure is maintainer-tip.rst's improved examples: context, problem, solution as separate paragraphs in that order, two to three paragraphs of two to three sentences. Write for a reviewer who has the diff open — anything readable from it gets deleted, and a body that narrates what the code does draws "Blah, blah, blah. Please assume i can read the patch and understand what it does" even when every sentence is a why (precedent, the v2 of that same series: https://lore.kernel.org/netdev/[email protected]/). When in doubt, too short beats too long.
The scissors are not a dumping ground either. Analysis moved below --- still gets read, and a long one draws "condense the above writing in a much shorter text, or point to prior discussion" while burying the one sentence a reviewer actually needs ("Why conditional? Maybe it is buried deep in that wall of text?"). Keep the scissors section to a few sentences and replace analysis with a lore link to the thread where it already happened; a justification a reviewer is likely to ask about belongs in the body, briefly, not below the cut.
Verify claims about sets. Any sentence of the form "all drivers do X", "this lock is only taken once", "no caller passes NULL" is an invitation for a reviewer to find the counterexample. Grep the tree for each such claim before sending, or rewrite it as a statement about the mechanism.
Bug fixes carry a Fixes: tag — 12+ character SHA plus the quoted subject of the broken commit, one line, never wrapped. The commit to name is the oldest one that still reproduces the issue, found with git log -S rather than guessed; when the root cause genuinely predates git history, the canonical tag is Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2"). A fix posted without the tag gets asked for it and rerolled. Reports from other people carry Reported-by: plus a Closes: link to the report on lore.
AI assistance is disclosed per Documentation/process/coding-assistants.rst with the kernel's own tag format, which checkpatch validates:
Assisted-by: LLM
Format is Assisted-by: LLM [tool1] [tool2], the optional brackets naming analysis tools like coccinelle or smatch when they were actually used. The Assisted-By: Name <email> form used in other projects is formally invalid here.
Rerolls answer everything first. A new version goes out only after every comment on the previous one has a reply in the old thread, and never while that discussion is still live. Questions a reviewer had to ask get their answers folded into the commit message itself, not just the thread — per maintainer-netdev.rst, "occasionally the update of the commit message will be the only change in the new version".
git format-patch --output-directory /tmp/series -v2 --cover-letter <base>..HEAD
scripts/get_maintainer.pl /tmp/series/*.patch
[email protected] as archive Cc), plus the named reviewers (R: entries).Cc: [email protected] as a tag line in the sign-off area (not a mail header) for fixes that should reach stable kernels.[PATCH net] for fixes and [PATCH net-next] for features, lowercase (git format-patch --subject-prefix="PATCH net-next"). The prefix is routing, not decoration: a fix posted as net-next is not picked up by netdev's automation and comes back as "please re-submit with the correct target tree" — anything carrying a Fixes: tag is net material. Other subsystems: check Documentation/process/maintainer-*.rst and the P: entry in MAINTAINERS before inventing a prefix. Unready work is [RFC ...].--- scissors — in the cover letter for a series, under the --- of the single patch otherwise — so git drops it on apply. One bullet per change, each attributed to the reviewer who asked for it, plus a link to the previous posting: v1: https://lore.kernel.org/r/<message-id>/. A reroll resends the entire series, not just the changed patches.Reviewed-by:, Acked-by:, Tested-by: given on the list for unchanged patches are added by you to the next version. Tags other than Cc:, Reported-by:, and Suggested-by: are never invented — they require the named person to have actually offered them../scripts/checkpatch.pl --strict /tmp/series/*.patch
Zero warnings on every patch. checkpatch is nearly a no-op on the cover letter ("0 lines checked") — its prose is reviewed by hand against the content gates above. Build-test the series before sending; a patch that was not built or tested must say so explicitly.
Last check before send: grep every outgoing file for leftover placeholders — a TESTED stub, an unfilled changelog bullet, a TODO in the cover letter. A literal placeholder in a public posting is unrecallable.
Documentation/process/maintainer-netdev.rst).git send-email --confirm=never \
--to "[email protected],[email protected]" \
--cc "[email protected],[email protected],[email protected]" \
/tmp/series/*.patch
No --in-reply-to — a version threads to itself via the cover letter, never to the previous version or any other thread.
Show the user the full cover letter, one representative patch mail, and the recipient list, and get an explicit OK before sending — the list is public and archived forever.
After the send, in the same session:
https://lore.kernel.org/<list>/<message-id>/ within minutes.What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/etiquetteReference for the communication rules of Linux kernel mailing lists — who to write to, what goes where, timing, tags, and tone. TRIGGER — invoke when deciding where or to whom a kernel question, bug report, or patch should go, when unsure whether a planned action (ping, resend, off-list mail, tag) is acceptable, or before drafting any list-bound text outside the lkml:reply / lkml:submit workflows. DO NOT TRIGGER for the mechanics already covered there: sending is lkml:submit or lkml:reply, reading is lkml:lore, state is lkml:patch-status./loreRead, search, and monitor Linux kernel mailing-list threads on lore.kernel.org. TRIGGER — invoke when a task involves fetching a kernel thread, checking whether reviewers replied to a submission, sweeping all tracked submissions for news ("check the lists", "any replies?"), finding prior discussion of a topic, or extracting a Message-ID for a follow-up. DO NOT TRIGGER for checking whether a patch was accepted (use lkml:patch-status) or for composing outgoing mail (use lkml:reply or lkml:submit)./patch-statusCheck the acceptance state of a Linux kernel patch in patchwork and decide the correct next action — wait, repost, or ask. TRIGGER — invoke when the task is to find out whether a submitted kernel patch or series was accepted, rejected, or needs changes, or whether it is time to ping the maintainers. DO NOT TRIGGER for reading the review discussion itself (use lkml:lore) or for sending anything (use lkml:reply or lkml:submit)./replyCompose and send an in-thread reply on a Linux kernel mailing list — answering review comments, asking a clarifying question, or reporting test results. TRIGGER — invoke when the task is to respond inside an existing kernel thread with prose (no patches attached). DO NOT TRIGGER for posting a new version of a series — that is a new thread, use lkml:submit — or for reading the thread (use lkml:lore).npx claudepluginhub lexfrei/ccc --plugin lkmlOther plugins' skills for the same job