learn

learn is a skill for Claude Code from chan4lk/specclaw. It costs 55 tokens per session (459 once invoked), scanned A, original, MIT.

A record-keeping tool for saving lessons discovered while building software, such as unclear requirements, design problems, and recurring patterns.

In plain words
What is it for?
Use it to log build learnings, list them for a change, and promote important lessons into project-local specification or agent guidance.
Why use it?
It prevents useful findings from being lost and can promote them into project guidance that agents receive on later tasks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the specclaw plugin — 32 skills, 21 agents shipped together

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/chan4lk/specclaw/learn
Any agent
npx skills add chan4lk/specclaw --skill learn
Clone the repo
git clone --depth 1 https://github.com/chan4lk/specclaw

Made for: Claude Code.

Or install specclaw, the plugin that ships this one along with the rest of its 32 skills, 21 agents.

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 learn

README.md
[![agentmods](https://agentmods.dev/badge/skills/chan4lk/specclaw/learn.svg)](https://agentmods.dev/skills/chan4lk/specclaw/learn)
Your own site
<a href="https://agentmods.dev/skills/chan4lk/specclaw/learn"><img src="https://agentmods.dev/badge/skills/chan4lk/specclaw/learn.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 459 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.1 $0.00055 $0.00459
Opus 5 $0.00028 $0.00230
Sonnet 5 $0.00011 $0.00092
Haiku 4.5 $0.00006 $0.00046

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

Security

Grade A, and why

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 6d 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.

plugins/specclaw/skills/learn/SKILL.md · 43 lines

What it actually says

specclaw learn

First, run specclaw-ensure-init .specclaw — idempotently creates .specclaw/ if it doesn't exist (silent if already initialized; auto-inits using the current directory's basename as the project name).

Capture build learnings — spec gaps, design misses, and patterns discovered during implementation.

Log a learning:

specclaw-log-learning .specclaw <change> <category> <priority> "<detail>" ["<action>"]

Categories: spec_gap | design_gap | pattern | best_practice | agent_issue Priorities: low | medium | high

List learnings for a change:

specclaw-log-learning .specclaw <change> --list

Promote a learning to the repo-local knowledge base:

specclaw-log-learning .specclaw <change> --promote <id>

Promote writes to .specclaw/knowledge/never to the plugin itself:

  • spec_gap, design_gap.specclaw/knowledge/spec-guidelines.md
  • pattern, best_practice, agent_issue.specclaw/knowledge/agent-hints.md

The build agent receives agent-hints.md as context automatically on every task.

When to log:

  • A build revealed a spec gap (requirements unclear or missing)
  • A design decision needed mid-build adjustment
  • Agents discovered a useful pattern worth reusing
  • Parallel tasks created conflicts (duplicate code, shared deps)
  • An agent struggled with the context or instructions

Learnings are stored in .specclaw/changes/<change>/learnings.md and feed the pattern detection system for cross-change analysis (see /specclaw:patterns).

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. 6d ago First seen · 43 lines · 55 tokens per session scan A b22713ae61a6

Subscribe to this mod's changes

learn is a skill published in the GitHub repository chan4lk/specclaw (12 stars, last pushed 2d ago), licensed MIT. It adds 55 tokens to every session and 459 once invoked, about $0.0003 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.