{"id":48044611,"url":"https://github.com/agent-sh/learn","last_synced_at":"2026-04-04T14:16:54.982Z","repository":{"id":339696623,"uuid":"1163064659","full_name":"agent-sh/learn","owner":"agent-sh","description":"Research any topic online and create comprehensive learning guides with RAG-optimized indexes","archived":false,"fork":false,"pushed_at":"2026-03-23T02:31:57.000Z","size":1760,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-23T22:44:55.238Z","etag":null,"topics":["ai","automation","devtools","documentation","javascript","knowledge-base","learning","llm","rag","research"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agent-sh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-21T03:28:02.000Z","updated_at":"2026-03-23T02:31:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/agent-sh/learn","commit_stats":null,"previous_names":["agent-sh/learn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agent-sh/learn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Flearn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Flearn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Flearn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Flearn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agent-sh","download_url":"https://codeload.github.com/agent-sh/learn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Flearn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","automation","devtools","documentation","javascript","knowledge-base","learning","llm","rag","research"],"created_at":"2026-04-04T14:16:54.882Z","updated_at":"2026-04-04T14:16:54.971Z","avatar_url":"https://github.com/agent-sh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# learn\n\nResearch any topic online and create comprehensive learning guides with RAG-optimized indexes for your AI agents.\n\n## Why\n\nAI agents work better when they have curated, pre-researched knowledge to draw from instead of searching the web on every question. `/learn` builds that knowledge base systematically - gathering sources, scoring them for quality, and synthesizing structured guides that agents can reference instantly.\n\nUse cases:\n\n- Learning a new technology before starting implementation\n- Building a shared knowledge base across a team's AI tools\n- Creating authoritative reference material from scattered online sources\n- Producing guides that work as RAG context for Claude Code, OpenCode, and Codex\n\n## Installation\n\n```bash\nagentsys install learn\n```\n\nRequires [agentsys](https://github.com/agent-sh/agentsys) to be set up in your project.\n\n## Quick Start\n\n```\n/learn react hooks\n```\n\nThis searches the web for ~20 sources on React hooks, scores each source for authority and depth, fetches the top results, and writes a synthesized guide to `agent-knowledge/react-hooks.md` with a companion `resources/react-hooks-sources.json` containing full source metadata.\n\n## How It Works\n\nThe learn skill follows a six-stage methodology:\n\n1. **Progressive discovery** - Funnel approach: broad queries for landscape mapping, focused queries for core content, deep queries for advanced material. Avoids noise from dumping all queries at once.\n\n2. **Quality scoring** - Each source is scored on a 100-point scale across five dimensions: authority (3x weight), recency (2x), depth (2x), examples (2x), and uniqueness (1x). Official docs score highest; undated blog posts score lowest.\n\n3. **Just-in-time extraction** - Only high-scoring sources get fetched. Summaries and key insights are extracted - never full content. This keeps token usage predictable and respects copyright.\n\n4. **Synthesis** - A structured learning guide is generated with prerequisites, core concepts, code examples, common pitfalls, best practices, and further reading. Content is cross-referenced across sources, not copied from any single one.\n\n5. **RAG index** - The master index (`agent-knowledge/CLAUDE.md` and `AGENTS.md`) is updated with the new topic, trigger phrases, and keyword mappings so agents can find relevant guides automatically.\n\n6. **Enhancement** - Runs `enhance:enhance-docs` and `enhance:enhance-prompts` on the output to improve RAG retrieval quality. Skip with `--no-enhance`.\n\n## Usage\n\n```bash\n# Default depth (20 sources)\n/learn recursion\n\n# Deep research (40 sources)\n/learn kubernetes networking --depth=deep\n\n# Quick overview (10 sources)\n/learn python decorators --depth=brief\n\n# Skip enhancement pass\n/learn typescript generics --no-enhance\n```\n\n### Depth Levels\n\n| Level | Sources | When to Use |\n|-------|---------|-------------|\n| `brief` | 10 | Quick overview, time-sensitive topics |\n| `medium` | 20 | Balanced coverage (default) |\n| `deep` | 40 | Comprehensive research, complex topics |\n\n### Output Files\n\nEach run creates or updates:\n\n```\nagent-knowledge/\n  CLAUDE.md                       # Master index (updated)\n  AGENTS.md                       # Master index for OpenCode/Codex (updated)\n  \u003ctopic-slug\u003e.md                 # Synthesized learning guide\n  resources/\n    \u003ctopic-slug\u003e-sources.json     # Source metadata with quality scores\n```\n\n### Existing Topics\n\nIf a guide already exists for the topic, you are prompted to either update the existing guide with new sources or start fresh.\n\n## Architecture\n\n| Component | Type | Model | Role |\n|-----------|------|-------|------|\n| `learn` | command | - | Entry point, argument parsing |\n| `learn-agent` | agent | sonnet | Research coordination, web search, synthesis |\n| `learn` | skill | - | Research methodology, scoring rubric, templates |\n\n## Requirements\n\n- [agentsys](https://github.com/agent-sh/agentsys) runtime\n- Web access (WebSearch and WebFetch tools)\n- An `agent-knowledge/` directory in the workspace (created automatically)\n\n## Related Plugins\n\n- [agent-knowledge](https://github.com/agent-sh/agent-knowledge) - Where guides are stored; contains existing research\n- [enhance](https://github.com/agent-sh/enhance) - Post-processing for RAG optimization\n- [consult](https://github.com/agent-sh/consult) - For getting a second opinion on specific questions instead of building a full guide\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagent-sh%2Flearn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagent-sh%2Flearn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagent-sh%2Flearn/lists"}