ワンクリックで
insights
Extract coding patterns and preferences from session transcripts for CLAUDE.md
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Extract coding patterns and preferences from session transcripts for CLAUDE.md
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
MECE decompose a research question, run parallel Codex web-research agents via tmux, iteratively deepen via DAG, synthesize findings
Decompose a research question into MECE domains and run parallel Claude agents via tmux
Split implementation tasks into independent workstreams running as parallel agents in git worktrees
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
Guided learning through Socratic questioning - teaches through discovery, not answers
Full TDD red-green-refactor cycle with automatic framework detection
| name | insights |
| description | Extract coding patterns and preferences from session transcripts for CLAUDE.md |
| disable-model-invocation | true |
| context | fork |
| agent | Explore |
| allowed-tools | Read, Glob, Bash(ls *) |
| argument-hint | [current|latest|all] |
Analyze Claude Code session transcripts to extract patterns that should be codified in CLAUDE.md files. Produces two-level output: Global entries (apply to all projects) and Project entries (apply to this project only).
current (default): Analyze the most recent session transcriptlatest: Analyze the 3 most recent session transcriptsall: Analyze the 10 most recent session transcriptsFind session JSONL files for this project:
ls -lt ~/.claude/projects/*/
Identify the encoded project path that matches the current working directory. Sort by modification time (newest first).
Based on the argument:
current / no argument: read the 1 most recent .jsonl filelatest: read the 3 most recent .jsonl filesall: read the 10 most recent .jsonl filesScan user messages in each transcript for five categories:
A. Corrections and Redirections Look for signals: "no", "wrong", "actually", "instead", "should be", "not that", "stop", user restating the same instruction differently, or messages where the user interrupted and changed direction.
For each correction:
B. Coding Style Preferences Look for: naming conventions, formatting preferences, comment style, import ordering, file organization, language/framework choices.
C. Tool and Workflow Preferences Look for: preferred package managers, test runners, build tools, shell commands, editor workflows, git conventions, CI/CD preferences.
D. Communication Style Look for: preferred response length, level of explanation desired, when to ask vs. proceed, tone preferences, what annoys the user.
E. Architecture and Project Patterns Look for: module structure, dependency patterns, API design, error handling conventions, naming patterns specific to this project.
Assign each insight to a scope:
| Category | Scope |
|---|---|
| Coding style preferences | Global (~/.claude/CLAUDE.md) |
| Tool/workflow preferences | Global (~/.claude/CLAUDE.md) |
| Communication style | Global (~/.claude/CLAUDE.md) |
| Architecture/project patterns | Project (./CLAUDE.md) |
| Corrections -- depends on context | Either (judge by specificity) |
Read the existing CLAUDE.md files:
~/.claude/CLAUDE.md (global)./CLAUDE.md (project, if it exists)Compare each extracted insight against existing entries. Mark duplicates so they are not proposed again.
Output a findings table:
| # | Insight | Category | Scope | Duplicate? |
|---|---------|----------|-------|------------|
| 1 | ... | Correction | Project | No |
| 2 | ... | Coding style | Global | Yes (line 42) |
Then output draft CLAUDE.md entries organized by scope:
## Global Entries (for ~/.claude/CLAUDE.md)
- Entry 1
- Entry 2
## Project Entries (for ./CLAUDE.md)
- Entry 1
- Entry 2