@irsv67/mychat
v1.0.1
Published
CLI tool for managing Claude Code skills and worklogs — publish, install, and share .md document packages
Maintainers
Readme
mychat
CLI 工具,用于管理 Claude Code 的 skills 和 worklog 文档的发布与安装。
安装
npm install -g mychat或者本地开发:
git clone <repo> && cd mychat
npm link首次使用
# 配置服务端地址
mychat config set registry https://your-server.com
# 配置认证 token(如果服务端开启了认证)
mychat config set token your-secret-token命令
publish — 发布
# 交互式发布(引导填写包名、版本等)
mychat publish ./my-skill
# 非交互式,跳过确认
mychat publish ./my-skill --name my-skill --type skills --ver 1.0.0 --desc "描述" --yesinstall — 安装
# 安装最新版本
mychat install table-drag-scroll
# 安装指定版本
mychat install table-drag-scroll --ver 1.0.0
# 安装 worklog 类型
mychat install my-worklog -t worklog安装路径:
- skills →
.claude/skills/<name>/ - worklog →
docs/worklog/<name>/
list — 列表
# 列出所有包
mychat list
# 按类型筛选
mychat list -t skillsinfo — 详情
mychat info table-drag-scrollunpublish — 删除
# 交互式选择版本删除
mychat unpublish table-drag-scroll
# 指定版本
mychat unpublish table-drag-scroll --ver 1.0.0config — 配置
# 查看所有配置
mychat config
# 设置配置
mychat config set registry https://your-server.com
mychat config set token your-token
# 查看单项
mychat config get registry配置文件
配置存储在 ~/.claude/.mychatrc.json:
{
"registry": "https://your-server.com",
"token": "your-token"
}项目结构
bin/
cli.js # CLI 入口
src/
commands/
install.js
publish.js
list.js
info.js
unpublish.js
config.js
utils/
api.js # 服务端 API 调用
tar.js # 打包/解包
config.js # 配置读写
constants.js