重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/petekp/agent-skills --skill codebase-study-guide生成一份学习指南,运用循证学习技巧,帮助读者建立对代码库的持久理解。本指南不仅帮助读者理解代码的功能,还阐释其存在的原因以及各部分之间的关联。
这些原则贯穿指南的每一部分。完整的研究基础请参阅 references/pedagogy.md。
使用 AskUserQuestion 来了解受众和重点:
question: "Who is the primary audience for this study guide?"
header: "Audience"
options:
- label: "New team member"
description: "Developer joining this team, needs full onboarding"
- label: "Experienced dev, new codebase"
description: "Senior engineer who knows the stack but not this project"
- label: "Cross-team collaborator"
description: "Someone who needs to interface with this system, not own it"
- label: "Future me"
description: "Personal reference for a codebase I'm exploring now"
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
然后明确深度:
question: "What depth should the guide cover?"
header: "Depth"
options:
- label: "Full guide (Recommended)"
description: "Purpose, architecture, systems, patterns, interfaces, and exploration tasks"
- label: "Architecture overview"
description: "Purpose and high-level systems only, no deep dives"
- label: "Specific subsystem"
description: "Deep dive into one area of the codebase"
使用 Explore agent 或直接工具进行系统性探索。按以下顺序调查:
main、路由处理器、CLI 入口、事件监听器)同时留意:
根据探索结果,识别 2-3 个代码库特有的阈值概念——这些概念应具备以下特点:
例如:“一切皆事件”、“所有权决定生命周期”、“配置是唯一真相来源”、“读写分离模型”。
在撰写之前,创建一个系统的概念图作为心智模型:
这将成为指南的“系统地图”部分,并指导其他所有内容的顺序安排。
遵循 references/guide-template.md 中的模板结构。撰写时的关键原则:
对于每个系统/模块部分:
对于 Mermaid 图表:
graph TD 表示系统架构和数据流sequenceDiagram 表示请求流和交互classDiagram 表示具有关系的领域模型对于探索任务:
在交付指南之前:
将指南写成一个单独的 Markdown 文件,放在合适的位置(例如 .claude/docs/study-guide.md 或用户指定的位置)。指南应是自包含的——拥有代码库和指南访问权限的读者应无需其他任何东西。
每周安装次数
59
仓库
GitHub 星标
2
首次出现
2026年2月14日
安全审计
安装于
gemini-cli57
github-copilot57
amp57
codex57
opencode57
cursor57
Generate a study guide that builds durable understanding of a codebase using evidence-based learning techniques. The guide helps readers grasp not just what the code does, but why it exists and how its parts relate.
These principles shape every section of the guide. See references/pedagogy.md for the full research basis.
Use AskUserQuestion to understand the audience and focus:
question: "Who is the primary audience for this study guide?"
header: "Audience"
options:
- label: "New team member"
description: "Developer joining this team, needs full onboarding"
- label: "Experienced dev, new codebase"
description: "Senior engineer who knows the stack but not this project"
- label: "Cross-team collaborator"
description: "Someone who needs to interface with this system, not own it"
- label: "Future me"
description: "Personal reference for a codebase I'm exploring now"
Then clarify depth:
question: "What depth should the guide cover?"
header: "Depth"
options:
- label: "Full guide (Recommended)"
description: "Purpose, architecture, systems, patterns, interfaces, and exploration tasks"
- label: "Architecture overview"
description: "Purpose and high-level systems only, no deep dives"
- label: "Specific subsystem"
description: "Deep dive into one area of the codebase"
Conduct systematic exploration using the Explore agent or direct tools. Investigate in this order:
main, route handlers, CLI entry, event listeners)Also look for:
From the exploration, identify 2-3 codebase-specific threshold concepts — ideas that are:
Examples: "Everything is an event," "ownership determines lifecycle," "the config is the source of truth," "reads and writes are separate models."
Before writing, create a mental model of the system as a concept map:
This becomes the "System Map" section of the guide and informs the sequencing of everything else.
Follow the template structure in references/guide-template.md. Key principles while writing:
For each system/module section:
For the Mermaid diagrams:
graph TD for system architecture and data flowsequenceDiagram for request flows and interactionsclassDiagram for domain models with relationshipsFor the exploration tasks:
Before delivering the guide:
Write the guide as a single Markdown file placed at a sensible location (.claude/docs/study-guide.md or as specified by the user). The guide should be self-contained — a reader with access to the codebase and the guide should need nothing else.
Weekly Installs
59
Repository
GitHub Stars
2
First Seen
Feb 14, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
gemini-cli57
github-copilot57
amp57
codex57
opencode57
cursor57
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
123,700 周安装