logics-ollama-specialist/SKILL.md
Install, configure, validate, and integrate Ollama for local development. Use when setting up DeepSeek or Qwen coding profiles for terminal, HTTP API, Continue, or Roo Code workflows, or when wiring frontend/backends to Ollama through Vite or Express proxies and fixing CORS or 403 Origin issues.
npx skillsauth add alexago83/cdx-logics-kit logics-ollama-specialistInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Platform scope:
ollama_install_macos.sh is intentionally macOS-specific.ollama_check.sh is a POSIX-shell helper and should not be treated as a Windows workflow entrypoint.references/.Normalize common user variants such as deepseeker-coder-v2, deepseek coder v2, or deepseek-coder to deepseek-coder-v2.
Treat Qwen coder, qwen coder, or qwen-coder requests as a Qwen-family coding profile and confirm the exact tag before changing config.
deepseek-coder-v2:16b unless the user explicitly asks for another supported family or tag./ollama/*) to avoid CORS.403, remove Origin in the proxy or set OLLAMA_ORIGINS.Do not default to deepseek-coder-v2:236b unless the user clearly has server-grade hardware.
Supported profile guidance:
deepseek-coder-v2:16bqwen2.5-coder:14bqwen3, qwen3.5, or another Qwen-family coder tag, confirm the exact local Ollama tag and treat the repo profile as overrideable rather than forcing one hard-coded tag.DRY_RUN=1 logics/skills/logics-ollama-specialist/scripts/ollama_install_macos.sh deepseek-coder-v2:16b
If approved, run again without DRY_RUN=1.
Prefer the explicit 16B tag for local development:
ollama pull deepseek-coder-v2:16b
Validate the model path:
ollama list | grep -E '^deepseek-coder-v2'
ollama run deepseek-coder-v2:16b "Write a Python hello world"
Validate the local HTTP API:
curl -fsS http://127.0.0.1:11434/api/chat -d '{
"model": "deepseek-coder-v2:16b",
"messages": [{"role": "user", "content": "Reply with the word ready"}],
"stream": false
}'
Use deepseek-coder-v2:latest only if the user explicitly wants the floating tag.
Use a Qwen-family coding profile when the operator explicitly prefers Qwen over DeepSeek for bounded local coding or hybrid assist work.
Curated example:
ollama pull qwen2.5-coder:14b
Validate the profile path:
ollama list | grep -E '^qwen'
ollama run qwen2.5-coder:14b "Write a Python hello world"
If the user wants another Qwen-family coder tag, confirm that exact tag first and then use it consistently in runtime config, Continue, and checks.
When the user wants a local VS Code coding assistant and does not name another extension, prefer Continue.
The user-level config file is:
~/.continue/config.yaml
Minimal working model entry:
name: Local Assistant
version: 0.0.1
schema: v1
models:
- name: DeepSeek Coder V2
provider: ollama
model: deepseek-coder-v2:16b
apiBase: http://localhost:11434
roles:
- chat
- edit
- apply
Rules for Continue edits:
apiBase: http://localhost:11434 unless the user says Ollama is remote.latest.If the user explicitly wants Roo Code, keep the same Ollama baseline and wire the editor after validation:
Ollamahttp://localhost:11434deepseek-coder-v2:16bValidate in this order:
ollama --versioncurl -fsS http://127.0.0.1:11434/api/tagsollama list | grep -E '^deepseek-coder-v2'If the user wants low-latency inline completion, prefer a split-model setup:
deepseek-coder-v2:16b for chat, edit, and apply workflowsqwen2.5-coder:1.5b for autocompleteUse this pattern when:
Do not collapse these roles into a single larger model by default when responsiveness is the operator's primary concern.
ollama serve
brew services start ollama
Ctrl + Cbrew services stop ollama
osascript -e 'quit app "Ollama"'
pkill -f 'ollama serve'
pkill -x Ollama
lsof -iTCP:11434 -sTCP:LISTEN -n -P
Run the check script to validate prerequisites, reachability, model presence, and optional Continue config hints:
logics/skills/logics-ollama-specialist/scripts/ollama_check.sh deepseek-coder-v2:16b
logics/skills/logics-ollama-specialist/scripts/ollama_check.sh qwen2.5-coder:14b
/ollama/* from the browser.VITE_OLLAMA_HOST to the local Ollama URL.403, remove the Origin header in the proxy or set OLLAMA_ORIGINS.See references/ollama-integration.md for snippets and common pitfalls.
Use vite-plugin-pwa, register the SW, and add icons or manifest fields.
See references/pwa-vite.md.
Common failures and fixes:
ollama: command not found
Install Ollama first.curl ... /api/tags fails
Start the Ollama app or run ollama serve.ollama list
Run ollama pull deepseek-coder-v2:16b.403
Remove Origin in the proxy or set OLLAMA_ORIGINS.ollama_check.sh: POSIX-shell helper to verify ollama, curl reachability, local model availability, and optional Continue config hints for the requested DeepSeek or Qwen tag.ollama_install_macos.sh: macOS-only helper to install or start Ollama with an optional model (supports DRY_RUN=1).ollama-integration.md: DeepSeek and Qwen profile notes, editor-integration notes, proxy or CORS guidance, env vars, and endpoint notes.pwa-vite.md: PWA steps for Vite or React.data-ai
Generate Logics workflow Mermaid blocks with a deterministic fallback that stays compatible with the flow manager.
testing
Fixture skill used to validate Logics kit package parsing.
testing
--- name: fixture-invalid-skill description: invalid: yaml frontmatter sample --- # Fixture Invalid Skill This fixture intentionally violates the SKILL frontmatter contract.
development
Plan workstreams/roadmap from Logics backlog and tasks. Use when Codex should generate a `logics/ROADMAP.md` grouping items into Now/Next/Later/Done based on priority and progress.