code-example-generator

A tool for creating runnable Python examples that teach programming concepts and are checked for correctness.

In plain words
What is it for?
It supports writing teaching code, explanatory snippets, and progressive Python examples with validation.
Why use it?
It helps authors produce examples that are both understandable for learners and validated before use.

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/nawazalishah/ai-native-software-development/code-example-generator
Any agent
npx skills add NawazAliShah/ai-native-software-development --skill code-example-generator
Clone the repo
git clone --depth 1 https://github.com/NawazAliShah/ai-native-software-development

Made for: Claude Code, Codex.

Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,226 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.00104 $0.03226
Opus 5 $0.00052 $0.01613
Sonnet 5 $0.00021 $0.00645
Haiku 4.5 $0.00010 $0.00323

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

Security

Grade A, and why

code-example-generator 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.

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

.claude/skills/code-example-generator/SKILL.md · 529 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

5 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. 2d ago First seen · 529 lines · 104 tokens per session scan A a2a2c143389a

Subscribe to this mod's changes

code-example-generator is a skill published in the GitHub repository NawazAliShah/ai-native-software-development (2 stars, last pushed 10mo ago), with no licence file. It adds 104 tokens to every session and 3,226 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

python-patterns

Python development principles and decision-making. Framework selection, async patterns, type hints, project structure. Teaches thinking, not copying.

MODSetter/SurfSense · 30 tokens

jupyter-to-marimo

Convert a Jupyter notebook (.ipynb) to a marimo notebook (.py).

marimo-team/skills · 24 tokens

python-fast-skill

Python 快速入门学习技能。面向零基础小白,通过关键词触发快速回答 Python 核心知识点(数据类型、基础语法、函数、方法、集合、枚举、异常、IO、线程等),帮助小白建立知识框架和快速查询能力。触发词:"Python 入门"、"Python 基础"、"Python 学什么"、"Python 数据类型"、"Python 语法"、"Python 集合"、"Python 异常"、"Python IO"、"Python 线程"、"Python 枚举"、"Python 教程"、"Python 快速学习"、"python learn"、"python tutorial"。.

jiushiwon/wg-skills · 155 tokens

fiftyone-sdk-guidance

Answers FiftyOne Python SDK questions with accurate, runnable code. Use when the user asks how to do something in the FiftyOne Python SDK, asks a docs question, no skill or operator covers their goal, or the agent is unsure of the correct FiftyOne method, argument, or field path while writing code — e.g. "how do I do…

voxel51/fiftyone-skills · 122 tokens

python-backend

用于 Python 后端面试出题;覆盖 Python 基础、数据库、Django/Flask、缓存与部署,强调工程落地。.

Snailclimb/interview-guide · 35 tokens

clean_course

Skill "clean_course" from nicolasmelo1/logion, covering clean course and usage.

nicolasmelo1/logion · 0 tokens