upgrade-alinux-kernel

upgrade-alinux-kernel is a skill for Claude Code, Codex from alibaba/anolisa. It costs 41 tokens per session (826 once invoked), scanned B, original, Apache-2.0.

A procedure for upgrading the Linux kernel, the core part of an operating system, on Alibaba Cloud Linux systems. It covers checking available versions, installing one, setting the boot choice, and restarting the machine.

In plain words
What is it for?
Updating an Alibaba Cloud Linux kernel on an ECS cloud server to the latest version or to a specified version.
Why use it?
Kernel upgrades can interrupt services and leave a machine unable to start if the boot settings are wrong. This provides checks and warnings for that process.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

About the project

ANOLISA is a server-side operating layer for AI agent workloads that provides terminal access, token-saving tool-output compression, runtime controls, security, observability, skills, memory, and sandbox management. It is for running and supervising agents from a Linux terminal while retaining an existing shell, agent framework, and sandbox. The catalogue add-ons are components of its agent operating environment and workflows.

alibaba/anolisa · 617 stars · on GitHub · agentic-os.sh

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/alibaba/anolisa/upgrade-alinux-kernel
Any agent
npx skills add alibaba/anolisa --skill upgrade-alinux-kernel
Clone the repo
git clone --depth 1 https://github.com/alibaba/anolisa

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for upgrade-alinux-kernel

README.md
[![agentmods](https://agentmods.dev/badge/skills/alibaba/anolisa/upgrade-alinux-kernel.svg)](https://agentmods.dev/skills/alibaba/anolisa/upgrade-alinux-kernel)
Your own site
<a href="https://agentmods.dev/skills/alibaba/anolisa/upgrade-alinux-kernel"><img src="https://agentmods.dev/badge/skills/alibaba/anolisa/upgrade-alinux-kernel.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 826 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00826
Opus 5 $0.00020 $0.00413
Sonnet 5 $0.00008 $0.00165
Haiku 4.5 $0.00004 $0.00083

Measured 6d ago against content hash 416dcd0331cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

upgrade-alinux-kernel scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo yum list available kernel
src/os-skills/system-admin/upgrade-alinux-kernel/SKILL.md · 120 lines

What it actually says

Alinux 升级内核

Alinux 操作系统内核升级指南。

前提条件

  1. 升级前提示用户以下警示信息,需要用户确认
  • 内核升级需要重启实例或者设备,会导致业务中断(约数分钟);
  • 系统盘数据是否已经做了备份;

重要警告

  • 重启前务必确认 GRUB 启动项已设置为正确的内核。
  • 如果输入没有说明升级那个内核版本,则默认升级最新版本,并提示用户当前可以升级的内核所有版本,并选择了最新版本升级,让用户进行确认。

操作流程

复制以下清单并跟踪进度:

操作进度:
- [ ] 步骤 1:查看当前的内核版本
- [ ] 步骤 2:检查可用的内核更新
- [ ] 步骤 3:安装/升级内核
- [ ] 步骤 4:升级内核相关组件
- [ ] 步骤 5:更新 GRUB 启动配置
- [ ] 步骤 6:重启系统

分步操作说明

步骤 1:查看当前的内核版本

确定操作系统类型:

uname -r 

步骤 2-3-4:升级内核(按升级类型)

  • 查看可用的内核版本:
sudo yum list available kernel
  • 查看待升级内核相关软件包列表

    1. 获取当前内核版本
    uname -r
    
    1. 根据上一步输出的版本号,查询相关组件
    rpm -qa | grep <当前内核版本号>
    
升级最新版本
  • 升级内核到最新版本
sudo yum update kernel -y
  • 升级查询到的内核相关组件
sudo yum update <待升级内核相关软件包> -y
升级指定版本
  • 升级到指定版本
sudo yum install kernel-<version> -y
  • 升级查询到的内核相关组件
sudo yum update <待升级内核相关软件包>-<version> -y

步骤 5:更新 GRUB 配置

# 列出已安装的内核
sudo grubby --info=ALL | grep ^kernel

# 设置新内核为默认启动项
sudo grubby --set-default /boot/vmlinuz-<new-kernel-version>

# 验证
sudo grubby --default-kernel

步骤 6:重启并验证

sudo reboot

故障排除

Alibaba Cloud Linux 3.8 升级内核时 dracut 报错

Alibaba Cloud Linux 3.8 版本(镜像日期 20230727~20230925)升级内核时,dracut 会因重复的内核模块配置而报错。该报错不影响内核包安装,但可通过修改 dracut 配置消除。

详细的问题描述、影响范围和修复步骤,见 fix-alinux3.8-kernel-upgrade-error.md

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 120 lines · 41 tokens per session scan B 416dcd0331cc

Subscribe to this mod's changes

upgrade-alinux-kernel is a skill published in the GitHub repository alibaba/anolisa (617 stars, last pushed yesterday), licensed Apache-2.0. It adds 41 tokens to every session and 826 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

beevibe-team-mesh-negotiation

Multi-round negotiation protocol — covers both initiator and peer roles. Use when about to call negotiate(), when receiving a intent block as a peer, or when receiving an 'escalated' sentinel from a blocked respondnegotiate. Covers proposal crafting, counter-strategy, deadlock detection, when to accept early…

beevibe-ai/beevibe · 112 tokens

beevibe-verify-pr

CI verification before marking a PR-bearing task done. Use BEFORE calling mcpbeevibeupdateprogress(done) on any session whose deliverable is a pull request — including the first dispatch (you opened the PR with gh pr create) and any revision dispatch (you pushed new commits to an existing PR). Watches the PR's…

beevibe-ai/beevibe · 172 tokens

beevibe-discover-repo

Find the best GitHub repo for a goal, then call userepo to run it in a sandbox. Use whenever the user's goal requires a capability you don't have natively and you haven't been given a specific repo.

beevibe-ai/beevibe · 51 tokens

evaluate_positioning

Product Positioning Evaluation Framework.

markmhendrickson/neotoma · 9 tokens

audit

Run a comprehensive read-only audit of the user's Neotoma database, surfacing graph-health issues by category and severity. Each finding includes a structured remediation pointing at an existing Neotoma tool — this skill never mutates state.

markmhendrickson/neotoma · 3 tokens

review

Code review skill for PRs, branches, or uncommitted changes. Loads the appropriate subset of architecture/subsystem docs based on what changed, walks the changeguardrailsrules pre-PR checklist, and emits structured findings (blocking / advisory / nit) with a verdict.

markmhendrickson/neotoma · 57 tokens