cf-learn

cf-learn is a skill for Claude Code from dinhanhthi/coding-friend. It costs 104 tokens per session (2,293 once invoked), scanned A, original, MIT.

A note-taking workflow that extracts technical lessons from coding conversations for a person to learn from.

In plain words
What is it for?
Use it to capture explanations of new technology, debugging breakthroughs, architecture decisions, and other substantial technical knowledge.
Why use it?
It helps developers build lasting understanding instead of only receiving the finished code or fix.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to capture explanations of new technology, debugging breakthroughs, architecture decisions, and other substantial technical knowledge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dinhanhthi/coding-friend/cf-learn
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 dinhanhthi/coding-friend --skill cf-learn
Clone the repo
git clone --depth 1 https://github.com/dinhanhthi/coding-friend

Made for: Claude Code.

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 cf-learn

README.md
[![agentmods](https://agentmods.dev/badge/skills/dinhanhthi/coding-friend/cf-learn/github.svg)](https://agentmods.dev/skills/dinhanhthi/coding-friend/cf-learn)
Your own site
<a href="https://agentmods.dev/skills/dinhanhthi/coding-friend/cf-learn"><img src="https://agentmods.dev/badge/skills/dinhanhthi/coding-friend/cf-learn/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 cf-learn

Your own site · 80×15
<a href="https://agentmods.dev/skills/dinhanhthi/coding-friend/cf-learn"><img src="https://agentmods.dev/badge/skills/dinhanhthi/coding-friend/cf-learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,293 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.00104 $0.02293
Opus 5.5 $0.00042 $0.00917
Sonnet 5.5 $0.00021 $0.00459
Haiku 4.5 $0.00010 $0.00229

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

Security

Grade A, and why

cf-learn 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 1mo ago.

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

plugin-antigravity/skills/cf-learn/SKILL.md · 284 lines

How it starts

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

/cf-learn

Extract learning points for human understanding. Topic: $ARGUMENTS

Purpose

In vibe coding, AI writes the code and human approves it — but the human doesn't actually learn anything. This skill extracts knowledge from the conversation and writes it as clear, educational docs so the human builds real understanding over time.

Workflow

Step 0: Custom Guide

bash "<plugin-root>/lib/load-custom-guide.sh" cf-learn

If the block above printed anything, apply only the ## Before, ## Rules, and ## After sections; if it shows the raw command instead of output, re-run that exact load-custom-guide.sh fence now.

Step 1: Load Config

Read config from global only:

  1. Global: ~/.coding-friend/config.json

If learn.disabled is true in the global config, stop immediately and inform the user: "CF Learn is disabled. Re-enable it with cf config or by setting learn.disabled: false in ~/.coding-friend/config.json."

Extract settings with these defaults:

learn settings:

Setting Default Description
learn.language en Language for cf-learn notes (falls back to top-level language, then en)
learn.outputDir ~/.coding-friend/learn Where to store learn docs (always global, never project-local)
learn.categories See Step 2 table Subdirectories and their descriptions
learn.autoCommit false Auto git-commit after writing (only if outputDir is a git repo)
learn.readmeIndex false Index mode: false (none), true (single README), "per-category" (separate README per category + lightweight main README)
learn.disabled false If true, skip all file writing and exit immediately

Read the full file on GitHub · 284 lines

Files

What ships with it

1 file 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. 1mo ago Changed · -1 lines · +40 tokens per session fb2d0d5f0e45
  2. 1mo ago First seen · 285 lines · 64 tokens per session scan A 5644bacd4647

Subscribe to this mod's changes

cf-learn is a skill published in the GitHub repository dinhanhthi/coding-friend (4 stars, last pushed yesterday), licensed MIT. It adds 104 tokens to every session and 2,293 once invoked, about $0.0004 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

Other skills, from other repositories

doris-debug-resource-isolation

Use for Doris Workload Group / resource tag queue starvation, CPU/memory isolation leaks, and workload policy debugging. Commands: SHOW WORKLOAD GROUPS, EXPLAIN resource.

apache/doris-skills · 43 tokens

study-companion-en

General study companion for learning, review, exam prep, exam-point analysis, syllabus/exam-outline interpretation, finals speedrun teaching, concept explanation, problem solving, homework coaching, error analysis, active recall, flashcards, study plans, visualizations, animations, simulations, coding practice…

mingchen666/Reviva · 196 tokens

srsa-review

Use when running Spaced Repetition Systems for AI Agents (SRSA) daily review sessions, grading cards with again/hard/good/easy, and proposing explicit memory add/delete/update actions after each review.

cheanus/SRSA · 46 tokens

officecli-pitch-deck

Use this skill when the user is building a fundraising / investor pitch deck — seed, Series A / B / C, convertible note, SAFE round, strategic raise. Trigger on: 'pitch deck', 'investor deck', 'Series A deck', 'Series B deck', 'Series C deck', 'fundraising deck', 'seed pitch', 'VC deck', 'raising capital', 'term sheet…

iOfficeAI/OfficeCLI · 163 tokens

morph-ppt

Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style continuous motion, shapes that grow / move / rotate as the slide advances. Trigger on: 'morph', 'morph transition', 'smooth transition', 'continuous animation across slides', 'Keynote-style…

iOfficeAI/OfficeCLI · 169 tokens

officecli-academic-paper

Use this skill to build academic-style .docx output: journal / conference / thesis chapters carrying formal citation style (APA, Chicago, IEEE, MLA), numbered equations, figure & table cross-references, footnotes/endnotes, bibliography, or multi-column journal layout. Trigger on: 'research paper', 'journal paper'…

iOfficeAI/OfficeCLI · 141 tokens