system-operation
Windows system operation capability for controlling the desktop through background commands, system APIs, safe PowerShell, process launch, window control, and GUI automation when needed.
- License 许可
- MIT
- 最近更新
- 2026-06-30
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- system-operation
- description
- Windows system operation capability for controlling the desktop through background commands, system APIs, safe PowerShell, process launch, window control, and GUI automation when needed.
03 SKILL.md 正文
System Operation Capability
Use this skill whenever the user asks to control the Windows desktop, system settings, apps, windows, audio, display, input, files, shell tasks, or other OS-level behavior.
Operating Policy
- Prefer direct background commands, Windows APIs, PowerShell, process launch, or dedicated desktop tools over opening visible Settings pages.
- Open Windows Settings only when the user explicitly asks to view a settings page, or when no direct background operation is available.
- Use dedicated tools first when they match the task:
find_appto search installed applications by partial name before attempting to launch.open_appfor launching applications once the name or path is known.set_audio_device_or_volumefor mute, unmute, and volume changes.window_controlandget_screen_contextfor window inspection and focus planning.desktop_observeto inspect the active window and visible windows before and after GUI automation.media_controlfor play, pause, next, previous, and system media playback commands.app_interactionfor supported high-level app workflows such as NetEase Cloud Music search/play.shell_command_safefor low-risk Windows operations without a dedicated tool.keyboard_mouseonly after command/API options are insufficient or the task requires GUI interaction.
- Treat low-risk system operations as executable directly under the configured permission mode.
- Respect confirmation gates for shutdown, restart, delete, install/uninstall, account, privacy, payment, credential, firewall, registry, and other high-risk actions.
- Report progress and results as concise user-visible steps. Do not expose private chain of thought.
Tool Selection Matrix
- System settings: use dedicated tools such as
set_audio_device_or_volumeandset_display_brightness_or_scale; useopen_windows_settingsonly as a fallback or when the user asks to view Settings. - App launch: use
open_appfor known names andfind_appwhen the launch target is uncertain. - Window state: use
desktop_observe,get_screen_context, andwindow_control focusbefore raw keyboard or mouse input. - Media playback: use
media_controlorapp_interactionfirst. Do not usekeyboard_mousespacebar as the first or only playback action. - Raw GUI automation: use
keyboard_mouseonly after observing/focusing the target window and when no direct or high-level tool covers the task.
Execution Loop
For computer-control tasks, follow this loop:
- Plan the direct tool path from the user's target.
- Observe relevant desktop/window state when the current UI matters.
- Execute the most specific tool available.
- Verify the result from tool output or desktop state.
- If confidence is low, use the tool's
nextActionsor a fallback tool before claiming completion.
Media Playback
When the user asks to play music or control playback:
- Prefer
app_interactionfor supported players, especially NetEase Cloud Music song search/play. - Use
media_controlfor play, pause, next, previous, and global playback commands. - After any playback command, verify with
desktop_observe,get_screen_context, or the structured tool result. - Never claim that music is playing merely because
keyboard_mousepressed space. A key press is only an input event, not proof of playback. - If verification confidence is low, say what was attempted and continue with a fallback such as focusing the player, using
media_control play, or retryingapp_interactionwith the exact song/artist.
Opening Applications — Step-by-Step
Use this flow whenever the user asks to open, launch, or start an application:
-
Prefer
open_appfor known/common names because it has persistent launch memory.open_appcan resolve previously learned aliases fromapp-launch-cache.jsonand automatically falls back to search when a remembered launch path becomes stale. For apps the user has opened before, callopen_appdirectly with the user's app name. -
Try the common exe name directly first. Call
open_appwith the familiar exe/app name:notepad,chrome,code,steam,vlc. Built-in system tools always work by name:calc,mspaint,taskmgr,explorer. -
If the first attempt fails, immediately call
find_app— do not give up. Use the app's native/displayed name as the query, especially for Chinese apps:- User says "打开微信" → query:
微信(NOT "WeChat") - User says "打开钉钉" → query:
钉钉(NOT "DingTalk") - User says "打开剪映" → query:
剪映 - User says "open WeChat" → query:
WeChat(also try微信if first fails) - User says "open VS Code" → query:
Visual Studio Code
find_appsearches:- Desktop shortcuts (user + public)
- Start Menu shortcuts (user + common)
- Installed app list (Store/UWP via Get-StartApps)
- Registry uninstall entries
- Program Files, user install directories, common Chinese app paths
- User says "打开微信" → query:
-
If the first
find_appquery returns no results, try alternate names.- Try both Chinese and English: "微信" then "WeChat"
- Try the publisher/vendor name: "Tencent", "网易", "字节跳动"
- Try the exe base name: "WeChatApp", "DingTalk"
-
Use the
launchvalue from results directly — do not modify it.kind: "lnk"— Start Menu / Desktop shortcut path → pass toopen_appas-iskind: "app"—shell:AppsFolder\AppIdfor Store/UWP apps → pass toopen_appas-iskind: "installed"/kind: "exe"— full.exepath → pass toopen_appas-is
-
After launch,
open_appverifies the window appeared. If verification fails, inform the user the app may still be loading. -
Never claim an app was opened without a successful tool call. If all
find_appattempts fail, tell the user honestly and ask them to confirm the app name or provide the installation path.
Execution Style
- Identify the user intent and choose the most direct system operation path.
- Prefer a background command or dedicated tool.
- Use screen/window context only when the current UI state matters.
- Fall back to Settings or GUI automation only when direct execution is unavailable.
- Summarize what was changed and whether any confirmation is waiting.
04 同仓库更多 Skills
voice-input
暂无简介
ppt-operation
Presentation operation capability for creating, editing, formatting, and exporting PowerPoint presentations using Microsoft PowerPoint COM automation.
excel-operation
Spreadsheet operation capability for reading, writing, formatting, and automating Excel workbooks using Microsoft Excel COM automation.
document-operation
Document operation capability for creating, inspecting, editing, verifying, formatting, exporting, and managing Word documents using Microsoft Word COM automation.
valid-skill
A valid skill for testing purposes.
unknown-field
A skill with an unknown frontmatter field.