بنقرة واحدة
otp-manager
OTP 28.3.1 management skill for Erlang/OTP installation, verification, and cleanup
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
OTP 28.3.1 management skill for Erlang/OTP installation, verification, and cleanup
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | otp-manager |
| version | 1.0.0 |
| description | OTP 28.3.1 management skill for Erlang/OTP installation, verification, and cleanup |
| author | erlmcp |
| commands | [{"name":"fetch-build","description":"Download and build OTP 28.3.1 from official sources","usage":"/otp-manager fetch-build"},{"name":"verify","description":"Check OTP version and compilation readiness","usage":"/otp-manager verify"},{"name":"clean","description":"Remove OTP build artifacts and cached files","usage":"/otp-manager clean"}] |
| preload | ["verifier","build-engineer"] |
| tags | ["otp","erlang","build","infrastructure"] |
Reusable skill for managing Erlang/OTP 28.3.1 in Claude Code Web environments.
Provides automated procedures for:
/otp-manager fetch-buildDownload and build OTP 28.3.1 from official Erlang Solutions packages.
Behavior:
Idempotency: Safe to run multiple times. Skips installation if OTP >= 28.3.1 already exists.
Error Handling:
Output:
✅ OTP 28.3.1 installed successfully
Version: 28.3.1
Location: /usr/lib/erlang
Time: 45s
Example:
/otp-manager fetch-build
# Downloads and installs OTP 28.3.1
# Returns: exit code 0 (success) | 1 (failure)
/otp-manager verifyCheck OTP version and verify compilation readiness.
IMPORTANT: Always source the environment file first to ensure OTP 28 is used:
source .erlmcp/env.sh
Behavior:
.erlmcp/env.sh (ensures OTP 28.3.1 in PATH)Checks Performed:
Output:
✅ OTP verification passed
Installed: 28.3.1
Required: 28.3.1
rebar3: 3.24.0
Status: READY
Exit Codes:
Example:
/otp-manager verify
# Sources .erlmcp/env.sh, checks OTP version and compilation readiness
# Returns: exit code 0-3 (see above)
/otp-manager cleanRemove OTP build artifacts and cached files.
Behavior:
/tmp/erlmcp-build/.erlmcp/cache/Safety:
Output:
✅ OTP cleanup complete
Removed: 123 MB build artifacts
Cleared: 45 MB apt cache
Preserved: OTP 28.3.1 installation
Example:
/otp-manager clean
# Removes build artifacts and cache
# Returns: exit code 0 (success)
This skill can be preloaded into subagents for autonomous OTP management:
Verifier Subagent (.claude/agents/verifier.md):
preload_skills:
- otp-manager
Build Engineer Subagent (.claude/agents/build-engineer.md):
preload_skills:
- otp-manager
Once preloaded, subagents can invoke OTP manager commands autonomously:
# Verifier checks OTP before running tests
/otp-manager verify
if [ $? -eq 0 ]; then
rebar3 eunit
fi
# Build engineer fetches OTP if missing
/otp-manager verify || /otp-manager fetch-build
The skill implements robust error recovery:
| Error Class | Recovery Strategy |
|---|---|
| Network timeout | Retry 3x with exponential backoff (1s, 2s, 4s) |
| Package conflict | Clear apt cache and retry |
| Permission denied | Report to user (requires sudo) |
| Version mismatch | Report installed vs required version |
| Disk space | Report error (requires user intervention) |
Example: Network Timeout Recovery
⚠️ Network timeout downloading erlang-solutions package
🔄 Retry 1/3 (delay: 1s)...
⚠️ Network timeout downloading erlang-solutions package
🔄 Retry 2/3 (delay: 2s)...
✅ Download successful
otp_fetch_build.sh (120 lines):
otp_verify.sh (50 lines):
otp_clean.sh (30 lines):
.erlmcp/otp-manager.logTest suite location: test/otp_manager_skill_tests.erl
Test Coverage:
Running Tests:
rebar3 eunit --module=otp_manager_skill_tests
Expected output:
Testing otp_manager_skill_tests
All 6 tests passed.
.claude/hooks/SessionStart.sh - Uses fetch-build logic on session start.claude/agents/verifier.md - Preloads this skill for OTP verification.claude/agents/build-engineer.md - Preloads this skill for OTP management.claude/settings.json - References otp-manager in skill registry