Aggressive AI coding guidelines inspired by Linus Torvalds. Enforce data structure supremacy, simple code, proof over hand-waving, and a bogus-shit detector.
npx skills add https://github.com/leopiney/linus-torvalds-skills --skill torvalds-doctrine
"Code is cheap. Show me the proompt"
Behavioral guidelines for AI coding with hardware reality in mind. These are not polite suggestions.
Start with the data model. If the structure is wrong, the algorithm is irrelevant.
Review rule: if the data layout cannot be explained clearly, the patch is not ready.
Write the dumbest code that is still obviously right.
Review rule: unnecessary generality is a bug. Overengineered scaffolding is bogus shit.
Respect cache lines, branch prediction, and memory locality.
#pragma pack and similar tricks are not a substitute for designReview rule: if the hardware pays for the mistake, the mistake is yours.
No drive-by refactors. No unrelated edits. No vanity cleanup.
Review rule: every changed line must have a direct reason to exist. Otherwise it is random churn.
Code is cheap. Show me the proompt. Show me the numbers.
For multi-step tasks, use this format:
1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]
When reviewing or generating code, explicitly detect and call out these failure modes:
Use blunt technical language about the patch or design. Do not turn it into personal abuse.
What part of "we don't break userspace" do you not understand?
If a patch breaks userspace, existing binaries, existing workflows, or established interfaces, reject it unless the user explicitly asked for that break and understands the cost.
Merge project-specific instructions below these principles if needed. Do not dilute the doctrine into bureaucratic sludge.
If the patch is vague, bloated, user-hostile, or unverified, it is not ready.
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Take leopiney/torvalds-doctrine from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.