code-explanation

code-explanation is a skill for Claude Code, Codex from NickCrew/Claude-Cortex. It costs 32 tokens per session (351 once invoked), scanned A, original, MIT.

Use when explaining code, concepts, or system behavior to a specific audience level - provides a structured explanation workflow with depth control and validation steps.

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/nickcrew/claude-cortex/code-explanation
Any agent
npx skills add NickCrew/Claude-Cortex --skill code-explanation
Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex

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 code-explanation

README.md
[![agentmods](https://agentmods.dev/badge/skills/nickcrew/claude-cortex/code-explanation.svg)](https://agentmods.dev/skills/nickcrew/claude-cortex/code-explanation)
Your own site
<a href="https://agentmods.dev/skills/nickcrew/claude-cortex/code-explanation"><img src="https://agentmods.dev/badge/skills/nickcrew/claude-cortex/code-explanation.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 351 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00032 $0.00351
Opus 5 $0.00016 $0.00176
Sonnet 5 $0.00006 $0.00070
Haiku 4.5 $0.00003 $0.00035

Measured today against content hash 0ba97d2fe62d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-explanation 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 today.

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/code-explanation/SKILL.md · 56 lines

What it actually says

Code Explanation

Overview

Provide clear explanations of code and concepts with appropriate depth, structure, and examples. Adapt the output to the audience level.

When to Use

  • Explaining code, architecture, or system behavior
  • Producing educational explanations for knowledge transfer
  • Clarifying framework or domain concepts

Avoid when:

  • The request is strictly documentation generation (use documentation-production)

Quick Reference

Task Load reference
Explanation workflow skills/code-explanation/references/explain.md
Pedagogical Methodology skills/code-explanation/references/pedagogical-methodology.md

Workflow

  1. Identify target, audience level, and format.
  2. Load the explanation reference.
  3. Analyze the code or concept.
  4. Structure the explanation with progressive depth.
  5. Validate accuracy and clarity.

Output

  • Structured explanation with examples
  • Notes on assumptions and follow-ups

Common Mistakes

  • Skipping audience level calibration
  • Explaining without verifying source behavior
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. today First seen · 56 lines · 32 tokens per session scan A 0ba97d2fe62d

Subscribe to this mod's changes

code-explanation is a skill published in the GitHub repository NickCrew/Claude-Cortex (37 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 351 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

bug-triage

Read all open bugs in production/qa/bugs/, re-evaluate priority vs. severity, assign to sprints, surface systemic trends, and produce a triage report. Run at sprint start or when the bug count grows enough to need re-prioritization.

Donchitos/Claude-Code-Game-Studios · 59 tokens

solid-principles

SOLID principles checklist with Java examples. Use when a class has too many responsibilities, an abstraction leaks, or a dependency points the wrong way, and when the user asks about Single Responsibility, Open/Closed, Liskov, Interface Segregation or Dependency Inversion. For naming, duplication and method length…

decebals/claude-code-java · 73 tokens

dotnet-testing-advanced-testcontainers-nosql

Testcontainers NoSQL 整合測試完整指南。當需要對 MongoDB 或 Redis 進行容器化整合測試時使用。涵蓋 MongoDB 文件操作、Redis 五種資料結構、Collection Fixture 模式。包含 BSON 序列化、索引效能測試、資料隔離策略與容器生命週期管理。 Make sure to use this skill whenever the user mentions Testcontainers MongoDB, Testcontainers Redis, NoSQL integration test, BSON serialization, or Redis data structure…

kevintsengtw/dotnet-testing-agent-skills · 191 tokens

cad-executor-contract

Internal role contract, preloaded into every cad-executor rung agent. Not a user command.

crenshawdev/cadence · 24 tokens

arch-audit

Audit Claude Code architecture files against Anthropic docs and release notes, and verify internal ecosystem consistency. Run on demand to maintain compliance, catch new features, and keep the context system clean.

marcoguillermaz/Tierward · 41 tokens

cad-capture

Capture a phase-linked todo, a seed idea for a future milestone, or a note, without losing your place - .planning/CAPTURE.md, or --cadence for friction with Cadence itself.

crenshawdev/cadence · 44 tokens