← 返回
开发者工具 中文

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 me...
从命令行快速打开文件、文件夹、网址、仓库和文档的通用助手。
openlang-cn
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 601
下载
💾 10
安装
1
版本
#latest

概述

Open Anything

This skill helps the agent suggest the right command or action to open things:

  • Files and folders on disk
  • URLs (web pages, docs, dashboards)
  • Git repositories in a file explorer
  • Logs, configs, or other local resources

It does not actually execute the commands itself; it tells the user what to run.

When to Use

Use this skill when the user says:

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

and you need to translate that intent into a concrete open action.

OS-specific Conventions

Windows(PowerShell / CMD)

Prefer using start for most cases:

  • Open a folder in Explorer
start .
start "C:\path\to\folder"
  • Open a specific file with its default app
start "C:\path\to\file.txt"
  • Open a URL in the default browser
start "https://clawhub.ai"

If the path might contain spaces, always wrap it in quotes.

macOS(for reference)

If the user is on macOS, suggest:

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

Linux(for reference)

If the user is on Linux with a desktop environment, suggest:

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

Common Patterns

Open the current project folder

From the project root:

  • Windows(PowerShell):
start .
  • macOS:
open .
  • Linux:
xdg-open .

Open a specific file mentioned by the user

If the user says “打开 logs/app.log”,assume it is relative to the project root:

  • Windows:
start ".\logs\app.log"

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

Open a URL from text

When the user pastes or mentions a URL:

  • Windows:
start "https://example.com"
  • macOS:
open "https://example.com"
  • Linux:
xdg-open "https://example.com"

Open a Git repo in Explorer / Finder

If the user wants to “open the repo” visually:

  • Ensure you are in repo root, then:
  • Windows:

```powershell

start .

```

  • macOS:

```bash

open .

```

  • Linux:

```bash

xdg-open .

```

Guidelines

  • Always respect the user’s OS:根据用户系统选择 Windows / macOS / Linux 命令。
  • Prefer non-destructive commands:只负责“打开”,不要顺带修改、删除任何东西。
  • Quote paths and URLs:凡是可能包含空格或特殊字符的路径与 URL,都加上引号。
  • Clarify ambiguity briefly:如果用户说“打开它”但上下文里有多个可能的目标,先用一句话确认你指的是哪一个,再给命令。

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 22:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,799
productivity

Computer

openlang-cn
跨操作系统通用计算机技能,涵盖全面的系统管理、硬件诊断、性能监控与优化。
★ 0 📥 1,104
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,165