learn-anything

作者 ChenChenyaqi已验证

Learn Anything is an AI-powered recursive learning system — Socratic deep-dives and TDD-style exercises integrated directly into your coding assistant.

412
Stars
31
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/ChenChenyaqi/learn-anything

快速入门

使用 learn-anything 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Learn Anything Logo

Learn Anything

AI-Powered Recursive Learning System
Turn your AI coding assistant into an interactive tutor — Socratic method & TDD-style exercises.
Now with a built-in visual learning dashboard.

npm version Node.js pnpm workspace License MIT

English · 中文


What is Learn Anything?

Learn Anything generates skill and command files for 30+ AI coding tools — Claude Code, Cursor, Codex, OpenCode, and more. Once generated, your AI assistant gains six slash commands that guide you through systematically mastering any technical topic:

  • 🧭 Choose your own path — AI generates a knowledge map; you decide what to learn next
  • 🎓 Recursive learning method — Recursive explanations that follow your curiosity as deep as you want
  • 🧪 TDD-style practice — Write real code with structured feedback, from beginner to challenge
  • 📝 Adaptive quizzes — Quick text Q&A quizzes, graded and saved as reusable question decks
  • 📊 Spaced repetition — Smart review that surfaces weak spots when you need them most
  • 🔥 Knowledge visualization — Heatmap showing exactly where you stand
  • 🖥️ Visual Dashboard — Browse knowledge maps, session notes, and exercises in a rich web interface

Quick Start

# Interactive mode — auto-detects your AI tools and prompts you to choose
npx learn-anything-cli init

# Target specific tools
npx learn-anything-cli init --tools claude

# Or install globally
pnpm add -g learn-anything-cli   # npm install -g learn-anything-cli
learn-anything init

Context7 Integration (optional)

During init or update, you'll be prompted to enable Context7 for documentation verification. When enabled, the AI fetches official docs and cross-references its explanations against authoritative sources — dramatically improving teaching accuracy.

Setup: Run npx ctx7 setup or visit the Context7 docs for your AI tool.

After Init — Six Learning Commands

CommandWhat it does
/learn:topic <name>Initialize a topic, generate a knowledge map, track progress
/learn:explain <name>Recursive learning method — go as deep as you want
/learn:practice <name>TDD-style coding exercises with structured feedback
/learn:review [name]Spaced repetition review with personalized next-step plan
/learn:status [name]Knowledge map heatmap — mastery, practice counts, confidence
/learn:quiz <name>Quick text Q&A quiz — graded and saved for re-practice

Visual Learning Dashboard

Start a zero-config web dashboard to browse your learning data:

# Start the visual dashboard (no npm install needed)
npx learn-anything-cli serve

# Custom port
npx learn-anything-cli serve --port 8080

# Disable auto-open browser
npx learn-anything-cli serve --no-open

The dashboard is pre-built and shipped with the CLI — no extra dependencies or npm install required. If you installed globally, you can use learn-anything serve instead.

The dashboard provides:

  • Knowledge Map — Markdown-rendered overview of your learning topic
  • Session Notes — Browse and read all learning session notes organized by domain
  • Exercise Viewer — View starter code, solutions, and practice results with syntax highlighting
  • Dark Mode — Light/dark theme toggle
  • i18n — Full English and Chinese interface
  • Hot Reload — Auto-refresh when you add or modify topic files

How It Works

Your Project/
├── .claude/
│   ├── commands/learn/          # Slash commands for Claude
│   └── skills/                  # Skill files with full workflow instructions
├── .cursor/commands/            # Cursor-specific command format
├── .gemini/commands/learn/      # Gemini TOML-format commands
├── .codex/prompts/              # Codex prompt files
│   ...                          # (30+ other tool formats)
│
├── .learn/                      # 🧠 Your learning data lives here
│   └── topics/
│       └── typescript/
│           ├── state.json           # Single source of truth
│           ├── knowledge-map.md     # Auto-rendered from state.json
│           ├── sessions/            # Session history for spaced repetition
│           ├── exercises/           # TDD-style coding exercises
│           └── quizzes/             # Reusable text Q&A question decks
└── ...

Each AI tool receives tool-appropriate file formats via an adapter pattern — YAML frontmatter for Claude, TOML for Gemini, Markdown for Cursor, etc.

Monorepo Structure

learn-anything/
├── packages/
│   ├── cli/                     # learn-anything-cli — published to npm
│   │   ├── site/                 # Dashboard source (Vue 3 + Vite)
│   │   ├── scripts/              # Build scripts (bundle-site.mjs)
│   │   ├── src/
│   │   │   ├── cli/             # Commander.js CLI entry point
│   │   │   ├── core/            # init, config, command generation, templates
│   │   │   ├── i18n/            # en + zh-CN locales
│   │   │   └── utils/           # Filesystem, interactive helpers
│   │   ├── bin/                 # learn-anything binary
│   │   └── package.json
│   └── gui/                     # learn-anything-gui — coming soon 🚧
│       └── README.md
├── pnpm-workspace.yaml          # pnpm workspace config
├── tsconfig.base.json           # Shared compiler options
├── package.json                 # Workspace root (private)
└── pnpm-lock.yaml
PackagenpmDescription
learn-anything-clinpmCLI tool — generate skill/command files for 30+ AI tools
learn-anything-guiprivateGraphical desktop interface (in development)

Supported AI Tools

Manage, Amazon Q Developer, Antigravity, Auggie, Bob Shell, Claude Code, Cline, Codex, ForgeCode, CodeBuddy Code, Continue, CoStrict, Crush, Cursor, Factory Droid, Gemini CLI, GitHub Copilot, iFlow, Junie, Kilo Code, Kiro, OpenCode, Pi, Qoder, Lingma, Qwen Code, RooCode, Trae, Windsurf, and AGENTS.md-compatible assistants.

# Update existing skill files to the latest version (auto-detects installed tools)
npx learn-anything-cli update

Development

Prerequisites

  • Node.js ≥ 20
  • pnpm ≥ 9

Setup

git clone https://github.com/ChenChenyaqi/learn-anything.git
cd learn-anything
pnpm install

Commands

CommandDescription
pnpm buildBuild all packages (tsc)
pnpm testRun all tests (vitest run)
pnpm test:watchRun tests in watch mode
pnpm devTypeScript watch mode (all packages)
pnpm lintLint all packages (eslint)
pnpm formatFormat code (prettier)
pnpm dev:siteDev server for the visual dashboard

Per-Package Commands

pnpm -F learn-anything-cli build      # Build only CLI
pnpm -F learn-anything-cli test       # Test only CLI
pnpm -F learn-anything-cli dev:cli    # Build and run CLI locally

Star History

Star History Chart

License

MIT © yaqi chen


Built with ❤️ for curious minds · GitHub · Contributing · Changelog

常见问题

What is learn-anything?

learn-anything is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ChenChenyaqi. Learn Anything is an AI-powered recursive learning system — Socratic deep-dives and TDD-style exercises integrated directly into your coding assistant. It has 412 GitHub stars.

Is learn-anything safe to use?

Yes. learn-anything passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install learn-anything?

Clone the repository with "git clone https://github.com/ChenChenyaqi/learn-anything" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is learn-anything written in?

learn-anything is primarily written in TypeScript. It is open-source under ChenChenyaqi on GitHub, so you can review or fork the full source.

Are there alternatives to learn-anything?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh learn-anything against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情