一键导入
sessions
Manage and delete Claude Code sessions. Use when the user wants to list, inspect, delete, or get stats about their Claude sessions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage and delete Claude Code sessions. Use when the user wants to list, inspect, delete, or get stats about their Claude sessions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Address issues raised in pull request comments and code reviews. Use when the user wants to fix or resolve feedback from PR reviewers, including inline code review comments and general PR comments.
Summarize the changes in a pull request. Use when the user wants an overview of what a PR does, asks "what's in this PR", "summarize this PR", "what changed on this branch", or wants to understand a PR before reviewing or merging it. Works with a specific PR number or the PR for the current branch.
基于 SOC 职业分类
| name | sessions |
| description | Manage and delete Claude Code sessions. Use when the user wants to list, inspect, delete, or get stats about their Claude sessions. |
You are helping the user manage their Claude Code sessions. Use the helper script at ${CLAUDE_SKILL_DIR}/scripts/sessions.py to perform operations.
Run these via python3 ${CLAUDE_SKILL_DIR}/scripts/sessions.py <command>:
list - List sessions (most recent first)
--project/-p <filter> - Filter by project path substring--limit/-n <N> - Limit results (default: 20)show <session_id> - Show detailed info about a session: metadata, original prompt, and recent messages
--tail/-t <N> - Number of recent messages to show (default: 10)delete [session_ids...] - Delete sessions by ID, project, or age
--project/-p <filter> - Delete all sessions matching a project path substring--older-than <age> - Delete sessions older than a relative age (e.g. 12h, 7d, 2w, 1m)--before <date> - Delete sessions last active before a date (ISO format, e.g. 2026-01-15)--dry-run - Preview what would be deleted--verbose/-v - Show all related files that would be removed--project hubble --older-than 2w)cleanup - Find short, small, or old sessions that are cleanup candidates
--max-messages <N> - Flag sessions with N or fewer messages (default: 4)--max-size <KB> - Flag sessions smaller than KB (default: 10)--older-than <age> - Also flag sessions older than age (e.g. 7d, 2w, 1m)--project/-p <filter> - Only check sessions matching project path substring--delete - Delete the matched sessions (combine with --dry-run to preview)--dry-run - Preview deletions without removing files--delete, just lists candidates with reasonsstats - Show overall session statistics by project$ARGUMENTS to determine what they want to do. If no arguments or unclear, start with stats to show an overview, then ask what they'd like to do.--dry-run first and show the user what will be deleted. Only proceed with actual deletion after user confirmation.${CLAUDE_SESSION_ID} - warn the user if they try to delete the current session./resume <session-id> (the built-in resume command). They can also use claude --resume <session-id> from the terminal.