skills/log-conversation/SKILL.md
Record the current Claude Code conversation as a markdown file under $HOME/cclogs/{slug}/ for later reuse (memos, blog drafts, esa). Use when: (1) User says 'log conversation', 'record conversation', 'log-conversation', 'start logging', 'stop logging', (2) User invokes /log-conversation directly with args like -a, --all, -e, --end, or a number, (3) User wants to snapshot the chat to articlify or quote later.
npx skillsauth add takazudo/claude-resources log-conversationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Save the current session transcript as a pair of markdown files in $HOME/cclogs/{slug}/
(same directory other skills use — see logrefer). The skill is session-scoped: state lives in
$HOME/cclogs/{slug}/.log-conversation-state.<sessionId>.json, so multiple concurrent sessions
do not collide.
Two files are written on each save (sharing the same timestamp base):
{stamp}-conversation.md — conversation only: user + assistant text turns, no tool calls,
no tool results, no thinking blocks. Optimized for human reading and reuse in articles/memos.
{stamp}-conversation.raw.md — full raw transcript: everything in the conversation file
plus thinking blocks, tool_use blocks with arguments, and tool_result blocks.
Parse $ARGUMENTS into these flags (all optional, none required):
| Token | Meaning |
|---|---|
| -a / --all | Start a new log from the first user turn in the session |
| An integer N (e.g. 3) | Start a new log from the Nth-most-recent user turn (1 = current) |
| -e / --end | Finalize: refresh the active log once more, then clear state |
If both -a/N and -e are given: start fresh AND finalize in a single shot (one-off save,
no persistent state).
If no args are given:
Pick the subcommand based on flags + whether state exists. Check state first:
node $HOME/.claude/skills/log-conversation/scripts/log-conversation.mjs status \
--session "${CLAUDE_SESSION_ID}"
Exit code 0 = active, 1 = no active log. Then dispatch:
| Situation | Command |
|---|---|
| No args, no active state | start (default: from current user turn) |
| No args, active state exists | refresh |
| -e only, active state exists | end |
| -e only, no active state | start --end (snapshot from current turn, one-shot) |
| -a / --all | start --all (add --end if -e also given) |
| N (integer) | start --n N (add --end if -e also given) |
Invocation:
node $HOME/.claude/skills/log-conversation/scripts/log-conversation.mjs <cmd> \
--session "${CLAUDE_SESSION_ID}" \
[--n N] [--all] [--end]
The script prints a JSON line like:
{ "action": "start",
"logFile": "/Users/.../cclogs/slug/20260422_110000-conversation.md",
"rawLogFile": "/Users/.../cclogs/slug/20260422_110000-conversation.raw.md",
"startUuid": "…", "entries": 73, "ended": false }
logFile is the conversation-only .md; rawLogFile is the full transcript .raw.md.
Both files are rewritten on every start / refresh / end.
Report a short status with the absolute logFile path (and optionally rawLogFile). Mention
whether the log is now active (will be refreshed on next invocation) or finalized (state cleared).
Do not dump the file content to chat — the file is the point.
If the user asks to see the log, use Read on the returned logFile (conversation only) or
rawLogFile (full transcript) path.
scripts/log-conversation.mjs supports these subcommands (session ID via --session or
$CLAUDE_SESSION_ID):
start [--n N | --all] [--name NAME] [--end] — create state, write log; --end deletes state after write (one-shot).refresh — rewrite the existing log from state.end — refresh + delete state.status — print active state as JSON (exit 1 if none).The conversation log filename is {YYYYMMDD}_{HHMMSS}-conversation[-name].md, with the raw
counterpart {YYYYMMDD}_{HHMMSS}-conversation[-name].raw.md written alongside it. Once set
on start, the same paths are reused on every refresh / end for that session.
end) picks it up. This is fine for typical use._(meta)_ in the log./clear does not wipe state files — invoke -e to tidy up, or let old state files linger harmlessly in $HOME/cclogs/{slug}/.development
Link Claude Code skill names mentioned in a CodeGrid article (data/{series}/{n}.md) to the author's public claude-resources repo, pinned to the latest commit hash so links don't rot. Use when: (1) user says 'linkify cc resources', 'link the skills', 'link skill names', or invokes /dev-linkify-cc-resources; (2) editing a CodeGrid article that mentions `/commits`, `/pr-complete`, `/skill-creator` or other Claude Code skills and they should point to claude-resources. Only links skills that actually exist in the public repo; skips hypothetical examples and code blocks.
development
Second opinion from Claude Opus on a plan or approach. Use when: (1) Planning phase of /big-plan needs a higher-quality review than /codex-2nd / /gco-2nd, (2) User says 'opus 2nd' or 'opus opinion', (3) Wanting Anthropic's larger model to critique a plan. Spawns a general-purpose Agent with model: opus that reads the plan file and returns structured feedback. Anthropic quota — not free.
tools
AI-based testing via subagent + a per-task test-flow skill. Use when the user wants to verify something that mechanical assertions can't fully capture — image recognition, visual size/position comparison, animation smoothness, multi-step manual flows that need AI judgment. Triggers: 'AI-based test', 'AI test', 'visual verify', 'image recognition test', 'manual operation test', 'human-eye check', 'verify visually', 'compare screenshots', 'looks the same', 'looks correct'. The skill's job is to (1) author a focused test-flow skill that captures the exact procedure + verdict criteria, then (2) dispatch a verification subagent via the Agent tool that loads BOTH the test-flow skill AND a browser-driving skill (/verify-ui primary, /headless-browser fallback) so the subagent has clear context and consistent verdicts. NEVER uses `claude -p` — subagent dispatch goes through the Agent tool exclusively.
development
End-of-workflow audit of touched GitHub issues, PRs, and branches via a Sonnet subagent. Use when: (1) /big-plan, /x-as-pr, or /x-wt-teams finishes its main work and needs to verify every touched resource is in the right state (closed when done, kept when ongoing, deleted when dead), (2) User says 'cleanup resources', 'audit cleanup', or 'check what should be closed', (3) A long workflow ends and the manager wants a structured paper trail of what it closed/kept/deleted. Auto-execute by default — the Sonnet agent proposes, the manager (you) executes safe actions and prints a final report.