Community程式設計與開發github.com

thedotmack/learn-codebase

透過完整讀取每個原始碼檔案來初始化程式碼庫。適合在開始處理新專案或不熟悉的專案時使用,或當使用者要求「學習程式碼庫」、「讀取程式碼庫」、「初始化」或「跟上進度」時。

learn-codebase 是什麼?

這個技能旨在幫助 AI 代理在開始處理一個新的或不熟悉的程式碼庫時,透過完整讀取每個原始碼檔案來快速初始化其上下文。對於使用 Claude Code、Cursor 或 Codex 等工具的開發者來說,這項技能特別有用,因為它能讓 AI 代理在幾秒鐘內全面了解專案的結構、檔案內容和相依關係。技能會掃描目錄結構,根據常見的忽略規則(例如 .gitignore)過濾不必要的檔案,並依序讀取所有相關的原始碼檔案。這樣一來,AI 代理就能夠提供更準確的建議、重構方案或錯誤修復,因為它已經掌握了整個程式碼庫的全貌。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/thedotmack/claude-mem/tree/main/skills/learn-codebase

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

learn-codebase 是做什麼的?

透過完整讀取每個原始碼檔案來初始化程式碼庫。適合在開始處理新專案或不熟悉的專案時使用,或當使用者要求「學習程式碼庫」、「讀取程式碼庫」、「初始化」或「跟上進度」時。

使用方法

當您需要快速了解一個專案時,只需告訴 AI 代理:

  • 「學習這個程式碼庫」
  • 「讀取程式碼庫」
  • 「初始化」
  • 「讓我跟上進度」

AI 代理將會掃描專案目錄,忽略常見的建置產物和第三方相依項目(依據 .gitignore 規則),並依序讀取每個原始碼檔案的完整內容。

支援的平台

  • Claude Code
  • Cursor
  • Codex
  • 其他相容的 AI 代理工具

運作方式

  1. 掃描專案根目錄以取得所有檔案和資料夾。
  2. 根據 .gitignore、node_modules、vendor 等常見排除規則過濾不必要的檔案。
  3. 依序讀取每個相關的原始碼檔案,並將其內容提供給 AI 代理。
  4. AI 代理便能理解程式碼庫的整體結構、實作細節和相依關係。

注意事項

  • 對於大型專案,可能需要幾秒鐘才能完成初始化。
  • 只會讀取純文字檔案;二進位檔案(如圖片、壓縮檔)會被跳過。
  • 如果專案中包含敏感資訊(如 API 金鑰),請確保這些資訊已透過 .gitignore 排除。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

thedotmack/babysit

Watch a pull request or review cycle until it is ready to merge. Use when asked to babysit, monitor, or keep checking PR comments, reviews, and CI until all actionable issues are resolved.

thedotmack/claude-code-plugin-release

Automated semantic versioning and release workflow for Claude Code plugins. Handles version increments across package.json, marketplace.json, plugin.json manifests, build verification, git tagging, GitHub releases, and changelog generation. NPM publishing (so `npx [email protected]` resolves) is handed off to the human maintainer, who raised npm security.

thedotmack/do

Execute a phased implementation plan using subagents. Use when asked to execute, run, or carry out a plan — especially one created by make-plan.

thedotmack/how-it-works

Explain how claude-mem captures observations, when memory injection kicks in, and where data lives. Use when the user asks "how does claude-mem work?" or "what is this thing doing?".

thedotmack/knowledge-agent

Build and query AI-powered knowledge bases from claude-mem observations. Use when users want to create focused "brains" from their observation history, ask questions about past work patterns, or compile expertise on specific topics.

thedotmack/make-plan

Create a detailed, phased implementation plan with documentation discovery. Use when asked to plan a feature, task, or multi-step implementation — especially before executing with do.

thedotmack/mem-search

Search claude-mem's persistent cross-session memory database. Use when user asks "did we already solve this?", "how did we do X last time?", or needs work from previous sessions.

thedotmack/pathfinder

Map a codebase into feature-grouped flowcharts, identify duplicated concerns across features, and propose a unified architecture. Use when asked to "find the ideal path," unify duplicated systems, or audit architecture before a refactor. Emits a proposed unified flowchart plus per-system /make-plan prompts.

thedotmack/smart-explore

Token-optimized structural code search using tree-sitter AST parsing. Use instead of reading full files when you need to understand code structure, find functions, or explore a codebase efficiently.

thedotmack/timeline-report

Generate a "Journey Into [Project]" narrative report analyzing a project's entire development history from claude-mem's timeline. Use when asked for a timeline report, project history analysis, development journey, or full project report.

thedotmack/wowerpoint

Turn one document into a kawaii NotebookLM slide-deck PDF. Use for "wowerpoint this", "make a deck about <file>", "turn this report into slides", or any request to render a single document as shareable narrative slides.

相關技能