learn-history

作成者: openshift

このプロジェクトの過去のすべてのセッションを分析し、AGENTS.md、.claude/agents/、またはメモリに永続化する価値のある知識を抽出します。全セッションの深い分析…

npx skills add https://github.com/openshift/oc --skill learn-history

Analyze the full session history for this project to extract knowledge worth persisting.

Session logs location

Session logs are JSONL files at the project config path. Find them with:

ls -lhS ~/.claude/projects/$(echo "$PWD" | tr '/' '-')/*.jsonl

Each line is a JSON object with a type field (user for user messages, others for assistant responses). User messages have .message.content with the prompt text.

Process

  1. Read the current state of AGENTS.md, .claude/agents/*.md, and the memory index for this project at ~/.claude/projects/$(echo "$PWD" | tr '/' '-')/memory/MEMORY.md (skip if absent)
  2. List all session files, sorted by size (larger sessions have more content worth mining)
  3. For each session, extract user messages and assistant text responses (skip tool results — they're too large). Focus on:
    • User corrections and redirections
    • Patterns that were discovered after expensive exploration
    • Knowledge that was needed repeatedly across sessions
  4. Cross-reference findings against what's already documented to avoid duplicates
  5. Group findings by destination:
    • AGENTS.md — brief conventions/rules (1-2 lines each)
    • .claude/agents/*.md — agent-specific knowledge
    • Memory — user preferences, project context, feedback
    • Nowhere — already documented or too specific to recur
  6. Present a summary of all proposed changes for approval. Do NOT write anything until approved.

Guidelines

  • Prioritize findings that recur across multiple sessions — those have the highest ROI
  • Keep AGENTS.md entries concise. If something needs more than 2 lines, it probably doesn't belong there.

openshiftのその他のスキル

openshift-expert
openshift
OpenShiftプラットフォームとKubernetesのエキスパートであり、クラスターアーキテクチャ、オペレーター、ネットワーキング、ストレージ、トラブルシューティング、CI/CDパイプラインに関する深い知識を持つ。使用…
official
find-token
openshift
隠された認証トークンを見つけます。find-tokenスクリプトを実行して、ユニークなトークンを取得します。
official
code-review
openshift
プルリクエストのコード品質、正確性、プロジェクト規約をレビューします。ユーザーがPRのレビュー、コードレビュー、または変更の確認を依頼した場合に使用します。
official
css-review
openshift
CSSのコーディングスタイル、PatternFlyトークンの使用法、ベストプラクティスをレビューします。ユーザーがCSSのレビュー、スタイルの確認、CSSファイルの監査を依頼した場合に使用します。
official
review-readmes
openshift
リポジトリ内のすべてのREADME.mdファイルをレビューし、タイポ、エラー、古い情報をチェックします。ユーザーがREADMEのレビューやドキュメントの正確性の確認などを依頼したときに使用します。
official
review-skills
openshift
プロジェクトのAIスキルを重複、古い参照、誤り、構造上の問題についてレビューします。ユーザーがスキルのレビュー、監査、チェックを依頼した場合に使用します。
official
test
openshift
タグでフィルタリングされたエンドツーエンドテストを実行します。ユーザーがテストの実行、Playwrightの実行、または@coreや@attachのような特定の機能タグのテストを依頼した場合に使用します。
official
unused-exports
openshift
他のファイルから一度もインポートされていないエクスポートされたシンボルを検出します。ユーザーが「エクスポートを確認」「未使用のエクスポート」と言ったり、エクスポートの整理を依頼した場合に使用します。
official