본문으로 건너뛰기
cccskills
무료GitHub에 공개

codebase-onboarding-generator

Automatically analyze a codebase and generate comprehensive CLAUDE.md documentation for future Claude Code sessions. Use when onboarding to a new project, creating project documentation, or generating AI coding assistant context files.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(5)

  • SKILL.md4.7 KB
  • references/claude-md-best-practices.md7.2 KB
  • scripts/analyze_codebase.py28.6 KB
  • scripts/tests/conftest.py242 B
  • scripts/tests/test_analyze_codebase.py18.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Codebase Onboarding Generator

Overview

This skill analyzes a codebase to automatically generate comprehensive CLAUDE.md documentation. It identifies common commands, build processes, test patterns, directory structure conventions, and key architectural decisions. The generated documentation follows best practices for Claude Code onboarding and enables efficient AI-assisted development.

When to Use

  • Setting up Claude Code for a new project that lacks CLAUDE.md
  • Generating initial project documentation for AI assistants
  • Refreshing outdated CLAUDE.md files after significant project changes
  • Creating standardized onboarding documentation for team codebases
  • Analyzing unfamiliar codebases to understand structure and conventions

Prerequisites

  • Python 3.9+
  • No API keys required
  • Standard library only (pathlib, json, os, re)

Workflow

Step 1: Analyze Codebase Structure

Run the codebase analyzer to detect project type, directory structure, and key files.

python3 scripts/analyze_codebase.py \
  --path /path/to/project \
  --output analysis.json

The analyzer detects:

  • Project type (Python, Node.js, Java, Go, Rust, etc.)
  • Package manager and dependency files
  • Build and test configuration
  • Directory conventions (src/, lib/, tests/, etc.)
  • Key configuration files (.gitignore, CI configs, etc.)

Step 2: Extract Common Commands

Parse package.json, Makefile, pyproject.toml, or other build files to extract:

  • Build commands
  • Test commands
  • Lint/format commands
  • Development server commands
  • Deployment commands

Step 3: Identify Architectural Patterns

Analyze code structure to identify:

  • Framework usage (React, Django, Spring, etc.)
  • Design patterns (MVC, microservices, monolith)
  • API conventions (REST, GraphQL, gRPC)
  • Database technologies (SQL, NoSQL, ORM)
  • Testing frameworks and patterns

Step 4: Generate CLAUDE.md

Synthesize analysis results into a comprehensive CLAUDE.md file.

python3 scripts/analyze_codebase.py \
  --path /path/to/project \
  --generate-claude-md \
  --output CLAUDE.md

Step 5: Review and Customize

Review the generated CLAUDE.md for:

  • Accuracy of detected commands and patterns
  • Missing project-specific conventions
  • Security considerations (ensure no secrets are referenced)
  • Team-specific guidelines to add manually

Output Format

JSON Analysis Report

{
  "schema_version": "1.1",
  "project_name": "example-project",
  "project_type": "python",
  "detected_at": "2024-01-15T10:30:00Z",
  "structure": {
    "root_files": ["README.md", "pyproject.toml", ".gitignore"],
    "directories": {
      "src": "Source code",
      "tests": "Test files",
      "docs": "Documentation"
    }
  },
  "commands": {
    "build": ["pip install -e ."],
    "test": ["pytest tests/ -v"],
    "lint": ["ruff check ."],
    "format": ["black ."]
  },
  "architecture": {
    "framework": "FastAPI",
    "patterns": ["REST API", "Repository Pattern"],
    "database": "PostgreSQL with SQLAlchemy"
  },
  "conventions": {
    "naming": "snake_case for files and functions",
    "testing": "pytest with fixtures in conftest.py",
    "documentation": "Google-style docstrings"
  }
}

Generated CLAUDE.md Structure

The generated CLAUDE.md follows this structure:

  1. Project Overview - Brief description and purpose
  2. Monorepo Structure - Workspace tools and packages (if detected)
  3. Common Commands - Build, test, lint, run commands with examples
  4. Directory Structure - Annotated directory tree
  5. Architecture - Framework, patterns, and design decisions
  6. Coding Conventions - Naming, style, and documentation standards
  7. Testing - Test framework, patterns, and how to run tests
  8. Key Files - Important configuration and entry points

Resources

  • scripts/analyze_codebase.py -- Main analysis script that detects project structure and generates documentation
  • references/claude-md-best-practices.md -- Guidelines for effective CLAUDE.md documentation

Key Principles

  1. Non-invasive analysis -- Only read files, never modify the target codebase
  2. Framework-agnostic -- Support multiple languages and build systems
  3. Security-conscious -- Never include secrets, credentials, or sensitive paths
  4. Incremental updates -- Support refreshing existing CLAUDE.md with new findings
  5. Human-in-the-loop -- Generate draft documentation for human review and customization

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Track and update action item status from natural language updates like 'Seanのメールには返信しておいた' or 'Lu対応予定'. Integrates with daily-comms-ops workflow. Use when managing action items across communication channels.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

takusaotome/claude-skills-library102026년 10월 5일 업데이트

AI活用提案の専門コンサルタントスキル。LLM・AIエージェントの活用事例知識を基に、業界別、部門別、シーン別に最適なAI導入提案を行います。システム化、業務改善、効率化を得意とし、具体的な活用事例、期待効果、導入ステップを含む実践的な提案を提供します。Use when proposing AI/LLM adoption strategies for specific industries, departments, or business scenarios.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

takusaotome/claude-skills-library102026년 10월 5일 업데이트

Generate AI-powered BPO service proposals for Japanese companies in the US market. Use when creating outsourcing proposals with AI service menus, ROI estimation, implementation roadmaps, and bilingual (JA/EN) proposal documents for 在米日系企業向けAI実装.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

takusaotome/claude-skills-library102026년 10월 5일 업데이트

AI(LLM)が生成した日本語テキストの「AI臭」を検出・診断し、人間らしい文章にリライトするスキル。 Use when: 「AIっぽい文章を直して」「人間らしくリライトして」「AI臭を消して」「この文章をもっと自然にして」 「テキストのAI感を減らして」「機械っぽさを取りたい」 "make this sound more human", "remove AI tone", "humanize this text", "detect if this is AI-generated". 6つのAI特有パターン(視覚的マーカー、単調なリズム、マニュアル的構成、非コミット姿勢、抽象語の濫用、 定型メタファー)を正規表現ベースで検出し、0-100のAI臭スコアを算出。3つの人間化技法 (バランスを崩す・客観を崩す・論理を崩す)でリライトを実行する。 Note: 検出スクリプトは日本語テキスト専用。英語テキストの場合はClaude自身がreferences/を参照して分析・リライトする。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

takusaotome/claude-skills-library102026년 10월 5일 업데이트

Generate audit-ready internal control design documents from As-Is business process inventories. Produces control IDs, assertion mappings, procedures, SoD analysis, KPIs, materiality thresholds, and implementation roadmaps. Use when building internal controls for new audit engagements, SOX/J-SOX compliance, or process improvement initiatives.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

takusaotome/claude-skills-library102026년 10월 5일 업데이트

Review audit-related documents (control design documents, bottleneck analyses, requirements definitions, etc.) for quality, scoring them 0-100 with a severity-rated findings list. Use when reviewing audit documents, checking control design quality, or verifying cross-document consistency. Supports documents governed by US GAAP, IFRS, or J-GAAP.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

takusaotome/claude-skills-library102026년 10월 5일 업데이트

takusaotome의 스킬 모두 보기

이 스킬의 문제 신고