Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

learn学习

Agent Skill

learn 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,409

周安装

57

GitHub Stars

769

下载量

442
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:learn(学习)
来源仓库:https://github.com/avifenesh/agentsys
仓库路径:skills/learn
安装命令:
npx skills add https://github.com/avifenesh/agentsys --skill learn
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/avifenesh/agentsys --skill learn

简介

learn 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 它通过在线资源收集创建全面的学习指南,并使用 RAG 优化索引提升知识可用性。
  • 支持按简要、中等或深度设置资料整理规模,适用于代码库、API 或服务概念学习。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • learn 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

learn

Research any topic by gathering online resources and creating a comprehensive learning guide with RAG-optimized indexes.

Parse Arguments

const args = '$ARGUMENTS'.split(' ').filter(Boolean);
const depth = args.find(a => a.startsWith('--depth='))?.split('=')[1] || 'medium';
const topic = args.filter(a => !a.startsWith('--')).join(' ');

Input

Arguments: <topic> [--depth=brief|medium|deep]

  • topic: Subject to research (required)
  • --depth: Source gathering depth

- brief: 10 sources (quick overview) - medium: 20 sources (default, balanced) - deep: 40 sources (comprehensive)

Research Methodology

Based on best practices from:

  • Anthropic's Context Engineering
  • DeepLearning.AI Tool Use Patterns
  • Anara's AI Literature Reviews

1. Progressive Query Architecture

Use funnel approach to avoid noise from long query lists:

Broad Phase (landscape mapping):

"{topic} overview introduction"
"{topic} documentation official"

Focused Phase (core content):

"{topic} best practices"
"{topic} examples tutorial"
"{topic} site:stackoverflow.com"

Deep Phase (advanced, if depth=deep):

"{topic} advanced techniques"
"{topic} pitfalls mistakes avoid"
"{topic} 2025 2026 latest"

2. Source Quality Scoring

Multi-dimensional evaluation (max score: 100):

FactorWeightMaxCriteria
Authority3x30Official docs (10), recognized expert (8), established site (6), blog (4), random (2)
Recency2x20<6mo (10), <1yr (8), <2yr (6), <3yr (4), older (2)
Depth2x20Comprehensive (10), detailed (8), overview (6), superficial (4), fragment (2)
Examples2x20Multiple code examples (10), one example (6), no examples (2)
Uniqueness1x10Unique perspective (10), some overlap (6), duplicate content (2)

Selection threshold: Top N sources by score (N = depth target)

3. Just-In-Time Retrieval

Don't pre-load all content (causes context rot):

  1. Collect URLs first via WebSearch
  2. Score based on metadata (title, description, URL)
  3. Fetch only selected sources via WebFetch
  4. Extract summaries (not full content)

4. Content Extraction Guidelines

For each source, extract:

{
  "url": "https://...",
  "title": "Article Title",
  "qualityScore": 85,
  "scores": {
    "authority": 9,
    "recency": 8,
    "depth": 7,
    "examples": 9,
    "uniqueness": 6
  },
  "keyInsights": [
    "Concise insight 1",
    "Concise insight 2"
  ],
  "codeExamples": [
    {
      "language": "javascript",
      "description": "Basic usage pattern"
    }
  ],
  "extractedAt": "2026-02-05T12:00:00Z"
}

Copyright compliance: Summaries and insights only, never verbatim paragraphs.

Output Structure

Topic Guide Template

Create agent-knowledge/{slug}.md:

# Learning Guide: {Topic}

**Generated**: {date}
**Sources**: {count} resources analyzed
**Depth**: {brief|medium|deep}

## Prerequisites

What you should know before diving in:
- Prerequisite 1
- Prerequisite 2

## TL;DR

Essential points in 3-5 bullets:
- Key point 1
- Key point 2
- Key point 3

## Core Concepts

### {Concept 1}

{Synthesized explanation from multiple sources}

**Key insight**: {Most important takeaway}

### {Concept 2}

{Synthesized explanation}

## Code Examples

### Basic Example

// Description of what this demonstrates {code}


### Advanced Pattern

{code}


## Common Pitfalls

| Pitfall | Why It Happens | How to Avoid |
| --- | --- | --- |
| Issue 1 | Root cause | Prevention strategy |

## Best Practices

Synthesized from {n} sources:

1. **Practice 1**: Explanation
2. **Practice 2**: Explanation

## Further Reading

| Resource | Type | Why Recommended |
| --- | --- | --- |
| [Title](https://github.com/avifenesh/agentsys/blob/HEAD/.kiro/skills/learn/%7Burl%7D) | Official Docs | Authoritative reference |
| [Title](https://github.com/avifenesh/agentsys/blob/HEAD/.kiro/skills/learn/%7Burl%7D) | Tutorial | Step-by-step guide |

---

*Generated by /learn from {count} sources.* *See `resources/{slug}-sources.json` for full source metadata.*

Master Index Template

Create/update agent-knowledge/CLAUDE.md:

# Agent Knowledge Base

> Learning guides created by /learn. Reference these when answering questions about listed topics.

## Available Topics

| Topic | File | Sources | Depth | Created |
|-------|------|---------|-------|---------|
| {Topic 1} | {slug1}.md | {n} | medium | 2026-02-05 |
| {Topic 2} | {slug2}.md | {n} | deep | 2026-02-04 |

## Trigger Phrases

Use this knowledge when user asks about:
- "How does {topic1} work?" → {slug1}.md
- "Explain {topic1}" → {slug1}.md
- "{Topic2} best practices" → {slug2}.md

## Quick Lookup

| Keyword | Guide |
|---------|-------|
| recursion | recursion.md |
| hooks, react | react-hooks.md |

## How to Use

1. Check if user question matches a topic
2. Read the relevant guide file
3. Answer based on synthesized knowledge
4. Cite the guide if user asks for sources

Copy to agent-knowledge/AGENTS.md for OpenCode/Codex.

Sources Metadata

Create agent-knowledge/resources/{slug}-sources.json:

{
  "topic": "{original topic}",
  "slug": "{slug}",
  "generated": "2026-02-05T12:00:00Z",
  "depth": "medium",
  "totalSources": 20,
  "sources": [
    {
      "url": "https://...",
      "title": "...",
      "qualityScore": 85,
      "scores": {
        "authority": 9,
        "recency": 8,
        "depth": 7,
        "examples": 9,
        "uniqueness": 6
      },
      "keyInsights": ["..."]
    }
  ]
}

Self-Evaluation Checklist

Before finalizing, rate output (1-10):

MetricQuestionTarget
CoverageDoes guide cover main aspects?≥7
DiversityAre sources from diverse types?≥6
ExamplesAre code examples practical?≥7
AccuracyConfidence in content accuracy?≥8

Flag gaps: Note any important subtopics not covered.

Enhancement Integration

If enhance=true, invoke after guide creation:

// Enhance the topic guide for RAG
Skill({ name: 'enhance-docs', args: `agent-knowledge/${slug}.md --ai` });

// Enhance the master index
Skill({ name: 'enhance-prompts', args: 'agent-knowledge/CLAUDE.md' });

Output Format

Return structured JSON between markers:

=== LEARN_RESULT ===
{
  "topic": "recursion",
  "slug": "recursion",
  "depth": "medium",
  "guideFile": "agent-knowledge/recursion.md",
  "sourcesFile": "agent-knowledge/resources/recursion-sources.json",
  "sourceCount": 20,
  "sourceBreakdown": {
    "officialDocs": 4,
    "tutorials": 5,
    "stackOverflow": 3,
    "blogPosts": 5,
    "github": 3
  },
  "selfEvaluation": {
    "coverage": 8,
    "diversity": 7,
    "examples": 9,
    "accuracy": 8,
    "gaps": ["tail recursion optimization not covered"]
  },
  "enhanced": true,
  "indexUpdated": true
}
=== END_RESULT ===

Error Handling

ErrorAction
WebSearch failsRetry with simpler query
WebFetch timeoutSkip source, note in metadata
<minSources foundWarn user, proceed with available
Enhancement failsSkip, note in output
Index doesn't existCreate new index

Token Budget

Estimated token usage by phase:

PhaseTokensNotes
WebSearch queries~2,0005-8 queries
Source scoring~1,000Metadata only
WebFetch extraction~40,00020 sources × 2,000 avg
Synthesis~10,000Guide generation
Enhancement~5,000Two skill calls
Total~60,000Within opus budget

Integration

This skill is invoked by:

  • learn-agent for /learn command
  • Potentially other research-oriented agents

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.65%
按下载量换算162

Claude

31.64%
按下载量换算140

Cursor

18.6%
按下载量换算82

Gemini CLI

9.23%
按下载量换算41

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills