Skip to main content

Software Development

Codebase Onboarding Generator

Analyzes an unfamiliar codebase and produces a machine-readable and human-readable brief with architecture map, conventions list, and flagged risk areas. Useful for first-contact orientation on new or legacy projects. Engineers joining a new team, tech leads creating onboarding docs for existing projects, AI-assisted development sessions on unfamiliar codebases, open-source maintainers helping first-time contributors. The expensive part is not reading files — it is synthesizing dozens of files into a mental model of what the system does and how it is organized. A structured onboarding generator does this synthesis once, writes it to a durable artifact (`CODEBASE_BRIEF.md`), and future sessions or new hires consume a crisp brief instead of re-deriving it.

Nexus CertifiedClaude CodeCodexOpenClawGoogle Antigravity
onboardingcodebasedocumentationarchitectureorientation

One-Time Purchase

$19.99

Sample Output

CODEBASE_BRIEF.md — FinTrack Platform (fintrack-platform)

Analyzer: ClearPoint Nexus — Codebase Onboarding Generator · Depth: Medium · Audience: AI-assisted session + new engineer hire

In one paragraph

Layered TypeScript monorepo on Turborepo, three deployable apps (Next.js dashboard, Fastify+tRPC API, BullMQ worker) consuming seven internal packages plus a semi-isolated Python ML service. Postgres via Drizzle, BullMQ on Redis, JWT auth, AWS ECS for the apps and Lambda for webhooks. Five risks worth surfacing on day one; two are blockers for a clean local boot.


1. Repository at a Glance

FieldValue
Primary LanguageTypeScript (84%), Python (11%), Shell (5%)
Runtime TargetsNode 20 (API), Python 3.11 (ML pipeline)
Monorepo ToolTurborepo (turbo.json)
Package Managerpnpm 8 (pnpm-lock.yaml)
CI PlatformGitHub Actions (.github/workflows/)
Deployment TargetAWS ECS + Lambda (inferred from infra/ecs-task-def.json, infra/lambda/)
Test FrameworksVitest (unit), Playwright (e2e), pytest (ML)
Source of truthpackages/ — 7 workspace packages; apps/ — 3 deployable apps

2. Architecture Map

The platform follows a layered monorepo pattern with a shared internal package registry. Three applications consume shared packages; the ML pipeline is semi-isolated.

Apps · deployable

3 entrypoints

Consume packages; never the other direction

apps/web — Next.js 14 dashboardui · auth · analytics · types
apps/api — Fastify REST + tRPCdb · auth · types · ml-client
apps/worker — BullMQ job processordb · types

Packages · internal

7 shared libraries

Versioned together; no external publish

packages/ui — Radix + Tailwind componentsUI
packages/db — Drizzle ORM schema + migrationsData
packages/auth — JWT + session utilitiesAuth
packages/config — ESLint, TS, env schemaConfig
packages/analytics — event tracking clientTelemetry
packages/ml-client — gRPC wrapper → ml/Bridge
packages/types — shared Zod schemas + TSSchemas

Out-of-tree dependency

The Python ML service (ml/) is reached only via the packages/ml-client gRPC wrapper. Treat it as an external service in the dependency graph — its lifecycle is independent of the Turborepo pipeline.


3. Tech Stack Summary

LayerTechnologyConfig File
FrontendNext.js 14 (App Router)apps/web/next.config.ts
APIFastify 4 + tRPC v11apps/api/src/server.ts
Background JobsBullMQ + Redisapps/worker/src/queue.ts
DatabasePostgreSQL 15 via Drizzle ORMpackages/db/drizzle.config.ts
AuthJWT (RS256) + iron-sessionpackages/auth/src/index.ts
ML ServiceFastAPI + scikit-learn, served via gRPCml/main.py, ml/proto/
InfrastructureAWS ECS (API/worker), Lambda (webhooks)infra/
SecretsAWS Secrets Manager + .env.local for devpackages/config/src/env.ts

4. Key Conventions

  • Environment validation: All env vars are declared and parsed with Zod in packages/config/src/env.ts. Adding an undeclared var will throw at startup. Add new vars there first.
  • Database migrations: Run via pnpm db:migrate (wraps drizzle-kit migrate). Never edit migration files after they are committed — create a new one.
  • API layer pattern: tRPC routers live in apps/api/src/routers/. Each domain (accounts, transactions, reports) has its own file. Shared middleware (auth guard, rate-limit) is in apps/api/src/middleware/.
  • Component authorship: All UI components go in packages/ui. Do not create one-off components inside apps/web — PRs doing so are rejected at review (see CONTRIBUTING.md §3).
  • Commit style: Conventional Commits enforced by commitlint + Husky pre-commit hook (.husky/, commitlint.config.ts).

5. Setup — Verified Commands

Commands verified against README.md and Makefile. Run in order.

# 1. Prerequisites: Node 20+, pnpm 8+, Docker Desktop, Python 3.11
corepack enable
corepack prepare pnpm@8.15.4 --activate

# 2. Clone and install
git clone https://github.com/example-org/fintrack-platform.git
cd fintrack-platform
pnpm install

# 3. Start infrastructure (Postgres + Redis)
docker compose up -d          # uses docker-compose.yml at repo root

# 4. Environment setup
cp .env.example .env.local    # fill in DB_URL, REDIS_URL, JWT_PRIVATE_KEY

# 5. Run migrations and seed dev data
pnpm db:migrate
pnpm db:seed                  # ⚠️ see Risk R-02 below

# 6. Start all apps in dev mode
pnpm dev                      # Turborepo runs web:3000, api:3001, worker

# 7. (Optional) Start ML service
cd ml && python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --port 50051

6. Risk Register

IDAreaSeverityFinding
R-01Onboarding toolingMediumNo automated dev environment script (make setup or equivalent). Steps must be followed manually. Recommend creating scripts/setup.sh.
R-02Seed dataHighpnpm db:seed exists but seed file (packages/db/src/seed.ts) references a SEED_USER_EMAIL env var not documented in .env.example. Will throw on first run for new devs. Ask the team or add to .env.example.
R-03ML service couplingMediumapps/api will start but return 500 on any /reports endpoint if the ML gRPC service is not running. No circuit breaker or graceful degradation detected in apps/api/src/routers/reports.ts.
R-04Secret rotationLowJWT_PRIVATE_KEY is loaded from .env.local in dev with no rotation tooling. Production uses Secrets Manager (confirmed via infra/ecs-task-def.json), but no rotation Lambda is present yet. Flag for security review.
R-05packages/analytics purposeLowModule exports a track() client but destination (Segment? internal?) is not inferrable from code alone. Purpose not fully inferred from code; ask the team.

7. First-Week Suggested Tasks

These tasks are safe, scope-contained, and give genuine codebase exposure.

  1. Fix the .env.example gap (R-02) — Add SEED_USER_EMAIL to .env.example with a placeholder value. Touches packages/db/src/seed.ts and repo root. Low risk, immediately useful, good first PR.

  2. Add a pnpm typecheck script to CItsconfig.json files exist across all packages but no CI step runs tsc --noEmit. Add a step to .github/workflows/ci.yml. Improves type-safety feedback loop with zero production risk.

  3. Write a missing tRPC router testapps/api/src/routers/accounts.test.ts exists; transactions.test.ts does not. Write the happy-path and auth-guard tests using the existing Vitest + tRPC caller pattern in accounts.test.ts.

  4. Document the analytics module — Add a README.md inside packages/analytics/ explaining the tracking destination and event schema. No code changes required; addresses R-05 and improves team knowledge retention.

  5. Spike: ML service health check — Investigate adding a gRPC health probe to apps/api/src/routers/reports.ts that returns a 503 with a clear message when the ML service is unreachable (addresses R-03). Propose approach in a draft PR — no need to merge first week.


8. Gaps & Recommendations

  • ⚠️ No dev environment automation — a scripts/setup.sh wrapping steps 1–6 above would eliminate the most common new-hire friction (R-01).
  • ⚠️ No CODEOWNERS file — unclear who owns packages/ml-client and infra/. Add .github/CODEOWNERS.
  • ℹ️ Turborepo remote cache not configuredturbo.json has no remoteCache entry. CI builds are slower than they need to be.

This brief was generated by the ClearPoint Nexus Codebase Onboarding Generator skill. All claims cite source files above. Verify anything marked ⚠️ with a team member before acting.


// codebase-brief.json (machine-readable sibling)
{
  "repo": "fintrack-platform",
  "primary_language": "TypeScript",
  "runtime": { "api": "Node 20", "ml": "Python 3.11" },
  "monorepo_tool": "Turborepo",
  "package_manager": "pnpm@8",
  "apps": [
    { "name": "web", "framework": "Next.js 14", "port": 3000 },
    { "name": "api", "framework": "Fastify 4 + tRPC", "port": 3001 },
    { "name": "worker", "framework": "BullMQ", "port": null }
  ],
  "packages": [
    { "name": "ui", "purpose": "Radix + Tailwind component library" },
    { "name": "db", "purpose": "Drizzle ORM schema and migrations" },
    { "name": "auth", "purpose": "JWT and session utilities" },
    { "name": "config", "purpose": "Shared ESLint, TS config, env schema" },
    { "name": "analytics", "purpose": "UNCLEAR — ask team", "flag": true },
    { "name": "ml-client", "purpose": "Python gRPC client wrapper for ML service" },
    { "name": "types", "purpose": "Shared Zod schemas and TypeScript types" }
  ],
  "risks": [
    { "id": "R-01", "severity": "medium", "summary": "No dev setup automation script" },
    { "id": "R-02", "severity": "high", "summary": "SEED_USER_EMAIL missing from .env.example" },
    { "id": "R-03", "severity": "medium", "summary": "No circuit breaker for ML service unavailability" },
    { "id": "R-04", "severity": "low", "summary": "No JWT rotation tooling in dev" },
    { "id": "R-05", "severity": "low", "summary": "analytics package destination not inferrable" }
  ],
  "first_week_tasks": [
    "Fix .env.example gap (R-02)",
    "Add pnpm typecheck to CI",
    "Write transactions router tests",
    "Document analytics package",
    "Spike ML service health check (R-03)"
  ],
  "setup_commands_source": "README.md + Makefile",
  "conventions_sources": ["CONTRIBUTING.md", "packages/config/src/env.ts", "commitlint.config.ts"]
}

Examples in this sample use a fictional repository (fintrack-platform) for illustration. Real client code is never included in sample outputs.

This sample illustrates the skill's output format. Names, metrics, and operational details are illustrative unless the artifact explicitly analyzes public information.

View full sample →

All sales final. No refunds on digital products.

Includes support for Claude Code, Codex, OpenClaw, and Google Antigravity in the same license.

Also in Product Documentation & Onboarding

Bundle price: $55. Compare this skill with the full workflow bundle or Pro access.

Best for

Engineering teams hiring into legacy codebases, AI-assisted development sessions starting in unfamiliar projects, and tech leads writing onboarding docs that get rewritten every quarter as the codebase drifts. Most valuable on medium-sized repos (10K–200K lines) where reading every file is not feasible but a structured brief saves days of orientation.

Not ideal for

Trivial codebases (a single-file script, a starter template) where the brief would be longer than the code, or enormous monorepos where a single brief flattens too much context. Also a poor fit as a substitute for direct domain knowledge transfer when a team is in active development and the codebase changes weekly.

Included in this purchase

  • Claude Code, Codex, OpenClaw, and Google Antigravity skill files.
  • Setup guidance for the right adapter in your workspace.
  • One-time license for the purchased skill version.

Setup

Plan for a short setup in the repository or workspace where the skill will run. Some coding familiarity helps for implementation-heavy outputs.

Claude CodeCodexOpenClawGoogle Antigravity

Related Skills

Code Generation & Review
Featured
Code Generation
Generates, reviews, debugs, and executes code in sandboxed workflows. Useful for implementation, refactoring, and technical problem solving.
Claude CodeCodexOpenClawGoogle Antigravity
codingdebuggingcode-review

$19.99

One-time license

View Skill
Product Documentation & Onboarding
API Documentation Generator
Generates structured, developer-ready API documentation from code, OpenAPI specs, route definitions, or descriptions. Produces reference docs, quickstart guides, error references, and code examples.
Claude CodeCodexOpenClawGoogle Antigravity
apidocumentationdeveloper-experience

$19.99

One-time license

View Skill
Code Generation & Review
Intelligent PR Composer
Generates pull request descriptions that capture context, alternatives considered, test plan, risk areas, and reviewer guidance beyond a simple diff summary. Useful for teams that want senior-quality PRs without manual authoring.
Claude CodeCodexOpenClawGoogle Antigravity
pull-requestscode-reviewgit

$19.99

One-time license

View Skill

Future Updates

This purchase includes the current version of the skill. If you want future adapter updates — meaning compatibility and packaging updates as supported platforms evolve — plus new catalog additions included automatically, upgrade to Pro.

Upgrade to Pro