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
热度 51.46
最近更新 2026-05-17 11:02:44

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add gumadeiras/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.