LLM

LLM is a skill for Claude Code, Codex from ssmurfgg04-gif/context-m. It costs 59 tokens per session (5,035 once invoked), scanned A, original, Apache-2.0.

A skill for adding chat and text-generation features with the z-ai-web-dev-sdk. An LLM, or large language model, is software that generates and understands text; this skill requires the SDK to run on a server rather than in browser code.

In plain words
What is it for?
Implementing chat completions, chatbots, AI assistants, text generation, multi-turn conversations, and simple command-line tests.
Why use it?
It provides a documented way to build multi-turn conversations while keeping the model SDK out of client-side code.

Skill for Claude CodeCodex

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

Good fit Implementing chat completions, chatbots, AI assistants, text generation, multi-turn conversations, and simple command-line tests.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ssmurfgg04-gif/context-m/llm"><img src="https://agentmods.dev/badge/skills/ssmurfgg04-gif/context-m/llm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,035 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.00059 $0.05035
Opus 5.5 $0.00024 $0.02014
Sonnet 5.5 $0.00012 $0.01007
Haiku 4.5 $0.00006 $0.00504

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

Security

Grade A, and why

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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/chat.ts), 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.

skills/LLM/SKILL.md · 857 lines

How it starts

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

LLM (Large Language Model) Skill

This skill guides the implementation of chat completions functionality using the z-ai-web-dev-sdk package, enabling powerful conversational AI and text generation capabilities.

Skills Path

Skill Location: {project_path}/skills/llm

this skill is located at above path in your project.

Reference Scripts: Example test scripts are available in the {Skill Location}/scripts/ directory for quick testing and reference. See {Skill Location}/scripts/chat.ts for a working example.

Overview

The LLM skill allows you to build applications that leverage large language models for natural language understanding and generation, including chatbots, AI assistants, content generation, and more.

IMPORTANT: z-ai-web-dev-sdk MUST be used in backend code only. Never use it in client-side code.

Prerequisites

The z-ai-web-dev-sdk package is already installed. Import it as shown in the examples below.

CLI Usage (For Simple Tasks)

For simple, one-off chat completions, you can use the z-ai CLI instead of writing code. This is ideal for quick tests, simple queries, or automation scripts.

Basic Chat

# Simple question
z-ai chat --prompt "What is the capital of France?"

# Save response to file
z-ai chat -p "Explain quantum computing" -o response.json

# Stream the response
z-ai chat -p "Write a short poem" --stream

With System Prompt

# Custom system prompt for specific behavior
z-ai chat \
  --prompt "Review this code: function add(a,b) { return a+b; }" \
  --system "You are an expert code reviewer" \
  -o review.json

With Thinking (Chain of Thought)

# Enable thinking for complex reasoning
z-ai chat \
  --prompt "Solve this math problem: If a train travels 120km in 2 hours, what's its speed?" \
  --thinking \
  -o solution.json

CLI Parameters

  • --prompt, -p <text>: Required - User message content
  • --system, -s <text>: Optional - System prompt for custom behavior
  • --thinking, -t: Optional - Enable chain-of-thought reasoning (default: disabled)
  • --output, -o <path>: Optional - Output file path (JSON format)
  • --stream: Optional - Stream the response in real-time

Read the full file on GitHub · 857 lines

Files

What ships with it

2 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. 3mo ago First seen · 857 lines · 59 tokens per session scan A 4759d1257c25

Subscribe to this mod's changes

LLM is a skill published in the GitHub repository ssmurfgg04-gif/context-m (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 59 tokens to every session and 5,035 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

LLM compared with skills from other repositories

LLM next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
LLMssmurfgg04-gif/context-mSkill2yesterdayApache-2.0A59Claude Code, Codex
kv-cache-designbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A91Claude Code, Codex
reward-designbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A131Claude Code, Codex
post-training-strategybojieli/ai-agent-bookSkill60kyesterdayApache-2.0A159Claude Code, Codex
agent-evolutionbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A126Claude Code, Codex
bad-case-to-dpobojieli/ai-agent-bookSkill60kyesterdayApache-2.0A168Claude Code, Codex
knowledge-orgbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A96Claude Code, Codex