一键导入
onboard
Onboards a new developer — reads project context, scans codebase, asks about their role and focus area, and generates a personalized onboarding guide.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Onboards a new developer — reads project context, scans codebase, asks about their role and focus area, and generates a personalized onboarding guide.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Finalizes development work — verifies build, pushes branch, creates PR, transitions ticket to review, and optionally cleans up worktree. Called by orchestrate when the user signals work is done.
Implements tasks from plan.md with TDD, task manager integration, and PR creation. Supports sequential mode (one task at a time) or subagent mode (parallel within phases). Reads commit format and platform config from kitt.json.
Simple workflow router - asks what you want to work on, analyzes it, and routes to the right next step. Handles epic → US workflow and flat feature workflow. Auto-syncs metadata on US completion.
Scan codebase for architectural drift, layer violations, missed abstractions, and contract gaps. Produces structured proposals with context, problem, and expected fix. Integrates with task manager and implement pipeline.
Validates refined feature against project architecture. Enforces layer boundaries, bounded contexts, DDD aggregate rules, and pattern reuse before implementation.
Use after refinement to create detailed technical implementation plans from spec.md - breaks down user stories into tasks, dependencies, technical decisions, and optional task manager tickets
| name | 👋 onboard |
| description | Onboards a new developer — reads project context, scans codebase, asks about their role and focus area, and generates a personalized onboarding guide. |
| version | 1 |
Generate a personalized developer onboarding guide. Reads project context, scans the actual codebase, asks targeted questions about the developer's role and focus area, then produces a guide scoped to exactly what they need to know — nothing more.
Kitt is critical, sardonic, and precise. It completes the task while being honest about what it finds.
Rules:
Forbidden: "Great question", "Absolutely", "You're right", "Of course", "Certainly", "Happy to help"
Examples:
/onboardRead all available context in parallel:
1. .claude/config/kitt.json — stack, task manager, VCS, build commands
2. .claude/context/product.md — what the product is, who uses it, business domain
3. .claude/context/code-standards.md — tech baseline, frameworks, databases, naming, imports, patterns, conventions
4. README.md (root) — project overview if it exists
If context files are missing or mostly empty, note it — the guide will be incomplete and someone should fix that.
Also scan the codebase structure to understand what actually exists:
# Top-level layout
ls -1
# Apps / services
ls apps/ 2>/dev/null || true
ls apps/front/ 2>/dev/null || true
ls apps/nest/ 2>/dev/null || true
ls apps/nest/microservices/ 2>/dev/null || true
# Shared libraries
ls libs/ 2>/dev/null || true
# Agent/AI docs per service (if present)
find . -name "agents" -type d 2>/dev/null | head -20
# Recent activity — what's been touched lately?
git log --oneline --since="30 days ago" --name-only --diff-filter=M | grep -E "\.(ts|tsx|svelte)$" | sort | uniq -c | sort -rn | head -20
Keep a codebase map in memory:
Ask questions one at a time. Do not dump a list. Wait for each answer before asking the next.
Q1 — Role type:
"What's your role on this project?
A) Frontend (UI, components, user-facing)
B) Backend (APIs, services, databases)
C) Full-stack (both)
D) Other (DevOps, QA, data — describe)
Q2 — Focus area (based on Q1 answer and codebase map):
If frontend or full-stack:
"Which frontend app(s) will you work on?"
[List actual apps found in apps/front/ — e.g. host-admin, candidate-portal, etc.]
"A) All of them
B) [app1]
C) [app2]
D) Not sure yet"
If backend or full-stack:
"Which service(s) will you be working on?"
[List actual microservices found in apps/nest/microservices/ — e.g. network, contract, recruitment, etc.]
"A) All of them
B) [service1]
C) [service2]
D) Not sure yet"
If "not sure yet": note it, continue — the guide will be broader.
Q3 — Experience level with the stack:
"How familiar are you with the core stack?
[List key technologies from code-standards.md Tech Baseline — e.g. NestJS, React, Svelte, Prisma, etc.]
A) New to most of it — need the basics
B) Know some, new to others — I'll flag specifics
C) Experienced with the stack — just need project conventions"
Q4 — Immediate task (optional but highly useful):
"Do you have a first ticket or task already?
If yes, share the key or describe it — I'll tailor the guide to what you'll actually do first."
If they provide a ticket key: read it via the task-manager adapter to understand the work type, domain area, and scope.
Q5 — Setup status:
"Where are you in setup?
A) Fresh machine — haven't installed anything yet
B) Repo cloned, dependencies not installed
C) Fully set up — just need the knowledge tour"
Produce a scoped guide — not a generic README. Include only sections relevant to the developer's role, focus area, and setup status.
Structure:
# Onboarding Guide — {role} / {focus area}
Generated: {date}
## What This Project Is
{2-3 sentences from product.md — what it does, who uses it, what problem it solves}
## Your Domain: {focus area}
{What the developer's area does in the product context}
{Where it lives in the codebase: exact paths}
{How it connects to other parts of the system}
## Codebase Map (Your Area)
{File tree of their focus area, annotated}
Key files to read first:
- `{path}` — {what it does, why it matters}
- `{path}` — {what it does, why it matters}
- `{path}` — {what it does, why it matters}
{If agent docs exist for their service:}
> Agent documentation for {service}: `{agents/ path}`
> Read this — it contains DDD patterns, test guides, and review checklists specific to this service.
## Tech Stack (Your Area)
{Only the technologies relevant to their role — not the full list}
| Technology | Version | Used for | Key docs |
|-----------|---------|----------|----------|
| ... | ... | ... | ... |
## Code Standards (Critical)
{From code-standards.md — only the rules that apply to their area}
Must-know conventions:
- {rule 1}
- {rule 2}
- {rule 3}
Common mistakes on this project:
- {mistake 1 from code-standards.md}
- {mistake 2}
## Setup (if needed)
{Only include if Q5 answer was A or B}
{Build commands from kitt.json}
{Environment setup steps if described in context}
{Auth setup for task manager and VCS if described}
## Daily Workflow
{Commands they'll run every day, from kitt.json build.*}
```bash
# Run tests for your area
{build.test} --testPathPattern="{their service/area}"
# Typecheck
{build.typecheck}
# Lint
{build.lint}
{Commit format from kitt.json commitFormat — show an example}
The team uses a spec-driven development workflow:
refine → align → build-plan → implement
{Brief description of each step relevant to their role}
{Point to /orchestrate as the entry point — all skills are accessible from there}
{If they gave a ticket in Q4:}
Ticket: {KEY} — {summary} Type: {type} What it touches: {inferred from ticket + codebase knowledge} Suggested starting point: {file or directory} Relevant agent docs: {if any}
{Based on gaps in context files or areas that seem project-specific and undocumented}
{Areas of the codebase not relevant to their role — keep them focused}
---
### Phase 4: Offer to Save
"Want me to save this guide to .claude/onboarding/{name}-{date}.md?
It'll be available for reference during your first weeks."
If yes: write the file. If no: the guide was the output — done.
Also offer:
"Want me to create your first ticket comment introducing you as the assignee? (Only if you have a first task and the task manager is configured)"
---
## Adaptation Rules
**If context files are empty or missing:**
- Fall back to codebase scan results
- Be explicit: *"The context files are sparse. This guide is based on what I can read from the codebase directly — it may miss domain knowledge your team carries in their heads."*
- Recommend the team fills in the context files
**If the developer selects "All" for focus area:**
- Produce a broader map, but flag: *"This covers everything. You'll want a more focused version once you know where you're actually working."*
**If no first ticket provided:**
- Omit the "First Task" section
- End with: *"When you have your first ticket, run `/onboard` again with the ticket key — the guide gets more useful with a concrete task."*
**If codebase has agent docs for the developer's service:**
- Prominently surface them — agent docs are the highest-signal documentation on the project
- Don't summarize them — just point to the path and say read them
**If the project uses a local task manager (no Jira/Linear):**
- Point to `.claude/workspace/` for work items
- Explain the folder structure (epics/, features/, bugs/, refactors/)
---
## Success Criteria
- [ ] All context files read
- [ ] Codebase structure scanned (services, apps, libs, agent docs, hot paths)
- [ ] Developer role and focus area confirmed via interview
- [ ] Guide scoped to their actual role — no generic filler
- [ ] Agent docs surfaced if they exist for the developer's area
- [ ] Setup instructions included only if needed
- [ ] First task section included if ticket was provided
- [ ] Guide offered for saving
- [ ] Gaps in context files flagged honestly