docker-extend
Fungsinya
Skill ini mengatur kustomisasi pribadi untuk kontainer Docker sebuah proyek, memakai Dockerfile.user dan file docker-compose.override.yml yang tidak masuk ke git. Cocok untuk pengembang yang ingin alat tambahan di dalam kontainer.
Kapan dipakai
- βSaat Anda ingin memasang alat baris perintah tambahan di kontainer Docker proyek untuk pemakaian Anda sendiri.
- βSaat Anda ingin mempersonalisasi pengaturan Docker tanpa memengaruhi rekan tim Anda.
- βSaat Anda tidak yakin apakah pengaturan Docker dibangun dari sumber atau memakai image yang dipublikasikan.
Link skill
https://github.com/coleam00/Archon/blob/dev/.claude/skills/docker-extend/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTambahkan alat baris perintah favorit saya ke kontainer Docker untuk proyek ini.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill pertama-tama memeriksa apakah proyek dibangun dari sumber atau memakai image yang dipublikasikan, lalu membuat atau mengedit hanya file override pribadi Anda.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Docker Extend
Sets up personal Docker tool customization using the project's gitignored override pattern.
Your Dockerfile.user and docker-compose.override.yml are yours β never committed to git.
Step 1: Detect Context
Determine if the user is in dev (source build) or deploy (GHCR) mode:
!if [ -f docker-compose.yml ] && grep -q 'build: \.' docker-compose.yml 2>/dev/null; then echo "DEV_MODE: Building from source (root docker-compose.yml)"; elif [ -f deploy/docker-compose.yml ]; then echo "DEPLOY_MODE: Using GHCR image (deploy/docker-compose.yml)"; else echo "UNKNOWN_MODE: No docker-compose.yml found in root or deploy/"; fi
Decision:
DEV_MODEβ work withDockerfile.user+docker-compose.override.yml(repo root)DEPLOY_MODEβ work withdeploy/Dockerfile.user+deploy/docker-compose.override.ymlUNKNOWN_MODEβ ask the user which directory theirdocker-compose.ymllives in before proceeding
Step 2: Check Current State
DEV_MODE β check root files:
!echo "=== Dockerfile.user ===" && (cat Dockerfile.user 2>/dev/null || echo "(not found β will create from example)") && echo "" && echo "=== docker-compose.override.yml ===" && (cat docker-compose.override.yml 2>/dev/null || echo "(not found β will create from example)")
DEPLOY_MODE β check deploy/ files:
!echo "=== deploy/Dockerfile.user ===" && (cat deploy/Dockerfile.user 2>/dev/null || echo "(not found β will create from example)") && echo "" && echo "=== deploy/docker-compose.override.yml ===" && (cat deploy/docker-compose.override.yml 2>/dev/null || echo "(not found β will create from example)")
If both files already exist: Skip to Step 4 (add tools). If files are missing: Proceed to Step 3 (copy from examples). If example files are missing too: Tell the user the project hasn't added the example files yet and to check with the maintainers or the docs.
Step 3: Copy Example Files
Run only the copy commands for whichever files are missing. Do NOT overwrite existing files.
DEV_MODE:
# Only if Dockerfile.user does not exist:
cp Dockerfile.user.example Dockerfile.user
# Only if docker-compose.override.yml does not exist:
cp docker-compose.override.example.yml docker-compose.override.yml
DEPLOY_MODE:
# Only if deploy/Dockerfile.user does not exist:
cp deploy/Dockerfile.user.example deploy/Dockerfile.user
# Only if deploy/docker-compose.override.yml does not exist:
cp deploy/docker-compose.override.example.yml deploy/docker-compose.override.yml
After running the copy commands, confirm to the user which files were created.
Step 4: Add Tools
Parse $ARGUMENTS for tool names (space-separated, e.g., vim ripgrep jq).
If tools were specified: Edit the appropriate Dockerfile.user to add (or uncomment) the RUN apt-get install block with the requested packages. Use the Edit tool β do not rewrite the entire file.
The block to add/modify:
RUN apt-get update && apt-get install -y --no-install-recommends \
<tool1> \
<tool2> \
&& rm -rf /var/lib/apt/lists/*
If no tools were specified: Show the user the file and ask which tools they want to add. Then edit the file accordingly.
Step 5: Rebuild
Show the user the rebuild command for their context. Do NOT run it automatically.
DEV_MODE:
docker compose build && docker compose up -d
DEPLOY_MODE:
cd deploy && docker compose build && docker compose up -d
Summary
Tell the user:
- Which files were created (if any)
- Which tools were added to
Dockerfile.user(if any) - The rebuild command to run when ready
- A reminder that
Dockerfile.useranddocker-compose.override.ymlare gitignored β they're personal and won't be committed
Pertanyaan umum
Apakah perubahan saya dibagikan lewat git?
Tidak. File pribadi diabaikan oleh gitignore, sehingga tetap berada di mesin Anda.
Apakah ini bekerja untuk pengaturan pengembangan dan deployment?
Ya. Skill mencakup pengaturan build dari sumber dan pengaturan image yang dipublikasikan, dan akan bertanya jika tidak bisa menentukan mana yang berlaku.
File apa saja yang diubah?
Hanya Dockerfile.user dan docker-compose.override.yml pribadi Anda, yang dibuat dari contoh jika belum ada.
Detail
Deskripsi asli dari pembuat
Use when: User wants to extend Docker with custom tools, personalize the Docker environment, or set up user-specific Docker customization. Triggers: 'extend docker', 'docker-extend', 'add tools to docker', 'customize docker', 'add my tools to the container', 'personalize docker setup', 'docker user setup', 'install tools in docker'. Does: Interactively sets up Dockerfile.user and docker-compose.override.yml so users can add personal tools to their Docker environment without affecting maintainer files or committing user-specific config to git.
repo: coleam00/Archon
Popularitas
- Bintang GitHub
- 24k
- Peringkat
- #10122
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
archon-cli
24kMengajari agent Anda menjalankan, mengawasi, dan menjawab alur kerja AI bertahap pada kode Anda memakai alat baris perintah Archon.
playwright-cli
24kMemungkinkan agent Anda mengendalikan browser web untuk membuka halaman, mengklik, mengetik, mengambil snapshot, dan memeriksa perilaku situs.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.