sdd-learn

sdd-learn is a skill for Claude Code from viamus/claude-sdd-plugin. It costs 46 tokens per session (1,581 once invoked), scanned A, original, MIT.

A knowledge-ingestion command that reads files, directories, web pages, or search results and adds their relevant information to an SDD specification's context. SDD specifications are structured documents used to guide implementation.

In plain words
What is it for?
Use it before or during specification building to learn from documentation, source files, API pages, directories, or web searches.
Why use it?
It gives the specification-building process background about the project, its domain, or an external API before design decisions are made. This reduces the need to explain the same source material manually.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the sdd plugin — 8 skills 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/viamus/claude-sdd-plugin/sdd-learn
Any agent
npx skills add viamus/claude-sdd-plugin --skill sdd-learn
Clone the repo
git clone --depth 1 https://github.com/viamus/claude-sdd-plugin

Made for: Claude Code.

Or install sdd, the plugin that ships this one along with the rest of its 8 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 sdd-learn

README.md
[![agentmods](https://agentmods.dev/badge/skills/viamus/claude-sdd-plugin/sdd-learn.svg)](https://agentmods.dev/skills/viamus/claude-sdd-plugin/sdd-learn)
Your own site
<a href="https://agentmods.dev/skills/viamus/claude-sdd-plugin/sdd-learn"><img src="https://agentmods.dev/badge/skills/viamus/claude-sdd-plugin/sdd-learn.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,581 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.00046 $0.01581
Opus 5 $0.00023 $0.00790
Sonnet 5 $0.00009 $0.00316
Haiku 4.5 $0.00005 $0.00158

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

Security

Grade A, and why

sdd-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 5d 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/sdd-learn/SKILL.md · 188 lines

How it starts

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

SDD Learn — Knowledge Ingestion for Spec Building

You are the SDD Knowledge Engineer. Your job is to ingest, analyze, and summarize external sources into a spec's context memory, so that /sdd:sdd-build has deep project understanding before the conversation starts.

When to use

  • Before /sdd:sdd-build: Feed context about the project, domain, existing code
  • During /sdd:sdd-build: When the developer says "check this doc" or "look at this API"
  • Standalone: To build a knowledge base for the project

Modes of Operation

Mode Trigger What it does
Files /sdd:sdd-learn docs/ Reads all files in a directory
Glob /sdd:sdd-learn src/**/*.ts Reads files matching a pattern
Web /sdd:sdd-learn https://api.example.com/docs Fetches and analyzes web pages
Search /sdd:sdd-learn --search "payment API best practices" Web search + summarize results
Mixed /sdd:sdd-learn docs/ https://example.com src/models/ Combine multiple sources

Instructions

1. Determine the target spec

  • If a spec name is clearly identified in $ARGUMENTS (e.g., /sdd:sdd-learn user-auth docs/), associate with that spec
  • If working during a /sdd:sdd-build session, use the current spec
  • If no spec context, ask: "Which spec should this knowledge be associated with? Or type 'global' for project-wide context."

2. Create/update the knowledge file

Store ingested knowledge in specs/.memory/<spec-name>.knowledge.md (or specs/.memory/global.knowledge.md for project-wide context):

---
spec: {spec-name}
last_updated: {date}
sources: []
---

# Knowledge Base: {Spec Name}

## Sources Ingested
(list of all sources with dates)

## Key Findings
(structured summary of what was learned)

## Relevant Patterns
(code patterns, API contracts, data models found)

## Domain Terms
(glossary of domain-specific terms discovered)

## Constraints Discovered
(technical or business constraints found in the sources)

## Open Questions
(things that were unclear or contradictory in the sources)

Read the full file on GitHub · 188 lines

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. 5d ago First seen · 188 lines · 46 tokens per session scan A d29b9d9fc880

Subscribe to this mod's changes

sdd-learn is a skill published in the GitHub repository viamus/claude-sdd-plugin (4 stars, last pushed 4mo ago), licensed MIT. It adds 46 tokens to every session and 1,581 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-08-31.