Langsung ke konten
Skillpedia
Dokumentasi280k Β· #150

codebase-onboarding

Fungsinya

Tool ini menganalisis proyek kode yang belum Anda kenal, lalu membuat panduan untuk membantu Anda memahami cara kerjanya. Panduan ini menunjukkan struktur proyek, titik masuk (entry point) utama, dan konvensi yang digunakan.

Kapan dipakai

  • βœ“Saat mulai mengerjakan proyek pemrograman baru.
  • βœ“Saat Anda perlu memahami kode yang tidak Anda tulis dengan cepat.
  • βœ“Saat Anda pertama kali menyiapkan AI tool di sebuah proyek.

Link skill

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/codebase-onboarding/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/codebase-onboarding/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBantu saya memahami codebase ini.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Pertama, tool ini mengidentifikasi teknologi yang digunakan (bahasa pemrograman, framework, dan lain-lain) serta struktur proyek secara keseluruhan. Kemudian, tool ini memetakan bagaimana setiap bagian saling terhubung dan aturan penulisan kode apa saja yang diikuti.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Codebase Onboarding

Systematically analyze an unfamiliar codebase and produce a structured onboarding guide. Designed for developers joining a new project or setting up Claude Code in an existing repo for the first time.

When to Use

  • First time opening a project with Claude Code
  • 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"

How It Works

Phase 1: Reconnaissance

Gather raw signals about the project without reading every file. Run these checks in parallel:

1. Package manifest detection
   β†’ package.json, go.mod, Cargo.toml, pyproject.toml, pom.xml, build.gradle,
     Gemfile, composer.json, mix.exs, pubspec.yaml

2. Framework fingerprinting
   β†’ next.config.*, nuxt.config.*, angular.json, vite.config.*,
     django settings, flask app factory, fastapi main, rails config

3. Entry point identification
   β†’ main.*, index.*, app.*, server.*, cmd/, src/main/

4. Directory structure snapshot
   β†’ Top 2 levels of the directory tree, ignoring node_modules, vendor,
     .git, dist, build, __pycache__, .next

5. Config and tooling detection
   β†’ .eslintrc*, .prettierrc*, tsconfig.json, Makefile, Dockerfile,
     docker-compose*, .github/workflows/, .env.example, CI configs

6. Test structure detection
   β†’ tests/, test/, __tests__/, *_test.go, *.spec.ts, *.test.js,
     pytest.ini, jest.config.*, vitest.config.*

Phase 2: Architecture Mapping

From the reconnaissance data, identify:

Tech Stack

  • Language(s) and version constraints
  • Framework(s) and major libraries
  • Database(s) and ORMs
  • Build tools and bundlers
  • CI/CD platform

Architecture Pattern

  • Monolith, monorepo, microservices, or serverless
  • Frontend/backend split or full-stack
  • API style: REST, GraphQL, gRPC, tRPC

Key Directories Map the top-level directories to their purpose:

<!-- Example for a React project β€” replace with detected directories -->
src/components/  β†’ React UI components
src/api/         β†’ API route handlers
src/lib/         β†’ Shared utilities
src/db/          β†’ Database models and migrations
tests/           β†’ Test suites
scripts/         β†’ Build and deployment scripts

Data Flow Trace one request from entry to response:

  • Where does a request enter? (router, handler, controller)
  • How is it validated? (middleware, schemas, guards)
  • Where is business logic? (services, models, use cases)
  • How does it reach the database? (ORM, raw queries, repositories)

Phase 3: Convention Detection

Identify patterns the codebase already follows:

Naming Conventions

  • File naming: kebab-case, camelCase, PascalCase, snake_case
  • Component/class naming patterns
  • Test file naming: *.test.ts, *.spec.ts, *_test.go

Code Patterns

  • Error handling style: try/catch, Result types, error codes
  • Dependency injection or direct imports
  • State management approach
  • Async patterns: callbacks, promises, async/await, channels

Git Conventions

  • Branch naming from recent branches
  • Commit message style from recent commits
  • PR workflow (squash, merge, rebase)
  • If the repo has no commits yet or only a shallow history (e.g. git clone --depth 1), skip this section and note "Git history unavailable or too shallow to detect conventions"

Phase 4: Generate Onboarding Artifacts

Produce two outputs:

Output 1: Onboarding Guide

# Onboarding Guide: [Project Name]

## Overview
[2-3 sentences: what this project does and who it serves]

## Tech Stack
<!-- Example for a Next.js project β€” replace with detected stack -->
| Layer | Technology | Version |
|-------|-----------|---------|
| Language | TypeScript | 5.x |
| Framework | Next.js | 14.x |
| Database | PostgreSQL | 16 |
| ORM | Prisma | 5.x |
| Testing | Jest + Playwright | - |

## Architecture
[Diagram or description of how components connect]

## Key Entry Points
<!-- Example for a Next.js project β€” replace with detected paths -->
- **API routes**: `src/app/api/` β€” Next.js route handlers
- **UI pages**: `src/app/(dashboard)/` β€” authenticated pages
- **Database**: `prisma/schema.prisma` β€” data model source of truth
- **Config**: `next.config.ts` β€” build and runtime config

## Directory Map
[Top-level directory β†’ purpose mapping]

## Request Lifecycle
[Trace one API request from entry to response]

## Conventions
- [File naming pattern]
- [Error handling approach]
- [Testing patterns]

…
Pertanyaan umum

Apa itu 'CLAUDE.md'?

Itu adalah file yang berisi instruksi khusus untuk proyek tersebut, sehingga membantu AI memahami cara bekerja dengan proyek itu.

Apa itu 'entry point'?

Itu adalah titik awal utama dalam kode, tempat permintaan atau proses dimulai.

Apakah tool ini membaca seluruh kode?

Tidak. Tool ini berfokus pada pengenalan pola dan struktur, tanpa perlu membaca setiap baris kode.

Detail

Deskripsi asli dari pembuat

Analyze an unfamiliar codebase and generate a structured onboarding guide with architecture map, key entry points, conventions, and a starter CLAUDE.md. Use when joining a new project or setting up Claude Code for the first time in a repo.

repo: affaan-m/ECC

Popularitas

Bintang GitHub
280k
Peringkat
#150
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa