Conversation Context Import logo

Conversation Context Import

Community
shokai
conversation-context-import

対話コンテキストをimportする。 `.dev/contexts/` ディレクトリに保存された対話コンテキストと、カレントブランチのPRとその親・子・兄弟のPRのコメント欄に投稿された対話コンテキストを探し、読み込む対象を提案して読み込む。開発の継続やレビューに活用する。 ユーザーが「コンテキストを読み込んで」「対話コンテキストをimport」「.devのコンテキストを読んで」と言った時に使用する。

Overview

Publishershokai
Repositoryagent-skills
Skill nameconversation-context-import
Stars
88
Forks
5
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by shokai on GitHub. Read the source before you install it.

Installation

Install the Conversation Context Import AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/shokai/agent-skills/tree/main/plugins/conversation-context/skills/conversation-context-import
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/shokai/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/plugins/conversation-context/skills/conversation-context-import .claude/skills/conversation-context-import
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Conversation Context Import in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Conversation Context Import on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Conversation Context Import is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

対話コンテキストのimport手順書

過去の対話コンテキストを探し、読み込む対象を提案して読み込む。

対話コンテキストはconversation-context-export skillが書き出した物で、次の2か所にある:

  • .dev/contexts/{サニタイズ済みブランチ名}.md のローカルファイル
  • PRのコメント。本文は # {ブランチ名} 対話コンテキスト の見出しで始まる。{ブランチ名} はexportした時のブランチ名で、サニタイズしない

手順

1. ブランチ名を取得する

Bashツールで以下を実行する:

git branch --show-current

ブランチ名のサニタイズ

ブランチ名をファイル名として使う際、以下の文字を - に置換する:

/ \ : * ? " < > |

例: dependabot/npm_and_yarn/feed-5.2.0 → dependabot-npm_and_yarn-feed-5.2.0

以降の手順では、サニタイズ後のブランチ名を「サニタイズ済みブランチ名」と呼ぶ。

読み込み元ディレクトリの決定

ローカルファイルの読み込み元をgit worktreeの状況に応じて決める。

Bashツールで git worktree list を実行し、現在の作業ツリーがmain worktree(リポジトリ本体の作業ツリー)か、リンクされたworktreeかを判断する。worktreeで作業している場合はmain worktreeのパスも把握する。

main treeで作業中の場合は、読み込み元ディレクトリを .dev/contexts/ とする。

worktree内で作業中の場合は、main treeとworktreeローカルの両方の .dev/contexts/ で、カレントブランチ用ファイル({サニタイズ済みブランチ名}.md)の有無を確認して読み込み元ディレクトリを決める:

  • 両方に存在する場合: 両方のフルパスを提示し、AskUserQuestionツールでどちらを読み込むか選ばせる。選んだ側の .dev/contexts/ を読み込み元ディレクトリとする
  • 片方のみに存在する場合: そちらの .dev/contexts/ を読み込み元ディレクトリとする
  • どちらにも存在しない場合: main treeの .dev/contexts/ を読み込み元ディレクトリとする

以降の手順では、決定したパスを「読み込み元ディレクトリ」と呼ぶ。

2. 候補を集める

PRコメント

次のPRを探し、それぞれのコメント欄で、本文が対話コンテキストの見出しで始まるコメントを候補にする。mergeされたPRとcloseされたPRも探す。

  • カレントブランチのPR
  • その子PR
  • その親PR
  • 兄弟の子PR: 親PRの子PR

PR同士の親子関係は、baseと概要欄のどちらかで辿れれば親子とみなす。子PRのbaseは親PRのhead branchで、概要欄では親PRと子PRが互いにリンクされる。

カレントブランチのPRが未作成の時は、baseがdefault branchのopenなPRのうち、head branchにあってbase branchに無いcommitを、HEADが1つでも含んでいる物を親PRとみなす。

GitHubのPRとコメントを読めない時は、PRコメントを探さず、その事を報告に含める。

ローカルファイル

読み込み元ディレクトリのファイルのうち、カレントブランチと、見つけたPRのhead branchに当たる物を候補にする。

同じブランチの重複

同じブランチの対話コンテキストが、ローカルファイルと、自分が投稿したPRコメントの両方にある時は、メタデータのUpdated atが新しい方を候補に残す。2つが食い違っていた時は、その事を報告に含める。

3. 読み込む対象を提案する

候補が1つだけで、それがカレントブランチの対話コンテキストで、ローカルファイルか自分が投稿したPRコメントなら、質問せずに読み込む。

それ以外で候補がある時は、候補の一覧を示し、読み込む対象の案を出して、AskUserQuestionツールで承認か修正を求める。

  • 一覧には、候補ごとに、ファイルのパスかコメントのURLと投稿者、PRの番号・タイトル・状態、カレントブランチとの関係を書く
  • 案では、タイトルと概要欄から意図の理解に役立たないと判断した候補を外し、外した理由を添える。動作を変えない機械的な変換だけのPRがこれに当たる

候補が1つも無い時は、探した場所と、対話コンテキストが見つからなかった事を報告して終了する。

4. 読み込みと報告

対象の対話コンテキストの全文を読み込む。

読み込み完了後、どの対話コンテキストを読み込んだかをユーザーに報告する:

以下の対話コンテキストを読み込みました:
- `{読み込み元ディレクトリ}/feature-a.md`
- #1235 {PRのタイトル}: {コメントのURL}

関連スキル

  • conversation-context-export: 現在の対話コンテキストを .dev/contexts/ に書き出し、PRがあればPRコメントにも投稿するスキル。開発の区切りでコンテキストを保存する時に使用する。

Frequently asked questions

What does the Conversation Context Import AI skill do?

対話コンテキストをimportする。 `.dev/contexts/` ディレクトリに保存された対話コンテキストと、カレントブランチのPRとその親・子・兄弟のPRのコメント欄に投稿された対話コンテキストを探し、読み込む対象を提案して読み込む。開発の継続やレビューに活用する。 ユーザーが「コンテキストを読み込んで」「対話コンテキストをimport」「.devのコンテキストを読んで」と言った時に使用する。

Why use Conversation Context Import on TypingMind?

Because you install it once and use it with any model. Conversation Context Import is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Conversation Context Import in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/shokai/agent-skills/tree/main/plugins/conversation-context/skills/conversation-context-import. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Conversation Context Import?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Conversation Context Import?

As many as you like. As long as a model supports skills, you can use Conversation Context Import with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Conversation Context Import AI skill free?

Yes. It is published on GitHub by shokai under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇