npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

koishi-plugin-chatluna-toolbox

v0.0.13

Published

为 ChatLuna 提供更多原生工具、XML 工具与变量,仅支持 onebot 平台。

Readme

koishi-plugin-chatluna-toolbox

为 ChatLuna 提供可组合的工具能力,当前包含三类功能:

  • 原生工具(Native Tools)
  • XML 工具(XML Actions)
  • 变量扩展(Variables)

插件目标是把常用的群聊动作能力(如戳一戳、消息表情、撤回消息)和上下文变量能力拆分为可配置模块,便于在 Koishi + ChatLuna 场景中按需启用。

功能概览

1) 原生工具

  • 戳一戳
  • 设置自身资料
  • 设置群名片
  • 给消息添加表情
  • 撤回消息

2) XML 工具

支持从模型输出中解析 XML 动作标签并执行:

  • <poke id="..."/>
  • <emoji message_id="..." emoji_id="..."/>
  • <delete message_id="..."/>

3) 变量扩展

  • userInfo
  • botInfo
  • groupInfo
  • random

确保你的 Koishi 环境已安装并启用:

  • koishi-plugin-chatluna
  • (可选)koishi-plugin-chatluna-character

快速上手

1. 在 Koishi 配置中启用插件

在 Koishi 控制台或配置文件中添加并启用 chatluna-toolbox

2. 打开需要的能力开关

建议先最小化启用:

  • 开启一个 OneBot 协议(NapCat 或 LLBot)
  • 按需开启原生工具
  • 按需开启 XML 工具
  • 按需配置变量项

3. 配置 XML 参考提示词

XML 工具 分组中找到 参考提示词,可直接使用默认模板,或根据你的 Bot 规则进行调整。

4. 构建

npm run build

开发命令

npm run typecheck
npm run build
npm run test

仓库地址

  • https://github.com/Sor85/koishi-plugin-chatluna-toolbox