add-didactic-comments

add-didactic-comments is a skill for Claude Code from MK27MK/no-bs-skills. It costs 27 tokens per session (539 once invoked), scanned A, original, MIT.

A code-commenting workflow that adds teaching notes above selected API calls, with a link to the exact documentation page for each one.

In plain words
What is it for?
Use it to annotate tagged files or folders, explain calls related to chosen topics, and add documentation links.
Why use it?
It helps developers learn unfamiliar APIs directly from the code they are studying without changing how the code works.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the no-bs-skills plugin — 4 skills shipped together

Good fit Use it to annotate tagged files or folders, explain calls related to chosen topics, and add documentation links.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mk27mk/no-bs-skills/add-didactic-comments
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 MK27MK/no-bs-skills --skill add-didactic-comments
Clone the repo
git clone --depth 1 https://github.com/MK27MK/no-bs-skills

Made for: Claude Code.

Or install no-bs-skills, the plugin that ships this one along with the rest of its 4 skills.

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 add-didactic-comments

README.md
[![agentmods](https://agentmods.dev/badge/skills/mk27mk/no-bs-skills/add-didactic-comments/github.svg)](https://agentmods.dev/skills/mk27mk/no-bs-skills/add-didactic-comments)
Your own site
<a href="https://agentmods.dev/skills/mk27mk/no-bs-skills/add-didactic-comments"><img src="https://agentmods.dev/badge/skills/mk27mk/no-bs-skills/add-didactic-comments/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 add-didactic-comments

Your own site · 80×15
<a href="https://agentmods.dev/skills/mk27mk/no-bs-skills/add-didactic-comments"><img src="https://agentmods.dev/badge/skills/mk27mk/no-bs-skills/add-didactic-comments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 539 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.00027 $0.00539
Opus 5 $0.00014 $0.00269
Sonnet 5 $0.00005 $0.00108
Haiku 4.5 $0.00003 $0.00054

Measured 10d ago against content hash af40597351d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

add-didactic-comments 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 10d 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.

skills/add-didactic-comments/SKILL.md · 55 lines

What it actually says

Unstaged work

Files with unstaged changes, tracked and untracked:

!git status --porcelain --untracked-files=all | grep -E '^.[^ ]' || true

  • If that list is empty, go ahead with the skill.
  • If it is not empty, stop.

Reply with exactly this line and nothing else, no file list, no explanation, no preamble:

Stopping - unstaged files detected. Stage them and then invoke this skill again.

Add didactic comments

The user tagged files and folders and named the topics they want to learn. Teach those topics inside those files. Change nothing but comments.

  • Comment every call that belongs to topics. Skip the rest of the code: plain python, obvious assignments, imports.
  • One comment per call, on the line above it.
  • Say what the call does here, on this data. Not what the API does in general.
  • End the comment with the doc URL of the exact symbol you commented, deep link included: pandas.DataFrame.groupby, not pandas.
  • IF topics is empty, THEN infer them from the imports of the tagged files, and say which ones you picked.
  • IF a folder is tagged, THEN comment every source file under it.
  • Get the URL from the docs, never from memory. Fetch the page, confirm the anchor names the symbol, then paste the URL.
  • IF the anchor does not exist, THEN link the closest page that does and drop the anchor. Never invent a fragment.
  • Same symbol used twice in a file: link it once, at the first use.

Format

# {what this call does to this data}, {the argument that matters and why}
# https://{deep link to the symbol}
frame_by_year = sales.groupby("year")

Rules

  • Never edit code, names, or order. Comments only.
  • Never delete a comment. Rewrite one only if it starts with AI and it is wrong.
  • No temporal anchors, no change narration.
  • No comment restates the line. # read the file above path.read_text() is noise; explain the encoding, the failure mode, the return type.
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. 10d ago First seen · 55 lines · 27 tokens per session scan A af40597351d5

Subscribe to this mod's changes

add-didactic-comments is a skill published in the GitHub repository MK27MK/no-bs-skills (2 stars, last pushed 11d ago), licensed MIT. It adds 27 tokens to every session and 539 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-31.

Related

Other skills, from other repositories

ccc-research

In addition to web search, research can use connected channels as surfaces.

KevinZai/commander · 35 tokens

dp-patterns

Reference for dynamic programming patterns — recognition signals, constraint mapping, Python templates, edge cases, and common mistakes for 8 core DP techniques.

sequenzia/agent-alchemy · 31 tokens

search-and-optimization

Reference patterns for search, optimization, and greedy algorithms. Covers binary search (classic and on-answer), two pointers, sliding window, greedy strategies, prefix sums, merge intervals, and monotonic stack. Use when solving problems that involve searching sorted data, optimizing over constraints, processing…

sequenzia/agent-alchemy · 70 tokens

data-structures

Reference for advanced data structure patterns used in competitive programming and technical interviews. Covers heaps, monotonic stacks, tries, segment trees, Fenwick trees, stack-based parsing, and ordered sets with Python templates, recognition signals, and edge case guidance.

sequenzia/agent-alchemy · 53 tokens

math-and-combinatorics

Reference patterns for mathematical and combinatorial problem-solving. Covers modular arithmetic, prime sieves, GCD/LCM, binomial coefficients, fast exponentiation, counting techniques, inclusion-exclusion, and game theory. Load this skill when a problem involves number theory, combinatorics, modular operations, or…

sequenzia/agent-alchemy · 72 tokens

string-algorithms

Reference for string algorithm patterns — KMP, Z-function, Rabin-Karp, Manacher's, string hashing, suffix arrays, and Aho-Corasick. Covers recognition signals, core ideas, Python templates, edge cases, and common mistakes for each technique.

sequenzia/agent-alchemy · 59 tokens