Chalk Labs
Need help deploying os-capacity-patrol?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/haitaopanhq-os-capacity-patrol
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
os-capacity-patrol- Description
- None
- License
- Apache-2.0
- Instructions
- 88 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- missing YAML frontmatter
- name: missing
- description: missing
Files (1)
- SKILL.md
SKILL.md (first lines)
# Skill: os-capacity-patrol ## Purpose 标准化 Linux 节点磁盘容量巡检与安全清理流程,避免系统盘被日志/缓存持续占满导致服务不稳定。 ## Trigger 出现以下任一情况时立即执行: - `df -h /` 使用率 >= 80% - 系统告警提示磁盘空间不足 - 服务异常伴随大量日志写入(例如 journal/syslog 快速增长) ## Scope 适用于 Cloud-Neutral Toolkit 维护的 Linux 节点(如 `hk-xhttp`, `jp-xhttp`, `us-xhttp`)。 ## Inspection Commands ```bash df -h du -xhd1 / | sort -hr | head -n 20 du -xhd2 /var | sort -hr | head -n 30 du -xhd2 /root | sort -hr | head -n 40 find /root /var -xdev -type f -size +100M -printf "%s %p\n" | sort -nr | head -n 40 ``` ## Safe Cleanup Baseline ```bash journalctl --vacuum-size=200M apt-get clean rm -rf /root/go/pkg/mod /root/go/pkg/sumdb /root/.cache/go-build logrotate -f /etc/logrotate.conf rm -f /var/log/syslog.1 ``` > 禁止清理:数据库数据目录、应用持久化目录、未知业务文件。 ## Persistent Protection (Mandatory) 配置 journald 上限,防止再次打满: 文件:`/etc/systemd/journald.conf.d/99-disk-cap.conf` ```ini [Journal] SystemMaxUse=200M RuntimeMaxUse=50M SystemKeepFree=1G ``` 生效命令: ```bash systemctl restart systemd-journald journalctl --vacuum-size=200M journalctl --disk-usage ``` ## Verification Gate 执行后必须确认: 1. `/` 使用率降至 < 70% 2. `journalctl --disk-usage` <= 200M(接近即可) 3. 关键服务仍在运行(如 `agent-svc-plus`, `xray`, `nginx`) 4. 保留清理前后 `df -h /` 记录 ## Multi-Host Rolling Procedure 多机执行时遵循顺序: 1. 单台试运行(确认无副作用) 2. 逐台执行(hk -> jp -> us) 3. 每台完成后立即做 `df -h /` 和服务状态检查 ## Rollback / Recovery 若清理后异常: - 先恢复服务:`systemctl restart <service>` - 若涉及日志策略误配,移除 drop-in 并重启 journald: - `rm -f /etc/systemd/journald.conf.d/99-disk-cap.conf` - `systemctl restart systemd-journald` - 必要时从备份恢复误删文件
From haitaopanhq/.github, Apache-2.0.
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 5, 2026 (9 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/haitaopanhq/.github
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get os-capacity-patrol running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
os-capacity-patrol skill. Agent Mart. https://agentmart.dev/skills/haitaopanhq-os-capacity-patrol (last updated 2026-10-24)