infrastructure-llm

infrastructure-llm is a skill for Claude Code, Codex from docxology/template. It costs 66 tokens per session (1,195 once invoked), scanned A, original, Apache-2.0.

A local Large Language Model integration for research work, using Ollama to run models on your own computer. It includes prompts, conversation context, output checks, manuscript-review generation, and a command-line interface.

In plain words
What is it for?
Use it to query local models, summarize papers, generate manuscript reviews, compose prompts, and validate model output.
Why use it?
It provides one project interface for asking a local model questions and checking the quality of its responses.

Skill for Claude CodeCodex

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

Good fit Use it to query local models, summarize papers, generate manuscript reviews, compose prompts, and validate model output.

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

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 infrastructure-llm

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/docxology/template/llm"><img src="https://agentmods.dev/badge/skills/docxology/template/llm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,195 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00066 $0.01195
Opus 5.5 $0.00026 $0.00478
Sonnet 5.5 $0.00013 $0.00239
Haiku 4.5 $0.00007 $0.00120

Measured 24d ago against content hash 4f425197a96b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

infrastructure-llm 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 24d ago.

The scan reads SKILL.md. This mod also ships 35 executable files (__init__.py, cli/__init__.py, cli/__main__.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

infrastructure/llm/SKILL.md · 197 lines

How it starts

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

LLM Module

Local Large Language Model integration for research assistance via Ollama.

Module Structure

flowchart LR
    LLM[llm/]
    LLM --> CORE[core<br/>client · config · context]
    LLM --> TPL[templates<br/>prompt templates for research]
    LLM --> VAL[validation<br/>output quality validation]
    LLM --> RV[review<br/>manuscript review generation]
    LLM --> PR[prompts<br/>fragment composition system]
    LLM --> UT[utils<br/>Ollama server management]
    LLM --> CLI[cli<br/>command-line interface]

    classDef d fill:#0f172a,stroke:#0f172a,color:#fff
    classDef pkg fill:#1e3a8a,stroke:#0f172a,color:#fff
    class LLM d
    class CORE,TPL,VAL,RV,PR,UT,CLI pkg

LLM Client (core/client.py)

from infrastructure.llm import LLMClient, OllamaClientConfig, GenerationOptions

# Initialize with defaults
client = LLMClient()

# Custom configuration
config = OllamaClientConfig(default_model="gemma3:4b", temperature=0.7)
client = LLMClient(config)

# Generate a response
response = client.query(
    "Summarize this paper...",
    options=GenerationOptions(
        max_tokens=2000,
        temperature=0.3,
    ),
)

Conversation Context (core/context.py)

from infrastructure.llm.core import ConversationContext, Message

context = ConversationContext()
context.add_message(role="user", content="What is active inference?")
context.add_message(role="assistant", content="Active inference is...")

Prompt Templates (templates/)

Pre-built research task templates:

from infrastructure.llm import get_template
from infrastructure.llm.templates import (
    ResearchTemplate,
    PaperSummarization,
    ManuscriptExecutiveSummary,
    ManuscriptQualityReview,
    ManuscriptMethodologyReview,
    ManuscriptImprovementSuggestions,
    ManuscriptTranslationAbstract,
)

# Get a template by name
template = get_template("paper_summarization")

# Use specific template classes
summary_template = ManuscriptExecutiveSummary()
prompt = summary_template.render(text=text)

Read the full file on GitHub · 197 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 24d ago Changed · +18 lines 4f425197a96b
  2. 3mo ago First seen · 179 lines · 66 tokens per session scan A 7ca5006b6be4

Subscribe to this mod's changes

infrastructure-llm is a skill published in the GitHub repository docxology/template (25 stars, last pushed today), licensed Apache-2.0. It adds 66 tokens to every session and 1,195 once invoked, about $0.0003 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-30.

Related

infrastructure-llm compared with skills from other repositories

infrastructure-llm next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
infrastructure-llmdocxology/templateSkill25todayApache-2.0A66Claude Code, Codex
academic-plottingOrchestra-Research/AI-Research-SKILLsSkill15k1mo agoMITA68Claude Code
local-llmcoco-research/cocoSkill323yesterdayApache-2.0A58Claude Code, Codex
ai-productcoco-research/cocoSkill323yesterdayApache-2.0A47Claude Code, Codex
media-memorycoco-research/cocoSkill323yesterdayApache-2.0A54Claude Code, Codex
pageindexmarcusquinn/aidevopsSkill476todayMITA15Claude Code
openai-apicoco-research/cocoSkill323yesterdayApache-2.0B51Claude Code