Skip to content

feat: retroactive bootstrap analyzer for Claude Code history#3

Merged
SnehalRaj merged 1 commit intomainfrom
feature/retroactive-bootstrap
Feb 27, 2026
Merged

feat: retroactive bootstrap analyzer for Claude Code history#3
SnehalRaj merged 1 commit intomainfrom
feature/retroactive-bootstrap

Conversation

@SnehalRaj
Copy link
Owner

Summary

  • Adds skill-issue analyze command to bootstrap knowledge state from Claude Code conversation history
  • Pattern-based heuristics classify user message intent (questions vs assertions) and map to concept mastery signals
  • Integrates into skill-issue init with opt-in prompt for automatic bootstrapping
  • 22 new tests covering message classification, concept detection, session analysis, and state application

How it works

The analyzer scans Claude Code session JSONL files and infers mastery scores:

Pattern Signal Score delta
User asks "what is X?" Weakness -0.15
User shares code with X Strength +0.20
Claude explains X (user didn't mention) Neutral +0.05

Final scores clamped to [0.0, 0.8] (max 0.8 since we can't be sure of full mastery from history alone).

Commands

# Analyze current project
skill-issue analyze

# Analyze all projects
skill-issue analyze --all

# Preview without applying
skill-issue analyze --dry-run

# Limit sessions scanned
skill-issue analyze --max-sessions 20

Test plan

  • All 56 tests pass (python3 -m pytest tests/ -v)
  • skill-issue analyze --help shows correct options
  • skill-issue analyze --dry-run --all produces sensible output
  • Manual test of init flow with history bootstrap prompt

🤖 Generated with Claude Code

Implements `skill-issue analyze` command that scans Claude Code session
history (JSONL files) to infer initial mastery scores based on conversation
patterns:

- User questions about a concept → weakness signal (-0.15)
- User assertions/code with a concept → strength signal (+0.20)
- Claude-only mentions → neutral/slight positive (+0.05)
- Final scores clamped to [0.0, 0.8]

Integration:
- New `skill-issue analyze` CLI command with --all, --dry-run, --max-sessions
- Opt-in prompt during `skill-issue init` to bootstrap from history
- Detects concepts via node names, IDs, and aliases from knowledge graphs

This addresses the cold-start problem: new users can start with knowledge
state calibrated to their actual demonstrated understanding rather than
a blank slate.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@SnehalRaj SnehalRaj merged commit 0b28473 into main Feb 27, 2026
6 checks passed
@SnehalRaj SnehalRaj deleted the feature/retroactive-bootstrap branch February 27, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant