sysadmin
它能做什么
这个技能指导日常系统管理,包括在 Linux、macOS 和 Windows 上检查资源使用、管理服务和阅读日志。适合照看自己服务器或工作站的人。
适用场景
- ✓当电脑或服务器变慢,需要找出是什么在占用资源时。
- ✓当某个服务已停止,需要检查其日志时。
- ✓当磁盘空间不足,需要找出大文件时。
技能链接
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/sysadmin/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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 Monitororvm_stat(macOS);taskmgr,Get-Process(Windows). - Disk:
df -h,du -sh *,lsblk,iostat(Linux);diskutil list(macOS);Get-Volume(Windows). - Network:
ss -tlnpornetstat -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 --failedto find broken services.
Security Hardening
- Disable root SSH login. Use key-based authentication only.
- Configure
ufworiptables/nftablesto allow only necessary ports. - Keep systems updated:
apt update && apt upgrade,yum update,brew upgrade. - Use
fail2banto protect against brute-force attacks. - Audit running services with
ss -tlnpand disable anything unnecessary.
Pitfalls to Avoid
- Never run
chmod -R 777— it is a security disaster. Use the minimum permissions needed. - Never edit
/etc/sudoersdirectly — always usevisudo. - Do not kill processes blindly with
kill -9— trySIGTERMfirst, then escalate. - Avoid running untrusted scripts from the internet without reading them first (
curl | bashis 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
评论
- …
同一仓库的更多技能
browser-automation
18k教你的智能体使用 Playwright 控制网页浏览器,借助 CSS 选择器找到按钮、表单和链接。
clip-hand-skill
18k帮你的智能体制作视频片段:下载视频、转录语音、生成字幕文件,并用 ffmpeg 剪辑片段。
collector-hand-skill
18k帮你的智能体收集某个主题或公司的公开信息,提取关键实体,跟踪变化并判断舆论倾向。
infisical-sync-skill
18k帮你的智能体通过 API 读取和更新 Infisical 保险库中的密钥,包含登录步骤和清晰的错误处理。