keen-skills-cli
v1.0.0
Published
A CLI tool to download and manage keen skills
Maintainers
Readme
keen-skills-cli
A CLI tool to download and manage keen skills from remote sources.
功能 Features
- 从远程源(GitHub、CDN 等)下载技能到桌面 - Download skills from remote sources (GitHub, CDN, etc.) to your desktop
- 列出可用技能 - List available skills
- 易于使用的命令行界面 - Easy-to-use command-line interface
- 发布技能到 npm 以便轻松分发 - Publish skills to npm for easy distribution
安装 Installation
从 npm From npm
npm install -g keen-skills-cli从源代码 From source
克隆仓库:Clone the repository:
git clone <repository-url> cd keen-skills-cli安装依赖:Install dependencies:
npm install链接 CLI 工具:Link the CLI tool:
npm link
使用 Usage
下载技能 Download a skill
keen-skills download <skill-name>选项:
-o, --output <path>: 指定输出目录(默认:桌面)
Options:
-o, --output <path>: Specify output directory (default: Desktop)
示例:
keen-skills download conversation-managerExample:
keen-skills download conversation-manager安装技能 Install a skill
keen-skills install <skill-name>选项:
-o, --output <path>: 指定输出目录(默认:桌面)
Options:
-o, --output <path>: Specify output directory (default: Desktop)
示例:
keen-skills install conversation-managerExample:
keen-skills install conversation-manager列出可用技能 List available skills
keen-skills list显示帮助 Show help
keen-skills help可用技能 Available Skills
- conversation-manager: 会话压缩、分主题记忆、混合检索 - Conversation compression, topic-based memory, hybrid retrieval
- question-optimizer: 问题优化 - Question optimization
开发 Development
项目结构 Project Structure
keen-skills-cli/
├── bin/ # CLI 入口点
│ └── keen-skills.js # 主 CLI 脚本
├── lib/ # 核心功能
│ └── download.js # 下载逻辑
├── package.json # 包配置
└── README.md # 文档keen-skills-cli/
├── bin/ # CLI entry point
│ └── keen-skills.js # Main CLI script
├── lib/ # Core functionality
│ └── download.js # Download logic
├── package.json # Package configuration
└── README.md # Documentation发布到 npm Publishing to npm
- 更新
package.json中的版本 - Update the version inpackage.json - 运行发布脚本: - Run the publish script:
npm run publish
添加新技能 Adding new skills
- 在项目根目录的
.keen/skills目录中添加技能 - Add the skill to the.keen/skillsdirectory in the project root - 更新
lib/download.js中的listSkills函数以包含新技能 - Update thelistSkillsfunction inlib/download.jsto include the new skill - 将更新后的 CLI 工具发布到 npm - Publish the updated CLI tool to npm
远程源配置 Remote source configuration
默认情况下,CLI 工具使用本地技能源。要使用真实的远程源: By default, the CLI tool uses a local skills source. To use a real remote source:
- 更新
lib/download.js中的LOCAL_SKILLS_DIR以指向你的实际远程源 - Update theLOCAL_SKILLS_DIRinlib/download.jsto point to your actual remote source - 在
downloadSkill函数中实现远程下载逻辑 - Implement the remote download logic in thedownloadSkillfunction
许可证 License
MIT
