Agent skill
export-log
Export Claude conversation logs to markdown
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/export-log
SKILL.md
Export Claude Conversation Logs
Export conversations using claude-conversation-extractor.
Current Session
Session ID: ${CLAUDE_SESSION_ID}
Arguments
$ARGUMENTS
Instructions
Parse the arguments and determine the export method:
No arguments (export current session)
- Run
claude-extract --list 2>/dev/null | grep -B5 "${CLAUDE_SESSION_ID:0:8}"to find the session number - Extract the session number from the output (e.g., "17. " means session 17)
- Run
claude-extract --extract <number> --detailed
Numeric arguments (session numbers)
If arguments are comma-separated numbers like 1, 1,3,5:
- Run
claude-extract --extract <numbers> --detailed
UUID-like arguments (session ID prefixes)
If arguments look like hex strings (e.g., 97b86784, 14b9611d-cd1a):
- For each ID prefix, run
claude-extract --list 2>/dev/null | grep -B5 "<prefix>"to find the session number - Collect all session numbers
- Run
claude-extract --extract <numbers> --detailed
Text arguments (search)
If arguments are freeform text:
- Run
claude-extract --search "<text>"
Output
Report the exported file path(s) and message count to the user.
Help
If unsure about available options, run claude-extract --help.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?