claude-code-sessions
БесплатноЗапускает вложенные скриптыНе проверенUse when user says "resume session", "what did I work on", or "find conversation about [topic]". Automatically searches, resumes, and analyzes Claude Code…
от tekliner★ 17 звёзд на GitHubОб этом скилле
Claude Code Sessions Skill
Comprehensive session management for Claude Code - search, analyze, and resume conversations from any directory.
When to Use This Skill
Use this skill when:
- Search sessions by content or keywords
- List all available sessions across projects
- Analyze session history and patterns
- Find sessions created in different directories
- Get session metadata and statistics
Quick Start Checklist
When user wants to resume or find sessions:
[ ] 1. Identify request type: resume by ID, search by text, or list recent
[ ] 2. If resume by ID: use 21_universal_session_resume.py with session ID
[ ] 3. If search by text: use --text flag with search keywords
[ ] 4. If list recent: use 22_list_all_sessions.py with --days filter
[ ] 5. Verify correct working directory from session metadata
[ ] 6. Launch Claude Code with proper context
5-Second Decision Tree:
- User mentions session ID? → Resume with 21_universal_session_resume.py
- User describes topic/content? → Search with --text flag
- User asks "what did I work on"? → List with 22_list_all_sessions.py
Practical Workflow
BEFORE attempting to resume/search:
- Determine intent (resume specific vs search vs browse recent)
- Choose command based on intent:
- Known ID →
python 21_universal_session_resume.py [ID] - Topic search →
python 21_universal_session_resume.py --text "keyword" - Recent work →
python 22_list_all_sessions.py --days 7
- Known ID →
- Execute command and verify session found
- Resume automatically (script handles directory switching)
Example rapid application:
User: "Resume my dashboard work from yesterday"
Agent thinks:
- Text search needed ("dashboard")
- Recent timeframe (yesterday)
- Use: python 21_universal_session_resume.py --text "dashboard" --all
- Filter results by date, pick most recent
Core Capabilities
1. Universal Session Resume
Resume any session from any directory - automatically handles path resolution and project switching.
CLI Usage:
# Resume by session ID (default mode)
python data_sources/claude_code/21_universal_session_resume.py c080fd31-1fea-44e2
# Resume by ID (full UUID)
python data_sources/claude_code/21_universal_session_resume.py c080fd31-1fea-44e2-8690-c58ad0f4a829
# Search by text content (requires --text flag)
python data_sources/claude_code/21_universal_session_resume.py --text "dashboard implementation"
# Resume latest session
python data_sources/claude_code/21_universal_session_resume.py --last
# Preview command without executing
python data_sources/claude_code/21_universal_session_resume.py --dry-run c080fd31
# Show all matching sessions
python data_sources/claude_code/21_universal_session_resume.py --text "dashboard" --all
Shell Alias (if configured):
# After source ~/.zshrc
rc c080fd31-1fea-44e2 # By ID (default)
rc --text "dashboard" # By text search
rc --last # Latest session
rc --dry-run c080fd31 # Preview only
How It Works:
- Scans all projects in
~/.claude/projects/ - Finds session regardless of creation directory
- Determines correct working directory from session metadata
- Automatically switches to project folder
- Launches Claude Code with correct session context
Parameters:
session_input(positional): Session ID (default) or search text (with --text)--text,-t: Treat input as text search instead of session ID--last: Find most recent session across all projects--dry-run: Show resume command without executing--all: Show all matching sessions, not just first
2. List All Sessions
View all Claude Code sessions grouped by project with statistics.
CLI Usage:
# List all sessions
python data_sources/claude_code/22_list_all_sessions.py
# Show detailed information
python data_sources/claude_code/22_list_all_sessions.py --detailed
# Filter by project path
python data_sources/claude_code/22_list_all_sessions.py --project chrome-extension-tcs
# Show only recent sessions (last 7 days)
python data_sources/claude_code/22_list_all_sessions.py --days 7
Output Format:
📊 Summary:
Total projects: 5
Total sessions: 127
Total size: 45.32 MB
📁 Projects and Sessions:
📂 ~/project
Sessions: 89 | Size: 32.15 MB
Period: 2024-10-01 to 2025-01-15
• c080fd31... (2h ago) - dashboard implementation with DataTables...
• b2435f08... (1d ago) - fix session resume script...
• a7f3e290... (3d ago) - Notion integration analysis...
... and 86 more sessions
Parameters:
--detailed: Show full information for each session (first 10 per project)--project: Filter by project path (substring match)--days: Show only sessions modified in last N days
3. Session Search with Grep
Fast content search across all sessions using grep.
CLI Usage:
# Search for keyword in all sessions
grep -i "dash
Установить claude-code-sessions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл claude-code-sessions?
Use when user says "resume session", "what did I work on", or "find conversation about [topic]". Automatically searches, resumes, and analyzes Claude Code sessions. Handles session discovery, content search, and automatic session restoration from any directory.
Как установить скилл claude-code-sessions?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл claude-code-sessions запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic