How this command is triggered — by the user, by Claude, or both
Slash command
/mb:sortThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Sort and Clean MindBase Current date: !`date +%Y-%m-%d` ## Resolve MindBase Path First, read `~/.claude/plugins/mindbase/config.json` to get the `mindbase_path`. If the file does not exist, tell the user to run `/kb:setup` first and STOP. ## Your Task Perform a health check and cleanup of the MindBase knowledge base. ## Process ### Step 1: Scan All Entries Read all .md files across 00_Inbox/, 01_Projects/, 02_Areas/, 03_Resources/, 04_Archive/ directories. For each entry, check: - Frontmatter is complete and valid (title, para, tags, created, source, confidence) - File is in the c...
Current date: !date +%Y-%m-%d
First, read ~/.claude/plugins/mindbase/config.json to get the mindbase_path. If the file does not exist, tell the user to run /kb:setup first and STOP.
Perform a health check and cleanup of the MindBase knowledge base.
Read all .md files across 00_Inbox/, 01_Projects/, 02_Areas/, 03_Resources/, 04_Archive/ directories. For each entry, check:
para field)Report findings to the user:
MindBase Health Check:
Total entries: N
Issues found:
- [x] 2 entries with missing frontmatter fields
- [x] 1 entry in wrong PARA category
- [x] 3 broken wikilinks
- [x] 2 potential duplicates (similar titles/content)
- [x] 5 items in Inbox that could be categorized
- [x] Indexes out of sync
No issues:
- All filenames follow convention
- All tags are consistent
For each issue category, propose fixes and ask user to approve:
After all fixes:
_index.md from scratch by scanning the directoryindex.md with accurate counts and listingsnpx claudepluginhub foresx/mindbase-plugin --plugin mb