Knowledge Base Wikiのロゴ

Knowledge Base Wiki

コミュニティ
ahmadrosid
knowledge-base-wiki

このプロフィールにアップロードされたナレッジベースのドキュメントを、knowledge-base/wiki/配下のMarkdownページからなるWikiにまとめます。ドキュメントの追加、差し替え、削除後にはWikiを更新します。ユーザーがナレッジベースWikiの作成、まとめ、更新、再構築を依頼した場合に使用します。

Add to TypingMind

概要

公開者ahmadrosid
リポジトリnakama
スキル名knowledge-base-wiki
スター
492
フォーク
91
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    ahmadrosidがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Knowledge Base Wiki」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/ahmadrosid/nakama/tree/main/packages/core/src/skills/bundled/knowledge-base-wiki
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ahmadrosid/nakama.git /tmp/nakama
mkdir -p .claude/skills
cp -r /tmp/nakama/packages/core/src/skills/bundled/knowledge-base-wiki .claude/skills/knowledge-base-wiki
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでKnowledge Base Wikiを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にKnowledge Base Wikiを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Knowledge Base Wikiは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

The wiki turns uploaded documents into pages you maintain, so a question is answered from one compiled page instead of re-reading every source. knowledge_base_search already searches knowledge-base/wiki/*.md next to the documents. Nothing else is needed for the pages to be found.

Three layers, each with one owner:

  • Sources. knowledge-base/manifest.json and the <id>.extracted.txt files beside it. The user owns them through uploads. Never write, edit or delete anything in knowledge-base/ outside wiki/.
  • Wiki. knowledge-base/wiki/*.md. You own these. They are derived from the sources, so deleting the folder loses nothing.
  • Schema. knowledge-base/wiki/SCHEMA.md. Says what pages exist and how they are shaped. You write it on the first compile and keep it current.

Reading the sources

  1. read_file knowledge-base/manifest.json. It holds documents, a list of { id, filename, status, uploadedAt, ... }.
  2. Only documents with status: "ready" have text. Their text is in knowledge-base/<id>.extracted.txt. The first three lines are a # source: / # mediaType: / # uploadedAt: header; the body follows.
  3. Use read_file with offset and limit for long documents. Do not open the stored originals (<id>--<filename>); the extracted text is the source of truth.

A replaced document gets a new id, so "changed" and "deleted" look the same here: an id a page cites is no longer in the ready set.

Page format

Every page except SCHEMA.md starts with frontmatter listing the ids of the documents it was written from:

markdown
---
title: Refund policy
sources: [kb_abc123, kb_def456]
---

# Refund policy

Refunds are issued within 14 days of a request (kb_abc123).
  • File names are lowercase kebab-case: knowledge-base/wiki/refund-policy.md. One topic per page, so a page stays short enough to read in one call.
  • sources lists only ids that are in the manifest with status: "ready", and every id listed was actually used on the page.
  • Write what the documents say. When two documents disagree, state both with their ids rather than picking one.
  • Link related pages with relative links: [Billing](billing.md).

SCHEMA.md has no sources. It lists every page with a one-line summary, the conventions above as they apply to this knowledge base, and the date of the last compile. Keep it under about 100 lines.

Compile

  1. Read the manifest and collect the ready ids.
  2. read_file knowledge-base/wiki/SCHEMA.md. If it is missing, this is the first compile: every ready document is new.
  3. Find every existing page with search_files for the query sources: under the path knowledge-base/wiki, then for each page read its sources:
    • every id still ready: leave the page alone
    • some ids gone: rewrite the page from the sources that remain, plus any new document on the same topic
    • no id left: delete_file the page
  4. A ready id that no page cites is a new document. Read it, then add its facts to the existing pages they belong on and create pages for topics nothing covers yet. Add its id to the sources of every page you touched.
  5. Rewrite SCHEMA.md to match the pages now on disk.
  6. Tell the user which pages were created, rewritten and deleted, in a few lines.

Use write_file to create or fully rewrite a page and edit_file for a small change. Never delete SCHEMA.md.

To rebuild from scratch, delete_file every page in knowledge-base/wiki/, including SCHEMA.md, then compile.

よくある質問

AIスキル「Knowledge Base Wiki」では何ができますか?

このプロフィールにアップロードされたナレッジベースのドキュメントを、knowledge-base/wiki/配下のMarkdownページからなるWikiにまとめます。ドキュメントの追加、差し替え、削除後にはWikiを更新します。ユーザーがナレッジベースWikiの作成、まとめ、更新、再構築を依頼した場合に使用します。

TypingMindでKnowledge Base Wikiを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Knowledge Base Wikiはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにKnowledge Base Wikiをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/ahmadrosid/nakama/tree/main/packages/core/src/skills/bundled/knowledge-base-wikiを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Knowledge Base Wikiを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Knowledge Base Wikiで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもKnowledge Base Wikiを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Knowledge Base Wiki」は無料ですか?

はい。ahmadrosidがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇