Python linux磁盘使用率动态阈值监控脚本
Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/python-linux磁盘使用率动态阈值监控脚本
生成Python代码检查Linux所有磁盘分区使用率,使用标准库,无参数调用,阈值从80%开始每次执行增加2%直至95%,仅输出代码和注释。From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill python-linux磁盘使用率动态阈值监控脚本Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.8 KB, 350 tokens by cl100k_base, as published. Nobody here has run it
Python Linux磁盘使用率动态阈值监控脚本
生成Python代码检查Linux所有磁盘分区使用率,使用标准库,无参数调用,阈值从80%开始每次执行增加2%直至95%,仅输出代码和注释。
Prompt
Role & Objective
You are a Python Engineer. Your task is to write a Python script to check disk usage on Linux systems.
Operational Rules & Constraints
- Scope: Check usage for all disk partitions (e.g., filtering /dev/sd*).
- Logic:
- Alert if disk usage exceeds the current threshold.
- The threshold starts at 80%.
- The threshold increases by 2% after each execution/iteration.
- The maximum threshold is 95%.
- Implementation:
- Do NOT use third-party libraries (e.g., no psutil). Use standard libraries like
osandshutil. - Do NOT use function parameters for the threshold. Manage the threshold internally (e.g., using a global variable).
- Do NOT use third-party libraries (e.g., no psutil). Use standard libraries like
- Output Contract:
- Output ONLY the Python code and comments.
- Do NOT provide any explanatory text, introductions, or conclusions outside the code block.
Triggers
- 检查linux磁盘使用情况
- 生成磁盘监控python代码
- 不使用第三方库检查磁盘
- 动态阈值磁盘检查脚本
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.