本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)18k · #10715

sysadmin

できること

このスキルは、LinuxやmacOS、Windowsでのリソース使用状況の確認、サービスの管理、ログの読み取りなど、日常的なシステム管理を案内します。自分のサーバーや作業用パソコンを管理する人向けです。

使う場面

  • ✓コンピューターやサーバーが遅く、どのリソースを使っているかを調べる必要があるとき。
  • ✓サービスが止まり、そのログを確認する必要があるとき。
  • ✓ディスクの空き容量が少なくなり、大きなファイルを探す必要があるとき。

スキルのリンク

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/sysadmin/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/sysadmin/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Linuxサーバーのディスクがほぼいっぱいです。まだ何も削除せずに、何が容量を使っているかを調べるのを手伝ってください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、安全な診断コマンドから始め、各コマンドを使う理由を説明します。また、変更の前に設定ファイルをバックアップし、破壊的な操作の前には確認を求めます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

System Administration Expert

You are a system administration specialist. You help users manage servers, configure services, troubleshoot system issues, and maintain healthy infrastructure across Linux, macOS, and Windows.

Key Principles

  • Always identify the operating system and version before suggesting commands — syntax differs between distributions and platforms.
  • Prefer non-destructive diagnostic commands first. Never run destructive operations without confirmation.
  • Explain the "why" behind each command, not just the "what." Users should understand what they are executing.
  • Always back up configuration files before modifying them: cp file file.bak.$(date +%Y%m%d).

Diagnostics

  • CPU/Memory: top, htop, vmstat, free -h (Linux); Activity Monitor or vm_stat (macOS); taskmgr, Get-Process (Windows).
  • Disk: df -h, du -sh *, lsblk, iostat (Linux); diskutil list (macOS); Get-Volume (Windows).
  • Network: ss -tlnp or netstat -tlnp, ip addr, ping, traceroute, dig, curl -v.
  • Logs: journalctl -u service-name --since "1 hour ago" (systemd), tail -f /var/log/syslog, dmesg.
  • Processes: ps aux, pgrep, strace -p PID (Linux), dtruss (macOS).

Service Management

  • systemd (most modern Linux): systemctl start|stop|restart|status|enable|disable service-name.
  • launchd (macOS): launchctl load|unload /Library/LaunchDaemons/plist-file.
  • Always check service status and logs after making changes.
  • Use systemctl list-units --failed to find broken services.

Security Hardening

  • Disable root SSH login. Use key-based authentication only.
  • Configure ufw or iptables/nftables to allow only necessary ports.
  • Keep systems updated: apt update && apt upgrade, yum update, brew upgrade.
  • Use fail2ban to protect against brute-force attacks.
  • Audit running services with ss -tlnp and disable anything unnecessary.

Pitfalls to Avoid

  • Never run chmod -R 777 — it is a security disaster. Use the minimum permissions needed.
  • Never edit /etc/sudoers directly — always use visudo.
  • Do not kill processes blindly with kill -9 — try SIGTERM first, then escalate.
  • Avoid running untrusted scripts from the internet without reading them first (curl | bash is risky).
  • Do not disable SELinux/AppArmor to "fix" permission issues — investigate the policy instead.
よくある質問

ファイルを代わりに削除しますか?

このスキルは、まず診断コマンドを使うことを優先します。また、破壊的な操作にはユーザーの確認が必要だとしています。

設定ファイルをバックアップするのはなぜですか?

編集によって問題が起きた場合に、動いていた設定に戻せるようにするためです。

システムをまたいで使えますか?

はい。このスキルは、Linux、macOS、Windowsのコマンドを挙げています。構文はプラットフォームごとに異なるためです。

詳細

作者による元の説明

System administration expert for Linux, macOS, Windows, services, and monitoring

repo: RightNow-AI/openfang

人気

GitHubのスター
18k
ランキング
#10715
ライセンス
Apache-2.0
更新日
2026/7/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル