sosreport-analyzer

sosreport-analyzer is a skill for Claude Code, Codex from AI-Shell-Team/aish. It costs 30 tokens per session (4,928 once invoked), scanned B, original, Apache-2.0.

A Linux system diagnosis and analysis tool that collects configuration, logs, hardware details, and performance data into a report. Linux is an operating system used on many servers and developer machines.

In plain words
What is it for?
Use it to troubleshoot production servers, create system health reports, inspect CPU, memory, disk, network, and service status, or check compatibility before moving to another Linux distribution.
Why use it?
It brings information from many parts of a Linux system together, making it easier to investigate slow responses, service failures, network problems, storage issues, and security settings.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to troubleshoot production servers, create system health reports, inspect CPU, memory, disk, network, and service status, or check compatibility before moving to another Linux distribution.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ai-shell-team/aish/sosreport-analyzer
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.

Any agent
npx skills add AI-Shell-Team/aish --skill sosreport-analyzer
Clone the repo
git clone --depth 1 https://github.com/AI-Shell-Team/aish

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 sosreport-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai-shell-team/aish/sosreport-analyzer/github.svg)](https://agentmods.dev/skills/ai-shell-team/aish/sosreport-analyzer)
Your own site
<a href="https://agentmods.dev/skills/ai-shell-team/aish/sosreport-analyzer"><img src="https://agentmods.dev/badge/skills/ai-shell-team/aish/sosreport-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sosreport-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/ai-shell-team/aish/sosreport-analyzer"><img src="https://agentmods.dev/badge/skills/ai-shell-team/aish/sosreport-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,928 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 329
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high YARA Match · line 331
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • medium Privilege Escalation · line 721
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 724
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
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.00030 $0.04928
Opus 5.5 $0.00012 $0.01971
Sonnet 5.5 $0.00006 $0.00986
Haiku 4.5 $0.00003 $0.00493

Measured 3mo ago against content hash 1f08b5c1437f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

sosreport-analyzer 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 3mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/analyze.sh, scripts/check_dependencies.sh, scripts/collect_all.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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 apt install sysstat smartmontools
skills/sosreport-analyzer/SKILL.md · 741 lines

How it starts

The opening of the file, as written. The whole thing — 741 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SOS Report Analyzer Skill

📋 功能概述

自动收集 Linux 系统的配置、日志、性能数据,并进行智能分析和问题诊断。

核心能力:

  • ✅ 跨发行版兼容(Debian/Ubuntu/RHEL/CentOS/Fedora)
  • ✅ 系统信息收集(硬件、内核、发行版)
  • ✅ 日志聚合与分析(systemd、syslog、应用日志)
  • ✅ 网络配置诊断(接口、路由、防火墙、DNS)
  • ✅ 存储状态检查(磁盘、LVM、文件系统、挂载点)
  • ✅ 服务状态监控(systemd units、进程树)
  • ✅ 性能数据采集(CPU、内存、I/O、网络)
  • ✅ 安全配置审计(SELinux/AppArmor、防火墙、审计日志)
  • ✅ 智能问题检测与建议

🎯 使用场景

场景1:生产环境故障排查

用户: 生产服务器响应缓慢,帮我做个系统诊断
助手: 我将使用 sosreport-analyzer 收集系统数据...
      [执行数据收集]
      [分析报告]
      发现问题:
      1. CPU iowait 高达 45%,磁盘 /dev/sda 存在性能瓶颈
      2. 内存使用 92%,swap 频繁使用
      3. systemd-journald 服务占用 2GB 日志空间

场景2:系统健康检查

用户: 定期巡检,生成系统健康报告
助手: 正在收集系统状态...
      [生成 HTML/Markdown 报告]

场景3:迁移前评估

用户: 准备将 deepin 迁移到 UOS,先做个系统扫描
助手: 扫描兼容性问题...
      [检测内核模块、配置文件、软件包兼容性]

📊 数据收集模块

1. 系统基础信息(System Overview)

收集内容:

# 发行版信息
- /etc/os-release
- lsb_release -a
- uname -a

# 硬件信息
- lscpu (CPU 架构、核心数、NUMA 拓扑)
- lsmem (内存配置、分布)
- dmidecode (BIOS、主板、硬件序列号)
- lspci (PCI 设备)
- lsusb (USB 设备)
- lsblk (块设备)

# 虚拟化检测
- systemd-detect-virt
- virt-what

分析重点:

  • CPU 型号、频率、漏洞缓解状态
  • 内存容量、NUMA 节点分布
  • 虚拟化平台识别(KVM、VMware、AWS、Azure)

2. 内核与启动(Kernel & Boot)

收集内容:

# 内核信息
- uname -r
- cat /proc/cmdline
- cat /proc/version
- lsmod (已加载模块)
- dmesg (启动日志)

# 启动配置
- /boot/grub*/grub.cfg
- /etc/default/grub
- systemctl list-jobs
- systemd-analyze blame (启动时间分析)

分析重点:

  • 内核 taint 状态(污染模块)
  • 启动参数异常(如 nomodeset、quiet)
  • 启动性能瓶颈服务

3. 日志聚合(Logging)

收集内容:

# Systemd Journal
- journalctl --no-pager --since "7 days ago" -p err
- journalctl --disk-usage
- journalctl -u <critical-services> --since "24 hours ago"

# 传统日志(如果存在)
- /var/log/messages (RHEL)
- /var/log/syslog (Debian/Ubuntu)
- /var/log/auth.log
- /var/log/secure
- /var/log/audit/audit.log

# 应用日志
- /var/log/nginx/
- /var/log/apache2/
- /var/log/mysql/

智能分析:

  • 错误日志聚合(ERROR、CRITICAL、FATAL)
  • 异常模式识别(OOM killer、segfault、I/O errors)
  • 重复错误统计(Top 10 错误消息)
  • 时间线关联分析

Read the full file on GitHub · 741 lines

Files

What ships with it

7 files 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. 3mo ago First seen · 741 lines · 30 tokens per session scan B 1f08b5c1437f

Subscribe to this mod's changes

sosreport-analyzer is a skill published in the GitHub repository AI-Shell-Team/aish (590 stars, last pushed 4d ago), licensed Apache-2.0. It adds 30 tokens to every session and 4,928 once invoked, about $0.0001 per session on Opus 5.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

sosreport-analyzer compared with skills from other repositories

sosreport-analyzer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sosreport-analyzerAI-Shell-Team/aishSkill5904d agoApache-2.0B30Claude Code, Codex
wispr-flow-debugsfc-gh-eraigosa/dotfilesSkill57todayApache-2.0A87Claude Code, Codex
flarefreekmurze/dotfilesSkill1.0k5d agononeA78Claude Code, Codex
web-perffreekmurze/dotfilesSkill1.0k5d agononeA26Claude Code, Codex
audit-architecturefreekmurze/dotfilesSkill1.0k5d agononeA119Claude Code, Codex
markdownlint-triageAndrewDongminYoo/cc-agents-kitSkill32d agoApache-2.0A33Claude Code
completion-script-generatorcuriositech/windags-skillsSkill213d agononeB50Claude Code