assets/skills/research/onboarding/SKILL.md
Codebase onboarding workflow for understanding new projects. Use when joining a project, exploring codebase, or when user says "explain codebase", "onboard me", "new to project", "understand project", "explore codebase", "project overview".
npx skillsauth add phuthuycoding/moicle research-onboardingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Ramp up on a new codebase quickly: structure, conventions, where things live, how to make a first change.
/docs-sync/fix-hotfix / /fix-root-causegrep / findDetect stack with ~/.claude/architecture/_shared/stack-detection.md. Read ddd-architecture.md + the stack doc. Architecture context speeds up everything below by 10x.
SCAN → ANALYZE → EXPLAIN → GUIDE (first commit checklist)
Goal: map the territory before reading any business code.
# Structure
tree -L 2 -I 'node_modules|vendor|dist|build|.git'
# Tech surface
ls -la | grep -E "package.json|pubspec.yaml|go.mod|composer.json|Dockerfile|Makefile"
# Existing docs
find . -maxdepth 3 -name "README*" -o -name "CONTRIBUTING*" -o -name "ARCHITECTURE*"
# Activity
git log --oneline -20
git shortlog -sn --since=3months | head -10
Goal: understand layer boundaries, conventions, and the "shape" of code.
README.md — purpose + setupARCHITECTURE.md / CONTRIBUTING.md if presentdomain/user/). Trace: entity → port → usecase → handler → test..github/workflows/, Makefile) — what's enforced?ddd-architecture.md)Goal: produce a 1-page mental model that someone else can read.
## Project: {name}
### Purpose
{1-2 sentences: what business problem this solves}
### Stack
- Language: {go 1.22 / node 20 / dart 3.x / ...}
- Framework: {gin / nestjs / remix / flutter ...}
- DB: {postgres + sqlc / prisma / eloquent ...}
- Infra: {docker, k8s on GKE, redis, kafka ...}
### Architecture
{1 sentence: e.g., "DDD with hexagonal — domain-pure, infra implements ports"}
{ascii or mermaid: top-level layer diagram}
### Domains
| Domain | Responsibility |
|--------|----------------|
| {name} | {one line} |
### Where to find things
| If you need to... | Look in |
|-------------------|---------|
| Add a route | `application/ports/http/<domain>_handler` |
| Add business logic | `domain/<domain>/usecases` |
| Add a DB query | `infrastructure/database/<domain>_store` |
| Add a domain event | `domain/<domain>/events` + register in event bus |
| Add a test | `*_test.go` next to the source file |
### Conventions
- Error handling: {pattern}
- Logging: {library + level convention}
- Config: {env vars / yaml / both}
- Branch / commit: {convention}
### Gotchas
- {anything surprising — e.g., "cache TTL is 30s, not 5 min like the comment says"}
Goal: unblock the first real change. The fastest ramp-up is shipping code.
git log --oneline).github/PULL_REQUEST_TEMPLATE.md)/review-branch before opening PR## Onboarding Complete: {project}
### Mental Model
- Stack: {...}
- Architecture: {...}
- {N} domains identified
### Output
- Saved 1-page overview to {path}
- "Where to find things" table → {path}
- Gotchas list → {path}
### First Commit
- Task: {quick-win}
- Local env: ✅ build / ✅ lint / ✅ tests
- PR will follow: {project PR template}
| When | Use |
|------|-----|
| Generate full doc site after onboarding | /docs-sync |
| Build first real feature after onboarding | /feature-new |
| First bug fix to learn the codebase | /fix-hotfix |
| Author / update the onboarding doc itself | /docs-write |
| Phase | Agent | Purpose |
|-------|-------|---------|
| SCAN | @clean-architect | Identify architecture pattern |
| ANALYZE | @clean-architect | Layer + boundary analysis |
| ANALYZE | @code-reviewer | Conventions + smell check |
| ANALYZE | @security-audit | Security patterns |
| EXPLAIN | @docs-writer | 1-page overview |
| GUIDE | @docs-writer | First-commit checklist |
development
Test-Driven Development workflow. Use when doing TDD, writing tests first, or when user says "tdd", "test first", "test driven", "red green refactor".
development
Thorough pull request review workflow with architecture compliance checks. Use when reviewing pull requests, checking code changes, or when user says "review pr", "check pr", "review code", "pr review", "review pull request".
development
Review local branch changes for architecture compliance, conventions, and code quality before pushing/PR. Stack-aware — detects the project stack and applies the matching rules. Use when user says "review changes", "review branch", "check branch", "check changes", "review my code", "review before pr".
testing
DDD architecture compliance review with automated checks and review loop. Use when user says "architect-review", "architecture review", "review architecture", "check architecture", "review ddd", "ddd review".