360 Secure SkillHub
360 安全技能中心

pet

该 Skill 说明如何使用 pet 这一命令行片段管理器:用 pet new 保存复杂命令及描述,用 pet search 检索列表,用 pet exec 直接执行片段,片段存放在 ~/.config/pet/snippet.toml;若在 config.toml 中配置,可选用 pet sync 同步到 GitHub Gist。

gumadeiras
gumadeiras
热度 61.41
最近更新 2026-05-17 11:02:44
分类:效率依赖:代码执行应用场景:模板 / 工作流 / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add pet
Metadata
name
pet
description
Simple command-line snippet manager. Use it to save and reuse complex commands.
metadata
{"clawdbot":{"emoji":"🐘","requires":{"bins":["pet"]}}}

pet (Simple Command-Line Snippet Manager)

Pet acts as a CLI snippet manager. It helps you save complex commands and reuse them.

Usage

Create a new snippet

pet new

This opens an editor. Enter the command and a description. Format:

[[snippets]]
  command = "echo 'hello'"
  description = "say hello"
  output = ""

Search and List snippets

pet search

Execute a snippet directly

pet exec

Sync with Gist (Optional)

If configured in ~/.config/pet/config.toml, you can sync snippets to a GitHub Gist:

pet sync

Storage

Snippets are stored in ~/.config/pet/snippet.toml.