Back to Alchemy
Alchemy RecipeAdvancedautomation

Software engineering onboarding documentation from codebase and team handbook

28 March 2026

Introduction New developers joining your team face a familiar problem: weeks spent hunting for answers that someone already knows.

The institution stores knowledge everywhere and nowhere at once. It's scattered across GitHub wikis that haven't been updated since 2023, Slack threads from three months ago, confluence pages with conflicting information, and inside the heads of senior engineers too busy to document things properly. By the time a new hire understands your architecture, deployment pipeline, and team conventions, they could have shipped actual features. This is the cost of unstructured knowledge transfer. The problem compounds as your team grows; each new person multiplies the number of ad hoc explanations senior developers must give. What if you could turn your codebase, pull request history, team handbook, and internal docs into an interactive onboarding experience that new developers could work through at their own pace? You can automate this almost entirely by combining a documentation generator, video creation, your code repository, and an AI-powered IDE into a single guided workflow. ---

The Automated Workflow This workflow takes your source code, team handbook, and internal documentation, generates structured onboarding content, creates explainer videos featuring virtual presenters, and gives new developers an AI-assisted code exploration tool.

The entire process runs without manual handoff between tools. Orchestration tool: n8n We'll use n8n because it offers strong GitHub integration, flexible data transformation nodes, and reliable webhook support. Zapier could work here too, but n8n gives you more control over API request formatting and error handling without hitting rate limits quite as quickly.

Step 1: Trigger on new team member signup

Set up an n8n workflow that listens for a webhook from your HR system or a manual form submission. When a new developer joins, this captures their name, start date, and role.

POST https://your-n8n-instance.com/webhook/onboarding-start
{ "name": "Alex Chen", "start_date": "2026-04-15", "role": "Backend Engineer", "team": "Platform"
}

Step 2: Extract and prepare documentation

Use a webhook node to trigger a GitHub API call that fetches your team handbook, architecture documentation, and recent pull request templates from a designated repository directory.

GET https://api.github.com/repos/yourorg/internal-docs/contents/onboarding
Authorization: Bearer YOUR_GITHUB_TOKEN

This retrieves markdown files. In the next n8n node, use the code execution capability to parse these files and extract key sections: system architecture, deployment process, code style guide, common gotchas, and team communication norms.

Step 3: Generate structured onboarding documentation

Pass the extracted content plus the new developer's role to Claude Opus 4.6 via the Anthropic API node in n8n. Prompt Claude to create role-specific onboarding documentation that answers questions like: "What does a Backend Engineer need to know in their first week?" and "What are the critical systems they'll interact with?"

{ "model": "claude-opus-4.6", "max_tokens": 4096, "system": "You are an expert technical onboarding writer. Create a structured onboarding guide for a new developer joining this team. Focus on their specific role and what they need to learn first.", "messages": [ { "role": "user", "content": "Role: Backend Engineer\nTeam: Platform\nDocumentation:\n[extracted docs here]\n\nCreate a day-by-day onboarding plan for the first week, then a week-by-week plan for the first month. Include learning objectives, key systems to explore, and actionable tasks." } ]
}

Claude outputs structured markdown. Store this in a cloud storage node (Google Drive or AWS S3 works well here) for easy access.

Step 4: Generate video explanations

Take the structured documentation and feed key sections to Hour One's API. This tool creates video introductions featuring virtual presenters explaining your architecture, deployment workflow, and team practices. Rather than reading static docs, a new developer watches a 3-5 minute video introduction to each major system.

POST https://api.hourone.com/videos
{ "presenter_name": "Alex", "presenter_avatar": "professional", "script": "Welcome to the Platform team. Today we're covering our microservices architecture. We run three core services: the API gateway, user service, and data pipeline. The API gateway handles all external requests...", "language": "en", "duration_preference": "short", "background": "office"
}

Hour One returns a video URL within minutes. Store these URLs in a spreadsheet alongside the documentation.

Step 5: Prepare code exploration with Windsurf context

Use n8n to create a custom context file for Windsurf that points the AI-powered IDE toward the most important files a new backend engineer should explore first. This file includes annotations about architecture decisions, recent refactors, and where to find examples.

{ "codebase_context": { "entry_points": [ "src/main.rs (server initialization)", "src/handlers/ (request handlers by endpoint)", "src/models/ (data structures)" ], "critical_files": [ "architecture.md (overall design)", "DEPLOYMENT.md (how changes go live)", ".github/workflows/ci.yml (CI/CD pipeline)" ], "learning_path": [ "Start in src/main.rs to understand initialization", "Read architecture.md to see how services talk to each other", "Explore src/handlers/ to understand request flow", "Check tests/ for examples of common patterns" ], "dont_touch_yet": [ "src/legacy/ (being deprecated, confusing patterns)", "scripts/migration_tools/ (internal use only)" ] }
}

Save this context file to the team's shared repository or pass it directly to Windsurf via environment configuration.

Step 6: Create onboarding checklist and send to new developer

Build an n8n node that compiles everything: links to the generated documentation, video URLs, the Windsurf context file, and a checklist of tasks for the first week. Send this via email or Slack.

{ "onboarding_package": { "welcome_message": "Your onboarding documentation has been generated. Here's everything you need for your first week:", "documentation_link": "https://drive.google.com/file/d/...", "videos": [ { "title": "Architecture Overview", "url": "https://videos.hourone.com/..." }, { "title": "Deployment Pipeline", "url": "https://videos.hourone.com/..." } ], "code_exploration": "Open Windsurf and clone the repo. The AI will guide you through key files.", "first_week_tasks": [ "Day 1: Watch architecture video, read architecture.md", "Day 2: Explore src/main.rs and handlers/ with Windsurf assistance", "Day 3: Set up local development environment", "Day 4: Make a small code change and submit a pull request", "Day 5: Review team practices and ask questions" ] }
}

Step 7: Monitor and adapt

Set up a feedback loop. After two weeks, send the new developer a brief survey asking which resources were most helpful and what's still unclear. Feed those responses back into your Claude prompts to improve future onboarding packages. This keeps the workflow relevant as your codebase and team practices evolve. ---

The Manual Alternative If you prefer more control or want to pilot this with just one new hire, do it by hand once, then automate the next time.

Have a senior engineer manually write role-specific onboarding notes, create one or two introductory videos with tools like Loom instead of Hour One, and set up a Windsurf context file by hand. This takes a day or two, but you'll learn what works for your team before building the automated workflow. ---

Pro Tips Handle API rate limits gracefully. Claude Opus 4.6 and GitHub APIs have rate limits.

In your n8n workflow, add retry nodes with exponential backoff. Wait 60 seconds before retrying a failed request, then 120 seconds, then 300 seconds. This prevents timeouts when traffic is heavy. Version your onboarding output. Store generated documentation with timestamps in the filename: onboarding_alex_chen_2026_04_15.md. If your codebase changes significantly, you can regenerate packages without overwriting old versions. This is helpful if you need to debug why someone's onboarding went differently than another person's. Use role-based context. Your backend engineers need different onboarding than frontend developers. Tailor the Claude prompt to each role. Include a field in your webhook that specifies role, then branch the n8n workflow accordingly. Backend engineers might get deep dives into database schemas; frontend developers get component library walkthroughs. Test the workflow with an existing engineer first. Generate an onboarding package for someone who already knows your systems. Have them work through it as if they were new. This reveals gaps, outdated information, and places where videos are confusing before it matters. Cache commonly used documentation. If multiple new hires go through the same onboarding, you don't want to re-fetch and re-process the same documentation files each time. Store parsed docs in n8n's data storage layer or a Redis cache. This saves API calls and speeds up workflow execution. ---

Cost Breakdown

ToolPlan NeededMonthly CostNotes
n8nCloud Pro or Self-Hosted£30–200Cloud Pro sufficient for small teams; self-hosted if you want zero data leakage
Claude Opus 4.6API pay-as-you-go£2–8 per onboarding~4000 tokens per thorough documentation generation
GitHub APIIncluded with GitHub£0Free for authenticated API calls up to 60 requests/hour
Hour OneStarter or Professional£99–499/monthProfessional includes unlimited videos; Starter is 10 videos/month
WindsurfFree or Pro£0–20Free tier adequate; Pro for larger codebases or team deployments
Google Drive or S3 storageIncluded or minimal£0–5For storing generated docs and videos