Keine chat

From duskmoon314/keine · View interactive version

Keine chat is an AI agent skill from the GitHub repository duskmoon314/keine. Use this skill whenever the user wants to discuss, explore, or ask questions about a topic using the local knowledge base as grounding. Trigger on phrases like "what do you know about X", "let's talk about X", "explain X", "I'm trying to understand X", "discuss X with me", "what does the KB have on

How to use this skill

Skill file

Keine Chat

A conversational skill for exploring ideas and answering questions using the local knowledge base.

The KB is the primary source of truth — answer from it, be honest about its limits, and offer to

fill gaps with web research when the user wants more.

Mindset

This is a conversation, not a report. Stay concise and direct. The goal is to give the user

a grounded, honest answer — citing what the KB actually says, noting what it doesn't cover, and

offering to go further if they want.


Workflow

Step 1 — Understand the question

Before searching, make sure you understand what the user actually wants:

open-ended discussion ("let's think through X")?

If the question is ambiguous, make a reasonable interpretation and proceed — you can clarify inline

as you answer.

Step 2 — Mine the knowledge base

Search efficiently. Start broad, narrow as needed:

# Check for relevant topic maps (fastest orientation)
ls docs/maps/

# Check tags for the topic area
ls docs/tags/

# Full-text search for keywords
grep -ri "keyword" docs/ -l

# Read a tag index to find related entries
cat docs/tags/<slug>.md

Read the most relevant files. For a focused question, 2–5 entries is usually enough. For a broad

topic, read the map file first — it gives the quickest overview and links to key entries.

As you read, track:

Step 3 — Answer from the KB

Compose your answer from what you found. Keep it conversational:

Don't pad. A sharp 3-paragraph answer is better than a bloated 10-paragraph one. If the KB

has a lot of depth, offer to go deeper on a specific facet rather than dumping everything at once.

Step 4 — Surface gaps and offer to enrich

After answering, briefly note what's missing if it's relevant to the user's question:

"The KB doesn't have much on [aspect]. Want me to search the web and add entries for it?"

Only offer this when the gap is meaningful. Don't prompt for web research if the KB already

answered the question well.

If the user says yes, move to Step 5.

Step 5 — Web research and KB enrichment (only if user approves)

Search the web to fill the gaps. For each significant finding:

  1. Use keine-update-entries to create a new KB entry if the knowledge is worth keeping
  2. If several new entries form a coherent topic, consider updating or creating a map with

keine-update-maps

  1. After creating entries, run tag maintenance scripts/maintain_tags.py
  2. Then return to the conversation and incorporate the new knowledge into your answer

Commit new entries:

git add docs/ docs/tags/
git commit -m "docs: add <topic>"

Tone and format

What this skill is NOT for

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.