Answers, from any Claude Code session, questions about the user's Duccio, or "the second brain" (clients, projects, decisions, people, technologies, state of the work) by searching the vault, the local repos in the projects folder and external sources, always citing sources. Use only when the user explicitly asks Duccio or the second brain (e.g. "ask Duccio", "ask the second brain", "what does Duccio say about…"), not for questions about the code or files of the current session.
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 Ask?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/gabrycaos-ask-duccio)
---
name: ask
description: Answers, from any Claude Code session, questions about the user's Duccio, or "the second brain" (clients, projects, decisions, people, technologies, state of the work) by searching the vault, the local repos in the projects folder and external sources, always citing sources. Use only when the user explicitly asks Duccio or the second brain (e.g. "ask Duccio", "ask the second brain", "what does Duccio say about…"), not for questions about the code or files of the current session.
---
# duccio:ask
Global version of Duccio's `ask` 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.
## 2. Session context
If the question refers to the current project without naming it ("this project", "here"), work it out from the folder the session started in, before any other command:
```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: in that case ask the user which project they mean. If it reports that the projects folder is not configured, say so and continue without a project.
## 3. Run ask in Duccio
Read `$DUCCIO/AGENTS.md` and `$DUCCIO/.agents/skills/ask/SKILL.md` and follow the skill step by step. 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 use absolute paths under `$DUCCIO`;
- the pull of the Git protocol goes on the `$DUCCIO` repo. Do not touch the current session's repo and files.
If at step 6 ("Propose saving") the user confirms, follow the global skill `duccio:capture` (`$DUCCIO/global-skills/duccio/skills/capture/SKILL.md`) with the information found and the links to the sources.