返回顶部
o

open 打开

General helper for opening things from the command line (files, folders, URLs, repositories, docs). Use when the user wants to quickly open something they mentioned, and choose the right OS-specific command to launch it.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
290
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

open

打开任何内容

该技能帮助智能体建议打开事物的正确命令或操作

  • - 磁盘上的文件和文件夹
  • URL(网页、文档、仪表盘)
  • 文件资源管理器中的Git仓库
  • 日志、配置文件或其他本地资源

它本身并不实际执行命令,而是告诉用户应该运行什么。

使用时机

当用户说出以下内容时使用该技能:

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

并且你需要将该意图转化为具体的打开操作。

操作系统特定约定

Windows(PowerShell / CMD)

大多数情况下优先使用 start:

  • - 在资源管理器中打开文件夹

powershell
start .
start C:\path\to\folder

  • - 用默认应用打开特定文件

powershell
start C:\path\to\file.txt

  • - 在默认浏览器中打开URL

powershell
start https://clawhub.ai

如果路径可能包含空格,始终用引号包裹。

macOS(供参考)

如果用户使用macOS,建议:

bash
open .
open /path/to/folder
open /path/to/file.txt
open https://clawhub.ai

Linux(供参考)

如果用户使用带桌面环境的Linux,建议:

bash
xdg-open .
xdg-open /path/to/folder
xdg-open /path/to/file.txt
xdg-open https://clawhub.ai

常见模式

打开当前项目文件夹

从项目根目录:

  • - Windows(PowerShell):

powershell
start .

  • - macOS:

bash
open .

  • - Linux:

bash
xdg-open .

打开用户提到的特定文件

如果用户说“打开 logs/app.log”,假设该路径相对于项目根目录:

  • - Windows:

powershell
start .\logs\app.log

(路径中有空格时同样加引号。)

从文本中打开URL

当用户粘贴或提到URL时:

  • - Windows:

powershell
start https://example.com

  • - macOS:

bash
open https://example.com

  • - Linux:

bash
xdg-open https://example.com

在资源管理器/Finder中打开Git仓库

如果用户想要以可视化方式“打开仓库”:

  • - 确保你在仓库根目录,然后:

- Windows:

powershell
start .

- macOS:

bash
open .

- Linux:

bash
xdg-open .

指南

  • - 始终尊重用户的操作系统:根据用户系统选择 Windows / macOS / Linux 命令。
  • 优先使用非破坏性命令:只负责“打开”,不要顺带修改、删除任何东西。
  • 引用路径和URL:凡是可能包含空格或特殊字符的路径与 URL,都加上引号。
  • 简要澄清歧义:如果用户说“打开它”但上下文里有多个可能的目标,先用一句话确认你指的是哪一个,再给命令。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 open-1776119602 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 open-1776119602 技能

通过命令行安装

skillhub install open-1776119602

下载

⬇ 下载 open v1.0.0(免费)

文件大小: 2.08 KB | 发布时间: 2026-4-15 13:41

v1.0.0 最新 2026-4-15 13:41
Initial release of the Open skill.

- Suggests the correct command to open files, folders, and URLs from the command line.
- Adapts instructions for Windows, macOS, and Linux.
- Provides clear examples for opening project folders, specific files, and links.
- Includes best practices: quoting paths, clarifying ambiguous requests, and respecting the user’s OS.
- Does not execute commands—only tells the user what to run.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部