local-model

local-model is a skill for Claude Code, Codex from fthsrbst/mnema. It costs 60 tokens per session (685 once invoked), scanned A, original, MIT.

A policy for deciding whether a task should use a local language model or the current agent. Local models run on the user's computer, while the current agent handles work needing more judgment.

In plain words
What is it for?
Use it to route batch summaries, data cleanup, boilerplate, draft translations, and other mechanical tasks to a local model, while keeping reviews, design choices, and hard debugging with the agent.
Why use it?
It can reduce external model use for repetitive or sensitive work while keeping architectural decisions, difficult debugging, and final writing with the main agent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions OpenCode.

Good fit Use it to route batch summaries, data cleanup, boilerplate, draft translations, and other mechanical tasks to a local model, while keeping reviews, design choices, and hard debugging with the agent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fthsrbst/mnema/local-model
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fthsrbst/mnema --skill local-model
Clone the repo
git clone --depth 1 https://github.com/fthsrbst/mnema

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for local-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/fthsrbst/mnema/local-model/github.svg)](https://agentmods.dev/skills/fthsrbst/mnema/local-model)
Your own site
<a href="https://agentmods.dev/skills/fthsrbst/mnema/local-model"><img src="https://agentmods.dev/badge/skills/fthsrbst/mnema/local-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for local-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/fthsrbst/mnema/local-model"><img src="https://agentmods.dev/badge/skills/fthsrbst/mnema/local-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 685 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.00685
Opus 5.5 $0.00024 $0.00274
Sonnet 5.5 $0.00012 $0.00137
Haiku 4.5 $0.00006 $0.00068

Measured 1mo ago against content hash f2f9eef276af, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

local-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/local-model/SKILL.md · 37 lines

What it actually says

Model Yönlendirme: Zorluğa Göre Karar

Temel kural: işin zorluğuna göre karar ver. Üç seviye:

  1. Basit/toplu/mekanik → local_llm (LM Studio veya Ollama, ücretsiz, veri lokalde)
  2. Orta ve zor → sen (mevcut agent) yaparsın — sen zaten güçlü bir bulut modelisin; ekstra API key veya entegrasyon gerekmez. Fatih'in kullandığı agent (Claude Code, opencode go aboneliği vb.) hangisiyse zor işin modeli odur.
  3. Görsel/video/medya → media_generate (ComfyUI, [[media-gen]] skill'i)

Hub'a ayrıca bulut LLM API'si bağlamıyoruz — bilinçli karar: agent'ın kendisi o katman.

local_llm'e uygun işler

  • Toplu/tekrarlı işler: 50 dosyaya özet, commit mesajı üretimi, veri temizleme/dönüştürme, etiketleme
  • Taslaklar: ilk sürüm docstring, test iskeleti, çeviri taslağı (sonra sen rafine et)
  • Hassas veri: kullanıcının dışarı çıkmasını istemediği içerik üzerinde işlem
  • Kod tamamlama tarzı mekanik üretim: boilerplate, regex, SQL taslağı

Sende kalması gereken işler (local_llm'e YOLLAMA)

  • Mimari kararlar, kod review, zor debug — yargı gerektiren her şey
  • Kullanıcıyla diyalog ve nihai çıktı kalitesinin önemli olduğu metinler
  • Hub hafızasına yazılacak kayıtların son hali (kalite senin sorumluluğun)

Kullanım

  1. machine_status → hangi makinede LM Studio/Ollama açık, hangi modeller var.
  2. Model seçimi (isimden çıkarım):
    • *coder* → kod işleri
    • küçük model (7-20B) → hızlı basit işler; büyük (30B+) → kalite gereken taslaklar
    • model belirtmezsen yüklü ilk model kullanılır — toplu işte önce 1 örnekle dene, çıktı iyiyse devam et.
  3. local_llm(prompt, model?, backend?, system?, max_tokens?) — backend boşsa LM Studio öncelikli, backend: "ollama" ile Ollama'ya yönlendir. Uzun işlerde çıktıyı doğrula: yerel modeller talimat kaçırabilir; kritik alanları örneklemle kontrol et.

Kural

Sonucu kendi çıktın gibi sunma — yerel model çıktısını kullandıysan doğrulamandan geçir. Hata bulursan kendin düzelt, kullanıcıya ham yerel model çıktısı gösterme.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 37 lines · 60 tokens per session scan A f2f9eef276af

Subscribe to this mod's changes

local-model is a skill published in the GitHub repository fthsrbst/mnema (2 stars, last pushed 1mo ago), licensed MIT. It adds 60 tokens to every session and 685 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

gno

Search local documents, files, notes, and knowledge bases. Index directories, search with BM25/vector/hybrid, get AI answers with citations. Use when user wants to search files, find documents, query notes, look up information in local folders, index a directory, set up document search, build a knowledge base, needs…

gmickel/gno · 86 tokens

binder-import

Import external data into a Binder workspace. Handles CSV, JSON, YAML, Markdown files, and directories of Markdown. Use when asked to "import data", "load records from a file", "ingest documents", "migrate data into binder", or bulk-create records from an external source.

mpazik/Binder · 62 tokens

simplicio-tasks

Legacy compatibility alias for /simplicio-loop. Use only when an older install, adapter, or saved prompt still invokes /simplicio-tasks; immediately route the run through ../simplicio-loop/SKILL.md, which now owns the public core + loop protocol.

wesleysimplicio/simplicio · 63 tokens

evo2

Score, embed, and generate DNA sequences with Evo 2, a long-context genomic foundation model. Use this skill when: (1) Computing per-nucleotide or per-sequence likelihoods for variant effect scoring, (2) Embedding genomic windows for downstream classification, (3) Generating DNA conditioned on a prefix, (4) Scoring…

aipoch/open-science · 83 tokens

shap

Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing…

synthetic-sciences/openscience · 109 tokens

cellxgene-census

Query the CELLxGENE Census (61M+ cells) programmatically. Use when you need expression data across tissues, diseases, or cell types from the largest curated single-cell atlas. Best for population-scale queries, reference atlas comparisons. For analyzing your own data use scanpy or scvi-tools.

synthetic-sciences/openscience · 67 tokens