
Kernelgen flagos
Routes GPU kernel generation, optimization and platform migration to MCP-backed workflows
Kernelgen flagos is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 22
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Kernelgen flagos
kernelgen-flagos is a unified entry point for writing and tuning GPU kernels, mainly Triton operators. On invocation it checks that a kernelgen MCP service is configured, inspects the current project for FlagGems or vLLM markers, and then loads the matching sub-workflow for generation, iterative optimization, or migration of an operator to another chip platform such as Ascend NPU.
The actual code generation and optimization are delegated to the kernelgen MCP server rather than written by the agent itself. The workflows cover repository-specific conventions, including FlagGems integration modes and vLLM CustomOp registration, and produce a Triton kernel, a PyTorch baseline, tests and a benchmark. A separate sub-skill helps submit bug reports through the gh CLI or email.
The skill expects a Python project with PyTorch and CUDA, Triton installed, and a KernelGen token for the MCP service. Its allowed tools include shell, Python and gh commands, file read, write and edit, and search.
When your agent uses it
Unified GPU kernel operator generation and optimization skill. Automatically detects the target repository type (FlagGems, vLLM, or general Python/Triton) and dispatches to the appropriate specialized sub-skill. Includes operator generation, MCP-based iterative optimization, and feedback submission sub-skills. Use this skill when the user wants to generate or optimize a GPU kernel operator, create a Triton kernel, or says things like "generate an operator", "create a kernel for X", "optimize triton kernel", or "/kernelgen-flagos".
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Bash, Bash(gh:*), Bash(python:*), Bash(python3:*), Bash(command:*), Read, Write, Edit…(see the files on GitHub)
- License: Apache-2.0(see the files on GitHub)
From a static check of its 14 files (323 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the flagos-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add flagos-ai/skills
/plugin install flagos-skills@flagos-skillsOr copy only this skill to ~/.claude/skills/kernelgen-flagos:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/kernelgen-flagos &&
cp -R "$tmp/skills/kernelgen-flagos" ~/.claude/skills/kernelgen-flagos &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/kernelgen-flagos inside it instead.
Copy the skill folder to ~/.agents/skills/kernelgen-flagos to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/kernelgen-flagos &&
cp -R "$tmp/skills/kernelgen-flagos" ~/.agents/skills/kernelgen-flagos &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/kernelgen-flagos inside it instead.
Copy the skill folder to ~/.cursor/skills/kernelgen-flagos to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/kernelgen-flagos &&
cp -R "$tmp/skills/kernelgen-flagos" ~/.cursor/skills/kernelgen-flagos &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/kernelgen-flagos inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/flagos-ai/skills.git --path skills/kernelgen-flagosOr copy the folder to ~/.gemini/skills/kernelgen-flagos yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/kernelgen-flagos:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/kernelgen-flagos &&
cp -R "$tmp/skills/kernelgen-flagos" ~/.copilot/skills/kernelgen-flagos &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/kernelgen-flagos inside it instead.
Get the folder:
git clone --depth 1 https://github.com/flagos-ai/skills.gitThen copy skills/skills/kernelgen-flagos into your agent's skills folder as kernelgen-flagos. Agents that support SKILL.md read one folder per skill.
What it does
- Repository type detection
- Identifies FlagGems, vLLM or generic Python/Triton projects and picks the matching workflow.
- Operator generation
- Creates Triton kernels with a PyTorch baseline, tests and benchmarks through the MCP server.
- Iterative kernel optimization
- Runs repeated MCP-driven optimization rounds on an existing Triton kernel to improve speed.
- Platform specialization
- Migrates GPU Triton operators to other chips such as Huawei Ascend NPU.
- MCP setup check
- Verifies the kernelgen MCP service is configured and guides token setup when it is not.
- Feedback submission
- Files bug reports via GitHub issues or email with environment details.
Good for
- Generate a ReLU kernel for a vLLM or FlagGems checkout
- Optimize a slow Triton attention kernel over several iterations
- Port a CUDA-targeted Triton operator to Ascend NPU
- Report a problem with the kernel generation workflow
Kernelgen flagos FAQ
What does the skill need before Kernelgen flagos runs?
A kernelgen MCP service with a token from kernelgen.flagos.io, plus Python 3.8+, PyTorch with CUDA and Triton.
What files does a generation run produce?
A Triton kernel file, a PyTorch baseline, a test file and a benchmark file for the operator.
Does the agent write the kernel code itself?
No. The skill requires all operator generation and optimization to go through the MCP server tools and stops if MCP is unavailable.
How do I install Kernelgen flagos in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/kernelgen-flagos to use it in all your projects, or to .claude/skills/kernelgen-flagos in one project. Or install the flagos-skills plugin, which includes it: /plugin marketplace add flagos-ai/skills, then /plugin install flagos-skills@flagos-skills.
Does Kernelgen flagos run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Kernelgen flagos?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Kernelgen flagos?
The closest alternatives to Kernelgen flagos are Flaggems PR submit flagos, Tle developer flagos, Tilegym cutile python, Tilegym converting cutile to triton and Vllm plugin fl setup flagos.
Where this comes from
- Description: from the skill's own SKILL.md.
More from flagos-ai/skills

Starter template for writing new agent skills in the flagos-ai skills repository
- Open source
- 22 GitHub stars
- Developer tools

Reviews FlagGems operator pull requests against structural and naming rules
- Open source
- 22 GitHub stars
- Developer tools

Walks an agent through submitting FlagGems operator PRs with automated checks and tests
- Open source
- 22 GitHub stars
- Developer tools

Runs a full LLM deploy, verify and benchmark pipeline on multi-chip GPU backends
- Open source
- 22 GitHub stars
- Cloud and infrastructure

Detects your GPU vendor and launches a validated PyTorch container with its devices
- Open source
- 22 GitHub stars
- Developer tools

Installs a five-package multi-chip AI software stack inside a running GPU container
- Open source
- 22 GitHub stars
- Developer tools


