understand-onboard
Writes an onboarding guide for someone joining a codebase, built from the knowledge graph of the Understand-Anything plugin and checked against the…
от TerminalSkills★ 221 звезда на GitHub
Установить understand-onboard в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/understand-onboard: Onboarding Guide from an Understand-Anything Graph
Overview
Understand-Anything is an open-source plugin for coding agents. Its /understand command analyses a repository and saves a knowledge graph as JSON: every file with a summary, the relationships between them, a grouping into architectural layers and an ordered tour. /understand-onboard turns that graph into a document a newcomer can follow.
A graph dump is not an onboarding guide. A person who starts on Monday needs to get the project running, know which five files matter, read them in a sensible order and learn where not to make a first change. This skill generates the factual skeleton from the graph with a script, then adds what the graph does not contain (setup commands, first tasks, team conventions) from the repository itself, and verifies every path and command before the file is saved.
Graph content the guide is built from:
| In the graph | Becomes in the guide |
|---|---|
project: name, description, languages, frameworks, gitCommitHash, analyzedAt |
the opening paragraph and the provenance line |
layers[]: name, description, nodeIds |
the map, one table per layer |
tour[]: order, title, description, nodeIds, languageLesson |
the reading route |
nodes[]: type, filePath, summary, complexity, tags |
table rows, the risk list, the vocabulary |
edges[]: imports, calls, tested_by and others |
entry points, the most depended-on files, missing tests |
If the project has no graph, install the plugin (Claude Code: /plugin marketplace add Egonex-AI/Understand-Anything, then /plugin install understand-anything) and run /understand; the understand-chat skill covers other hosts and the analysis options.
Instructions
1. Find out who the guide is for
Ask at most three questions, and skip any the request already answers:
- Who is joining: role and familiarity with the stack (backend developer who knows TypeScript, data analyst new to the language, contractor for one feature).
- What they will work on first, if known. The guide then leads with that area.
- Where the guide should live. The plugin's own command proposes
docs/UA_ONBOARDING.md; use that unless the team has a docs convention.
Look for what already exists before writing anything: ls README* CONTRIBUTING* docs/ 2>/dev/null. An existing setup section is linked, not copied, and an existing onboarding file is updated in place.
2. Check the graph and its age
G=.ua/knowledge-graph.json
[ -d .understand-anything ] && G=.understand-anything/knowledge-graph.json
jq -r '"\(.project.name): \(.nodes | length) nodes, \(.layers | length) layers, \(.tour | length) tour steps, kind \(.kind // "codebase")"' "$G"
SHA=$(jq -r '.project.gitCommitHash' "$G")
git rev-parse --verify --quiet "$SHA^{commit}" >/dev/null &&
git diff --name-only "$SHA" HEAD -- . ':(exclude).ua' ':(exclude).understand-anything' | wc -l
| Finding | Decision |
|---|---|
| no graph file | stop; the project needs /understand first (in a git worktree, look in the main checkout) |
kind is knowledge or design |
wrong input: this guide needs a codebase graph |
| zero layers or zero tour steps | the analysis did not finish; ask for /understand --full |
| 0 changed files | proceed |
| a few changed files, none in the map's key files | proceed and put the count in the provenance line |
| many changed files, or new top-level folders | ask for an incremental /understand first; a guide that sends a newcomer to deleted files costs more than it saves |
| the hash does not resolve | proceed, and rely on step 5 to catch dead paths |
3. Generate the skeleton
Save as ua-onboard.mjs in a scratch folder. The second argument limits the rows per layer (default 10), keeping the most depended-on files.
import { readFileSync } from "node:fs";
const g = JSON.parse(readFileSync(process.argv[2], "utf8"));
const perLayer = Number(process.argv[3] ?? 10);
const byId = new Map(g.nodes.map((n) => [n.id, n]));
const path = (id) => byId.get(id)?.filePath;
const TOP = new Set(["file", "config", "document", "service", "pipeline", "table", "schema", "resource", "endpoint"]);
const row = (...cells) => `| ${cells.map((c) => String(c).replace(/\|/g, "\\|").replace(/\s+/g, " ")).join(" | ")} |`;
// Usage counted per file, so that function-level edges roll up to the file they live in.
const USES = new Set(["imports", "calls", "depends_on", "inherits", "implements", "reads_from", "writes_to"]);
const usedBy = new Map(), usesOthers = new Set();
for (const e of g.edges) {
const from = path(e.source), to = path(e.target);
if (!USES.has(e.type) || !from || !to || from === to) continue;
usedBy.set(to, (usedBy.get(to) ?? new Set()).add(from));
usesOthers.add(from);
}
const fanIn = (f) => usedBy.get(f)?.size ?? 0;
const testEdges = g.edges.filter((e) => e.type === "tested_by");
const tests = new Set(testEdg
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _scores.json
FAQ
Что делает скилл understand-onboard?
Writes an onboarding guide for someone joining a codebase, built from the knowledge graph of the Understand-Anything plugin and checked against the repository: how to run the project, a map of its layers, a reading route, the files everything depends on and the risky ones. Use when someone says "write an onboarding guide for this repo", "a new developer starts Monday", "run /understand-onboard", "help me get up to speed on this project", "document the architecture for new hires", or wants docs/UA_ONBOARDING.md created or refreshed.
Как установить скилл understand-onboard?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл understand-onboard запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…