Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计提醒

brain-expert大脑专家

Agent Skill

brain-expert 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

699

周安装

28

GitHub Stars

20

下载量

226
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:brain-expert(大脑专家)
来源仓库:https://github.com/desplega-ai/ai-toolbox
仓库路径:skills/brain-expert
安装命令:
npx skills add https://github.com/desplega-ai/ai-toolbox --skill brain-expert
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/desplega-ai/ai-toolbox --skill brain-expert

简介

brain-expert 是个人知识管理工具 brain CLI 的专家级助手,支持语义化笔记存储与检索。

  • 适用于快速记录想法、建立知识关联及跨会话信息延续的场景。
  • 可通过自然语言指令触发记忆提取,增强 Agent 对历史上下文的理解能力。
  • 首次使用前需完成 CLI 安装与路径配置,确保终端环境能正确调用命令。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Brain CLI Expert

You are an expert on the brain CLI - a personal knowledge management tool with hierarchical Markdown files, SQLite storage, and semantic search.

Quick Reference

CommandDescription
brain init [path]Initialize brain directory
brain add "text"Add timestamped note to today's file
brain add -f file.md "text"Add to specific file
brain add --ref /path "text"Add note referencing external file
brain new "path/name"Create new entry, opens in editor
brain listShow recent entries
brain list --treeShow directory structure
brain show <path>Display entry content
brain edit <path>Open entry in editor
brain delete <path>Delete entry (file + database)
brain rm <path>Alias for delete
brain syncSync files to database
brain sync --forceRe-embed everything
brain search "query"Semantic search (default)
brain search --exact "term"Full-text search (FTS5)
brain config showDisplay configuration
brain todo add "text"Create a new todo
brain todo listList open todos
brain todo done <id>Mark todo as complete
brain todo cancel <id>Cancel a todo
brain todo edit <id>Edit todo in editor
brain todo rm <id>Delete todo permanently
brain cron installInstall auto-sync cron job
brain cron statusCheck auto-sync status
brain cron removeRemove auto-sync cron job

File Structure

Brain organizes files hierarchically:

~/Documents/brain/
├── 2026/
│   └── 01/
│       ├── 22.md          # Daily journal (timestamped entries)
│       └── 23.md
├── projects/
│   ├── acme.md            # Named entries (by topic)
│   └── startup-ideas.md
├── notes/
│   └── meeting-notes.md
└── .brain.db              # SQLite database (gitignored)

Entry Formats

Daily Files (YYYY/MM/DD.md)

Auto-created when using brain add:

[2026-01-23-143022]
First thought of the day

[2026-01-23-153045]
Another thought with more context

Named Files

Created with brain new:

# Project Title

Content organized however you like.
Can include todos: - [ ] Task here

Search

Semantic Search (default)

Uses OpenAI embeddings for meaning-based search:

brain search "database optimization strategies"

Returns results ranked by semantic similarity.

Full-Text Search (--exact)

Uses SQLite FTS5 for literal text matching:

brain search --exact "PostgreSQL"

Sync Required

Before searching, ensure database is synced:

brain sync

The sync process:

  1. Scans all .md files
  2. Chunks content (by timestamp blocks or headers)
  3. Generates embeddings for new/changed chunks
  4. Updates FTS5 index

Use brain sync --force to re-embed everything.

Configuration

Config stored at ~/.brain.json:

{
  "path": "/Users/taras/Documents/brain",
  "editor": "code",
  "embeddingModel": "text-embedding-3-small"
}

Manage with:

  • brain config show - view config
  • brain config set editor vim - update value

Common Workflows

Quick Capture

brain add "Idea: could use SQLite for local caching"

Reference External Code

brain add --ref ./src/api/auth.ts "Need to add rate limiting here"

Find Related Notes

brain search "authentication patterns"

Create Project Notes

brain new "projects/new-feature"
# Opens editor with # New Feature header

Delete Entries

brain delete 2026/01/22           # Delete with confirmation
brain rm notes/old-project        # Alias, same behavior
brain rm --force notes/temp       # Skip confirmation
brain rm --db-only notes/draft    # Keep file, remove from database

Todo Management

# Add todos with options
brain todo add "Review PR"
brain todo add -p myproject "Ship feature"
brain todo add -d tomorrow "Deploy to prod"
brain todo add -p work -d "next week" "Plan sprint"

# List and filter
brain todo list                    # Open todos
brain todo list --all              # Include done/cancelled
brain todo list -p myproject       # Filter by project

# Complete and manage
brain todo done 1 2 3              # Mark multiple as done
brain todo cancel 1                # Cancel a todo
brain todo edit 1                  # Edit in $EDITOR
brain todo rm 1                    # Delete permanently

Automatic Sync

# Set up background sync (runs every N minutes)
brain cron install                 # Default: 5 minutes
brain cron install --interval 15   # Custom interval

# Check and manage
brain cron status                  # "Active (every 5 minutes)"
brain cron remove                  # Stop auto-sync

Environment

  • OPENAI_API_KEY: Required for semantic search embeddings
  • EDITOR: Fallback if config.editor not set

Troubleshooting

IssueSolution
Search returns nothingRun brain sync first
Embedding errorsCheck OPENAI_API_KEY is set
Command not foundRun bun link in brain directory
Wrong brain pathCheck brain config show

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.31%
按下载量换算62

windsurf

22.67%
按下载量换算51

OpenCode

17.15%
按下载量换算39

Codex

10.8%
按下载量换算24

Antigravity

7.76%
按下载量换算18

Gemini CLI

3.29%
按下载量换算7

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills