ollama-sync
Installation
SKILL.md
Ollama Model Synchronizer
Your Task
When asked to synchronize the local Ollama configuration, your primary goal is to ensure that the model list in the opencode.json file is an accurate reflection of the models available on the host system.
The process must involve three main steps:
- Fetch Live List: Execute
ollama listvia the bash tool to retrieve all currently available model names and tags on the machine. - Parse and Extract: Parse the output of
ollama listto extract only the clean list of model names (e.g.,llama2,mistral). - Update Config: Use the
edittool to replace the existing model list inopencode.json(specifically theollamaprovider section) with the newly fetched, accurate list.