clipboard-history

Access persistent clipboard history from the terminal. Use when retrieving previously copied text, searching clipboard history, or restoring old clipboard content. Triggers include "clipboard history", "what did I copy", "clp", "paste old content", "clipboard search", "recover copied text".

7 stars

Best use case

clipboard-history is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Access persistent clipboard history from the terminal. Use when retrieving previously copied text, searching clipboard history, or restoring old clipboard content. Triggers include "clipboard history", "what did I copy", "clp", "paste old content", "clipboard search", "recover copied text".

Teams using clipboard-history should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/clipboard-history/SKILL.md --create-dirs "https://raw.githubusercontent.com/heldernoid/agentic-build-templates/main/projects/cli-tools/clipboard-history/skills/clipboard-history/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/clipboard-history/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How clipboard-history Compares

Feature / Agentclipboard-historyStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Access persistent clipboard history from the terminal. Use when retrieving previously copied text, searching clipboard history, or restoring old clipboard content. Triggers include "clipboard history", "what did I copy", "clp", "paste old content", "clipboard search", "recover copied text".

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# clipboard-history

CLI tool for persistent clipboard history with search and restore.

## Quick Start

```bash
# Start the background daemon
clp daemon start

# List recent history
clp list

# Search history
clp search "function fetch"

# Restore item to clipboard
clp get 1041 --copy

# Interactive picker
clp pick
```

## Daemon

The daemon runs in the background and polls the clipboard every 500ms. It must be running to capture new entries.

```bash
clp daemon start       # start background daemon
clp daemon stop        # stop daemon
clp daemon status      # check if running
```

Add `clp daemon start` to your shell profile to start automatically.

## List History

```bash
clp list                    # last 20 entries
clp list --limit 50         # show more
clp list --today            # today only
clp list --type url         # filter by type: url, code, email, text
```

## Search

```bash
clp search "error message"       # full-text search
clp search "function fetch"      # multi-word search
clp search '"exact phrase"'      # phrase search
```

## Get and Restore

```bash
clp get 1041                # show full content of entry
clp get 1041 --copy         # copy to clipboard
clp pick                    # interactive numbered picker
```

## Delete

```bash
clp delete 1041             # delete with confirmation
clp delete 1041 --yes       # delete without prompt
clp clear                   # clear all history (prompts)
clp clear --yes             # clear without prompt
```

## Statistics

```bash
clp stats                   # total entries, type breakdown, DB size
clp config                  # database path, limits, poll interval
```

## Content Types

| Type | Detection Rule |
|---|---|
| `url` | Starts with http:// or https:// |
| `email` | Matches email address pattern |
| `code` | Has newlines + programming syntax |
| `text` | Everything else |

## Environment Variables

| Variable | Default | Description |
|---|---|---|
| `CLP_DB_PATH` | `~/.local/share/clipboard-history/db.sqlite` | Database path |
| `CLP_MAX_ENTRIES` | `10000` | Maximum entries before pruning oldest |
| `CLP_POLL_MS` | `500` | Daemon polling interval (milliseconds) |
| `CLP_NO_COLOR` | `0` | Disable ANSI color (1 to disable) |
| `CLP_DEBUG` | `0` | Enable debug logging (1 to enable) |

## Exit Codes

| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | No results / empty history |
| 2 | Daemon error |
| 3 | Runtime error |

Related Skills

clipboard-daemon

7
from heldernoid/agentic-build-templates

Set up and manage the clipboard-history background daemon. Use when configuring automatic clipboard capture, troubleshooting the daemon, or setting up auto-start on login. Triggers include "clipboard daemon", "auto-capture clipboard", "clp daemon", "start clipboard watcher", "daemon not running".

Skill: Uptime Monitoring

7
from heldernoid/agentic-build-templates

## Overview

Skill: Status Page

7
from heldernoid/agentic-build-templates

## Overview

Skill: unit-conversion

7
from heldernoid/agentic-build-templates

## Overview

Skill: recipe-scaler

7
from heldernoid/agentic-build-templates

## Overview

reading-list

7
from heldernoid/agentic-build-templates

Operate the reading-list API to save, manage, tag, search, and export articles.

email-digest

7
from heldernoid/agentic-build-templates

Configure, test, and troubleshoot the reading-list daily email digest delivered via nodemailer.

websocket-realtime

7
from heldernoid/agentic-build-templates

Use the WebSocket connection in poll-builder to receive live vote updates. Use when you need to stream real-time poll results, monitor a poll for new votes, or build a live dashboard. Triggers include "live results", "real-time updates", "stream votes", "watch poll", or "WebSocket".

poll-builder

7
from heldernoid/agentic-build-templates

Self-hosted poll creation tool with real-time results. Use when you need to create a poll, check vote counts, close a poll, export results, or get the shareable link for a poll. Triggers include "create poll", "vote", "poll results", "survey", "collect votes", "share poll", or any task involving polling or voting.

Skill: personal-finance

7
from heldernoid/agentic-build-templates

## Overview

Skill: csv-import

7
from heldernoid/agentic-build-templates

## Overview

Skill: Syntax Highlighting

7
from heldernoid/agentic-build-templates

## Purpose