Are you the author? Sign in to claim
An extensible agent skill that analyzes existing codebases on a strict token budget. It automatically classifies project
An agent skill designed to analyze, map, and document existing codebases during developer transitions or project onboarding.
Instead of reading the entire codebase, this skill uses a progressive scanning strategy to classify project files into architectural layers (such as Presentation/Logic/Data, Ports/Adapters, or Event-Driven Pub-Sub channels) and generate persistent local documentation.
This skill uses tool-agnostic descriptions for file system access, text search, and code viewing. It is compatible with any AI coding assistant that supports the Open Agent Skills specification, including:
You can distribute and install this skill directly using the Skills CLI or by cloning the repository.
Install this skill directly from GitHub into your local or global agent environment:
# Global installation (recommended for use across all codebases)
npx skills add RahmatHadinata23758051/SKILL-Codebase-Onboarder -g -y
# Local installation (scoped to current workspace root)
npx skills add RahmatHadinata23758051/SKILL-Codebase-Onboarder -y
Clone this folder directly into your agent's customization directory:
~/.agents/skills/codebase-onboarder/.agents/skills/codebase-onboarder/ at the root of your workspace.When taking over or backing up an existing project, understanding the system structure usually requires either manual code reading or feeding the entire repository into an AI context window. The latter approach consumes excessive API tokens and often leads to context overflow.
This skill automates codebase mapping by scanning only structure and structural code files (imports, class/function signatures, models, and routes). It saves token costs while producing a reliable overview of the system architecture.
Once executed, the skill creates the following local directory structure at the project root to store the generated analysis:
.agents/
└── skills/
└── codebase-onboarder/
├── project-overview.md # Tech stack, framework, entry points, and directory map
├── presentation-layer.md # Routes, views, controllers, and UI state management (Layered/MVC)
├── logic-layer.md # Core business services, rules, and external integrations (Layered/MVC)
├── data-layer.md # Database schemas, ORM models, and migration logs (Layered/MVC)
├── core-domain.md # Entities, aggregates, and domain services (Clean/Hexagonal)
├── ports-and-adapters.md # Ports interfaces and their implementations (Clean/Hexagonal)
├── event-publishers.md # Event schemas and trigger conditions (Event-Driven)
├── event-channels.md # Message queues and broker configs (Event-Driven)
├── event-handlers.md # Consumers, subscribers, and background tasks (Event-Driven)
├── layer-integration.md # Data flow description and interaction diagrams
├── issues-and-bugs.md # Log of detected anti-patterns, code smells, or bugs
└── diagrams/
├── architecture-overview.mmd # General component layout
├── layer-integration.mmd # Inter-layer communication diagram
└── data-flow.mmd # Sequence diagram of main request lifecycles
The skill directs the agent through seven execution phases:
.agents/ directory to avoid redundant scanning.node_modules, venv, etc.) to map out folder paths.package.json, requirements.txt) to identify languages and frameworks.You can see examples of generated outputs inside the examples/ directory:
Once this skill is installed globally or locally in your project, the AI agent will automatically listen for your commands.
To start the analysis, open a chat session with your agent in the target codebase and enter one of these commands:
The agent will progressively scan the codebase and save the output inside .agents/skills/codebase-onboarder/. In future chat sessions, the agent will read these cached reports first instead of re-scanning, saving your API tokens.
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Agent harness performance optimization with skills, instincts, memory, and security
Design enforcement with memory — keeps your UI consistent across a project
Detects 37 AI writing patterns and rewrites text with human rhythm across 5 voice profiles