Cclogs

From Takazudo/claude-resources · View interactive version

Cclogs is an AI agent skill from the GitHub repository Takazudo/claude-resources. Load recent prototypes, plans, logs and artifacts from the repo-scoped cclogs dir to continue earlier work. Use for /cclogs, or whenever the user refers to a prior session's prototype/plan/report as if it exists.

How to use this skill

Skill file

cclogs — continue work from a previous session

What cclogs is

The user's agent sessions write logs, plans, prototypes, and artifacts to a Dropbox-synced directory outside the repo, so they survive switching between Mac and WSL and never pollute git history.

Because it is outside the repo, material here is invisible to a fresh session until someone goes looking. That is what this skill is for: the user says "the prototype is in cclogs" and expects the work to continue, not an explanation.

Resolve the directory

Never hand-build the path — the worktree and numbered-sibling folding above is easy to get wrong:

LOGDIR=$(node "$HOME/.claude/scripts/get-logdir.js")

Outside a git repo this resolves to <base>/_misc/. On Claude Code web ($CLAUDE_CODE_REMOTE=true) it is an ephemeral /tmp stub with no Dropbox behind it — say the material is unreachable there rather than substituting something else.

Survey what is there

node "$HOME/.claude/skills/cclogs/scripts/survey.mjs" [options]

| Option | Effect |

| --- | --- |

| (none) | 12 newest entries in this repo's dir |

| --dirs | directories only — prototypes and workflow dirs, which flat log files bury in a log-heavy repo |

| --find TERM | name contains TERM (case-insensitive) |

| --limit N | show N entries (0 = all) |

| --repo NAME | another repo's dir |

| --repos | every repo dir under the base, newest activity first |

| --dir PATH | an explicit path |

Each row is name, timestamp, age, kind, size/file-count. Directories are ranked by the newest mtime inside them, because editing a file deep in a prototype leaves the parent dir's own timestamp untouched — ls -t would bury the very thing just worked on.

Reach for --dirs when the user says "the prototype": prototypes are directories, and in an active repo hundreds of agent report files sit on top of them by recency.

Pick and load

Match the user's words to a row. --find with a distinctive fragment beats scrolling a long list. When several plausibly match, prefer the newest and say which one was chosen — a one-line "loaded X (2h ago)" lets the user redirect cheaply if it was the wrong one.

Open each kind on its own terms rather than dumping bytes:

A file reported as 0 B (unsynced?) is almost certainly an online-only Dropbox placeholder rather than an empty artifact — usually from the other machine. Wait a few seconds and re-check before treating it as empty.

If the material is not there, check __inbox/ in the repo root before concluding it is missing: a prototype that had to import the repo's production code or use its Vite tooling lives there instead (the documented exception in /protodev).

Then do the work

The survey is not the deliverable. The user invoked /cclogs to resume something — "continue the work, we need an STL enclosure", "do the next step, I want to change…" — so loading the material is step one of that task, not the answer to it.

Carry the loaded material forward as real context: the earlier session's decisions, naming, and structure are the starting point, and rebuilding from scratch throws away the work the user is pointing at. If what you found genuinely does not match what they described, say so and ask — do not quietly proceed on the wrong artifact.

Writing new material here

Same directory, via the {logdir} placeholder so the path resolves correctly:

node "$HOME/.claude/scripts/save-file.js" "{logdir}/{timestamp}-<slug>.md" "$CONTENT"

New prototypes go in $LOGDIR/<descriptive-name>/ per /protodev. Never write cclogs paths into a GitHub issue — they are machine-local by nature and unreachable from Claude Code web, so an issue that depends on one is a dead end for whoever picks it up.

Reference

Read references/layout.md to interpret an unfamiliar entry — which skill produced it, what the naming conventions mean, and what is safe to ignore.

Related skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.