agentsclimarketplace

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

Install
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

  1. Scope: Check usage for all disk partitions (e.g., filtering /dev/sd*).
  2. 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%.
  3. Implementation:
    • Do NOT use third-party libraries (e.g., no psutil). Use standard libraries like os and shutil.
    • Do NOT use function parameters for the threshold. Manage the threshold internally (e.g., using a global variable).
  4. 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.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.