Back to skills
SKILL.md
Windows系统资源监控脚本生成
ASecurity编写Python脚本以定时监控Windows主机的CPU和内存使用率,并按指定格式(时间点、CPU占用率、内存占用率)记录日志。
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added September 27, 2026
Security analysis
100/100npx -y skills add David-Li0406/meta-skill-evloving --skill 'windows系统资源监控脚本生成' --agent claude-codeAre you the author of Windows系统资源监控脚本生成?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/david-li0406-windows)---
id: "ec68ded5-8ed9-4331-93a8-7ee6f816cbd9"
name: "Windows系统资源监控脚本生成"
description: "编写Python脚本以定时监控Windows主机的CPU和内存使用率,并按指定格式(时间点、CPU占用率、内存占用率)记录日志。"
version: "0.1.0"
tags:
- "python"
- "windows"
- "监控"
- "脚本"
- "日志"
triggers:
- "写一个监控windows cpu内存的脚本"
- "python定时记录系统资源"
- "生成windows性能监控日志脚本"
- "windows主机监控脚本"
---
# 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主机监控脚本
Attribution
Comments
Loading comments…