wonderwhy-er/desktopcommandermcp/knowledge-base
Claude Code and agent skill by wonderwhy-er/desktopcommandermcp
- community
Checking that the SKILL.md file is still in the repository.
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".
Install
npx vskill@latest install wonderwhy-er/desktopcommandermcp/knowledge-baseSKILL.md
The same SKILL.md was published earlier as wonderwhy-er/desktopcommandermcp/knowledge-base.
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")
- 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.
- 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.
- Stable IDs. Every note has a permanent ID that never changes and is never
reused, so links survive renames and moves.
- Linked with reason. When two notes connect, state why (prerequisite,
supports, contrasts, see-also). Connections carry as much value as the notes.
- Lean instructions. Keep
INDEX.mdinstructions short and high-signal —
it competes for the agent's context budget. Bodies load on demand.
- 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)
- Topic folders are short, lowercase nouns (
auth,billing,deploys). _topic.mdis 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
idslug portion.
Required frontmatter (every note)
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
- Use relative links between notes and annotate the relationship in a phrase.
- Every link target should also appear in the note's
relatedfrontmatter.
INDEX.md (the single source of truth)
INDEX.md has two parts: operating instructions for agents, and the registry.
Registry line format: ` id — **Title** — path — one-line description.`
_topic.md (topic map)
Workflows
Create a new KB
create_directoryfor the folder structure above.write_fileINDEX.mdwith the instructions block, an empty controlled-tag
list, and an empty registry.
- Add the first topic folder +
_topic.md, then the first note (each viawrite_file). - Register the note in
INDEX.mdand link it from_topic.md—edit_block
both so you touch only the changed lines.
Add a note
- Pick or create the topic folder (
list_directoryto see what's there). write_filethe note (kebab-case slug) with full frontmatter and the body shape.- Add cross-links (and mirror them in
related). - Register it in
INDEX.mdand link it in_topic.mdwithedit_block— same change.
Update a note
- Same idea, new information →
edit_blockthe note in place, bumpupdated, and
edit_block the registry line if the scope changed.
- Genuinely new idea →
write_filea new atomic note instead of expanding this one.
Maintenance pass (run on demand)
Use start_search (ripgrep) for text scans and get_file_info / list_directory for existence checks — together they make this tractable at scale:
- Orphans (no inbound links — outbound doesn't matter):
start_searchthe
KB for the note's id and filename slug, then discount the self-matches that always exist — the note's own file, INDEX.md, and its _topic.md. Anything left is a genuine inbound reference; nothing left = orphan, so link it from a relevant note/MOC or archive it.
- Broken links / drift: don't infer resolution from a text hit — a string
existing doesn't mean the file does. Confirm each registry path and related: target exists with get_file_info (or list_directory per topic), and that every file on disk is registered. Use a text compare only for the titles/summaries-out-of-sync half.
- Non-atomic notes: notes that grew to cover multiple topics → split them.
- Duplicates: near-identical notes → merge, keep one
id, redirect links. - Tag sprawl: read the controlled list from
INDEX.md, thenstart_search
the frontmatter tags: lines and flag any tag not on the list → reconcile. Pull candidates in bulk with read_multiple_files, apply fixes with edit_block, and report what changed.
Checklist before finishing any KB edit
- [ ] Every new/changed note has complete, valid frontmatter.
- [ ]
idis unique and unchanged; filename slug matches the id slug. - [ ] All links resolve and are mirrored in
related. - [ ]
INDEX.mdregistry and the topic_topic.mdreflect the change. - [ ] Tags are from the controlled vocabulary.
- [ ]
updatedbumped on every changed note.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/knowledge-base/SKILL.md
Popularity
- Repository stars
- 9,136
- Repository forks
- 1,091
- 7-day trend score
- 46
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wonderwhy-er/desktopcommandermcp/knowledge-base)