Onboard

From InugamiDev/ultrathink-oss · View interactive version

Onboard is an AI agent skill from the GitHub repository InugamiDev/ultrathink-oss. Codebase onboarding orchestrator that scans, documents, summarizes, and teaches a codebase to new developers or to the AI agent itself.

How to use this skill

Skill file

Onboard

Purpose

Onboard is the codebase learning and teaching orchestrator. It systematically explores a codebase and produces a comprehensive understanding that it can either present to a human developer or internalize for its own future use. Onboard answers the question every new team member asks: "How does this all fit together?"

Onboard goes beyond just listing files and directories. It traces data flows, identifies architectural patterns, maps dependencies, finds the critical paths, and explains the "why" behind design decisions when evidence is available. It produces both high-level summaries for quick orientation and deep-dive documentation for reference.

Workflow

Phase 1: Scan

  1. Invoke scout -- Perform a comprehensive codebase scan:
  1. Identify the tech stack -- Catalog all technologies:
  1. Invoke research (if needed) -- For unfamiliar frameworks or libraries, look up their purpose and patterns via Context7 to understand what role they play.

Phase 2: Map Architecture

  1. Identify architectural pattern -- Determine the overall architecture:
  1. Map module boundaries -- Identify logical modules and their responsibilities:
  1. Invoke mermaid -- Generate architecture diagrams:
  1. Trace critical paths -- Identify and document the most important code paths:

Phase 3: Analyze Patterns & Conventions

  1. Extract coding conventions -- Document the patterns the codebase follows:
  1. Identify key abstractions -- Find and explain the core abstractions:
  1. Invoke sequential-thinking -- For complex architectural decisions, reason through why they were made based on evidence in the code.

Phase 4: Document

  1. Generate the onboarding guide -- Structure the knowledge into a consumable format:

Section 1: Quick Start

Section 2: Architecture Overview

Section 3: Key Concepts

Section 4: Code Map

Section 5: Data Flow

Section 6: Development Guide

  1. Invoke docs-writer (if writing to file) -- Format and write the onboarding guide as a document.

Phase 5: Teach

  1. Present the summary -- Deliver the onboarding to the user in the requested format:
  1. Answer questions -- Be prepared to go deeper on any area the user asks about.
  2. Write to memory -- Store the codebase knowledge for future sessions so subsequent interactions don't need a full re-scan.

Output Formats

Quick Summary (for experienced developers)

Project: [name] - [one-line description]
Stack: [language] + [framework] + [database] + [deployment]
Architecture: [pattern] with [key characteristic]
Entry: [main entry file] -> [routing] -> [handlers] -> [data layer]
Tests: [test runner] in [test directory], run with [command]
Key dirs: [dir1] (purpose), [dir2] (purpose), [dir3] (purpose)

Full Onboarding (for new team members)

Complete multi-section document as described in Phase 4.

Architecture Deep Dive (for architects)

Focused on architectural decisions, trade-offs, and technical debt with supporting diagrams.

Decision Points

| Condition | Action |

|-----------|--------|

| Small project (< 50 files) | Quick summary format, skip deep architecture |

| Large project (> 500 files) | Full onboarding with all sections |

| Monorepo | Document each package/app separately, then integration |

| User asks about specific area | Focus onboard on that area, brief overview of rest |

| Unfamiliar technology detected | Invoke research via Context7 before documenting |

| Complex architecture | Invoke sequential-thinking to explain design rationale |

| Codebase already scanned in memory | Skip Phase 1, update only changed areas |

Usage

Use Onboard when encountering a new codebase for the first time, when a new team member joins, or when you need to refresh understanding of a project you haven't worked on recently.

Best for:

Not ideal for:

Examples

Example 1: Full codebase onboarding

User: /onboard Walk me through this codebase

Onboard workflow:
1. scout -> Scan: Next.js app, 234 files, TypeScript, Prisma, Tailwind
2. Architecture -> App Router pattern, API routes, Prisma data layer
3. mermaid -> System diagram, module deps, auth flow, data creation flow
4. Patterns -> Feature-based directories, custom hooks pattern, Zod validation
5. Document -> Full 6-section onboarding guide
6. Present -> Deliver guide, offer to deep-dive on any section

Example 2: Focused module onboarding

User: /onboard Explain the payment system in this codebase

Onboard workflow:
1. scout -> Focus scan on payment-related files and dependencies
2. Architecture -> Payment module boundaries, Stripe integration points
3. mermaid -> Payment flow diagram (checkout -> webhook -> fulfillment)
4. Patterns -> Payment-specific error handling, retry logic, idempotency
5. Document -> Payment system deep-dive document
6. Present -> Walkthrough of the payment flow with key files

Example 3: Self-onboarding (AI learning)

User: /onboard Learn this codebase so you can help me effectively

Onboard workflow:
1. scout -> Full codebase scan
2. Architecture -> Map all modules and patterns
3. Key abstractions -> Identify core utilities, shared types, conventions
4. Memory write -> Store complete codebase map, conventions, and patterns
5. Present -> Brief summary to user, deep knowledge stored for future use
6. Ready -> "I've learned the codebase. Here's a quick overview..."

Example 4: Open-source contribution prep

User: /onboard I want to contribute to this open-source project, help me understand it

Onboard workflow:
1. scout -> Scan codebase + look for CONTRIBUTING.md, CODE_OF_CONDUCT.md
2. Architecture -> Map the project structure and key modules
3. research -> Check project docs, issue tracker patterns, PR conventions
4. Document -> Contributor-focused guide: where to add code, test patterns,
              PR expectations, coding style
5. Present -> "Here's how this project works and how to contribute..."

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.