Skip to content
Back to skills

Thread Manager

ASecurity

Thread Manager 为 Claude Code 提供多线程对话管理功能,让你可以并行处理多个任务,保持上下文隔离和专注。

  • 428 stars
  • 0 votes
  • 0 copies
  • 65 views
  • Added December 19, 2025
ai-agentssqlnodegit

Works with

  • claude code
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 17 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add peterfei/ai-agent-team --skill thread-manager --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Thread Manager?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Thread Manager
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/peterfei-thread-manager/badge)](https://www.skillsdirectory.com/skills/peterfei-thread-manager)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Thread Manager Skill

Thread Manager 为 Claude Code 提供多线程对话管理功能,让你可以并行处理多个任务,保持上下文隔离和专注。

## 功能特性

- **多线程管理**: 创建、切换、更新和删除对话线程。
- **上下文隔离**: 每个线程拥有独立的消息历史和上下文。
- **文件变更追踪**: 自动记录每个线程中修改的文件和代码行数统计。
- **持久化存储**: 使用 SQLite 本地存储所有数据,安全可靠。
- **Git 集成**: 自动检测文件变更详情。

## 安装

本 Skill 通常作为 `ai-agent-team` 项目的一部分安装。如果需要单独安装:

1. 确保已安装 Node.js 18+。
2. 运行 `npm install` 安装依赖。
3. 运行 `npm run build` 编译代码。
4. 将本 Skill 添加到 Claude Code 配置文件 (`config.json`) 中。

## MCP 工具

| 工具名称 | 描述 |
|---------|------|
| `create_thread` | 创建新线程 |
| `list_threads` | 列出所有线程 |
| `switch_thread` | 切换到指定线程 |
| `get_thread` | 获取线程详情 |
| `update_thread` | 更新线程信息 |
| `delete_thread` | 删除线程 |
| `get_current_thread` | 获取当前活跃线程 |
| `track_file_change` | 记录文件变更 (支持自动检测) |
| `search_messages` | 基于语义搜索历史消息 (支持自然语言) |

## Slash Commands

- `/thread new "Title"`: 创建新线程
- `/threads`: 列出所有线程
- `/thread <id>`: 切换线程
- `/thread info`: 查看当前线程详情
- `/memory search "query"`: 搜索历史消息 (需要调用 search_messages)

## 数据存储

数据存储在 `~/.claude/threads/threads.db` (默认) 或环境变量 `THREADS_DB_PATH` 指定的位置。

Files in this skill

  • .claude/.threads/current-context.md648 B
  • .gitignore76 B
  • .npmignore138 B
  • CHANGELOG.md1.1 KB
  • README.md4.7 KB
  • SKILL.md1.7 KB
  • USAGE_GUIDE.md6.7 KB
  • docs/clt-aliases.md2.2 KB
  • find-module.js166 B
  • jest.config.js1.1 KB
  • models/Xenova/all-MiniLM-L6-v2/config.json650 B
  • models/Xenova/all-MiniLM-L6-v2/special_tokens_map.json125 B
  • models/Xenova/all-MiniLM-L6-v2/tokenizer_config.json366 B
  • package.json1.1 KB
  • scripts/download-model.js1.7 KB
  • scripts/migrate-embeddings.ts3.4 KB
  • src/core/embedding-service.ts4.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…