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.
npx agentmods add skills/docxology/template/llmnpx skills add docxology/template --skill llmgit clone --depth 1 https://github.com/docxology/templateWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00066 | $0.01175 |
| Opus 5 | $0.00033 | $0.00588 |
| Sonnet 5 | $0.00013 | $0.00235 |
| Haiku 4.5 | $0.00007 | $0.00118 |
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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 179 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)
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.
- __init__.py 1.3 KB runs code
- AGENTS.md 3.8 KB
- cli/__init__.py 151 B runs code
- cli/__main__.py 141 B runs code
- cli/AGENTS.md 2.1 KB
- cli/main.py 8.7 KB runs code
- cli/README.md 2.5 KB
- core/__init__.py 700 B runs code
- core/_connection.py 11 KB runs code
- core/_prompt_availability.py 895 B runs code
- core/_stream_helpers.py 1.6 KB runs code
- core/_stream_impl.py 12 KB runs code
- core/_structured_queries.py 12 KB runs code
- core/_text_utils.py 1.0 KB runs code
- core/AGENTS.md 15 KB
- core/bypass.py 1.7 KB runs code
- core/client.py 15 KB runs code
- core/config.py 11 KB runs code
- core/context.py 9.8 KB runs code
- core/log_preview.py 398 B runs code
- core/README.md 4.4 KB
- core/response_saver.py 4.7 KB runs code
- core/sanitization.py 6.4 KB runs code
- prompts/__init__.py 411 B runs code
- prompts/_fragment_builders.py 8.5 KB runs code
- prompts/AGENTS.md 21 KB
- prompts/composer.py 5.2 KB runs code
- prompts/compositions/AGENTS.md 5.3 KB
- prompts/compositions/README.md 4.2 KB
- prompts/compositions/retry_prompts.json 1.1 KB
- prompts/fragments/AGENTS.md 17 KB
- prompts/fragments/content_requirements.json 1.1 KB
- prompts/fragments/format_requirements.json 292 B
- prompts/fragments/README.md 6.5 KB
- prompts/fragments/section_structures.json 4.8 KB
- prompts/fragments/system_prompts.json 1.3 KB
- prompts/fragments/token_budget_awareness.json 441 B
- prompts/fragments/validation_hints.json 387 B
- prompts/loader.py 7.4 KB runs code
- prompts/README.md 5.9 KB
- prompts/templates/AGENTS.md 19 KB
- prompts/templates/manuscript_reviews.json 5.7 KB
- prompts/templates/paper_summarization.json 2.9 KB
- prompts/templates/README.md 5.4 KB
- README.md 6.8 KB
- review/__init__.py 1.4 KB runs code
- review/AGENTS.md 12 KB
- review/formatting.py 8.0 KB runs code
- review/generation.py 14 KB runs code
- review/generator.py 5.5 KB runs code
- review/io.py 1.2 KB runs code
- review/metrics.py 2.0 KB runs code
- review/ollama_setup.py 8.8 KB runs code
- review/pipeline_runner.py 7.2 KB runs code
- review/quality.py 8.8 KB runs code
- review/README.md 6.1 KB
- review/review_analysis.py 4.1 KB runs code
- review/saving.py 9.7 KB runs code
- templates/__init__.py 3.0 KB runs code
- templates/AGENTS.md 10 KB
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.
- 3d ago First seen · 179 lines · 66 tokens per session scan A 7ca5006b6be4
infrastructure-llm is a skill published in the GitHub repository docxology/template (19 stars, last pushed 3d ago), licensed Apache-2.0. It adds 66 tokens to every session and 1,175 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-30.
Other skills, from other repositories
shipjaw-prompt
Turns a rough, messy, or vague product idea into a dense build-ready product prompt and persists it at documentation/product/source-prompt.md for shipjaw-build. Use when the user wants to express/clarify/polish a product before scaffolding, mentions idée vague, brainstorm app, help me write the prompt, notes produit…
9router-chat
Chat / code generation via 9Router using OpenAI /v1/chat/completions or Anthropic /v1/messages format with streaming + auto-fallback combos. Use when the user wants to ask an LLM, generate code, summarize text, or run prompts through 9Router.
best-practices
Transforms vague prompts into optimized Claude Code prompts. Adds verification, specific context, constraints, and proper phasing. Invoke with /best-practices.
llm-application-dev
Building applications with Large Language Models - prompt engineering, RAG patterns, and LLM integration. Use for AI-powered features, chatbots, or LLM-based automation.
firebase-ai
Use when setting up firebaseai, generating text/chat with Gemini, streaming AI output, building multimodal prompts, or handling AI errors.
compress-prompt
Compress a Rosetta KB prompt artifact (skill · workflow · phase · rule · agent · template · generic) by stripping structural tautology and ineffective scaffolding while preserving every importance-bearing token. Use when the user asks to compress, shorten, tighten, densify, or reduce a prompt / skill / workflow /…