ollama-migrator
ReviewAudited by ClawScan on May 10, 2026.
Overview
This skill mostly matches its Ollama migration purpose, but its optional cleanup path can delete the original model directory even if verification fails.
Review before using. This skill is intended for a real local maintenance task, but run the check step first, choose the target path carefully, and avoid `--cleanup` until you have manually confirmed the migrated models work. Keep a backup if the models are important.
Findings (3)
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
A failed or incomplete migration could still lead to deletion of the original Ollama model files, requiring re-download or recovery from backup.
When --cleanup is used, the script deletes the original ~/.ollama/models directory even if verification fails, contradicting the documented safety expectation that cleanup happens only after successful verification.
if not self.verify_migration():
print("警告:验证失败,但迁移可能成功")
...
if cleanup:
...
shutil.rmtree(self.source)Do not use --cleanup until you have manually verified the migrated models with `ollama list` and a test run; consider backing up the model directory first.
Future Ollama commands will use the new model directory until the environment variable is changed or removed.
The script persistently changes the user's OLLAMA_MODELS environment variable so future Ollama sessions use the new model path.
winreg.OpenKey(winreg.HKEY_CURRENT_USER, "Environment", 0, winreg.KEY_SET_VALUE) winreg.SetValueEx(key, "OLLAMA_MODELS", 0, winreg.REG_EXPAND_SZ, str(self.target))
Confirm the target path is correct and keep a note of the previous model location before running the migration.
A referenced verification helper may be unavailable, so users may need to verify migration manually.
SKILL.md lists `scripts/verify_ollama.py` as a script tool, but the complete manifest only includes two scripts. This looks like incomplete or inconsistent packaging rather than hidden code.
3 file(s): SKILL.md scripts/check_ollama_status.py scripts/migrate_ollama.py
Use the built-in `ollama list` and a manual model run to verify success, and treat the missing helper as a documentation/package issue.
