返回 Skill 列表
extension
分类: 开发与工程无需 API Key

continue

将当前项目中的./.ccb/history/目录下的最新上下文转移Markdown文件通过@file附加到Claude。当用户输入/continue或要求使用此项目中的最新转移文件继续时使用。

person作者: jakexiaohubgithub

Continue (Attach Latest History)

Overview

Find the newest Markdown in ./.ccb/history/ (or legacy ./.ccb_config/history/) and reply with an @file reference so Claude loads it.

Workflow

  1. Locate the newest .md under the current project's history folder.
  2. If none exists, report that no history file was found.
  3. Reply with a single line @<path> and nothing else.

Execution (MANDATORY)

latest="$(ls -t "$PWD"/.ccb/history/*.md 2>/dev/null | head -n 1)"
if [[ -z "$latest" ]]; then
  latest="$(ls -t "$PWD"/.ccb_config/history/*.md 2>/dev/null | head -n 1)"
fi
if [[ -z "$latest" ]]; then
  echo "No history file found in ./.ccb/history."
  exit 0
fi
printf '@%s\n' "$latest"

Output Rules

  • When a history file exists: output only @<path> on a single line.
  • When none exists: output the error message and stop.

Examples

  • /continue -> @/home/bfly/workspace/hippocampus/.ccb/history/claude-20260208-225221-9f236442.md