Onboarding

From tinh2/skills-hub-registry · View interactive version

Onboarding is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Generate a comprehensive developer onboarding guide from your codebase. Triggers: you need a getting started guide, developer setup docs, CONTRIBUTING.

How to use this skill

Skill file

You are in AUTONOMOUS MODE. Do NOT ask questions. Analyze the project

codebase and produce a comprehensive developer onboarding guide.

INPUT:

$ARGUMENTS

Accepted arguments:

============================================================

PHASE 1: CODEBASE ANALYSIS

============================================================

Step 1.1 -- Tech Stack Detection

Scan for config files to determine: primary language and version, framework,

package manager (npm/yarn/pnpm/pip/poetry/cargo/go/bundler), runtime requirements,

database (from config, ORM, or docker-compose), and key dependencies a new

developer must understand.

Step 1.2 -- Project Structure Analysis

Map the directory structure (top-level + one level into src/lib/app dirs).

Identify the architectural pattern (MVC, Clean, Hexagonal, Layered, Feature-based).

Identify entry points and configuration files.

Step 1.3 -- Build and Run Commands

Extract from config files and scripts: install, build, dev, test (unit/integration/e2e),

lint/format, database migration, and any custom scripts (Makefile, package.json scripts).

Step 1.4 -- Environment Setup Requirements

Detect: .env.example variables, docker-compose service dependencies, required

external tools (Docker, cloud SDKs, platform SDKs), and pre-commit hooks

(.husky/, .pre-commit-config.yaml).

Step 1.5 -- Code Conventions

Detect from config: linter (.eslintrc, .pylintrc, golangci-lint), formatter

(.prettierrc, black, rustfmt), TypeScript strictness, .editorconfig, import

ordering rules, and naming conventions inferred from code patterns.

Step 1.6 -- Git and PR Workflow

Detect: branch naming patterns, PR templates, issue templates, commit message

conventions, CI checks on PRs, and CODEOWNERS.

Step 1.7 -- Key Architectural Patterns

Read 3-5 representative source files to identify: dependency injection, error

handling, logging, auth patterns, API response format, database access patterns,

and testing patterns (naming, fixtures, mocks).

============================================================

PHASE 2: GUIDE GENERATION

============================================================

Generate the onboarding guide with these sections. Output to docs/onboarding.md

for comprehensive guide, and optionally CONTRIBUTING.md in root if it does not exist.

Required sections:

  1. Prerequisites -- Table of required tools with versions and install instructions.
  1. Environment Setup -- Step-by-step: clone, install deps, copy .env.example,

configure required variables (table with variable, description, how to obtain),

set up database, verify setup works.

  1. Running Locally -- Dev server command and URL, Docker alternative if applicable,

table of common development commands (start, test, lint, build).

  1. Running Tests -- How to run full suite, single test, with verbose output.

Test file naming convention and organization.

  1. Project Architecture -- 2-3 sentence overview, directory tree with one-line

descriptions, data flow explanation, key patterns with example file references.

  1. Coding Conventions -- Style rules from linter/formatter config, naming conventions,

import ordering, where to put new features/tests/endpoints.

  1. Git Workflow -- Branch naming pattern, commit message convention with repo examples,

PR process (create, CI checks, review requirements, merge strategy).

  1. Common Tasks -- Step-by-step recipes for: adding a new API endpoint, adding a new

database model, adding a new UI screen (adapt to project type).

  1. Troubleshooting -- Tables of common setup and runtime problems with solutions.

If CONTRIBUTING.md does not exist, write a concise version to project root covering:

fork, branch, make changes, run tests, submit PR. Link to full onboarding guide.

If CONTRIBUTING.md already exists, read it first and merge new content.

============================================================

PHASE 3: VALIDATE AND WRITE

============================================================

For each command in the guide:

Write files:

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After producing documentation, validate completeness:

  1. Verify all required sections are present and non-empty.
  2. Verify internal cross-references and links resolve correctly.
  3. Verify no placeholder text remains ("{TODO}", "[TBD]", "...", "etc.").
  4. Verify code examples are syntactically valid.

IF VALIDATION FAILS:

============================================================

OUTPUT

============================================================

Onboarding Guide Generated

Project Profile

Files Written

Sections Included

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /onboarding — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

============================================================

DO NOT

============================================================

NEXT STEPS:

After generating the onboarding guide:

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.