Kb Refresh logo

Kb Refresh

Organization
techwolf-ai
kb-refresh

Add new sources to your knowledge base or re-scrape existing ones to pick up changes. Supports Notion, Slack, Confluence, and local files. Can be run anytime after /setup-knowledge-base.

Overview

Publishertechwolf-ai
Repositoryai-first-toolkit
Skill namekb-refresh
Stars
138
Forks
7
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 techwolf-ai on GitHub. Read the source before you install it.

Installation

Install the Kb Refresh 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/techwolf-ai/ai-first-toolkit/tree/main/plugins/knowledge-base/skills/kb-refresh
  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/techwolf-ai/ai-first-toolkit.git /tmp/ai-first-toolkit
mkdir -p .claude/skills
cp -r /tmp/ai-first-toolkit/plugins/knowledge-base/skills/kb-refresh .claude/skills/kb-refresh
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kb Refresh 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 Kb Refresh 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 Kb Refresh 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.

KB Refresh

Add content from new sources or update existing KB entries from their original sources.

When to Use

  • Adding a new knowledge source (Notion page, Slack channel, etc.) after initial setup
  • Re-scraping sources to pick up recent changes
  • Importing additional documents into the KB

Prerequisites

Check that kb/ and kb/.kb-config.yaml exist. If not, tell the user to run /setup-knowledge-base first.

Step 1: Understand Current KB

Read the KB config and index to understand what's already there:

kb/.kb-config.yaml
kb/index.md

Run the index script to see the current state:

bash
python3 scripts/kb-index.py

Step 2: Discover Sources

Ask the user (use AskUserQuestion with multiSelect):

"What sources do you want to add or refresh?"

  • Notion pages
  • Slack channels
  • Confluence pages
  • Local files or folders
  • Other

Collect Entry Points

For each selected source, ask the user for the entry point:

SourceWhat to askMCP tool
NotionPage URL (will scrape the page and all subpages recursively)notion-fetch with the page URL, then notion-search or notion-get-page-descendants for child pages
SlackChannel name(s) to extract knowledge fromslack_read_channel to read recent messages
ConfluenceSpace key or page URLgetConfluencePage + getConfluencePageDescendants for recursive scraping
Local filesDirectory path or file pathsRead tool directly

Step 3: Choose Processing Mode

Ask the user (use AskUserQuestion):

"Process one at a time or all in parallel?"

  • One at a time (review each before continuing)
  • All in parallel (faster, review at the end)

Step 4: Scrape and Extract

For each source, launch a subagent (or process sequentially, per the user's choice):

You are populating a knowledge base from an external source.

SOURCE: {source_type}: {url_or_path}

KB CATEGORIES (place entries in the most relevant one):
{list of categories from .kb-config.yaml}

EXISTING ENTRIES (avoid duplicating these):
{output from kb-index.py}

INSTRUCTIONS:
1. Read/scrape the source content using the appropriate tool
2. For Notion/Confluence: follow all child pages and subpages recursively
3. For Slack: focus on pinned messages, bookmarks, and high-signal threads (not casual chat)
4. Split the content into distinct topics. Create one .md file per topic, not one giant file.
5. If an existing entry covers the same topic, UPDATE it rather than creating a duplicate.
   Read the existing file first, merge the new information, and update last_updated.
5a. For org-context KBs (company/team/personal knowledge, not just policy docs), actively hunt for these content types — they are the most commonly missed:
    - **Stakeholders**: one entry per key person (role, ownership areas, how to reach them, what they care about). Without these, the KB can't answer "who should I talk to about X?".
    - **Projects**: one entry per initiative (goal, owner, status, links). Distinct from generic "strategy" entries.
    - **Repositories / codebases**: one entry per repo (purpose, key files, how to run, ownership).
    - **Customer examples**: keep concrete names (e.g., "Acme Corp", "Globex") that make abstract concepts tangible. Don't strip them for anonymity unless the user asks.
6. For new entries, create a file in kb/{category}/ with this format:

---
title: "Topic Title"
description: "Brief one-liner for index lookup"
category: {category}
tags: [{relevant}, {tags}]
sources: ["{source_url_or_path}"]
last_updated: "{today's date}"
---


## Content

Write clear, quotable statements. Each fact should be independently citable.

7. Use lowercase-with-hyphens for filenames: product-overview.md, data-encryption.md
8. Preserve specifics: exact numbers, dates, names, versions
9. No opinions or speculation, only facts from the source
10. Skip content that is outdated, trivial, or not worth preserving

REPORT: When done, list all files created or updated with their category and a one-line description.

Step 5: Review

After all sources are processed:

  1. Run python3 scripts/kb-index.py --write to regenerate kb/index.md's "All Files by Category" section from the current KB.
  2. Run python3 scripts/kb-validate.py to catch missing frontmatter, bad categories, or broken related: links.
  3. Run python3 scripts/kb-validate.py --max-age 90 (or a shorter window if the source changes faster) to surface entries that have drifted since their last refresh.
  4. Spot-check discoverability with python3 scripts/kb-search.py "<term the refresh should have covered>" to confirm new entries are searchable.
  5. Present a summary: X entries created, Y entries updated, from Z sources. Flag any warnings, errors, or stale entries.
  6. Ask the user if they want to add more sources or are done.

Frequently asked questions

What does the Kb Refresh AI skill do?

Add new sources to your knowledge base or re-scrape existing ones to pick up changes. Supports Notion, Slack, Confluence, and local files. Can be run anytime after /setup-knowledge-base.

Why use Kb Refresh on TypingMind?

Because you install it once and use it with any model. Kb Refresh 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 Kb Refresh in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/techwolf-ai/ai-first-toolkit/tree/main/plugins/knowledge-base/skills/kb-refresh. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Kb Refresh?

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 Kb Refresh?

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

Is the Kb Refresh AI skill free?

Yes. It is published on GitHub by techwolf-ai 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 👇