← スキル一覧に戻る

context-consolidation
by Pamir-AI
⭐ 1🍴 1📅 2025年11月30日
SKILL.md
name: Context Consolidation description: Consolidate learnings from action logs into project docs and skills. Use when user asks to "consolidate", "compile learnings", "summarize sessions", or update project knowledge from .claude/action-log.jsonl.
Context Consolidation
Transform accumulated learnings into organized project knowledge.
Schema
Each action log entry:
{"timestamp": "...", "transcript": "...", "learned": "...", "context": "..."}
learned: The specific command, pattern, or fixcontext: When this applies (the trigger condition)
Process
1. Read Entries Since Last Consolidation
cat .claude/action-log.jsonl | jq -s '.'
Find last "event": "consolidation" marker. Process entries after that timestamp.
2. Group by Context
Group entries with similar context values - these are related learnings.
| Context Pattern | Destination |
|---|---|
| Config/setup values | claude.md |
| Commands/procedures | skill candidate |
| Facts/constraints | claude.md |
3. Decide: Skill vs Doc
Create skill when:
- Same context appears 2+ times
learnedcontains commands or multi-step procedure- Pattern is reusable across projects
Add to claude.md when:
- Single occurrence
- Project-specific config/values
- Facts or constraints
4. Create Outputs
For claude.md entries:
## Learnings
### [Context Category]
- `learned` value here
For skills:
skills/[name]/SKILL.md
Skill template:
---
name: [Descriptive Name]
description: Use when [context]. [What it does].
---
# [Name]
[learned content, expanded if multi-step]
5. Append Consolidation Marker
{"event": "consolidation", "timestamp": "2025-11-25T12:00:00Z", "summary": "Added X to docs, created Y skill"}
Key Principles
- Concrete over generic: Keep actual values, actual commands
- Context = trigger: The
contextfield IS the "use when" condition - Skip duplicates: Don't add same learning twice
- Minimal skills: Only create skills for repeated, multi-step patterns
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です