teardown
하는 일
세션에서 시작한 모든 smolvm 머신을 중지하고 파일을 정리한 뒤, 컴퓨터가 깨끗한지 확인하는 체크리스트와 스크립트를 제공합니다. 자신의 컴퓨터나 공유 컴퓨터에서 smolvm을 쓴 모든 사람을 위한 스킬입니다.
사용하는 경우
- ✓smolvm 세션을 마치고 아무것도 실행 중으로 남기지 않으려 할 때.
- ✓Ctrl-C나 충돌 후에도 머신이 살아남은 것 같을 때.
- ✓smolvm을 사용한 뒤 디스크 공간이 사라졌을 때.
스킬 링크
https://github.com/smol-machines/smolvm/blob/main/docs/teardown/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“smolvm 테스트를 마쳤습니다. 테스트가 시작한 머신을 모두 중지하고 남긴 것을 정리해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
사전 점검 스크립트가 smolvm이 컴퓨터에 남긴 항목을 나열합니다. 이어서 정리 스크립트가 세션이 만든 머신을 중지하고, 그 상태를 제거한 뒤 결과를 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Leaving nothing running and nothing behind
Verified on smolvm v1.29.0 on macOS arm64, 2026-10-15, and on v1.18.2 on Linux aarch64, 2026-09-24. This packet exists on its own because the obvious cleanup steps fail here: the obvious assertion gives a false failure, the obvious reaper matches the wrong process or nothing at all, and killing a wrapper around a run does not stop its machine. Anything that starts machines needs this more than it needs any single feature. The Linux runs used the scripts of their date; this version's preflight and cleanup scripts ran on Linux aarch64 on v1.22.2 on 2026-10-03.
The cleanup scripts of credentials, dev-env, docker-in-machine, gpu-cuda and install are this
packet's scripts/cleanup.sh with the PACKET= line changed; branch-and-checkpoint, local-api, pack
and throwaway-machine build on it and add flags of their own.
Procedure
The commands below are relative to this packet's directory; its scripts write nothing to the working directory, so running them from there is safe.
1. See what is there. Read-only: deletes nothing, starts no VM.
scripts/preflight.sh
It reports each state directory with its size, whether an --oci-cache bake cache exists,
whether the launcher symlink and the PATH block are present, and whether state can be relocated
on this platform.
2. Delete the machines your scripts created, and report the rest.
scripts/cleanup.sh # report leftover VM processes
scripts/cleanup.sh --reap # and kill them
--reap kills every VM process under this HOME, a running machine you meant to keep included, so
run plain cleanup.sh first to read the list, and reap only when nothing there should keep running.
cleanup.sh waits up to 20 seconds, polling the machine list, and prints waiting=up to 20s
first: an ephemeral machine's entry retires after its run returns.
Only machines recorded in the state file are deleted, so a machine you or another session created
by hand is never deleted. A script records what it creates with
scripts/cleanup.sh --record <name>, and names must carry the smolskill- prefix or the delete
is skipped. --purge removes the state file once the list is empty.
When the user asks you to clean up machines they made themselves, which is what "clean up
after me" usually means, nothing is recorded and the script reports them as machines=remaining
and leaves them. That is the guard working, not the end of the job. List them, confirm they are
the user's and not another session's, and delete each by name. smolvm machine list --json gives
each machine's created_at, in Unix seconds, and its image: one created before the user's session
began, or under a name they do not recognise, is not theirs to delete without asking.
machine stop on a machine that is already stopped prints Machine '<name>' is not running and
exits 0, so the stop line is safe either way:
smolvm machine list
smolvm machine stop --name <NAME>
smolvm machine delete --name <NAME> --force --cascade
Then run scripts/cleanup.sh again for the process check, and step 3.
The state file lives under ${XDG_STATE_HOME:-$HOME/.local/state}/smolvm-skills/, outside
~/.smolvm and outside smolvm's own caches. Nothing here edits smolvm configuration.
3. Prove it.
scripts/verify-clean.sh
HOME=/tmp/sk SMOLVM=/tmp/sk/.local/bin/smolvm scripts/verify-clean.sh --protected "$HOME/.smolvm" \
--protected "$HOME/.local/share/smolvm" --protected "$HOME/.cache/smolvm" # typed in your real shell
Typed in your real shell, $HOME expands to the real profile before HOME=/tmp/sk applies, so the
checks audit the scratch profile and the three --protected directories are the real
installation's binary, data and cache. On macOS the last two are
~/Library/Application Support/smolvm and ~/Library/Caches/smolvm; a --protected directory
that does not exist fails rather than passing. SMOLVM= points the scan at the scratch install's
binary; on Linux, run it with XDG_DATA_HOME and XDG_CACHE_HOME unset, as the install was.
Anything the real installation wrote today counts, and a running real machine writes to its cache
directory. Stop the real machines first, and pass --since with the time the test began, such as
--since "2026-10-03 14:00".
Every check here is scoped to the HOME it runs under, and the audited_home= line says
which profile the result describes. Run it under a
자주 묻는 질문
필요한 파일까지 지우나요?
정리는 세션이 만든 머신을 대상으로 합니다. 제거될 항목을 보려면 먼저 사전 점검 목록을 읽으세요.
터미널을 닫으면 머신이 멈추나요?
항상은 아닙니다. 스킬은 실행을 감싼 래퍼를 종료해도 그 머신은 멈추지 않으므로, 대신 정리 스크립트를 쓰라고 설명합니다.
공유 컴퓨터에서도 쓸 수 있나요?
네. 이 스킬은 빌린 컴퓨터나 공유 컴퓨터를 아무것도 남기지 않고 돌려줄 때를 위해 작성되었습니다.
상세 정보
작성자의 원본 설명
Stops every smolvm machine a session started, removes smolvm's state, and proves the host is clean. Use after any smolvm session; when a machine seems to have survived a Ctrl-C or a crash; when disk space has disappeared; when uninstalling smolvm; when tearing down the Kubernetes runtime from a node; or when a borrowed or shared host has to be handed back with nothing left behind. Also use it as the cleanup step for other smolvm work, because the obvious assertions here give false results. Do not use it to delete machines another session created: it removes only what a script recorded under it
repo: smol-machines/smolvm
인기도
- GitHub 스타
- 6.9k
- 순위
- #13723
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
branch-and-checkpoint
6.9k에이전트가 실행 중인 smolvm 가상 머신을 체크포인트로 저장하고, 나중에 복원하고, 일시 중지와 재개를 하며, 복사본으로 분기하도록 돕습니다.
coding-agent
6.9k에이전트가 Claude Code 같은 코딩 에이전트를 안전한 smolvm 가상 머신 안에서, 프로젝트 폴더를 연결한 채로 실행하도록 돕습니다.
credentials
6.9k에이전트가 내 키로 API를 호출하게 하되, 키는 가상 머신 안에 들어가지 않아 신뢰할 수 없는 코드가 읽지 못하게 합니다.
dev-env
6.9k에이전트가 필요한 도구를 설치해 둔 smolvm 개발 머신을 유지하도록 가르칩니다. 그래서 빠르게 다시 시작하고 세션이 바뀌어도 패키지가 남습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.