npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

learn-anything-cli

v0.4.0

Published

AI-powered recursive learning system with Socratic method and TDD practice

Readme

Learn Anything

AI 驱动的递归学习系统 — 将你的 AI 编程助手变成交互式导师,使用苏格拉底式教学法和 TDD 风格练习。

30+ 种 AI 工具(Claude Code、Cursor、Gemini CLI、Codex、Copilot、Windsurf 等)生成 skill 和 command 文件,通过斜杠命令系统性掌握任何技术主题。

快速开始

# 在项目中初始化(交互模式 — 选择你的 AI 工具)
npx learn-anything-cli init

# 直接指定工具
npx learn-anything-cli init --tools claude

# 中文终端输出
npx learn-anything-cli init --lang zh-CN

# 或者全局安装
npm install -g learn-anything-cli
learn-anything init

Context7 集成(可选)

在执行 initupdate 时,会提示是否启用 Context7 文档验证。启用后,AI 会获取官方文档并对照权威来源验证其教学内容——提高教学准确性。

如果你还没有配置 Context7,运行 npx ctx7 setup 或访问 Context7 文档 查看你使用的 AI 工具的配置方式。

初始化后,你的 AI 助手获得五个学习命令:

| 命令 | 功能 | | -------------------------------- | -------------------------------------- | | /learn:topic <topic-name> | 初始化主题,生成知识图谱,跟踪学习进度 | | /learn:explain <concept-name> | 递归式苏格拉底深度学习一个概念 | | /learn:practice <concept-name> | TDD 风格编码练习,获得苏格拉底式反馈 | | /learn:review [topic-name] | 回顾学习进度,基于间隔重复推荐下一步 | | /learn:status [topic-name] | 可视化学习状态,展示知识图谱热力图 |

学习工作流

/learn:topic <topic-name> — 初始化主题

AI 生成层次化知识图谱(.learn/topics/<topic>/knowledge-map.md),创建学习状态跟踪文件(state.yaml),展示知识全景让你自主选择学习路径。

/learn:explain <concept-name> — 递归式深度学习

AI 评估你的水平(初级 → 高级),用类比和代码示例讲解概念,识别更深层的子话题,让你自主决定深入程度。每次学习会话都会被记录用于间隔重复。

/learn:practice <concept-name> — TDD 风格练习

AI 生成合适难度的测试驱动练习题(入门 / 进阶 / 挑战),提供结构化的苏格拉底式反馈,并更新你的掌握状态。涵盖边界情况、安全性和代码质量。

/learn:review [topic-name] — 进度回顾

分析学习数据:掌握度热力图、间隔重复优先级评分、概念关系分析(阻塞概念 / 孤立概念)。生成个性化的下一步学习计划。

/learn:status [topic-name] — 可视化状态

为每个概念渲染带状态图标、练习次数和信心分数的知识图谱热力图。

支持的 AI 工具

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 及兼容 AGENTS.md 的助手。

# 更新技能文件到最新版本(自动检测已有工具目录)
npx learn-anything-cli update

工作原理

你的项目/
├── .claude/commands/learn/    # 斜杠命令(learn:topic、learn:explain...)
├── .claude/skills/            # 包含完整工作流指令的 skill 文件
├── .cursor/commands/          # Cursor 专用命令格式
├── .gemini/commands/learn/    # Gemini TOML 格式命令
├── .learn/                    # 你的学习数据(知识图谱、进度)
│   └── topics/
│       └── javascript/
│           ├── knowledge-map.md
│           ├── state.yaml
│           └── sessions/
└── ...

每个 AI 工具通过适配器模式获得对应格式的文件(Claude 用 YAML frontmatter,Gemini 用 TOML 等)。

开发

pnpm install
pnpm build        # 编译 TypeScript
pnpm test         # 运行测试
pnpm dev          # 监听模式
pnpm dev:cli      # 本地构建并运行 CLI

许可证

MIT