Home/数据分析/history-insight
H

history-insight

by @ai-native-campv
4.6(7)

Analyzes Claude Code session history and extracts insights, storing data at a specified path to help users understand and optimize the development process.

Time Series AnalysisHistorical Data AnalysisTrend IdentificationPredictive AnalyticsData StorytellingGitHub
Installation
npx skills add ai-native-camp/camp-2 --skill history-insight
compare_arrows

Before / After Comparison

1
Before

Without systematically analyzing Claude Code session history, developers may find it difficult to fully understand their development habits, common error patterns, or efficiency bottlenecks. Lacking data support, optimizing the development process often relies on experience, leading to suboptimal and unquantifiable results, and consequently slow progress.

After

By analyzing Claude Code session history and extracting insights, developers can clearly identify strengths and weaknesses in their development process. Data stored at a specified path provides traceable evidence, allowing for more targeted strategy adjustments, optimization of coding habits, significant improvements in development efficiency and code quality, and the achievement of continuous improvement.

description SKILL.md

history-insight

History Insight Claude Code 세션 히스토리를 분석하고 인사이트를 추출합니다. Data Location ~/.claude/projects//.jsonl Path Encoding: /Users/foo/project → -Users-foo-project 상세 파일 포맷: ${baseDir}/references/session-file-format.md Execution Algorithm Step 1: Ask Scope [MANDATORY] 스코프 결정: 명시된 경우 (AskUserQuestion 생략 가능): "현재 프로젝트만" / "이 프로젝트" → current_project "모든 세션" / "전체" → all_sessions 명시되지 않은 경우 - AskUserQuestion 호출: question: "세션 검색 범위를 선택하세요" options: - "현재 프로젝트만" → ~/.claude/projects//.jsonl - "모든 Claude Code 세션" → ~/.claude/projects/**/.jsonl Step 2: Find Session Files # Current project only find ~/.claude/projects/ -name ".jsonl" -type f # All sessions (모든 프로젝트) find /.claude/projects -name "*.jsonl" -type f 날짜 필터링: 파일의 mtime(수정시간) 확인 후 필터. OS별 stat 옵션 다름: macOS: stat -f "%Sm" -t "%Y-%m-%d" Linux: stat -c "%y" Step 3: Process Sessions Decision Tree Session files found? ├─ No → Error: "No sessions found" └─ Yes → How many files? ├─ 1-3 files → Direct Read + parse └─ 4+ files → Batch Extract Pipeline 1-3 Files 직접 Read로 JSONL 파싱. 파일이 크면(≥5000 tokens) extract-session.sh 사용: ${baseDir}/scripts/extract-session.sh <session.jsonl> 4+ Files: Batch Extract Pipeline 캐시 디렉토리 생성 (/tmp/cc-cache//) 세션 목록 저장 (sessions.txt) jq로 메시지 일괄 추출 (user_messages.txt) 정리 및 필터링 (clean_messages.txt) Task(opus)로 종합 분석 파일이 너무 클 때: 병렬 배치 분석 clean_messages.txt가 너무 커서 Read 실패 시: 파일 분할: split -l 2000 clean_messages.txt /tmp/cc-cache//batch_ 병렬 Task(opus) 호출: Task(subagent_type="general-purpose", model="opus", run_in_background=true) prompt: "batch_XX 파일을 읽고 주제/패턴 요약해줘" 결과 병합: Task(opus)로 종합 Step 4: Report Results ## Session Capture Complete - Sessions: N files processed - Messages: X total, Y after filter ### Extracted Insights [분석 결과] Error Handling Scenario Response No session files found "No session files found for this project." File too large Auto-preprocess with extract-session.sh jq not installed "Error: jq is required. Install with: brew install jq" Task failed "Warning: Could not process [file]. Skipping." 0 relevant sessions "No sessions matched your criteria." Security Notes 출력에 전체 경로 노출 금지 ( prefix 사용) Related Resources ${baseDir}/scripts/extract-session.sh - JSONL 압축 (thinking, tool_use 제거) ${baseDir}/references/session-file-format.md - JSONL 구조 및 파싱 Weekly Installs185Repositoryai-native-camp/camp-2GitHub Stars10First Seen13 days agoSecurity AuditsGen Agent Trust HubPassSocketWarnSnykFailInstalled onclaude-code180opencode15gemini-cli14github-copilot14codex14amp14

forumUser Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs492
Rating4.6 / 5.0
Version
Updated2026年3月17日
Comparisons1

User Rating

4.6(7)
5
0%
4
0%
3
0%
2
0%
1
0%

Rate this Skill

0.0

Compatible Platforms

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

Timeline

Created2026年3月17日
Last Updated2026年3月17日