Skip to content
Skillv1.0.0

htop

Monitor system resources with htop and related tools. Use when a user asks to check CPU/memory usage, find resource-hungry processes, monitor server performance, or diagnose system bottlenecks.

by terminalskills(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from terminalskills/skills (skills/htop/SKILL.md). Install upstream with npx skills add terminalskills/skills --skill htop. Copyright stays with the author (Apache-2.0).

htop / System Monitoring

Overview

htop is an interactive process viewer for Linux. Combined with other CLI tools (top, vmstat, iostat, iotop, nethogs), it provides comprehensive real-time system monitoring without installing external agents.

Instructions

Step 1: Process Monitoring

htop                      # interactive process viewer
htop -u deploy            # filter by user
htop -p 1234,5678         # monitor specific PIDs

# Inside htop:
# F5 = tree view (parent/child processes)
# F6 = sort by column
# F9 = kill process
# / = search
# Space = tag process

Step 2: Resource Analysis

# CPU and memory overview
free -h                    # memory usage (human-readable)
uptime                     # load average (1, 5, 15 min)
nproc                      # number of CPU cores

# Disk I/O
iostat -x 1                # disk I/O stats, 1 second interval
iotop                      # top for disk I/O (shows which process reads/writes)

# Network
nethogs                    # bandwidth per process
ss -tulnp                  # listening ports with process names
iftop                      # bandwidth per connection

Step 3: Quick Diagnostics Script

#!/bin/bash
# scripts/server-status.sh — Quick health check
echo "=== CPU Load ==="
uptime

echo -e "\n=== Memory ==="
free -h

echo -e "\n=== Disk ==="
df -h /

echo -e "\n=== Top 5 CPU Processes ==="
ps aux --sort=-%cpu | head -6

echo -e "\n=== Top 5 Memory Processes ==="
ps aux --sort=-%mem | head -6

echo -e "\n=== Listening Ports ==="
ss -tulnp | grep LISTEN

Guidelines

  • Load average > number of CPU cores = system is overloaded.
  • free -h: look at "available" column, not "free" (Linux uses free RAM for cache).
  • Use dstat for combined CPU/disk/net stats in one view.
  • For historical monitoring, pair with Prometheus + Grafana or Netdata.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/terminalskills-skills-htop/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

terminalskills-skills-htop.ocm.jsonjson
{
  "ocm": "1",
  "id": "terminalskills-skills-htop",
  "kind": "skill",
  "name": "htop",
  "description": "Monitor system resources with htop and related tools. Use when a user asks to check CPU/memory usage, find resource-hungry processes, monitor server performance, or diagnose system bottlenecks.",
  "publisher": "terminalskills",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "htop",
      "monitoring",
      "processes",
      "performance",
      "linux",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Monitor system resources with htop and related tools. Use when a user asks to check CPU/memory usage, find resource-hungry processes, monitor server performance, or diagnose system bottlenecks."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/terminalskills/skills",
      "path": "skills/htop/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/terminalskills/skills/blob/HEAD/skills/htop/SKILL.md",
      "key": "terminalskills/skills/skills/htop/SKILL.md"
    },
    "compatibility": "Linux, macOS",
    "license": "Apache-2.0"
  },
  "instructions": "# htop / System Monitoring\n\n## Overview\n\nhtop is an interactive process viewer for Linux. Combined with other CLI tools (top, vmstat, iostat, iotop, nethogs), it provides comprehensive real-time system monitoring without installing external agents.\n\n## Instructions\n\n### Step 1: Process Monitoring\n\n```bash\nhtop                      # interactive process viewer\nhtop -u deploy            # filter by user\nhtop -p 1234,5678         # monitor specific PIDs\n\n# Inside htop:\n# F5 = tree view (parent/child processes)\n# F6 = sort by column\n# F9 = kill process\n# / = search\n# Space = tag process\n```\n\n### S",
  "cost": {
    "context_tokens": 468
  }
}

Fetch it by URL: GET /api/v1/registry/terminalskills-skills-htop/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.