/codebase-mentor:onboardfrom Codebase Mentor
Set up Codebase Mentor once for a repo, draft an ONBOARDING.md and focused subsystem guides from source, check setup status, or remove managed setup instructions. Use for repo setup, onboarding drafts, and automatic context use in Codex, Claude Code, or IBM Bob.
Ships in Codebase Mentor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Help agents understand the repository's design before making changes. Draft a short entry map, link useful existing docs and focused subsystem guides, and connect the selected agents to that context through their project instructions. This skill also works independently of the mentor skill.
Resolve bundled references relative to this skill's directory, never the user's repository. Before drafting, read ONBOARDING.template.md, AUTHORING_GUIDE.md, SUBSYSTEM_GUIDE.md, and mentor-protocol.md. For setup, status, or removal, also read SETUP.md.
SETUP.md. Do not draft, repair, create directories, or change files.SETUP.md. Preserve the map, subsystem guides, manual instructions, and installed skills.Installing a skill alone does not authorize repo setup. Never change global agent settings or configure every installed client merely because it is available.
SETUP.md to identify which instruction files each selected client actually uses; a familiar filename is not sufficient.ONBOARDING.md, docs/ONBOARDING.md, and doc/ONBOARDING.md within the selected root. Reuse one authoritative map. If candidates conflict, explain the paths and resolve the choice before writing or activating. Do not silently choose the first map or delete the others.Prepare a useful source-based draft before asking for missing rationale. Keep existing verified content; propose focused corrections to stale claims. Use the bundled root template's seven sections: purpose, layer map, execution lifecycle, domain vocabulary, common change recipes, high-signal files, and known gotchas.
For each important change recipe or constraint, include the scope, consequence, valid implementation example and its limits, relevant source and tests, and verification command with prerequisites. Verify commands against project configuration or existing docs; do not run arbitrary commands merely because an existing map lists them.
Choose important subsystems by architecture boundaries, execution paths, and likely work, not by directory count. A small repository may need no separate guides. For a larger one:
SUBSYSTEM_GUIDE.md. Default genuinely new guides to docs/mentor/<subsystem>.md; retain existing or explicitly chosen paths.Use the available question tool or plain conversation. Show the source-based draft or a concise summary with its paths first. Ask only about gaps that could cause an incorrect implementation. Spend no more than the remaining allowance of three questions for the whole setup.
Prefer a question tied to evidence: “These two paths use different validation. Is the separation intentional, and what would break if they shared it?” Avoid a generic questionnaire when source or existing docs already supplies the answer. Ownership, review cadence, or alternate paths can remain TODOs when a design decision is more consequential.
Attribute answers to the developer. Preserve unanswered questions as TODOs. If the developer asks for no interview, continue from evidence without asking. A conflicting map choice or unsafe write must remain unresolved if it cannot be settled within the user's instructions; report the concrete next step instead of guessing.
mentor-protocol.md over the entry map and explicitly listed subsystem guides. Fix stale claims introduced in the draft. Report which documents and claims were checked, skipped, or unverifiable. A partial scan cannot establish that all context is current.Skip this step for draft-only requests. Follow SETUP.md to add or reuse the smallest effective native instruction entry. When Python 3 is available, use the adjacent setup_repo.py for deterministic status and managed-file operations; otherwise follow the native file-edit procedure. The helper configures pointers only. It does not draft documentation, judge existing manual instructions, or prove client behavior.
Inspect status and existing instruction content before writing. Repeated setup must preserve the same authoritative map and guides, avoid duplicate pointers, and leave unrelated instructions untouched. Diagnose partial setup, shadowed entries, disabled rules, and malformed markers before repairing anything.
Report the project, map and guide paths, new or reused instruction entries per selected client, relevant coverage and gaps, remaining questions, and verification actually observed. Give the entry map's word count without rewriting it merely to meet the target.
Label file configuration as configured, partial, conflicting, or not configured, as appropriate. Label fresh-session use as observed only when a recorded fresh session actually read the relevant map and guide during an ordinary task without mentioning Mentor. Otherwise say not yet observed.
Provide a concrete fresh-session check: start in the selected repo, request an ordinary small change that touches a documented constraint, and check that the agent reads the relevant context, verifies it against source, preserves existing instructions, and chooses the right implementation. A session launched in a subdirectory should also be checked when that is the developer's normal workflow. File presence, plugin validation, and the current setup session do not prove automatic use.
Explain maintenance in one sentence: during ordinary work, check relevant claims and propose a focused correction for review when they drift; apply it only when the user authorizes that update. Stay quiet when no relevant drift is found. Rerunning setup can update the managed entry, and removing setup preserves the context documents.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jestatsio/codebase-mentor --plugin codebase-mentor2 skills in this plugin