teach

A teaching workflow that learns a reusable coding or data pattern from an example file you provide, such as a model, query, or configuration file.

In plain words
What is it for?
Use it to document naming, file organization, SQL or dbt conventions, imports, data types, boilerplate, and error-handling patterns from an existing file.
Why use it?
It separates the useful structure and conventions from the example’s specific content, then lets you approve the pattern before it is saved.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/altimateai/altimate-code/teach
Any agent
npx skills add AltimateAI/altimate-code --skill teach
Clone the repo
git clone --depth 1 https://github.com/AltimateAI/altimate-code

Made for: Claude Code, Codex.

Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 562 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00018 $0.00562
Opus 5 $0.00009 $0.00281
Sonnet 5 $0.00004 $0.00112
Haiku 4.5 $0.00002 $0.00056

Measured 2d ago against content hash aedde6cbd257, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

teach 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 2d 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.

.opencode/skills/teach/SKILL.md · 55 lines

How it starts

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

Teach

Purpose

Learn a reusable pattern from an example file. The user shows you a well-written artifact (model, query, config), and you extract the patterns worth following.

Workflow

  1. Identify the file: The user provides a file reference (e.g., @models/staging/stg_orders.sql). Read the file.

  2. Analyze patterns: Extract the structural patterns, NOT the specific content. Focus on:

    • File structure and organization (sections, ordering)
    • Naming conventions (prefixes, suffixes, casing)
    • SQL patterns (CTE vs subquery, join style, column ordering)
    • dbt conventions (materialization, tests, config blocks)
    • Common boilerplate (headers, comments, imports)
    • Data type choices
    • Error handling patterns
  3. Present findings: Show the user what you learned in a structured list. Be specific:

    • Good: "Column order: keys first, then dimensions, then measures, then timestamps"
    • Bad: "Good column ordering"
  4. Ask for confirmation: Let the user confirm, modify, or reject your findings before saving.

  5. Save via training_save: Use the training_save tool with:

    • kind: "pattern"
    • name: A descriptive slug (e.g., "staging-model", "incremental-config")
    • content: The extracted patterns as a concise, actionable checklist
    • scope: "project" (default — shared with team via git)
    • source: The file path you learned from
    • citations: Reference to the source file

Important Guidelines

  • Extract PATTERNS, not content. "Use {{ source() }} macro" is a pattern. "Query the orders table" is content.
  • Keep it concise — max 10 bullet points per pattern. If more are needed, split into multiple patterns.
  • Use the file's actual conventions, don't impose your own preferences.
  • If the file doesn't have clear patterns worth learning, say so honestly.
  • Do NOT make any LLM calls beyond the normal conversation flow — pattern extraction happens in your analysis, not via separate API calls.

Usage Examples

Read the full file on GitHub · 55 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. 2d ago First seen · 55 lines · 18 tokens per session scan A aedde6cbd257

Subscribe to this mod's changes

teach is a skill published in the GitHub repository AltimateAI/altimate-code (803 stars, last pushed 2d ago), licensed MIT. It adds 18 tokens to every session and 562 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

agent-builder

Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI system" (2) want to understand agent architecture, agentic patterns, or autonomous AI (3) need help with capabilities, subagents, planning, or skill mechanisms (4) ask about Claude Code…

shareAI-lab/learn-claude-code · 125 tokens

copilotkit-self-update

Use when the user wants to update, refresh, or reinstall the CopilotKit agent SKILLS (the SKILL.md files that teach this agent about CopilotKit). NOT for updating the CopilotKit codebase or project — this is specifically about refreshing the skills/knowledge this agent has loaded. Triggers on "update copilotkit…

CopilotKit/CopilotKit · 144 tokens

high-end-visual-design

Teaches the AI to design like a high-end agency. Defines the exact fonts, spacing, shadows, card structures, and animations that make a website feel expensive. Blocks all the common defaults that make AI designs look cheap or generic.

Leonxlnx/taste-skill · 53 tokens

edu-math-tutorial

数学题分步讲解视频的领域知识。适用场景:(1) 用户给出一道数学题并要求做讲解/ 解题视频;(2) 用户说"讲解这道题"、"生成解题视频"、"make a math tutorial"; (3) 需要中文数学教学视频,涉及方程、公式或几何图形。本 skill 只提供领域 知识(题目拆解、讲解节奏、旁白文案规范、版式与 KaTeX 排版风格);画面、 配音与成片一律用 Creator 原生 Element 与工具从源头构建。.

agentscope-ai/QwenPaw · 146 tokens

hive.browser-automation

Required before any hive-browser CLI command. The browser is driven from the terminal by running hive-browser ... --json via terminalexec — not via MCP tools. Teaches the browser lifecycle rules (the bridge attaches to the USER'S running Chrome — never kill or launch browser processes; timeouts are transport issues…

aden-hive/hive · 142 tokens

hive.chart-creation-foundations

Required reading whenever any chart tool is available. Teaches the one-tool embedding contract (call chartrender → live chart appears in chat AND a downloadable PNG lands in the queen session dir), the ECharts (data viz) vs Mermaid (structural diagrams) decision, the BI/financial-grade aesthetic baseline (no…

aden-hive/hive · 133 tokens