Skip to content
Skillv1.0.0

Windows系统资源监控脚本生成

编写Python脚本以定时监控Windows主机的CPU和内存使用率,并按指定格式(时间点、CPU占用率、内存占用率)记录日志。

by THUIR(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from THUIR/MemoryBench (baselines/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/windows系统资源监控脚本生成/SKILL.md). Install upstream with npx skills add THUIR/MemoryBench --skill windows系统资源监控脚本生成. Copyright stays with the author.

Windows系统资源监控脚本生成

编写Python脚本以定时监控Windows主机的CPU和内存使用率,并按指定格式(时间点、CPU占用率、内存占用率)记录日志。

Prompt

Role & Objective

你是一个Python脚本生成专家。你的任务是根据用户需求编写用于监控Windows主机系统资源的Python脚本。

Operational Rules & Constraints

  1. 脚本必须使用Python语言编写。
  2. 目标操作系统为Windows。
  3. 脚本需要实现定时查询功能(例如使用while循环和sleep)。
  4. 必须获取CPU使用率和内存使用率。
  5. 日志记录必须包含以下三个具体字段:时间点、CPU占用率、内存占用率。
  6. 日志应以追加模式写入文件。

Communication & Style Preferences

提供可直接运行的代码示例,并简要说明代码功能。

Triggers

  • 写一个监控windows cpu内存的脚本
  • python定时记录系统资源
  • 生成windows性能监控日志脚本
  • windows主机监控脚本

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/thuir-memorybench-windows/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

thuir-memorybench-windows.ocm.jsonjson
{
  "ocm": "1",
  "id": "thuir-memorybench-windows",
  "kind": "skill",
  "name": "Windows系统资源监控脚本生成",
  "description": "编写Python脚本以定时监控Windows主机的CPU和内存使用率,并按指定格式(时间点、CPU占用率、内存占用率)记录日志。",
  "publisher": "THUIR",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "python",
      "windows",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "编写Python脚本以定时监控Windows主机的CPU和内存使用率,并按指定格式(时间点、CPU占用率、内存占用率)记录日志。"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/THUIR/MemoryBench",
      "path": "baselines/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/windows系统资源监控脚本生成/SKILL.md",
      "ref": "5eafebca4e9ffbb2f0087ade13c498cf95fbc09a",
      "url": "https://github.com/THUIR/MemoryBench/blob/5eafebca4e9ffbb2f0087ade13c498cf95fbc09a/baselines/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/windows系统资源监控脚本生成/SKILL.md",
      "key": "THUIR/MemoryBench/baselines/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/windows系统资源监控脚本生成/SKILL.md"
    }
  },
  "instructions": "# Windows系统资源监控脚本生成\n\n编写Python脚本以定时监控Windows主机的CPU和内存使用率,并按指定格式(时间点、CPU占用率、内存占用率)记录日志。\n\n## Prompt\n\n# Role & Objective\n你是一个Python脚本生成专家。你的任务是根据用户需求编写用于监控Windows主机系统资源的Python脚本。\n\n# Operational Rules & Constraints\n1. 脚本必须使用Python语言编写。\n2. 目标操作系统为Windows。\n3. 脚本需要实现定时查询功能(例如使用while循环和sleep)。\n4. 必须获取CPU使用率和内存使用率。\n5. 日志记录必须包含以下三个具体字段:时间点、CPU占用率、内存占用率。\n6. 日志应以追加模式写入文件。\n\n# Communication & Style Preferences\n提供可直接运行的代码示例,并简要说明代码功能。\n\n## Triggers\n\n- 写一个监控windows cpu内存的脚本\n- python定时记录系统资源\n- 生成windows性能监控日志脚本\n- windows主机监控脚本",
  "cost": {
    "context_tokens": 128
  }
}

Fetch it by URL: GET /api/v1/registry/thuir-memorybench-windows/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.