🧠

持久记忆与文档 RAG 助手平台

backboard · vv1.0.2
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
AI 增强 安全 A 级 作者 chrisk60331 公开目录收录
985 下载 471 安装 2.1k 收藏 14.1k 浏览

简介

Backboard.io 官方 SDK 封装技能,为 Claude 提供持久化记忆、多助手管理和文档 RAG 能力,需本地 Flask 后端支持。

原始描述

Integrate Backboard.io for assistants, threads, memories, and document RAG via a local backend on http://localhost:5100.

通过你的 Agent 添加

安装目录:backboard/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/backboard/
Codex CLI~/.codex/skills/backboard/
DeepSeek Harness~/.agents/skills/backboard/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Backboard Skill 是一个本地化的 AI 助手基础设施集成工具,通过 Flask 后端封装 Backboard.io SDK,提供完整的助手生命周期管理能力。核心功能包括:

助手管理:创建、列举、查询和删除具有独立系统提示词的 AI 助手,支持多助手并行工作 线程对话:为每个助手创建隔离的对话线程,维护完整的对话历史上下文 持久记忆:跨会话存储用户偏好、事实和上下文信息,支持 CRUD 操作和元数据标注 文档 RAG:支持 PDF、DOCX、XLSX、PPTX、TXT、CSV、MD 及代码文件的上传与向量化索引,实现基于私有文档的检索增强生成

使用流程需先启动本地后端(./start.sh,端口 5100),配置 BACKBOARD_API_KEY 环境变量后方可调用各项功能。

显著优点

  • 功能完整度高:涵盖助手、线程、记忆、文档四大模块,形成闭环的 AI 应用开发基础设施
  • 数据主权友好:本地 Flask 后端架构,API 密钥和文档数据先经过本地处理再与云端交互
  • 多格式文档支持:覆盖 Office 套件、代码文件、文本等 12+ 种格式,满足知识库构建需求
  • 记忆模式灵活:提供 Auto/Readonly/off 三种记忆模式,适配不同隐私和性能场景
  • 环境变量凭证管理:避免硬编码密钥,符合安全基线要求

潜在缺点与局限性

  • 外部 SDK 依赖风险:核心功能依赖未独立审计的 backboard-sdk>=1.4.11,供应链安全性不可控
  • T3 来源可信度:维护者为个人开发者(chrisk60331),项目持续性、安全响应速度存在不确定性
  • 本地部署门槛:必须手动启动后端服务,增加了使用复杂度和运维负担
  • 文件上传验证薄弱:仅依赖扩展名白名单,缺乏 MIME 检测和内容扫描,存在文件伪装攻击风险
  • 网络传输依赖 SDK 加密:敏感数据加密细节由第三方 SDK 控制,透明度不足
  • 无内置限流机制:后端缺乏速率限制,存在 API 密钥暴力破解和滥用的潜在风险

适合人群

  • 需要快速搭建带记忆和 RAG 能力的 AI 应用开发者
  • 希望将对话数据和文档索引托管在 Backboard.io 平台的团队
  • 具备基础运维能力、能自行审查依赖安全的技术用户
  • 对数据隐私有要求但可接受第三方云服务的中小项目

不适合:对供应链安全有极高要求的企业级场景、无法自行部署后端的技术小白、需要完全离线运行的环境

常规风险

风险类型 等级 说明
供应链攻击 中 SDK 被投毒或存在漏洞将直接影响数据安全
API 密钥泄露 中 环境变量管理不善或后端被入侵可导致账户滥用
文件上传攻击 低 扩展名伪装可能绕过当前验证机制
服务可用性 中 个人维护项目存在弃坑或响应延迟风险

建议措施:固定 SDK 版本、审查源码后使用、添加后端速率限制、定期关注项目更新动态。

技能正文


name: backboard description: Integrate Backboard.io for assistants, threads, memories, and document RAG via a local backend on http://localhost:5100.

Tools

This skill connects to a local Flask backend that wraps the Backboard SDK. The backend must be running on http://localhost:5100.

backboard_create_assistant

Create a new Backboard assistant with a name and system prompt.

Parameters:

  • name (string, required): Name of the assistant
  • system_prompt (string, required): System instructions for the assistant

Example:

{
  "name": "Support Bot",
  "system_prompt": "You are a helpful customer support assistant."
}

backboard_list_assistants

List all available Backboard assistants.

Parameters: None

backboard_get_assistant

Get details of a specific assistant.

Parameters:

  • assistant_id (string, required): ID of the assistant

backboard_delete_assistant

Delete an assistant.

Parameters:

  • assistant_id (string, required): ID of the assistant to delete

backboard_create_thread

Create a new conversation thread for an assistant.

Parameters:

  • assistant_id (string, required): ID of the assistant to create thread for

backboard_list_threads

List all conversation threads, optionally filtered by assistant.

Parameters:

  • assistant_id (string, optional): Filter threads by assistant ID

backboard_get_thread

Get a thread with its message history.

Parameters:

  • thread_id (string, required): ID of the thread

backboard_send_message

Send a message to a thread and get a response.

Parameters:

  • thread_id (string, required): ID of the thread
  • content (string, required): Message content
  • memory (string, optional): Memory mode - "Auto", "Readonly", or "off" (default: "Auto")

backboard_add_memory

Store a memory for an assistant that persists across conversations.

Parameters:

  • assistant_id (string, required): ID of the assistant
  • content (string, required): Memory content to store
  • metadata (object, optional): Additional metadata for the memory

Example:

{
  "assistant_id": "asst_123",
  "content": "User prefers Python programming and dark mode interfaces",
  "metadata": {"category": "preferences"}
}

backboard_list_memories

List all memories for an assistant.

Parameters:

  • assistant_id (string, required): ID of the assistant

backboard_get_memory

Get a specific memory.

Parameters:

  • assistant_id (string, required): ID of the assistant
  • memory_id (string, required): ID of the memory

backboard_update_memory

Update an existing memory.

Parameters:

  • assistant_id (string, required): ID of the assistant
  • memory_id (string, required): ID of the memory
  • content (string, required): New content for the memory

backboard_delete_memory

Delete a memory.

Parameters:

  • assistant_id (string, required): ID of the assistant
  • memory_id (string, required): ID of the memory to delete

backboard_memory_stats

Get memory statistics for an assistant.

Parameters:

  • assistant_id (string, required): ID of the assistant

backboard_upload_document

Upload a document to an assistant or thread for RAG (Retrieval-Augmented Generation).

Parameters:

  • assistant_id (string, optional): ID of the assistant (use this OR thread_id)
  • thread_id (string, optional): ID of the thread (use this OR assistant_id)
  • file_path (string, required): Path to the document file

Supported file types: PDF, DOCX, XLSX, PPTX, TXT, CSV, MD, PY, JS, HTML, CSS, XML, JSON

backboard_list_documents

List documents for an assistant or thread.

Parameters:

  • assistant_id (string, optional): ID of the assistant
  • thread_id (string, optional): ID of the thread

backboard_document_status

Check the processing status of an uploaded document.

Parameters:

  • document_id (string, required): ID of the document

backboard_delete_document

Delete a document.

Parameters:

  • document_id (string, required): ID of the document to delete

Instructions

When the user asks about:

Memory Operations

  • "Remember that..." or "Store this..." → Use backboard_add_memory
  • "What do you remember about..." → Use backboard_list_memories or backboard_get_memory
  • "Forget..." or "Delete memory..." → Use backboard_delete_memory
  • "Update my preference..." → Use backboard_update_memory

Document Operations

  • "Upload this document" or "Index this file" → Use backboard_upload_document
  • "What documents do I have?" → Use backboard_list_documents
  • "Is my document ready?" → Use backboard_document_status

Assistant Management

  • "Create a new assistant" → Use backboard_create_assistant
  • "List my assistants" → Use backboard_list_assistants
  • "Delete assistant" → Use backboard_delete_assistant

Conversation Threading

  • "Start a new conversation" → Use backboard_create_thread
  • "Show conversation history" → Use backboard_get_thread
  • "Send message to thread" → Use backboard_send_message

General Guidelines

  1. Always confirm successful operations with the user
  2. When creating assistants, suggest meaningful names and system prompts
  3. For document uploads, verify the file type is supported before attempting
  4. When using memory, explain what information is being stored
  5. Thread IDs and assistant IDs should be stored/tracked for the user's context

Examples

Example 1: Store a User Preference

  • User: "Remember that I prefer dark mode and Python code examples"
  • Action: Call backboard_add_memory with content "User prefers dark mode interfaces and Python code examples" and metadata {"category": "preferences"}
  • Response: "I've stored your preferences. You prefer dark mode and Python code examples."

Example 2: Create an Assistant

  • User: "Create a code review assistant"
  • Action: Call backboard_create_assistant with name "Code Reviewer" and system_prompt "You are an expert code reviewer. Analyze code for bugs, performance issues, and best practices. Provide constructive feedback."
  • Response: "Created your Code Reviewer assistant (ID: asst_xxx). It's ready to review code and provide feedback."

Example 3: Upload and Query a Document

  • User: "Upload my project documentation and then tell me what it covers"
  • Action 1: Call backboard_upload_document with the file
  • Action 2: Wait for processing, check status with backboard_document_status
  • Action 3: Use backboard_send_message with memory="Auto" to query about the document
  • Response: "I've uploaded and indexed your documentation. Based on the content, it covers..."

Example 4: Start a Threaded Conversation

  • User: "Start a new conversation with my support assistant"
  • Action: Call backboard_create_thread with the assistant_id
  • Response: "Started a new conversation thread (ID: thread_xxx). You can now send messages to your support assistant."

Backend Setup

The skill requires a running backend server. To start:

  1. Set the BACKBOARD_API_KEY environment variable
  2. Navigate to the backend directory
  3. Run ./start.sh

The backend will be available at http://localhost:5100.

API Endpoints Reference

Endpoint Method Description
/health GET Health check
/assistants GET, POST List/create assistants
/assistants/{id} GET, PATCH, DELETE Get/update/delete assistant
/assistants/{id}/threads GET, POST List/create threads for assistant
/assistants/{id}/memory GET, POST List/add memories
/assistants/{id}/memory/{mid} GET, PATCH, DELETE Get/update/delete memory
/assistants/{id}/memory/stats GET Memory statistics
/assistants/{id}/documents GET, POST List/upload documents
/threads GET List all threads
/threads/{id} GET, DELETE Get/delete thread
/threads/{id}/messages POST Send message
/threads/{id}/documents GET, POST List/upload thread documents
/documents/{id}/status GET Document processing status
/documents/{id} DELETE Delete document

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

apibackenddatabasedata-analyticsproductivitycontent-mediadocsautomation

同类 Skill