360 Secure SkillHub
360 安全技能中心

Codebase Explorer

该 Skill 通过扫描包清单、目录结构和入口点,追踪请求生命周期,识别命名、错误处理、测试与 Git 约定,生成结构化上手指南和 CLAUDE.md。适用于新项目加入、仓库结构理解和团队知识交接。

djc00p
djc00p
热度 47.57
最近更新 2026-05-11 17:40:29
分类:开发依赖:读写文件 / 内部调用大模型应用场景:研究 / 摘要总结 / 模板 / 工作流 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add codebase-explorer
Metadata
name
codebase-explorer
description
Analyze unfamiliar codebases and generate structured onboarding guides with architecture maps, entry points, conventions, and project-specific instructions. Use when joining new projects, understanding repo structure, or generating CLAUDE.md. Trigger phrases: onboard me, understand this codebase, analyze this repo, generate CLAUDE.md, walk me through. Adapted from everything-claude-code by @affaan-m (MIT)
metadata
{"clawdbot":{"emoji":"🗺️","requires":{"bins":[],"env":[]},"os":["darwin","linux","win32"]}}

Codebase Onboarding

Systematically analyze unfamiliar codebases and produce structured onboarding guides.

When to Use

  • First time opening a project
  • Joining a new team or repository
  • User asks "help me understand this codebase"
  • User asks to generate a CLAUDE.md for a project
  • User says "onboard me" or "walk me through this repo"

Quick Start

  1. Scan package manifests and config files (identify tech stack and framework)
  2. Map directory structure and entry points (top 2 levels)
  3. Trace one request lifecycle (entry → validation → business logic → database)
  4. Identify naming, error handling, and testing patterns
  5. Generate onboarding guide and starter CLAUDE.md

Key Concepts

  • Reconnaissance — Use file presence patterns to infer tech stack and structure
  • Architecture pattern — Identify monolith vs. monorepo, frontend/backend split, API style
  • Convention detection — Extract naming, error handling, async patterns from recent code
  • Guided exploration — Don't read everything; use grep/glob selectively for ambiguity
  • Two-artifact output — Onboarding guide (structure + conventions) + CLAUDE.md (project instructions)

Common Usage

Most frequent patterns:

  • Understanding project structure and data flow
  • Documenting tech stack and architecture
  • Creating starter instructions for new team members
  • Identifying where to make changes (API routes, UI pages, database, tests)
  • Mapping conventions (naming, error handling, git workflow)

References

  • references/reconnaissance.md — File patterns for framework/language detection
  • references/artifacts.md — Onboarding guide and CLAUDE.md templates, best practices, anti-patterns