Quickly captures into the user's Duccio (the second brain) a note, a text or one or more links from any Claude Code session, even while working on another project or in a meeting, and routes it straight to the right project. Use when the user asks to save, jot down, pin or put something in Duccio or the second brain.
3 stars
0 votes
0 copies
0 views
Added December 1, 2026
ai-agentspythongobashgit
Works with
claude code
cli
Security analysis
B88/100
criticalSends environment variables or credentials to an external URL
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Capture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/gabrycaos-capture-duccio)
---
name: capture
description: Quickly captures into the user's Duccio (the second brain) a note, a text or one or more links from any Claude Code session, even while working on another project or in a meeting, and routes it straight to the right project. Use when the user asks to save, jot down, pin or put something in Duccio or the second brain.
---
# duccio:capture
Global version of Duccio's `capture` skill: it works from any folder. The logic lives in the repo's skills; this file only explains how to reach them.
## 1. Find Duccio
```bash
DUCCIO="${DUCCIO_DIR:-$(cd -P "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/skills/duccio/../.." 2>/dev/null && pwd)}"; test -f "$DUCCIO/AGENTS.md" && echo "$DUCCIO"
```
If it prints nothing, tell the user Duccio was not found: they should run `scripts/setup.sh` in their Duccio, or set `DUCCIO_DIR`. Then stop without writing anything.
## 2. Work out the project from the session folder
Before any other command, from the folder the session started in:
```bash
DUCCIO="${DUCCIO_DIR:-$(cd -P "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/skills/duccio/../.." 2>/dev/null && pwd)}"; "$DUCCIO/.venv/bin/python" "$DUCCIO/scripts/project_for_path.py" --vault "$DUCCIO/vault" "$(pwd -P)"
```
It prints `<Project>\t<Client>` if the folder is (or is inside) a repo linked to a project hub, otherwise nothing. If it reports that the projects folder is not configured, say so and continue without a project. If `.venv` does not exist, skip this step and tell the user to run `scripts/setup.sh` in Duccio.
If there is a project and the user did not name another one, and the content does not clearly mention another one, at step 3 add the line `Project: <Project>` to the capture.
## 3. Run capture in Duccio
Read `$DUCCIO/AGENTS.md` and `$DUCCIO/.agents/skills/capture/SKILL.md` and follow the skill step by step, including the `process` skill (`$DUCCIO/.agents/skills/process/SKILL.md`) that it calls. The rules in `AGENTS.md` apply in full here too, even though outside Duccio Claude Code does not load them on its own.
"The repo root" is `$DUCCIO`, not the session folder:
- start every Bash command with `DUCCIO="${DUCCIO_DIR:-$(cd -P "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/skills/duccio/../.." 2>/dev/null && pwd)}"; cd "$DUCCIO" && …`: the current folder does not persist between commands;
- with Read, Write and Edit use absolute paths under `$DUCCIO`;
- all git commands (pull, add, commit, push) go on the `$DUCCIO` repo. Do not touch the current session's repo and files.
## 4. Summary
The one from `process`, with the path of the notes created or updated.