Skip to content
Operations
Skill

/knowledge-base

Create and maintain a Markdown knowledge base that any AI agent can read, search, and update. Use when the user wants to start a knowledge base, add or update notes, organize docs/notes for an agent or LLM to consume, build an index of notes, or run a cleanup/maintenance pass on

From plugin
desktopcommandermcp
10k6 skills1 MCP

Claude Code

$ npx -y skills add wonderwhy-er/DesktopCommanderMCP --skill knowledge-base --agent claude-code

SKILL.md

knowledge-base.SKILL.md
name: knowledge-base
version: 0.1.0
audience: agent
description: >-
  Create and maintain a Markdown knowledge base that any AI agent can read,
  search, and update. Use when the user wants to start a knowledge base, add or
  update notes, organize docs/notes for an agent or LLM to consume, build an
  index of notes, or run a cleanup/maintenance pass on an existing MD knowledge
  base. Triggers include "knowledge base", "KB", "notes for the agent", "index
  of notes", "second brain", "docs for AI context", "add a note", "update the
  KB".

Knowledge Base (Markdown, agent-readable)

A knowledge base (KB) here is a folder of Markdown files designed so **any** AI agent can navigate it without a vector database: the agent reads one index file, picks the relevant notes by their descriptions, and opens only those. Keep the whole KB readable and the index lean — the index is what gets loaded into context, so it must be high-signal.

Apply the rules below when creating a new KB, adding/editing notes, or doing a maintenance pass. When the user's request is ambiguous (new KB vs. add note vs. cleanup), ask which one before acting.

Core principles (the "why")

1. **Index-first navigation.** The index is a map, not a container. An agent reads `INDEX.md`, selects notes by their one-line descriptions, then opens only those files. No note is "in" the KB unless it's registered in the index. 2. **Atomicity.** One topic per note. If a title needs an "and", it's probably two notes. Atomic notes are easier to find, link, and reuse. 3. **Stable IDs.** Every note has a permanent ID that never changes and is never reused, so links survive renames and moves. 4. **Linked with reason.** When two notes connect, state *why* (prerequisite, supports, contrasts, see-also). Connections carry as much value as the notes. 5. **Lean instructions.** Keep `INDEX.md` instructions short and high-signal — it competes for the agent's context budget. Bodies load on demand. 6. **Structured for retrieval.** Clear H1 title and H2/H3 sections so an agent can grab the relevant slice of a note, not the whole thing.

Folder structure (nested by topic)

knowledge-base/
  INDEX.md                 # entry point: instructions + full note registry
  topics/
    <topic>/
      _topic.md            # topic map: what this topic covers + its notes
      <slug>.md            # one atomic note
  assets/                  # images / attachments referenced by notes
  • Topic folders are short, lowercase nouns (`auth`, `billing`, `deploys`).
  • `_topic.md` is the topic-level map of content (MOC): a short intro plus links

to every note in that topic. It is a convenience view; `INDEX.md` remains the source of truth.

Naming rules

  • Lowercase **kebab-case**, predictable and greppable: `topics/auth/session-tokens.md`.
  • No spaces, no uppercase, no dates in filenames (dates live in frontmatter).
  • The filename slug should match the note's `id` slug portion.

Required frontmatter (every note)

---
id: 20260618-session-tokens     # ID scheme: YYYYMMDD-slug. Stable. Never reuse or change.
title: Session tokens           # human title, also the note's H1
tags: [auth, security]          # only tags from the controlled list in INDEX.md
created: 2026-06-18
updated: 2026-06-18
related: [20260618-auth-flow]    # IDs of linked notes
summary: One scannable sentence describing what this note covers.
---
  • `id`: `YYYYMMDD-slug`. Sortable, readable, stable. Different-titled same-day

notes differ by slug; if two same-day notes would collide on the same slug, append `-2`, `-3`, … (check the `INDEX.md` registry before assigning). Once assigned, the id is permanent.

  • `summary`: this exact sentence is what goes in the index registry — write it to

help an agent decide whether to open the note.

  • `updated`: bump it whenever the body changes.

Note body shape

# Session tokens

> Summary: One sentence (mirrors frontmatter summary).

## Context
Why this note exists / when it applies.

## Details
The actual content, in short H2/H3 sections.

## Related
- [Auth flow](auth-flow.md) — prerequisite: tokens are issued during the auth flow.
- [Rate limiting](../api/rate-limiting.md) — see-also: tokens carry the rate-limit key.
  • Use **relative links** between notes and annotate the relationship in a phrase.
  • Every link target should also appear in the note's `related` frontmatter.

INDEX.md (the single source of truth)

`INDEX.md` has two parts: operating instructions for agents, and the registry.

# Knowledge Base — Index

## How to use this KB (for agents)
1. Read this index first. Pick notes by their descriptions; open only those.
2. To answer a question, prefer opening 1–3 specific notes over scanning everything.
3. Cite the note `id` when you use information from it.

## How to update this KB (for agents)
- New idea → create a new note (atomic). Same idea changed → edit the note in place and bump `updated`.
- Any create / rename / delete MUST update this registry and the topic's `_topic.md` in the same change.
- Use only tags from the controlled vocabulary below; add a new tag here before using it.

## Controlled tags
`auth`, `security`, `billing`, `api`, `ops`   <!-- extend deliberately -->

## Registry
### auth
- `20260618-auth-flow` — **Authentication flow** — `topics/auth/auth-flow.md` — How a user session is established end to end.
- `20260618-session-tokens` — **Session tokens** — `topics/auth/session-tokens.md` — Token format, lifetime, and rotation.

### billing
- `20260618-invoicing` — **Invoicing** — `topics/billing/invoicing.md` — How invoices are generated and sent.

Registry line format: `` `id` — **Title** — `path` — one-line description.``

_topic.md (topic map)

# Auth

Notes covering authentication, sessions, and access control.

- [Authentication flow](auth-flow.md) — how a session is established.
- [Session tokens](session-tokens.md)
Read more
@wonderwhy-er
Ships withdesktopcommandermcp

This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities

10k6 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
10.4k
Star history of wonderwhy-er/DesktopCommanderMCP on GitHub, a chart by star-history.com

Other skills on desktopcommandermcp.

More skills from other plugins.

diagnose-crash

diagnose-crash

Diagnose why a program crashed on this machine, from a systemd-coredump core dump. Use when a process has segfaulted, aborted, or…

omarchy8d47k
@basecamp@basecampInstall Skill
firewall-auditor

firewall-auditor

Audit UniFi firewall policies for conflicts, redundancies, security gaps, and best practices. Use when asked to review firewall…

unifi-mcp5d1.1k
@sirkirby@sirkirbyInstall Skill
add-custom-domain

add-custom-domain

Add a custom domain to a Temps project and provision an automatic SSL/TLS certificate via Let's Encrypt, driven entirely from the…

temps4d934
@gotempsh@gotempshInstall Skill
alert-analysis

alert-analysis

Investigate a specific Elastic Security detection alert: gather context, assess entity risk, classify the threat, document…

@elastic@elasticInstall Skill

Questions about knowledge-base.

Which coding agents can use knowledge-base?
knowledge-base installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.