AGENT SKILL

cxb-continue

Attach the newest context-transfer Markdown from the current project's ./.curdx/history/ into Claude using @file. Use when the user types /cxb-continue or asks to resume with the latest transfer file in this project.

License 许可
MIT
最近更新
2026-05-06
Stars
★ 2
Forks
0

01 前言 Front Matter

name
cxb-continue
description
Attach the newest context-transfer Markdown from the current project's ./.curdx/history/ into Claude using @file. Use when the user types /cxb-continue or asks to resume with the latest transfer file in this project.

02 资源文件 1

03 SKILL.md 正文

Continue (Attach Latest History)

Overview

Find the newest Markdown in ./.curdx/history/ (or legacy ./.curdx_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"/.curdx/history/*.md 2>/dev/null | head -n 1)"
if [[ -z "$latest" ]]; then
  latest="$(ls -t "$PWD"/.curdx_config/history/*.md 2>/dev/null | head -n 1)"
fi
if [[ -z "$latest" ]]; then
  echo "No history file found in ./.curdx/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

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

04 同仓库更多 Skills