Resource Analysis

Resource Analysis is a skill for Claude Code, Codex from wangke19/gemini-ai-helpers. It costs 47 tokens per session (3,888 once invoked), scanned A, original, Apache-2.0.

A resource-usage analyzer for extracted sosreport archives. It examines memory, CPU load, disk space, and running processes.

In plain words
What is it for?
Use it to investigate high load, low memory, swap use, disk shortages, memory fragmentation, and processes associated with system failures.
Why use it?
It helps identify resource exhaustion and performance bottlenecks using a recorded system state.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to investigate high load, low memory, swap use, disk shortages, memory fragmentation, and processes associated with system failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wangke19/gemini-ai-helpers/resource-analysis
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 wangke19/gemini-ai-helpers --skill resource-analysis
Clone the repo
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpers

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 Resource Analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/wangke19/gemini-ai-helpers/resource-analysis/github.svg)](https://agentmods.dev/skills/wangke19/gemini-ai-helpers/resource-analysis)
Your own site
<a href="https://agentmods.dev/skills/wangke19/gemini-ai-helpers/resource-analysis"><img src="https://agentmods.dev/badge/skills/wangke19/gemini-ai-helpers/resource-analysis/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 Resource Analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/wangke19/gemini-ai-helpers/resource-analysis"><img src="https://agentmods.dev/badge/skills/wangke19/gemini-ai-helpers/resource-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,888 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00047 $0.03888
Opus 5 $0.00023 $0.01944
Sonnet 5 $0.00009 $0.00778
Haiku 4.5 $0.00005 $0.00389

Measured 8d ago against content hash 2addd3387384, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

Resource Analysis scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

extensions/sosreport/skills/resource-analysis/SKILL.md · 456 lines

How it starts

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

Resource Analysis Skill

This skill provides detailed guidance for analyzing system resource usage from sosreport archives, including memory, CPU, disk space, and process information.

When to Use This Skill

Use this skill when:

  • Analyzing the /sosreport:analyze command's resource analysis phase
  • Investigating performance issues or resource bottlenecks
  • Identifying resource exhaustion problems
  • Correlating resource usage with system failures

Prerequisites

  • Sosreport archive must be extracted to a working directory
  • Path to the sosreport root directory must be known
  • Understanding of Linux resource management

Key Resource Data Locations in Sosreport

  1. Memory Information:

    • sos_commands/memory/free - Memory usage snapshot
    • proc/meminfo - Detailed memory statistics
    • sos_commands/memory/swapon_-s - Swap usage
    • proc/buddyinfo - Memory fragmentation
  2. CPU Information:

    • sos_commands/processor/lscpu - CPU architecture and features
    • proc/cpuinfo - Detailed CPU information
    • sos_commands/processor/turbostat - CPU frequency and power states (if available)
    • uptime - Load averages
  3. Disk Information:

    • sos_commands/filesys/df_-al - Filesystem usage
    • sos_commands/block/lsblk - Block device information
    • sos_commands/filesys/mount - Mounted filesystems
    • proc/diskstats - Disk I/O statistics
  4. Process Information:

    • sos_commands/process/ps_auxwww - Process list with details
    • sos_commands/process/top - Process snapshot (if available)
    • proc/[pid]/ - Per-process information

Implementation Steps

Step 1: Analyze Memory Usage

  1. Parse free command output:

    # Check if free output exists
    if [ -f sos_commands/memory/free ]; then
      cat sos_commands/memory/free
    fi
    
  2. Extract memory metrics:

    # Parse /proc/meminfo for detailed stats
    if [ -f proc/meminfo ]; then
      grep -E "^(MemTotal|MemFree|MemAvailable|Buffers|Cached|SwapTotal|SwapFree|Dirty|Slab):" proc/meminfo
    fi
    

Read the full file on GitHub · 456 lines

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. 8d ago First seen · 456 lines · 47 tokens per session scan A 2addd3387384

Subscribe to this mod's changes

Resource Analysis is a skill published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 47 tokens to every session and 3,888 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.