ai-native-camp avatar

History Insight

This pulls your Claude Code session history from the JSONL files stored in ~/.claude/projects and analyzes them for patterns and insights. You can scope it to the current project or search across all your sessions. It's smart about handling large datasets, automatically splitting files and using parallel processing when needed. The main use case is when you want to capture what happened in a conversation, extract themes from past work, or reference "what we discussed" as source material. The implementation is thorough with date filtering, error handling, and even OS-specific stat commands, though you'll need jq installed. Honestly feels like the kind of meta-analysis tool you don't think you need until you've been working in Claude Code for a few months and want to surface what you actually built.

skills.sh installs
1.3K
GitHub stars
19
last updated
Aug 21, 2026

Install

$ npx -y skills add ai-native-camp/camp-2 --skill history-insight --agent claude-code

Installs into .claude/skills of the current project.

Files

History Insight

Claude Code 세션 히스토리를 분석하고 인사이트를 추출합니다.


Data Location

~/.claude/projects/<encoded-cwd>/*.jsonl

Path Encoding: /Users/foo/project → -Users-foo-project

상세 파일 포맷: ${baseDir}/references/session-file-format.md


Execution Algorithm

Step 1: Ask Scope [MANDATORY]

스코프 결정:

  1. 명시된 경우 (AskUserQuestion 생략 가능):

    • "현재 프로젝트만" / "이 프로젝트" → current_project
    • "모든 세션" / "전체" → all_sessions
  2. 명시되지 않은 경우 - AskUserQuestion 호출:

    question: "세션 검색 범위를 선택하세요"
    options:
      - "현재 프로젝트만" → ~/.claude/projects/<encoded-cwd>/*.jsonl
      - "모든 Claude Code 세션" → ~/.claude/projects/**/*.jsonl
    

Step 2: Find Session Files

# Current project only
find ~/.claude/projects/<encoded-cwd> -name "*.jsonl" -type f

# All sessions (모든 프로젝트)
find ~/.claude/projects -name "*.jsonl" -type f

날짜 필터링: 파일의 mtime(수정시간) 확인 후 필터. OS별 stat 옵션 다름:

  • macOS: stat -f "%Sm" -t "%Y-%m-%d" <file>
  • Linux: stat -c "%y" <file>

Step 3: Process Sessions

Decision Tree

Sponsors

Details

Repository
github.com/ai-native-camp/camp-2
Category
AI & Agent Building
First seen
Apr 16, 2026

More from ai-native-camp/camp-2

All 12
1ai-native-camp avatarday6-prd-submitai-native-camp/camp-1PRD 초안을 작성하고 형식을 검증한 뒤 GitHub PR 제출을 안내한다. "PRD 작성", "PRD 검증", "Day 6", "6일차", "PR 제출", "prd submit" 요청에 사용.1.3Kskills.sh installs
2hyva-themes avatarhyva-child-themehyva-themes/hyva-ai-toolsCreate a Hyvä child theme in a Magento 2 project. This skill should be used when the user wants to create a new Hyvä child theme, set up a custom theme based on1.3Kskills.sh installs
3ai-native-camp avatarfetch-tweetai-native-camp/camp-2This skill should be used when the user asks to "트윗 가져와", "트윗 번역", "X 게시글 읽어줘", "tweet fetch", "트윗 내용", "트윗 원문", or provides an X/Twitter URL (x.com, twitter.co1.3Kskills.sh installs
4orchestra-research avatarbrainstorming-research-ideasorchestra-research/ai-research-skillsGuides researchers through structured ideation frameworks to discover high-impact research directions. Use when exploring new problem spaces, pivoting between p1.3Kskills.sh installs
5hyva-themes avatarhyva-compile-tailwind-csshyva-themes/hyva-ai-toolsCompile Tailwind CSS for Hyvä themes in Magento 2. Use when the user wants to build styles, generate CSS, compile Tailwind, run Tailwind, or create production/d1.3Kskills.sh installs
6aj-geddes avatarmarkdown-documentationaj-geddes/useful-ai-promptsMaster markdown formatting, GitHub Flavored Markdown, README files, and documentation formatting. Use when writing markdown docs, READMEs, or formatting documen1.3Kskills.sh installs