# Pet

> Manages command-line snippets by saving, searching, and executing complex commands from a local TOML file.

- Skill: `majiayu000/pet` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/pet`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/pet/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity, Personal Automation
- Tags: Cli, Command Line, Gist, Snippets, Toml
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-08-22
- Page: https://skillmd.com/skills/majiayu000/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
```bash
pet new
```
This opens an editor. Enter the command and a description.
Format:
```toml
[[snippets]]
  command = "echo 'hello'"
  description = "say hello"
  output = ""
```

### Search and List snippets
```bash
pet search
```

### Execute a snippet directly
```bash
pet exec
```

### Sync with Gist (Optional)
If configured in `~/.config/pet/config.toml`, you can sync snippets to a GitHub Gist:
```bash
pet sync
```

## Storage
Snippets are stored in `~/.config/pet/snippet.toml`.

