Agent skill

Liger Kernel Dev

by linkedin in linkedin/Liger-Kernel

Develops production-ready Triton kernels for Liger Kernel. An agent skill from linkedin/Liger-Kernel.

BSD-2-ClauseAuto-check passedAI & LLM Engineering

Install Liger Kernel Dev

skills CLI
$ npx skills add linkedin/Liger-Kernel --skill liger-kernel-dev -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install linkedin/Liger-Kernel liger-kernel-dev --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/linkedin/Liger-Kernel.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/liger-kernel-dev .claude/skills/liger-kernel-dev && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
liger-kernel-dev
GitHub stars
6.6k
Token cost
~799 tokens
SKILL.md length
293 words
Files
13
Skills in repo
3
Repo updated
First seen
Licence
BSD-2-Clause

At a glance

Develops production-ready Triton kernels for Liger Kernel. An agent skill from linkedin/Liger-Kernel.

  • Works in 3 steps: Analyze → Generate → Validate
  • Adding a new Triton kernel
  • SKILL.md covers Mode Detection, Pipeline (Create Mode), Pipeline (Modify Mode) and Reference Files
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Liger Kernel Dev is an agent skill from linkedin/Liger-Kernel. Develops production-ready Triton kernels for Liger Kernel. Creates new kernels from PyTorch operations (local files, URLs, code snippets, or natural language) with ops, module wrappers, functional APIs, unit tests, benchmarks, and plots. Also modifies existing Liger kernels. Use when adding a new Triton kernel, converting a PyTorch operation to Triton, or updating an existing Liger kernel.

Its SKILL.md is about 800 tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files (for example `analyzer.md`, `examples/cross-entropy-profile.md` and `examples/rms-norm-profile.md`).

It sits in AI & LLM Engineering, covering GPU and accelerator computing, Deep learning and Unit testing. It works with PyTorch and Mistral AI. The repository describes itself as: Efficient Triton Kernels for LLM Training. The licence is BSD-2-Clause.

When your agent uses it

  • Adding a new Triton kernel
  • Converting a PyTorch operation to Triton
  • Updating an existing Liger kernel

Example prompts

  • “Use the liger-kernel-dev skill to develop production-ready Triton kernels for Liger Kernel. An agent skill from linkedin/Liger-Kernel”
  • “/liger-kernel-dev”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Analyze
  2. Generate
  3. Validate

What it can do on your machine

Read from SKILL.md and the folder at commit b5cdbf7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Liger Kernel Dev loads about 799 tokens when it runs. Until then it costs about 102 tokens; SKILL.md has 293 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~102
When it runs · the whole SKILL.md, loaded when a task matches
~799

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from linkedin/Liger-Kernel at commit b5cdbf7, republished under its BSD-2-Clause licence (© linkedin). 293 words, ~799 tokens.

Download SKILL.mdSave it as .claude/skills/liger-kernel-dev/SKILL.md (or your agent's skills folder). This skill also uses 12 other files; get the full folder from GitHub.
name
liger-kernel-dev
description
Develops production-ready Triton kernels for Liger Kernel. Creates new kernels from PyTorch operations (local files, URLs, code snippets, or natural language) with ops, module wrappers, functional APIs, unit tests, benchmarks, and plots. Also modifies existing Liger kernels. Use when adding a new Triton kernel, converting a PyTorch operation to Triton, or updating an existing Liger kernel.

Liger Kernel Dev

Develops Triton kernels for Liger Kernel through a 3-stage pipeline with human review between stages. Supports creating new kernels and modifying existing ones. NVIDIA GPUs only.

Mode Detection

  • Create mode: User asks to create/add/generate/write/build a new kernel → full pipeline
  • Modify mode: User asks to update/fix/change/extend an existing kernel → skip Analyze, modify files, then Validate

Pipeline (Create Mode)

Stage 1: Analyze

Follow the Analyzer workflow in analyzer.md. If the host runtime supports parallel subagents, this stage may be delegated to one; otherwise execute the workflow directly.

Accepts any input: local file, URL, code snippet, natural language description, or model component reference. Produces a standalone PyTorch reference implementation and a kernel profile.

Human checkpoint: Present PyTorch reference + kernel profile. Confirm before proceeding.

Stage 2: Generate

Follow the Generator workflow in generator.md.

Generates/modifies up to 8 files:

  1. src/liger_kernel/ops/{kernel}.py — NEW Triton kernels + autograd Function
  2. src/liger_kernel/transformers/{kernel}.py — NEW nn.Module wrapper
  3. src/liger_kernel/transformers/functional.py — MODIFY add functional API
  4. src/liger_kernel/ops/__init__.py — MODIFY export Function class
  5. src/liger_kernel/transformers/__init__.py — MODIFY export Module + __all__
  6. test/transformers/test_{kernel}.py — NEW unit tests
  7. benchmark/scripts/benchmark_{kernel}.py — NEW benchmark script
  8. benchmark/data/all_benchmark_data.csv — MODIFY (after benchmarks run)

Human checkpoint: Present changes for review.

Stage 3: Validate

Follow the Validator workflow in validator.md.

Runs checkstyle, unit tests (hard gate — stops on persistent failure), benchmarks, and generates plots. Optionally runs ncu profiling.

Human checkpoint: Report final results with benchmark numbers and plots.

Pipeline (Modify Mode)

  1. Read existing kernel files to understand current implementation
  2. Understand the requested modification
  3. Make targeted changes (Generator handles this)
  4. Run full Validate stage (same as create mode)

Reference Files

© linkedin, BSD-2-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 12 other files in .agents/skills/liger-kernel-dev of linkedin/Liger-Kernel.

  • SKILL.md
  • analyzer.md
  • examples/cross-entropy-profile.md
  • examples/rms-norm-profile.md
  • examples/swiglu-profile.md
  • generator.md
  • kernel-profile-format.md
  • templates/benchmark.md
  • templates/functional-api.md
  • templates/module-wrapper.md
  • templates/ops-kernel.md
  • templates/unit-test.md
  • validator.md

Open the folder on GitHubat commit b5cdbf7

Compare with similar skills

Liger Kernel Dev next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Liger Kernel Dev compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Liger Kernel Dev this skilllinkedin/Liger-Kernel6.6k—~799Automated safety check: PassBSD-2-Clause
Cuda Index Widthpytorch/pytorch104k—~1.6kAutomated safety check: PassCustom licence
Graphsignalgraphsignal/graphsignal257—~6.2kAutomated safety check: PassApache-2.0
Metal Kernelpytorch/pytorch104k—~4.9kAutomated safety check: PassCustom licence
PyTorch Lightning TrainingOrchestra-Research/AI-Research-SKILLs13k7 repos~2.3kAutomated safety check: PassMIT
Pt2 Bug Basherpytorch/pytorch104k—~3.5kAutomated safety check: PassCustom licence

Similar skills

  • Cuda Index Width

    pytorch/pytorch

    Choose 32-bit vs 64-bit index math in PyTorch CUDA kernels. An agent skill from pytorch/pytorch.

    104k GitHub stars~1.6k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Graphsignal

    graphsignal/graphsignal

    Profile AI inference workloads (vLLM, SGLang, TensorRT-LLM, PyTorch, any GPU application) with the Graphsignal profiler and read the results from its local /signals JSON endpoint.

    257 GitHub stars~6.2k tokensUpdated 9 days ago
    AI & LLM EngineeringAuto-check passed
  • Metal Kernel

    pytorch/pytorch

    Write Metal/MPS kernels for PyTorch operators. An agent skill from pytorch/pytorch.

    104k GitHub stars~4.9k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • PyTorch Lightning Training

    Orchestra-Research/AI-Research-SKILLs

    Shows how to organize PyTorch training with Lightning's LightningModule and Trainer, covering validation, DDP, callbacks and learning-rate scheduling.

    13k GitHub starsUsed in 7 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Pt2 Bug Basher

    pytorch/pytorch

    Debug PyTorch 2 compiler stack failures including Dynamo graph breaks, Inductor codegen errors, AOTAutograd crashes, and accuracy mismatches.

    104k GitHub stars~3.5k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Ray Train Distributed Training

    Orchestra-Research/AI-Research-SKILLs

    Scales PyTorch, TensorFlow and Hugging Face training from a single GPU to multi-node clusters with Ray Train, including Ray Tune sweeps and checkpoint recovery.

    13k GitHub starsUsed in 3 repos~2.7k tokens
    AI & LLM EngineeringAuto-check passed

More from linkedin/Liger-Kernel

  • Liger Autopatch

    linkedin/Liger-Kernel

    Adds Liger Kernel support for a new HuggingFace Transformers model, or modifies existing monkey-patching.

    6.6k GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Liger Kernel Perf

    linkedin/Liger-Kernel

    Optimizes the performance of existing Liger Kernel Triton kernels.

    6.6k GitHub stars~1.5k tokensUpdated today
    Auto-check passed

Questions about Liger Kernel Dev

What does Liger Kernel Dev do?

Develops production-ready Triton kernels for Liger Kernel. An agent skill from linkedin/Liger-Kernel. Liger Kernel Dev is an agent skill from linkedin/Liger-Kernel. Develops production-ready Triton kernels for Liger Kernel.

When should I use Liger Kernel Dev?

Liger Kernel Dev fits situations like: adding a new Triton kernel; converting a PyTorch operation to Triton; updating an existing Liger kernel.

How do I install Liger Kernel Dev in Claude Code?

Run `npx skills add linkedin/Liger-Kernel --skill liger-kernel-dev -a claude-code`. Or copy the skill folder (.agents/skills/liger-kernel-dev in linkedin/Liger-Kernel) into .claude/skills/liger-kernel-dev in your project. Claude Code loads it when a task matches its description.

How do I install Liger Kernel Dev in Codex?

Run `npx skills add linkedin/Liger-Kernel --skill liger-kernel-dev -a codex`. Or copy the skill folder (.agents/skills/liger-kernel-dev in linkedin/Liger-Kernel) into .agents/skills/liger-kernel-dev in your project. Codex loads it when a task matches its description.

Can I use Liger Kernel Dev in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add linkedin/Liger-Kernel --skill liger-kernel-dev -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/liger-kernel-dev, .gemini/skills/liger-kernel-dev, .github/skills/liger-kernel-dev and .opencode/skills/liger-kernel-dev in your project.

What does Liger Kernel Dev need to run?

SKILL.md names no scripts, command-line tools or credentials: Liger Kernel Dev is instructions for the agent only.

Does Liger Kernel Dev access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Liger Kernel Dev safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Liger Kernel Dev use?

Liger Kernel Dev is published under the BSD-2-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Liger Kernel Dev use?

About 799 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Liger Kernel Dev?

Skills that share tags, products or a category with Liger Kernel Dev: Cuda Index Width (pytorch/pytorch, 104k stars), Graphsignal (graphsignal/graphsignal, 257 stars), Metal Kernel (pytorch/pytorch, 104k stars) and PyTorch Lightning Training (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Liger Kernel Dev?

linkedin (a GitHub organization) maintains it in linkedin/Liger-Kernel, which has 6,647 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 7, 2026.

Source: linkedin/Liger-Kernel on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.