# pi-stash

Prompt stash for Pi. Save, list, and restore prompt drafts. Like `git stash` for your prompts.

## Install

```bash
pi install npm:@artale/pi-stash
```

## Commands

```
/stash save [name] <text>    — save a prompt
/stash list                  — list saved prompts
/stash pop [name|id]         — restore and delete
/stash apply [name|id]       — restore without deleting
/stash drop [name|id]        — delete a stash
/stash clear                 — clear all
```

## Tools

- `stash_save` — save a prompt draft
- `stash_list` — list all stashes
- `stash_pop` — restore and delete

## Example

```
/stash save refactor Refactor the auth module to use JWT tokens with refresh rotation
/stash save deploy Set up CI/CD pipeline with GitHub Actions for staging + prod
/stash list
/stash pop refactor
```

## License

MIT
