learn
关于
The `learn` skill enables Claude to systematically acquire knowledge from unfamiliar domains using a structured reasoning process of surveying, hypothesizing, probing, and verifying. It is designed for situations like exploring an unfamiliar codebase, investigating topics beyond simple recall, or resolving conflicting information into a coherent model. Key capabilities include deliberate model-building with feedback loops and the use of tools like Read, Grep, and WebSearch for exploration.
快速安装
Claude Code
推荐npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/learn在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
Learn
Structured knowledge acquisition session — survey unfamiliar, build initial models, test via deliberate exploration, integrate into coherent understanding, consolidate for durable retrieval.
Use When
- Unfamiliar codebase / framework / domain, no prior ctx
- User asks topic outside working knowledge, answer needs investigation not recall
- Conflicting sources / patterns → coherent mental model from scratch
- After
remote-viewingsurfaces intuitive leads → systematic validation - Prep to
teach— must understand deeply enough to explain
In
- Req: Learning target — topic, codebase area, API, concept, tech
- Opt: Scope boundary — surface survey vs deep expertise
- Opt: User's purpose — why this matters (prioritization)
- Opt: Known starting points — files, docs, concepts familiar
Do
Step 1: Survey — Map Territory
Before understanding anything, map landscape → ID what exists.
Learning Modality Selection:
┌──────────────────┬──────────────────────────┬──────────────────────────┐
│ Territory Type │ Primary Modality │ Tool Pattern │
├──────────────────┼──────────────────────────┼──────────────────────────┤
│ Codebase │ Structural mapping — │ Glob for file tree, │
│ │ find entry points, core │ Grep for exports/imports,│
│ │ modules, boundaries │ Read for key files │
├──────────────────┼──────────────────────────┼──────────────────────────┤
│ API / Library │ Interface mapping — │ WebFetch for docs, │
│ │ find public surface, │ Read for examples, │
│ │ types, configuration │ Grep for usage patterns │
├──────────────────┼──────────────────────────┼──────────────────────────┤
│ Domain concept │ Ontology mapping — │ WebSearch for overviews, │
│ │ find core terms, │ WebFetch for definitions,│
│ │ relationships, debates │ Read for local notes │
├──────────────────┼──────────────────────────┼──────────────────────────┤
│ User's context │ Conversational mapping │ Read conversation, │
│ │ — find stated goals, │ Read MEMORY.md, │
│ │ preferences, constraints │ Read CLAUDE.md │
└──────────────────┴──────────────────────────┴──────────────────────────┘
- ID territory type + select primary modality
- Broad scan — not reading deeply, ID landmarks (key files, entry points, core concepts)
- Note boundaries: in scope, adjacent, out of scope
- ID gaps: important-looking but opaque from surface
- Rough map: list major components + apparent relationships
→ Skeletal map w/ 5-15 landmarks. Sense of clear surface vs deeper investigation needed. No understanding yet — just map.
If err: Territory too large → narrow scope. Ask: "Min to understand → serve user's purpose?" No clear entry → start from output (what produces?) + trace backward.
Step 2: Hypothesize — Initial Models
From survey → construct hypotheses.
- Formulate 2-3 hypotheses about structure / behavior
- State clearly: "I believe X because I observed Y"
- Per hypothesis → what evidence confirms, what refutes
- Rank by confidence: most supported, shakiest
- ID highest-value to test first (unlocks most understanding if confirmed)
→ Concrete falsifiable hypotheses — not vague impressions. Each has test. Collectively cover most important aspects.
If err: No hypotheses → survey too shallow → back to Step 1, read 2-3 landmarks in depth. All equally uncertain → simplest (Occam's) + build from there.
Step 3: Explore — Probe + Test
Systematically test each hypothesis via targeted investigation.
- Select highest-priority
- Design minimal probe: smallest investigation confirming/refuting
- Execute (read file, search pattern, test assumption)
- Record: confirmed, refuted, modified
- If refuted → update hypothesis w/ new evidence
- If confirmed → probe deeper: holds at edges or only center?
- Next hypothesis, repeat
→ ≥1 hypothesis tested to conclusion. Model taking shape — some confirmed, some revised. Surprises noted as valuable data.
If err: Probes consistently ambiguous → testing wrong things. Step back: "What would an expert consider most important fact?" Probe for that.
Step 4: Integrate — Mental Model
Synthesize findings → coherent model connecting pieces.
- Review confirmed hypotheses + revised models
- ID central organizing principle: "spine" everything connects to
- Map relationships: which components depend on which? What flows where?
- ID surprising findings — often deepest insight
- Look for patterns repeating across territory
- Build model predicting behavior: "Given input X, expect Y because Z"
→ Coherent model explaining structure + predicting behavior. Expressible in 3-5 sentences, specific claims not vague.
If err: Pieces don't integrate → fundamental misunderstanding in earlier hypothesis. ID piece that doesn't fit → re-test. Or territory genuinely incoherent (poorly designed exist) → note as finding rather than forcing.
Step 5: Verify — Challenge Understanding
Test model via predictions + check.
- Use model → 3 specific predictions
- Test each via investigation (not assuming true)
- Per confirmed → confidence increases
- Per refuted → ID where model wrong + correct
- Edge cases: hold at boundaries or break?
- Ask: "What would surprise me?" → check if possible
→ Model survives ≥2 of 3 prediction tests. Failures understood, model corrected. Now has confirmed strengths + known limitations.
If err: Most predictions fail → model fundamental flaw. Valuable info — territory works differently than expected. Return Step 2 w/ new evidence, rebuild. 2nd attempt much faster (wrong models eliminated).
Step 6: Consolidate — Store for Retrieval
Capture learning in form supporting future retrieval + application.
- Summarize model in 3-5 sentences
- Note key landmarks — 3-5 most important to remember
- Record counterintuitive findings (might be forgotten)
- ID related topics this connects to
- Durable learning (needed across sessions) → update MEMORY.md
- Session-specific → note as ctx for current conv
- State what remains unknown — honest gaps > false confidence
→ Concise retrievable summary capturing essential understanding. Future references start from summary, not re-learning.
If err: Learning resists summarization → not fully integrated → return Step 4. Learning too obvious to store → what feels obvious now may not in fresh ctx. Store non-obvious.
Check
- Survey before deep investigation (map before dive)
- Hypotheses explicit + tested, not assumed
- ≥1 hypothesis revised based on evidence (= genuine learning)
- Model makes specific testable predictions
- Known unknowns ID'd alongside known knowns
- Consolidated summary concise for future retrieval
Traps
- Skip survey: Diving into detail before landscape → wastes time on unimportant + misses big picture.
- Unfalsifiable hypotheses: "This is probably complex" can't be tested. "This module handles auth because it imports crypto" can.
- Confirmation bias: Seeking only supporting evidence, ignoring contradictions.
- Premature consolidation: Store model before tested → confidently wrong future predictions.
- Perfectionism: Learn everything before applying anything. Iterative — use partial, then refine.
- Learning w/o purpose: Knowledge w/o application → unfocused shallow understanding.
→
learn-guidance— human-guidance variant → coach person thru structured learningteach— knowledge transfer calibrated to learner; builds on model constructed hereremote-viewing— intuitive exploration surfaces leads for systematic learning to validatemeditate— clear prior ctx noise before new learning territoryobserve— sustained neutral pattern recognition feeding learning w/ raw data
GitHub 仓库
相关推荐技能
content-collections
元Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
polymarket
元这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。
creating-opencode-plugins
元该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。
sglang
元SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。
