Skip to content
Back to skills

Ccopy

ASecurity

Copy the last complete Cursor user/assistant turn to the clipboard (Codex-style /copy). On modern Cursor Agent installs reads ~/.cursor/projects/*/agent-transcripts/*.jsonl when SQLite bubbleId rows are absent. Use for ccopy, cursor copy, or export last Cursor turn.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
ai-agentsbashsqlbackend

Works with

  • cursor
  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add grahama1970/agent-skills --skill ccopy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ccopy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ccopy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/grahama1970-ccopy/badge)](https://www.skillsdirectory.com/skills/grahama1970-ccopy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ccopy
description: >
  Copy the last complete Cursor user/assistant turn to the clipboard (Codex-style /copy).
  On modern Cursor Agent installs reads ~/.cursor/projects/*/agent-transcripts/*.jsonl
  when SQLite bubbleId rows are absent. Use for ccopy, cursor copy, or export last Cursor turn.
triggers:
  - ccopy
  - cursor copy
  - copy last cursor turn
  - export cursor chat
  - copy cursor agent transcript
provides:
  - cursor-turn-export
  - clipboard-copy
composes:
  - agentic-evals
taxonomy:
  - precision
disciplines:
  - developer-tooling
---

# ccopy

Copy the last complete **user + assistant** turn from Cursor to the clipboard.

## Quick start

From the project directory (on the machine running Cursor UI):

```bash
~/.cursor/skills/ccopy/bin/ccopy --print
~/.cursor/skills/ccopy/bin/ccopy              # clipboard
~/.cursor/skills/ccopy/bin/ccopy --diagnose
```

Or via skill runner:

```bash
~/.cursor/skills/ccopy/run.sh copy --print
~/.cursor/skills/ccopy/run.sh diagnose
```

## Storage backends (read-only)

| Backend | When used | Location |
|---------|-----------|----------|
| **agent-transcript** | Default on modern Agent chats | `~/.cursor/projects/<slug>/agent-transcripts/<session>/<session>.jsonl` |
| **sqlite** | Legacy installs with `bubbleId:*` rows | `~/.config/Cursor/User/**/state.vscdb` |

`--source auto` uses SQLite when bubble rows exist; otherwise agent transcripts.

## Common commands

```bash
ccopy --print
ccopy --latest --print
ccopy --workspace scillm --print
ccopy --composer <session-uuid> --source agent-transcript --print
ccopy --format json --include-meta --print
ccopy --list-workspaces
ccopy --list-conversations
```

## SSH note

Run on the **local machine hosting the Cursor UI**, not the remote SSH host.

## Failure policy

Fail closed on ambiguous workspace selection. Use `--diagnose` to see which backend applies.

## Validation

```bash
~/.cursor/skills/ccopy/run.sh test
~/.cursor/skills/ccopy/run.sh sanity
```

See `references/USAGE.md` for format details and troubleshooting.

Files in this skill

  • Makefile143 B
  • README.md689 B
  • SKILL.md2 KB
  • bin/ccopy161 B
  • bin/cursor-copy161 B
  • fixtures/agentic_eval.json483 B
  • install.sh412 B
  • references/USAGE.md778 B
  • run.sh869 B
  • sanity.sh2.4 KB
  • scripts/ccopy/__init__.py617 B
  • scripts/ccopy/cli.py4.4 KB
  • scripts/ccopy/clipboard.py4 KB
  • scripts/ccopy/core.py1.7 KB
  • scripts/ccopy/diagnostics.py4.2 KB
  • scripts/ccopy/errors.py145 B
  • scripts/ccopy/formatters.py2.9 KB
  • scripts/ccopy/models.py1.2 KB
  • scripts/ccopy/sqlite_backend.py20.4 KB
  • scripts/ccopy/sqlite_db.py3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.