/dd:dd runs instead · from dd
Captures the current OS clipboard (text or image) and caches it locally so Claude can act on it without bloating the conversation. Useful when the user has copied an error log, screenshot, or reference and wants to use it as context.
This skill never runs in Claude Code
It ships in dd at skills/, but /dd:dd (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Step 0 — run once at the very start, before anything else: run bash "${CLAUDE_PLUGIN_ROOT}/setup/setup.sh" ask autoupdate. If its output starts with STAR_ASK, immediately call the AskUserQuestion tool once, with the question and options phrased in the user's language: prefer the current conversation's language if it is evident; otherwise fall back to the language code that follows STAR_ASK in the output (ko→Korean, ja→Japanese, en→English). Never default to Korean blindly.
bash "${CLAUDE_PLUGIN_ROOT}/setup/setup.sh" star yes; (2) no thanks → then run bash "${CLAUDE_PLUGIN_ROOT}/setup/setup.sh" star noAUTOUPDATE_ASK <lang>: ask the user ONCE with AskUserQuestion, written in the language the user is using in this conversation (fall back to — ko/ja/en — only if the conversation gives no signal). Question: gptaku-plugins can update itself automatically so you always get fixes without running /plugin manually. Turn on auto-update? Options (2): "Turn on auto-update" / "Not now".
bash "${CLAUDE_PLUGIN_ROOT}/setup/setup.sh" autoupdate yes (prints AUTOUPDATE_SET <status>; on on/already say it is enabled, otherwise say it could not be changed and point to /plugin → Marketplaces → gptaku-plugins → Turn on auto-update).bash "${CLAUDE_PLUGIN_ROOT}/setup/setup.sh" autoupdate no.
If both STAR_ASK and AUTOUPDATE_ASK appear, put both questions in ONE AskUserQuestion call (two questions).If the output is empty, just continue silently. Do not narrate beyond the question itself.
Capture the current OS clipboard and act on it, without pasting raw content into chat.
The user copied or screenshotted something — usually a design reference or screenshot, sometimes an error log, code, or URL — and wants it used as the reference for their request. /dd and /ㅇㅇ capture the live clipboard into ~/dd/ and inject only a manifest summary, keeping the conversation clean.
Codex에서는 ${CLAUDE_PLUGIN_ROOT}를 이 플러그인 루트(이 SKILL.md에서 두 단계 위 폴더)로 바꿔 읽고, Step 0(첫 실행 설정)은 건너뛰며, Agent 도구·이미지 열기는 이 폴더의 references/codex.md를 따른다.
Type: script
Run python3 "${CLAUDE_PLUGIN_ROOT}/skills/dd/scripts/dd_clipboard.py" --json right after Step 0, before anything else. The user's request about the clipboard (may be empty) is the command arguments ($ARGUMENTS) or, when triggered from conversation, the request text. It writes the clipboard to ~/dd/<date>/<id>/ and prints a manifest: ok, primary (kind, path, size_class, preview, oversized), items, errors, captured_at, platform.
Type: review
Check ok first. If it is false, show the errors[] to the user verbatim and STOP. The clipboard is empty or unsupported — do not proceed with empty context or invent content. Example reply: "클립보드가 비어있어요. 복사하고 다시 /dd 해주세요." This matters because the clipboard usually holds something; a true empty is rare, so a real ok:false is worth surfacing.
Type: prompt
Show one short line of what was captured (text → kind, size_class, first ~2 lines of preview; image → image, <KB>, saved to <path>) so the user can catch a wrong grab. The clipboard keeps only the most recent copy with no timestamp, so something copied long ago can still be sitting there — this line is their only check.
Then settle the task. It is $ARGUMENTS; if that is empty, infer it from the content AND the ongoing conversation, and say the inferred intent in one line before acting ("📋 에러 로그 감지 → 원인부터 볼게요"). Mapping: error/traceback → debug, code → explain/review, broken-UI image → diagnose, URL/doc → summarize. If it stays ambiguous, fall back to the Step 4 confirm rather than guessing. The task you settle here is what drives Step 5's routing.
Type: review Judge whether the captured item matches intent, then:
$ARGUMENTS non-empty) but the clipboard is clearly unrelated to it → ask "클립보드에 <요약> 있는데, 이거 맞아요?" before acting.Type: review Decide whether the captured item should be read in the main session or delegated to a background/sub-agent context. The goal is to keep the active conversation light: the main session should receive only the information needed to continue the user's task.
Use a background/sub-agent context when:
large or hugeIn that case the sub-agent reads content.txt or image.png, analyzes it, and returns only the useful result to the main session. Do not copy the full raw content back into the main conversation.
Model choice: spawn dd sub-agents with the Agent tool. Summaries, error triage and visual briefs are light work, so prefer a lighter/faster model when the environment offers one (pass it as the Agent model parameter); keep the session default when the task needs deep reasoning or no lighter model is available.
Diagnosis guidance: when delegating error/log diagnosis, include this instruction in the sub-agent prompt: locate the FIRST anomaly in the timeline, then look at what changed immediately BEFORE it (deploys, config reloads, version changes, flag flips); treat the error flood at the tail as a consequence, not the cause. Without this, the sub-agent tends to stop at the surface mechanism and prescribe symptom-level fixes.
Use the main session directly when:
previewHybrid rule: if the task needs implementation but the capture is large, first have a sub-agent write a compact brief (dd_brief.md, error_summary.md, or visual_reference.md). Then the main session works from that brief and only reads focused slices of the original when necessary.
Never read a large or huge capture into the main session just because it exists. Read only what the current task needs. The reading rules below (Steps 6–7) apply in whichever context you chose.
Type: prompt
Lead with the manifest preview. Read the file only as needed so a huge paste never floods context:
small → answer from preview; do not open the file.medium → use rg/head/tail on content.txt; avoid a full read.large → read focused ranges; write summary.md only if the request truly needs a summary or the same capture is reused.huge → never read the whole file; search with rg for error keywords and read head/tail only.
Never paste the full content into chat.Type: prompt
For kind: image, Read the saved image.png to actually see it, then act on the request (e.g. "이런 느낌으로 만들어줘", "왜 깨져?"). Do not create an automatic summary for images. If oversized is true, avoid a full read — describe from metadata or ask the user to crop the area that matters.
Reply in the user's language, decided fresh each time — nothing is stored:
/dd what is this → English; /dd 이거 뭐야 → Korean)./dd (no request text and no prior conversation) → reply in English, or ask once which language to use.Never default to Korean just because the plugin was authored in Korea.
The clipboard is a single most-recent slot with no timestamp, so freshness cannot be measured — only judged by whether the content fits the intent (Steps 3–4). Reading lazily by size_class (Step 6) keeps token cost low, which is a side benefit; the main job is simply handing the clipboard to Claude — and, for heavy items, handing it to a sub-agent and keeping only the conclusion (Step 5).
api_key/token/password/Bearer/sk-/ghp_/xoxb- patterns in the preview. The raw file on disk is not redacted, so do not echo full raw content back unnecessarily.~/dd/ and auto-deletes captures older than DD_RETENTION_DAYS (default 7) on each run. Nothing is uploaded anywhere.scripts/dd_clipboard.py — captures the clipboard, writes the cache and manifest, computes the text size class, redacts the preview, flags oversized images, and cleans up old captures. Run with --json. Environment: DD_CACHE_DIR (default ~/dd), DD_RETENTION_DAYS, DD_PREVIEW_LINES, DD_MAX_PREVIEW_CHARS.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (fivetaku/dd) — no native marketplace selected
npx claudepluginhub p/fivetaku-ddOther plugins' skills for the same job