skill-packager
БесплатноБез исполняемых скриптовНе проверенPackage skills into uploadable ZIP files for Claude. Use after skill-builder/skill-enhancer to create final upload package.
от jmagly★ 233 звезды на GitHubОб этом скилле
Skill Packager Skill
Purpose
Single responsibility: Package completed skill directories into ZIP files ready for upload to Claude AI. (BP-4)
Grounding Checkpoint (Archetype 1 Mitigation)
Before executing, VERIFY:
- Skill directory exists with required structure
- SKILL.md is present and non-empty
- At least one reference file exists
- No sensitive data in skill directory
- Output path for ZIP is writable
DO NOT package without validating skill structure.
Uncertainty Escalation (Archetype 2 Mitigation)
ASK USER instead of guessing when:
- Skill structure incomplete - proceed anyway?
- Large files detected - include or exclude?
- Sensitive patterns found (API keys, passwords)
- Multiple skill directories - which to package?
NEVER package potentially sensitive content without review.
Context Scope (Archetype 3 Mitigation)
| Context Type | Included | Excluded |
|---|---|---|
| RELEVANT | Skill directory contents, package config | Other skills |
| PERIPHERAL | Package size estimates | Source data |
| DISTRACTOR | Build process details | Scraping history |
Workflow Steps
Step 1: Validate Skill Structure (Grounding)
# Required structure check
test -f output/<skill-name>/SKILL.md || echo "ERROR: Missing SKILL.md"
test -d output/<skill-name>/references || echo "ERROR: Missing references/"
# Check SKILL.md is not empty
test -s output/<skill-name>/SKILL.md || echo "ERROR: SKILL.md is empty"
# Check for at least one reference
ls output/<skill-name>/references/*.md >/dev/null 2>&1 || echo "ERROR: No reference files"
Step 2: Security Check
# Scan for potential sensitive data
grep -rE "(api[_-]?key|password|secret|token|credential)" output/<skill-name>/ && \
echo "WARNING: Potential sensitive data found - review before packaging"
# Check for large files
find output/<skill-name>/ -size +10M -exec echo "WARNING: Large file: {}" \;
# Check for binary files
find output/<skill-name>/ -type f ! -name "*.md" ! -name "*.json" ! -name "*.txt" \
-exec file {} \; | grep -v "text" && echo "WARNING: Non-text files found"
Step 3: Calculate Package Size
# Estimate final size
du -sh output/<skill-name>/
# Count files
find output/<skill-name>/ -type f | wc -l
# List file types
find output/<skill-name>/ -type f -name "*.*" | sed 's/.*\.//' | sort | uniq -c
Step 4: Create Package
Option A: With skill-seekers
# Standard packaging
skill-seekers package output/<skill-name>/
# With upload (if API key set)
skill-seekers package output/<skill-name>/ --upload
Option B: Manual packaging
# Navigate to output directory
cd output/
# Create ZIP (exclude backups and temp files)
zip -r <skill-name>.zip <skill-name>/ \
-x "*.backup" \
-x "*.tmp" \
-x ".DS_Store" \
-x "__MACOSX/*"
# Verify ZIP contents
unzip -l <skill-name>.zip
Step 5: Validate Package
# Check ZIP integrity
unzip -t output/<skill-name>.zip
# Verify required files are included
unzip -l output/<skill-name>.zip | grep "SKILL.md"
unzip -l output/<skill-name>.zip | grep "references/"
# Check size is reasonable
ls -lh output/<skill-name>.zip
Recovery Protocol (Archetype 4 Mitigation)
On error:
- PAUSE - Don't overwrite existing ZIP
- DIAGNOSE - Check error type:
Missing files→ Run skill-builder firstZIP error→ Check disk space, permissionsLarge size→ Exclude unnecessary filesSensitive data→ Clean files, re-package
- ADAPT - Adjust package configuration
- RETRY - With corrected settings (max 3 attempts)
- ESCALATE - Report packaging issues to user
Checkpoint Support
State saved to: .aiwg/working/checkpoints/skill-packager/
checkpoints/skill-packager/
├── validation_results.json # Pre-package validation
├── security_scan.json # Security check results
├── package_manifest.json # Files included
└── package_log.txt # Packaging process log
Package Manifest
Generate manifest for verification:
{
"skill_name": "myskill",
"packaged_at": "2025-01-15T10:30:00Z",
"files": [
{"path": "SKILL.md", "size": 15234, "hash": "abc123..."},
{"path": "references/index.md", "size": 2045, "hash": "def456..."},
{"path": "references/api.md", "size": 45678, "hash": "ghi789..."}
],
"total_files": 5,
"total_size": 62957,
"package_size": 18234
}
Upload Options
Option 1: Automatic Upload (API)
export ANTHROPIC_API_KEY=sk-ant-...
skill-seekers package output/<skill-name>/ --upload
Option 2: Manual Upload
- Package creates
output/<skill-name>.zip - Open output folder automatically
- Go to https://claude.ai/skills
- Click "Upload Skill"
- Select ZIP file
- Done!
Option 3: Via Claude Code (MCP)
"Package and upload the myskill skill"
Exclusion Patterns
Default exclusions:
*.backup
*.tmp
*.log
.DS_Store
__MACOSX/
.git
Установить skill-packager в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashFAQ
Что делает скилл skill-packager?
Package skills into uploadable ZIP files for Claude. Use after skill-builder/skill-enhancer to create final upload package.
Как установить скилл skill-packager?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл skill-packager запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic