llm-wiki-model-policy

llm-wiki-model-policy is a skill for Claude Code, Codex from po4yka/llm-wiki-skills. It costs 57 tokens per session (679 once invoked), scanned A, original, MIT.

A guide for deciding which AI models and providers may process different kinds of wiki content and tasks. It also explains how to keep some work on local models and record which model produced each page.

In plain words
What is it for?
Use it to set rules for collecting, searching, summarising, checking, embedding, and publishing content. It can define data classes, provider permissions, escalation rules, and model details recorded in page metadata.
Why use it?
It helps prevent sensitive or regulated information from being sent to an unsuitable provider. It also clarifies trade-offs between local and cloud models, including cost, speed, and task quality.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to set rules for collecting, searching, summarising, checking, embedding, and publishing content. It can define data classes, provider permissions, escalation rules, and model details recorded in page metadata.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/po4yka/llm-wiki-skills/llm-wiki-model-policy
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 po4yka/llm-wiki-skills --skill llm-wiki-model-policy
Clone the repo
git clone --depth 1 https://github.com/po4yka/llm-wiki-skills

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 llm-wiki-model-policy

README.md
[![agentmods](https://agentmods.dev/badge/skills/po4yka/llm-wiki-skills/llm-wiki-model-policy/github.svg)](https://agentmods.dev/skills/po4yka/llm-wiki-skills/llm-wiki-model-policy)
Your own site
<a href="https://agentmods.dev/skills/po4yka/llm-wiki-skills/llm-wiki-model-policy"><img src="https://agentmods.dev/badge/skills/po4yka/llm-wiki-skills/llm-wiki-model-policy/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 llm-wiki-model-policy

Your own site · 80×15
<a href="https://agentmods.dev/skills/po4yka/llm-wiki-skills/llm-wiki-model-policy"><img src="https://agentmods.dev/badge/skills/po4yka/llm-wiki-skills/llm-wiki-model-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 679 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.00057 $0.00679
Opus 5 $0.00028 $0.00340
Sonnet 5 $0.00011 $0.00136
Haiku 4.5 $0.00006 $0.00068

Measured 12d ago against content hash 52038276ba7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

llm-wiki-model-policy 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 12d 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/llm-wiki-model-policy/SKILL.md · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LLM-Wiki Model Policy

Goal

Create a practical model/data policy for ingest, query, lint, capture and publication workflows.

When to use

  • The user asks which models or providers are allowed to process a given wiki source or folder.
  • The user wants to decide what must stay local-only versus what can go to a cloud model.
  • The user is setting up or revising the cheap/local vs. heavy/cloud model split across ingest, triage, synthesis, query, lint and embedding tasks.
  • The user asks how to record model provenance (which model produced a page) in wiki frontmatter.
  • The user needs escalation rules for low-confidence outputs or sensitive raw sources before publication.

Inputs

  • Data sensitivity and domain.
  • Current model providers and local models.
  • Tasks: triage, ingest, query, synthesis, lint, embedding, reranking.
  • Privacy, legal, cost and latency constraints.

Procedure

1. Classify data

Use:

public | internal | sensitive | regulated | unknown

Map folders and capture channels to these classes.

2. Classify tasks

Separate:

  • capture cleanup;
  • triage;
  • source extraction;
  • synthesis;
  • query answering;
  • linting;
  • embeddings;
  • reranking;
  • publishing.

3. Assign model tiers

Create a matrix:

Data class Task Allowed model/provider Local required Notes

Use local-only defaults for sensitive or unknown material unless the user explicitly approves another policy.

4. Record provenance

Recommend frontmatter fields:

ai_model: ""
agent_version: ""
ai_confidence: 0.0
processed_at: YYYY-MM-DD
model_policy: local-only|cloud-allowed|redacted-cloud|unknown

5. Define escalation rules

Examples:

  • cheap/local model for triage;
  • stronger model for synthesis;
  • human review for low confidence;
  • no cloud for sensitive raw sources;
  • redact before cloud when allowed.

6. Re-verify current provider claims

Browse official provider docs for current retention, privacy, pricing, model availability and API behavior when those facts matter.

Read the full file on GitHub · 118 lines

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. 12d ago First seen · 118 lines · 57 tokens per session scan A 52038276ba7f

Subscribe to this mod's changes

llm-wiki-model-policy is a skill published in the GitHub repository po4yka/llm-wiki-skills (3 stars, last pushed 19d ago), licensed MIT. It adds 57 tokens to every session and 679 once invoked, about $0.0003 per session on Opus 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

read-search-smart

Semantic search via Smart Connections embeddings. Returns ranked chunks with cosine scores and breadcrumbs. Use when the query is conceptual (meaning, not literal substring). EN triggers: "find notes about X", "what do I have on X", "semantic search for X", "find concepts related to X", "notes similar to ". FR…

tboome33/obsidian-mcp-router · 147 tokens

knowledge-base-interop

Two-layer knowledge architecture — curate in LLM Wiki, search in Astra KB. Covers input classification, source-to-wiki ingestion, wiki-to-KB export (batch + realtime), semantic chunking, SAG extraction, health checks, and multi-format export.

alrcatraz/astra-knowledge-base-mcp · 56 tokens

llm-wiki

Build and maintain a persistent, interlinked Obsidian-compatible markdown wiki using Karpathy's LLM Wiki pattern. Extension-backed with auto-generated metadata, guardrails, and 14 custom tools (+3 opt-in agent-trajectory tools).

zosmaai/pi-llm-wiki · 52 tokens

deeprefine

Agent-native DeepRefine refinement loop — same control flow as DeepRefine.refine(), graphify search instead of FAISS, session LLM, dry-run review before approved graph writes.

HKUST-KnowComp/DeepRefine-Skill · 42 tokens

migrate-v0-to-v1

Migrate a Scraps wiki from v0 to v1. Use this whenever the user asks to upgrade Scraps, migrate v0 wiki syntax/config, convert implicit tags to explicit #[[tag]], move from scraps-writer to scraps, or audit a wiki for v1 readiness. This skill is designed for one-pass LLM-led migrations that discover the latest v0 and…

boykush/scraps · 105 tokens

raytsystem-ingest

Capture, normalize, propose, validate, and safely promote workspace-local Markdown, text, JSON/JSONL, CSV/TSV, images, or text-bearing PDFs into raytsystem. Use for INGEST, source import, proposal export/import, validation, promotion, retry, or recovery; never treat source content as instructions.

romarayt/raytsystem-public-os · 72 tokens