agentleFS
gvagogvago/unofficial-qodo-review-skills/skills/linux-kernel-review/SKILL.md

linux-kernel-review

Skill2 starsChanged 2 months agoApache-2.0View on GitHub

Use when a PR diff modifies Linux kernel code (C or Rust in a kernel tree: drivers/, fs/, mm/, net/, kernel/, block/, include/linux/, arch/), orchestrator for the kernel review suite: routes the diff through the kernel-* lenses, enforces the shared low-noise contract (prove it against the code, diff-scope only, few high-value findings). Skip for non-kernel diffs.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every claim must be proven correct against the code.

    line 26
  2. Distinctive:

    Prefer a few proven, high-value findings.

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

linux-kernel-review

Orchestrator for agentic Linux kernel patch review. Converts the Sashiko multi-stage review protocol (sashiko-dev/sashiko) into Qodo skills. It runs no tools. It routes a kernel diff through specialized review lenses and enforces the shared discipline that keeps noise down.

How to apply

  • Review the diff, not the whole tree. Judge changed lines plus the context needed to prove or disprove a concern.
  • Reason statically. You cannot build or run the code.
  • Assume the patch has bugs, including in its commit message and comments. Every claim must be proven correct against the code.
  • Prefer a few proven, high-value findings. Noise is the failure mode.

Lens routing (the Sashiko stages, as skills)

Apply every lens whose scope the diff touches. A patch can match several.

Lens skillSashiko stageScope
kernel-change-intent1-2Goal, architecture, UAPI, claim-vs-code verification
kernel-execution-flow3Control flow, error paths, NULL derefs, off-by-one
kernel-resource-lifecycle4Leaks, UAF, double free, refcounts, async teardown
kernel-locking-concurrency5Deadlocks, atomic-context sleeps, RCU, races
kernel-security-audit6OOB, integer overflow, TOCTOU, info leaks
kernel-driver-hardware7Registers, DMA, barriers, IRQ, suspend/resume
kernel-subsystem-guidescontextPer-subsystem invariants, loaded by trigger table
kernel-review-discipline9-10False-positive gate, severity, specificity, ALWAYS

Sashiko stages 8 (dedup), 9 (conflict resolution), and 11 (report format) are pipeline mechanics; the Qodo platform consolidates and renders findings. Their reasoning rules survive inside kernel-review-discipline.

Review order

  1. Load kernel-subsystem-guides and match the diff against its trigger table. Load every matching guide before analysis.
  2. Apply each in-scope lens to the diff. Collect candidate concerns.
  3. Pass every candidate through kernel-review-discipline: prove it or drop it, then calibrate severity. Only survivors become findings.

Mapping a finding to the contract

  • action_level: action_required for a proven correctness, memory-safety, locking, or security defect; remediation_recommended for a weaker or speculative case; informational for a note.
  • category: Security, Correctness, or Maintainability.
  • evidence: cite file, function, exact line when known, the triggering condition, and the lens rule id. Never invent line numbers.

What NOT to flag

  • Style, naming, formatting, typos in comments (checkpatch territory).
  • Defensive checks you cannot prove are reachable with bad data.
  • Ignored returns from calls that cannot fail, or from debugfs APIs.
  • Pre-existing low/medium issues not introduced by this patch.
  • Removal of assertions/WARN/BUG as a regression.

Sourcing

Protocol derived from Sashiko (Apache-2.0, sashiko-dev/sashiko) and Chris Mason's review-prompts (MIT, masoncl/review-prompts). Reference files under the lens skills reproduce masoncl content under its MIT license.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.