360 Secure SkillHub
360 安全技能中心

O

核心功能为根据用户所属操作系统(Windows/macOS/Linux),生成打开文件、目录、URL、代码仓库等目标的最简终端命令,回答极简无冗余。典型使用场景:用户提出打开文件/目录/链接/仓库需求,且上下文能明确打开目标时触发。输入为用户的打开请求,输出为对应系统的1-2行命令,如Windows用start、macOS用open、Linux用xdg-open命令。

openlang-cn
openlang-cn
热度 39.24
最近更新 2026-05-11 17:30:57
分类:效率依赖:纯提示词应用场景:任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add o
Metadata
name
o
description
Short alias skill for quickly suggesting OS-specific commands to open files, folders, URLs, logs, or repositories from the command line or file explorer. Use when the user wants to open something and prefers a concise, minimal answer.

o(Open 简写)

这是一个精简版的“打开” Skill,用一个字母 o 作为名称,方便被快速触发。它的目标是:

  • 帮助选择合适的打开方式(命令或动作)
  • 根据用户操作系统(尤其是 Windows PowerShell)给出最简命令
  • 回答尽量简短,不做过多解释

适用场景

当用户说:

  • “打开某个文件 / 目录 / 日志”
  • “帮我打开这个链接 / 页面”
  • “想在资源管理器里打开这个项目 / 仓库”
  • “how do I open this from the terminal”

并且上下文中能看出要打开的目标时,应使用本 Skill 的指引。


Windows(PowerShell / CMD)推荐

  • 打开当前目录到资源管理器:

    start .
    
  • 打开指定目录:

    start "C:\path\to\folder"
    
  • 用默认程序打开文件:

    start "C:\path\to\file.txt"
    
  • 打开 URL(默认浏览器):

    start "https://example.com"
    

路径或 URL 可能包含空格时,一律加引号。


macOS(仅在用户使用 macOS 时建议)

open .
open /path/to/folder
open /path/to/file.txt
open "https://example.com"

Linux(桌面环境)

xdg-open .
xdg-open /path/to/folder
xdg-open /path/to/file.txt
xdg-open "https://example.com"

使用风格

  • 答案要短:优先只给 1–2 行命令,不写长篇解释。
  • 尊重用户 OS:根据会话中已知的操作系统给命令(当前用户是 Windows 10 + PowerShell)。
  • 不做危险操作:只给“打开”的命令,不附带修改 / 删除行为。