Package skills into web-compatible bundles. Converts any skill directory into a single .txt file containing all resources, making it usable in web-based AI chatbots...
Package skills into web-compatible text bundles for use in external AI chatbots.
This skill converts any skill directory into a single .txt file containing all resources (SKILL.md, scripts, references, templates, assets) in a structured format that can be used in web-based AI environments where file system access is limited.
/skill-web-bundle <skill-name>
Example:
/skill-web-bundle track-design
/skill-web-bundle skill-creator
Self-reference check: Ensure target skill is not skill-web-bundle itself
skill-web-bundle, show error: "❌ 错误:不能打包skill-web-bundle自己"Skill existence check: Verify the skill directory exists at .claude/skills/<skill-name>
Skill structure validation: Verify the skill follows standard directory structure
SKILL.md file must existname and description fieldsIf scripts/ directory exists and contains files:
⚠️ 警告:检测到scripts脚本文件
在web环境中可能无法正常执行skill功能。
确定是否要继续web bundle打包?(y/n)
Run the bundling script:
python3 .claude/skills/skill-web-bundle/scripts/bundle_skill.py \
--skill-path .claude/skills/<skill-name> \
--output .claude/skills/skill-web-bundle/assets/
The script will:
Display success message:
✅ Web bundle打包成功!
📦 产物路径: .claude/skills/skill-web-bundle/assets/<skill-name>.txt
💡 该文件可直接复制到任何web端AI聊天机器人中使用
The generated .txt file contains:
Each file is wrapped with delimiters:
==================== START: skills/<skill-name>/<path>/<filename> ====================
[file content]
==================== END: skills/<skill-name>/<path>/<filename> ====================
skill-web-bundle itselfname and description in frontmatterscripts/bundle_skill.py - Python script for validation and bundlingtemplates/web_bundle_template.txt - Template for generated bundlesassets/ - Where generated bundles are stored