MCP HubMCP Hub
Retour aux compétences

learn

pjt222
Mis à jour 2 days ago
7 vues
17
2
17
Voir sur GitHub
Métaaidesign

À propos

La compétence `learn` permet à Claude d'acquérir systématiquement des connaissances dans des domaines inconnus en construisant des modèles mentaux structurés par le biais d'investigations et de boucles de rétroaction. Elle est conçue pour des scénarios tels que l'exploration d'une nouvelle base de code, la recherche sur des sujets complexes ou la synthèse d'informations contradictoires. Le processus reproduit la répétition espacée, guidant Claude pour examiner, formuler des hypothèses, explorer et consolider sa compréhension en vue d'une utilisation future.

Installation rapide

Claude Code

Recommandé
Principal
npx skills add pjt222/agent-almanac -a claude-code
Commande PluginAlternatif
/plugin add https://github.com/pjt222/agent-almanac
Git CloneAlternatif
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/learn

Copiez et collez cette commande dans Claude Code pour installer cette compétence

Documentation

Learn

Structured knowledge acquisition session. Survey unfamiliar territory. Build initial models. Test them through deliberate exploration. Integrate findings into coherent understanding. Consolidate for durable retrieval.

When Use

  • Encountering unfamiliar codebase, framework, or domain with no prior context
  • User asks about topic outside current working knowledge. Answer requires genuine investigation, not recall
  • Multiple conflicting sources or patterns exist. Coherent mental model needs to be built from scratch
  • After remote-viewing surfaces intuitive leads needing systematic validation
  • Preparing to teach topic — AI must first understand it deeply enough to explain

Inputs

  • Required: Learning target — topic, codebase area, API, domain concept, or technology to understand
  • Optional: Scope boundary — how deep to go (surface survey vs. deep expertise)
  • Optional: User's purpose — why knowledge matters (guides which aspects to prioritize)
  • Optional: Known starting points — files, docs, concepts already familiar

Steps

Step 1: Survey — Map Territory

Before trying to understand anything, map landscape to identify 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           │
└──────────────────┴──────────────────────────┴──────────────────────────┘
  1. Identify territory type. Select primary modality
  2. Perform broad scan — not reading deeply, identifying landmarks (key files, entry points, core concepts)
  3. Note boundaries: what is in scope, what is adjacent, what is out of scope
  4. Identify gaps: areas looking important but opaque from surface
  5. Create rough map: list major components and apparent relationships

Got: Skeletal map of territory with 5-15 landmarks identified. Sense of which areas clear from surface and which require deeper investigation. No understanding yet — just map.

If fail: Territory too large to survey? Narrow scope immediately. Ask: "What is minimum I need to understand to serve user's purpose?" No clear entry point? Start from output (what does this system produce?) and trace backward.

Step 2: Hypothesize — Build Initial Models

From survey, construct initial hypotheses about how system works.

  1. Formulate 2-3 hypotheses about territory's structure or behavior
  2. State each hypothesis clearly: "I believe X because I observed Y"
  3. For each hypothesis, identify what evidence would confirm it and what would refute it
  4. Rank hypotheses by confidence: which feels most supported, which is shakiest
  5. Identify highest-value hypothesis to test first (if confirmed, unlocks most understanding)

Got: Concrete, falsifiable hypotheses — not vague impressions. Each has test that would confirm or refute it. Hypotheses collectively cover most important aspects of territory.

If fail: No hypotheses form? Survey was too shallow — return to Step 1, read 2-3 landmarks in depth. All hypotheses feel equally uncertain? Start with simplest (Occam's razor), build from there.

Step 3: Explore — Probe and Test

Systematically test each hypothesis through targeted investigation.

  1. Select highest-priority hypothesis
  2. Design minimal probe: smallest investigation that would confirm or refute it
  3. Execute probe (read file, search for pattern, test assumption)
  4. Record result: confirmed, refuted, or modified
  5. Refuted? Update hypothesis based on new evidence
  6. Confirmed? Probe deeper: does hypothesis hold at edges, or only in center?
  7. Move to next hypothesis, repeat

Got: At least one hypothesis tested to conclusion. Mental model beginning to take shape — some parts confirmed, some revised. Surprises noted as particularly valuable data.

If fail: Probes consistently produce ambiguous results? Hypotheses may be testing wrong things. Step back, ask: "What would someone who understands this system consider most important fact?" Probe for that instead.

Step 4: Integrate — Build Mental Model

Synthesize findings into coherent model connecting pieces.

  1. Review all confirmed hypotheses and revised models
  2. Identify central organizing principle: what is "spine" everything connects to?
  3. Map relationships: which components depend on which? What flows where?
  4. Identify surprising findings — often contain deepest insight
  5. Look for patterns repeating across different parts of territory
  6. Build mental model that can predict behavior: "Given input X, I expect Y because Z"

Got: Coherent mental model explaining territory's structure and predicting behavior. Model expressible in 3-5 sentences. Makes specific claims, not vague generalizations.

If fail: Pieces do not integrate into coherent model? May be fundamental misunderstanding in earlier hypothesis. Identify piece not fitting, re-test it. Alternatively, territory may genuinely be incoherent (poorly designed systems exist) — note this as finding rather than forcing coherence.

Step 5: Verify — Challenge Understanding

Test mental model by making predictions, checking them.

  1. Use model to make 3 specific predictions about territory
  2. Test each prediction through investigation (not by assuming it is true)
  3. Confirmed prediction → confidence increases
  4. Refuted prediction → identify where model is wrong, correct it
  5. Identify edge cases: does model hold at boundaries, or break down?
  6. Ask: "What would surprise me?" — check if that surprise is possible

Got: Mental model survives at least 2 of 3 prediction tests. Where it breaks, failure is understood and model is corrected. Model now has both confirmed strengths and known limitations.

If fail: Most predictions fail? Mental model has fundamental flaw. Valuable info — territory works differently than expected. Return to Step 2 with new evidence, rebuild hypotheses from scratch. Second attempt much faster because wrong models eliminated.

Step 6: Consolidate — Store for Retrieval

Capture learning in form supporting future retrieval and application.

  1. Summarize mental model in 3-5 sentences
  2. Note key landmarks — 3-5 most important things to remember
  3. Record any counterintuitive findings that might be forgotten
  4. Identify related topics this learning connects to
  5. Learning durable (needed across sessions)? Update MEMORY.md
  6. Learning session-specific? Note as context for current conversation
  7. State what remains unknown — honest gaps more useful than false confidence

Got: Concise, retrievable summary capturing essential understanding. Future references to this topic can start from this summary rather than re-learning from scratch.

If fail: Learning resists summarization? May not yet be fully integrated — return to Step 4. Learning seems too obvious to store? What feels obvious now may not feel obvious in fresh context. Store non-obvious parts.

Checks

  • Survey conducted before any deep investigation (map before dive)
  • Hypotheses explicitly stated and tested, not assumed
  • At least one hypothesis revised based on evidence (indicates genuine learning)
  • Mental model makes specific, testable predictions about territory
  • Known unknowns identified alongside known knowns
  • Consolidated summary concise enough to be useful for future retrieval

Pitfalls

  • Skipping survey: Diving into detail before understanding landscape wastes time on unimportant areas and misses big picture
  • Unfalsifiable hypotheses: "This is probably complex" cannot be tested. "This module handles authentication because it imports crypto" can be
  • Confirmation bias during exploration: Seeking only evidence supporting initial hypothesis while ignoring contradictions
  • Premature consolidation: Storing model before tested → confidently wrong future predictions
  • Perfectionism: Attempting to learn everything before applying any knowledge. Learning iterative — use partial understanding, then refine
  • Learning without purpose: Acquiring knowledge with no application in mind → unfocused, shallow understanding

See Also

  • learn-guidance — human-guidance variant for coaching person through structured learning
  • teach — knowledge transfer calibrated to learner. Builds on model constructed here
  • remote-viewing — intuitive exploration surfacing leads for systematic learning to validate
  • meditate — clearing prior context noise before entering new learning territory
  • observe — sustained neutral pattern recognition feeding learning with raw data

Dépôt GitHub

pjt222/agent-almanac
Chemin: i18n/caveman/skills/learn
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

Compétences associées

content-collections

Méta

Cette compétence propose une configuration éprouvée en production pour Content Collections, un outil axé sur TypeScript qui transforme des fichiers Markdown/MDX en collections de données typées de manière sûre avec une validation Zod. Utilisez-la lors de la création de blogs, de sites de documentation ou d'applications Vite + React riches en contenu pour garantir la sécurité de typage et la validation automatique du contenu. Elle couvre tout, de la configuration du plugin Vite et de la compilation MDX à l'optimisation des déploiements et la validation des schémas.

Voir la compétence

polymarket

Méta

Cette compétence permet aux développeurs de créer des applications avec la plateforme de marchés prédictifs Polymarket, incluant l'intégration d'API pour le trading et les données de marché. Elle fournit également une diffusion de données en temps réel via WebSocket pour surveiller les transactions en direct et l'activité du marché. Utilisez-la pour mettre en œuvre des stratégies de trading ou pour créer des outils traitant les mises à jour de marché en direct.

Voir la compétence

creating-opencode-plugins

Méta

Cette compétence aide les développeurs à créer des plugins OpenCode qui s'interconnectent avec plus de 25 types d'événements tels que les commandes, les fichiers et les opérations LSP. Elle fournit la structure du plugin, les spécifications de l'API événementielle et les modèles d'implémentation pour les modules JavaScript/TypeScript. Utilisez-la lorsque vous avez besoin d'intercepter, de surveiller ou d'étendre le cycle de vie de l'assistant IA OpenCode avec une logique personnalisée pilotée par les événements.

Voir la compétence

sglang

Méta

SGLang est un framework de service LLM haute performance spécialisé dans la génération rapide et structurée pour les workflows JSON, regex et agentiques grâce à son cache de préfixe RadixAttention. Il offre une inférence nettement plus rapide, particulièrement pour les tâches avec des préfixes répétés, ce qui le rend idéal pour les sorties complexes et structurées ainsi que les conversations multi-tours. Choisissez SGLang plutôt que des alternatives comme vLLM lorsque vous avez besoin d'un décodage contraint ou que vous construisez des applications avec un partage étendu de préfixes.

Voir la compétence