wiki-onboarding
npx skills add https://github.com/linehaul-ai/linehaulai-claude-marketplace --skill wiki-onboarding
Agent 安装分布
Skill 文档
Wiki Onboarding Guide Generator
Generate four audience-tailored onboarding documents in an onboarding/ folder, each giving a different stakeholder exactly the understanding they need.
Source Repository Resolution (MUST DO FIRST)
Before generating any guides, you MUST determine the source repository context:
- Check for git remote: Run
git remote get-url originto detect if a remote exists - Ask the user: “Is this a local-only repository, or do you have a source repository URL (e.g., GitHub, Azure DevOps)?”
- Remote URL provided â store as
REPO_URL, use linked citations:[file:line](REPO_URL/blob/BRANCH/file#Lline) - Local-only â use local citations:
(file_path:line_number)
- Remote URL provided â store as
- Determine default branch: Run
git rev-parse --abbrev-ref HEAD - Do NOT proceed until source repo context is resolved
When to Activate
- User asks for onboarding docs or getting-started guides
- User runs
/deep-wiki:onboardcommand - User wants to help new team members understand a codebase
Output Structure
Generate an onboarding/ folder with these files:
onboarding/
âââ index.md # Onboarding hub â links to all 4 guides with audience descriptions
âââ contributor-guide.md # For new contributors (assumes Python or JS background)
âââ staff-engineer-guide.md # For staff/principal engineers
âââ executive-guide.md # For VP/director-level engineering leaders
âââ product-manager-guide.md # For product managers and non-engineering stakeholders
index.md â Onboarding Hub
A landing page with:
- One-paragraph project summary
- Guide selector table:
| Guide | Audience | What You’ll Learn | Time |
|---|---|---|---|
| Contributor Guide | New contributors with Python/JS experience | Setup, first PR, codebase patterns | ~30 min |
| Staff Engineer Guide | Staff/principal engineers | Architecture, design decisions, system boundaries | ~45 min |
| Executive Guide | VP/directors of engineering | Capabilities, risks, team topology, investment thesis | ~20 min |
| Product Manager Guide | Product managers | Features, user journeys, constraints, data model | ~20 min |
Language Detection
Scan the repository for build files to determine the primary language for code examples:
package.json/tsconfig.jsonâ TypeScript/JavaScript*.csproj/*.slnâ C# / .NETCargo.tomlâ Rustpyproject.toml/setup.py/requirements.txtâ Pythongo.modâ Gopom.xml/build.gradleâ Java
Guide 1: Contributor Guide
File: onboarding/contributor-guide.md
Audience: Engineers joining the project. Assumes proficiency in Python or JavaScript and general software engineering experience.
Length: 1000â2500 lines. Progressive â each section builds on the last.
Required Sections
Part I: Foundations (skip if repo uses Python or JS)
- {Primary Language} for Python/JS Engineers â Syntax comparison tables, async model, collections, type system, package management. Concrete code side-by-side, NOT abstract descriptions.
- {Primary Framework} Essentials â Compare to equivalent Python/JS frameworks (e.g., FastAPI, Express). Request pipeline, routing, DI, config.
Part II: This Codebase
3. What This Project Does â 2-3 sentence elevator pitch
4. Project Structure â Annotated directory tree (what lives where and why). Include graph TB architecture overview.
5. Core Concepts â Domain-specific terminology explained with code examples. Use erDiagram for data model.
6. Request Lifecycle â sequenceDiagram (with autonumber) tracing a typical request end-to-end.
7. Key Patterns â “If you want to add X, follow this pattern” templates with real code
Part III: Getting Productive
8. Prerequisites & Setup â Table: Tool, Version, Install Command. Step-by-step with expected output at each step.
9. Your First Task â End-to-end walkthrough of adding a simple feature
10. Development Workflow â Branch strategy, commit conventions, PR process. Use flowchart diagram.
11. Running Tests â All tests, single file, single test, coverage commands
12. Debugging Guide â Common issues table: Symptom, Cause, Fix
13. Common Pitfalls â Mistakes every new contributor makes and how to avoid them
Appendices
- Glossary (40+ terms)
- Key File Reference â Table: Path, Purpose, Why It Matters, Source
- Quick Reference Card â Cheat sheet of most-used commands and patterns
Rules
- All code examples in the detected primary language
- Every command must be copy-pasteable with expected output
- Minimum 5 Mermaid diagrams (architecture, ER, sequence, flowchart, state)
- Use Mermaid for workflow diagrams (dark-mode colors) â add
<!-- Sources: ... -->comment block after each - Ground all claims in actual code â cite using linked format
Guide 2: Staff Engineer Guide
File: onboarding/staff-engineer-guide.md
Audience: Staff/principal engineers who need the “why” behind every decision. Deep systems experience, may not know this repo’s language.
Length: 800â1200 lines. Dense, opinionated, architectural.
Required Sections
- Executive Summary â What the system is in one dense paragraph. What it owns vs delegates.
- The Core Architectural Insight â The SINGLE most important concept. Include pseudocode in a DIFFERENT language from the repo.
- System Architecture â Full Mermaid
graph TBdiagram. Call out the “heart” of the system. - Domain Model â Mermaid
erDiagramof core entities. Data invariants table: Entity, Invariant, Enforced By, Source. - Key Abstractions & Interfaces â
classDiagramshowing load-bearing abstractions. - Request Lifecycle â
sequenceDiagram(withautonumber) showing typical request from entry to response. - State Transitions â
stateDiagram-v2for entities with meaningful lifecycle states. - Decision Log â Table: Decision, Alternatives Considered, Rationale, Source.
- Dependency Rationale â Table: Dependency, Purpose, What It Replaced, Source.
- Data Flow & State â How data moves through the system. Storage comparison table.
- Failure Modes & Error Handling â
flowchartfor error propagation paths. - Performance Characteristics â Bottlenecks, scaling limits, hot paths.
- Security Model â Auth, authorization, trust boundaries, data sensitivity.
- Testing Strategy â What’s tested, what isn’t, testing philosophy.
- Known Technical Debt â Table: Issue, Risk Level, Affected Files, Source.
- Where to Go Deep â Recommended reading order of source files, links to wiki sections.
Rules
- Use pseudocode in a different language to explain concepts
- Use comparison tables to map unfamiliar concepts (e.g.,
Task<T>=Awaitable[T]) - Dense prose with tables, NOT shallow bullet lists
- Every claim backed by linked citation
- Minimum 5 Mermaid diagrams (architecture, ER, class, sequence, state, flowchart)
- Each diagram followed by
<!-- Sources: ... -->comment block - Use tables aggressively â decisions, dependencies, debt should ALL be tables with Source columns
- Focus on WHY decisions were made, not just WHAT exists
Guide 3: Executive Guide
File: onboarding/executive-guide.md
Audience: VP/director of engineering. Needs capability overview, risk assessment, and investment context â NOT code-level details.
Length: 400â800 lines. Strategic, concise, decision-oriented.
Required Sections
- System Overview â What it does, who uses it, business value in 2-3 sentences
- Capability Map â Table: Capability, Status (Built/Partial/Planned), Maturity, Dependencies. What the system can and cannot do today.
- Architecture at a Glance â High-level Mermaid
graph LRdiagram. Services, data stores, external integrations â NO internal code details. Focus on deployment units and team boundaries. - Team Topology â Which team/person owns which components. Table: Component, Owner, Criticality, Bus Factor.
- Technology Investment Thesis â Why these technologies were chosen. Table: Technology, Purpose, Alternatives Considered, Risk Level.
- Risk Assessment â Table: Risk, Likelihood, Impact, Mitigation, Owner. Cover reliability, security, scalability, compliance.
- Cost & Scaling Model â How costs scale with usage. What the bottlenecks are. When the next scaling investment is needed.
- Dependency Map â
graph TBshowing critical external dependencies. Table: Dependency, Type (Service/Library/Platform), Risk if Unavailable. - Key Metrics & Observability â What’s measured, what dashboards exist, alerting coverage. Table: Metric, Current Value, Target, Source.
- Roadmap Alignment â Engineering workstreams mapped to business priorities. What’s in progress, what’s planned, what’s blocked.
- Technical Debt Summary â Top 5 debt items with business impact. Table: Issue, Business Impact, Effort to Fix, Priority.
- Recommendations â 3-5 actionable recommendations for the next quarter, prioritized by impact.
Rules
- NO code snippets â this guide is for engineering leaders, not coders
- Diagrams at service/team level, not class/function level
- Every claim backed by evidence â cite wiki sections, architecture docs, or source files
- Minimum 3 Mermaid diagrams (architecture overview, dependency map, capability/roadmap)
- Tables for every structured finding â this audience reads tables, not prose
- Business language â translate technical concepts into impact (reliability, velocity, cost, risk)
Guide 4: Product Manager Guide
File: onboarding/product-manager-guide.md
Audience: Product managers and non-engineering stakeholders. Needs to understand what the system does, what’s possible, and where the boundaries are â NOT how it’s built.
Length: 400â800 lines. User-centric, feature-focused, constraint-aware.
Required Sections
- What This System Does â 2-3 sentence elevator pitch in user-facing language (no jargon)
- User Journey Map â Mermaid
graph LRorjourneydiagram showing primary user flows through the system - Feature Capability Map â Table: Feature, Status (Live/Beta/Planned/Not Possible), User-Facing Behavior, Limitations. Comprehensive map of what’s built and what’s not.
- Data Model (Product View) â Simplified Mermaid
erDiagramshowing entities users interact with. Explain in business terms (e.g., “A Project has many Documents” not “FK relationship”). - Configuration & Feature Flags â Table: Flag/Config, What It Controls, Default, Who Can Change It. What can be toggled without engineering work.
- API Capabilities â What integrations are possible. Table: Capability, Endpoint/Method, Authentication, Rate Limits. Written for integration partners, not developers.
- Performance & SLAs â Response times, throughput limits, availability targets. Table: Operation, Expected Latency, Throughput Limit, Current SLA.
- Known Limitations & Constraints â Honest list of what the system can’t do or does poorly. Table: Limitation, User Impact, Workaround, Planned Fix.
- Data & Privacy â What data is collected, where it’s stored, retention policies, compliance status. Table: Data Type, Storage Location, Retention, Compliance.
- Glossary â Domain terms explained in plain language (not engineering jargon)
- FAQ â 10+ common questions a PM would ask, answered concisely
Rules
- ZERO engineering jargon â no “middleware”, “dependency injection”, “ORM”. Use plain language.
- User-centric framing â describe everything in terms of what users experience, not how code works
- Minimum 3 Mermaid diagrams (user journey, data model, feature map/capability overview)
- Tables for every structured finding â PMs scan tables, not prose
- If a technical concept must be mentioned, explain it in one sentence (e.g., “Feature flags â toggles that let us turn features on/off without deploying code”)
- Every claim grounded in evidence â cite wiki sections or source files for verification
Mermaid Diagram Rules (ALL guides)
ALL diagrams must use dark-mode colors:
- Node fills:
#2d333b, borders:#6d5dfc, text:#e6edf3 - Subgraph backgrounds:
#161b22, borders:#30363d - Lines:
#8b949e - If using inline
styledirectives, use dark fills with,color:#e6edf3 - Do NOT use
<br/>in Mermaid labels (use<br>or line breaks)
Validation
After generating each guide, verify:
- All file paths mentioned actually exist in the repo
- All class/method names are accurate (not hallucinated)
- Mermaid diagrams render (no syntax errors)
- No bare HTML-like tags (generics like
List<T>) outside code fences â wrap in backticks - Each guide is appropriate for its audience â no code in Executive/PM guides