c-05-create-or-update-onboarding-files
Skill27 starsChanged 6 months agoMITView on GitHub
Create and maintain file-level onboarding and repo entity catalogs. Enforces strict 1-to-1 source mapping, governing overview links, metadata, and references, and routes package/module/source-slice create, refresh, move, or delete cases to the c-03-repo-bootstrap skill.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github-vscode/copilot-instructions.mdCopilot instructions
- .cursor/rules/agents-remember.mdcCursor rule
- docs/llms.txtllms.txt
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
35 rules. About 0 are common, 15 are distinctive, and 20 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
20
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 29
When onboarding maintenance is happening inside a c-09-git-worktree-manager worktree, check worktree_status before starting memory entries.
- Distinctive: line 57
Before starting file-level maintenance, classify the change shape.
- Very specific: line 75
When routing to the c-03-repo-bootstrap skill, pass the affected source routes, known old/new paths, existing onboarding paths, and whether …
- Distinctive: line 84
When preservation cannot be done safely, record why in the maintenance notes or task artifact before removing the old onboarding content.
- Very specific: line 104
Use mcp_time_get_current_time for onboarding timestamps.
- Distinctive: line 105
Keep durable onboarding commentary separate from task-local planning and output docs.
- Distinctive: line 109
Prefer updating an existing onboarding artifact over creating parallel duplicates.
- Distinctive: line 115
If both a file-level onboarding document and a repo entity catalog need updates, handle both in the same pass when the task materially …
- Very specific: line 117
When updating Docs References, Repo-Internal References, or Cross-Repo References, do not optimize by deleting existing explanation.
- Very specific: line 118
Start reference discovery from the c-08-ar-coordination-context-resolver skill resolved system/sources.md, then use its Domain …
- Very specific: line 119
Treat onboarding as supporting context, not as a substitute for the Domain Documentation category.
- Very specific: line 120
Treat the c-08-ar-coordination-context-resolver skill resolved system/sources.md as a routing index only.
- Very specific: line 123
When changed paths imply route-level creation, refresh, move, or deletion, route to the c-03-repo-bootstrap skill …
- Very specific: line 124
After creating, updating, moving, or deleting route overviews or file-level sidecars, refresh generated route indexes with MCP …
- Very specific: line 125
Keep each route overview's ## Hot Path Summary short and current.
- Distinctive: line 126
Do not delete onboarding for moved, split, merged, or deleted source until checking whether its documented behavior can be moved into a …
- Very specific: line 135
Use (route_index_refresh applies by default.
- Very specific: line 151
Check onboardingRoot in the response: it is the tree that was written.
- Very specific: line 165
If the generator reports stale or surprising coverage, fix the onboarding structure or source-sidecar mismatch before treating the index as …
- Very specific: line 167
If hotPath.summary is empty or stale, update the owning overview.
- Very specific: line 175
Before writing or revising onboarding content, read the c-08-ar-coordination-context-resolver skill resolved system/sources.md and use its …
- Very specific: line 177
Use the Domain Documentation category from the resolved system/sources.md as the discovery plan for Docs References and any load-bearing …
- Very specific: line 179
Do not hard-code one external documentation system into this package.
- Distinctive: line 181
If the local mirror/cache has no matching page, appears stale, or lacks enough evidence, immediately search or retrieve the live …
- Very specific: line 182
If no relevant material is found after checking the live Domain Documentation source, or live retrieval is blocked, record what was checked …
- Distinctive: line 192
Add citation-backed tables so the explanation is auditable.
- Distinctive: line 193
Do not treat the citation table as a replacement for the explanation when the section is carrying real behavioral context.
- Distinctive: line 197
Every citation table row must point to evidence, not to the discovery registry that helped find evidence.
- Distinctive: line 207
update the relevant onboarding sections that no longer match the code — body updates come first.
- Very specific: line 214
when a changed source genuinely warrants no onboarding content change (for example a version bump), record an explicit reviewed-no-impact …
- Distinctive: line 227
update overview indexes and cross-references that point at the old location
- Distinctive: line 228
check whether repo-level entity catalogs or related onboarding now need cleanup
- Distinctive: line 229
when an entity fingerprint goes stale because an evidence path disappeared or a fingerprint row has no matching inventory entry, verify …
- Distinctive: line 230
delete or retire onboarding only after proving that the documented behavior is gone and no safe current target remains
- Very specific: line 231
if a package, module, feature area, or source route moved or disappeared, route to the c-03-repo-bootstrap skill …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
c-05-create-or-update-onboarding-files Create Or Update Onboarding Files
This package owns durable onboarding maintenance for two artifact types and one storage-specific adapter layer:
- file-level onboarding units for concrete source files
- repo-level entity catalogs for load-bearing cross-layer entities
Inline onboarding does not replace the file-level content model. It reuses the same semantic sections and adds storage-specific syntax, placement, and digest rules through the inline adapter workflow/template.
Planning stays in task artifacts. This package defines how onboarding itself is created, updated, and kept structurally consistent.
Before maintaining onboarding, use c-08-ar-coordination-context-resolver to resolve the target repository's active coordination context. It must use the Domain Documentation category declared in the resolved system/sources.md for the onboarding slice being maintained, rather than assuming that adjacent onboarding alone is sufficient or hard-coding one particular documentation system into the skill.
Seat routing: in the manager -> builder -> reviewer -> curator chain (l-01-agent-lifecycles
roles/curator.md), onboarding create/update duty during leaf work belongs to the curator seat, not
the builder — the builder produces code and a turn report only. The curator runs this skill's
workflows from a change set (landed diff), the leaf task doc, and notes/ fed to it by the manager,
and routes each item to the right onboarding home (a concrete sidecar or the governing overview
whose subject it is; the L3 Operational-Notes target is last-resort only, never a default). The
strict 1-to-1 source mapping, governing-overview links, and metadata rules below are unchanged by
this routing — only the writing seat moved. A solo flat session with no separate curator seat runs
this skill itself, exactly as before.
When onboarding maintenance is happening inside a c-09-git-worktree-manager
worktree, check worktree_status before starting memory entries. If its
freshness block reports that the recorded code or memory source branch moved,
run worktree_sync before writing onboarding content unless that sync is blocked
by conflicts or an explicit developer decision. Carrying the moved official line
first keeps later onboarding updates and their Git attribution on top of current source
history instead of forcing a conflict-heavy carryover after the task is otherwise
done.
The c-05-create-or-update-onboarding-files skill remains the normal public entry point for create or update onboarding requests. When the request is route-level slice creation, refresh, move handling, or deletion cleanup, the c-05-create-or-update-onboarding-files skill should route the work to the c-03-repo-bootstrap skill existing-memory-slice-maintenance mode instead of reducing it to unrelated file-level updates.
Routing
Choose the artifact type first, then use the matching workflow and template.
| Artifact type | Use when | Workflow | Template |
| File-level onboarding | You are creating or updating file-level onboarding for one concrete source file | workflows/file-level-onboarding-workflow.md | templates/file-level-onboarding-template.md |
| Repo-level entity catalog | You are creating or updating entities.md under the resolved onboarding root | workflows/repo-entity-catalog-workflow.md | templates/repo-entity-catalog-template.md |
| Route/slice maintenance | A package, module, or source route was added, refreshed, moved, or deleted | the c-03-repo-bootstrap skill existing-memory-slice-maintenance mode | the c-03-repo-bootstrap skill bootstrap templates |
Storage-specific adapter additions for file-level onboarding:
workflows/inline-onboarding-workflow.mdtemplates/inline-onboarding-block-template.md
Route-Level Maintenance Routing
Before starting file-level maintenance, classify the change shape.
Handle directly in the c-05-create-or-update-onboarding-files skill when:
- one concrete source file needs onboarding creation or update
- a small behavior-preserving file move has a clear one-to-one mirrored onboarding move
- a deleted file is proven to have no behavior that moved elsewhere and only requires mirrored file-level onboarding cleanup plus nearby link repair
- a repo-level entity catalog needs a targeted entry update
Route to the c-03-repo-bootstrap skill existing-memory-slice-maintenance mode when:
- a new package, module, feature area, or source route appears
- a deleted package, module, feature area, or source route requires coordinated route-local overview, child onboarding, and bootstrap artifact cleanup
- a package or module route moves and the route-local overview plus child file onboarding need to move together
- many files appear or disappear together
- a route purpose changes enough that the governing route-local overview should be created, refreshed, moved, retired, or removed before file-level work continues
- a file split, merge, or behavior relocation crosses multiple source files and file-by-file
c-05-create-or-update-onboarding-filesskill work would lose the structural meaning of the source change
When routing to the c-03-repo-bootstrap skill, pass the affected source routes, known old/new paths, existing onboarding paths, and whether the desired outcome is expansion, refresh, move handling, or deleted-slice cleanup.
Onboarding Preservation Rule
Existing onboarding is durable memory, not disposable generated output. Preserve and move useful onboarding before creating replacement artifacts.
- For behavior-preserving file renames or moves, move the mirrored onboarding file to the new source path and update path metadata, verification metadata, governing overview links, reference links, route indexes, and
Update History. - For splits, merges, or behavior relocation, inspect the old onboarding and the new source targets before deleting anything. Reuse accurate purpose, commentary, invariants, references, and history in the new target onboarding, updating only the parts that changed.
- For source deletion, first prove whether the documented behavior is truly gone or merely moved. Delete or retire onboarding only when no safe current target remains for the preserved knowledge.
- When preservation cannot be done safely, record why in the maintenance notes or task artifact before removing the old onboarding content.
Sidecar Placement Rules
<resolved-onboarding-root>/
overview.md
overview.index.json
entities.md
<mirrored-source-folder>/
overview.md
overview.index.json
<mirrored-source-file>.md- File-level onboarding keeps strict 1-to-1 mirroring with source files.
- Route-local
overview.mdfiles live in the mirrored onboarding hierarchy at the source folder they govern. They are governing context, not replacements for file-level onboarding. - File-level onboarding should record the nearest
governingOverviewwhen one exists; otherwise point to the closest ancestor overview, falling back to the rootoverview.md. - Generated
overview.index.jsonfiles live adjacent to route overviews and record route scope, child routes, existing file sidecars, coverage counts, routing terms, hot-path summary/hints, and governing-overview fallback. - Repo-level entity catalogs exist once per repo as
entities.mdunder the resolved onboarding root. - Use
mcp_time_get_current_timefor onboarding timestamps; never guess. - Keep durable onboarding commentary separate from task-local planning and output docs.
Quick Rules
- Prefer updating an existing onboarding artifact over creating parallel duplicates.
- File-level onboarding explains one concrete source file and has to be self-sufficient;
- File-level onboarding links back to the nearest governing route-local overview so agents can reconstruct local area context from a file drop point. When updating onboarding, check whether the nearest governing overview has changed and update the link if needed.
- The canonical file-level onboarding content model is common to sidecar and inline storage.
- Repo-level entity catalogs document real entities and cross-layer projections, not generic glossary content.
- Repo-level entity catalogs use deterministic
git-blob-set-v1fingerprints over curated load-bearing evidence paths; thec-05-create-or-update-onboarding-filesskill chooses and refreshes those paths, while thec-02-memory-quality-controlskill compares them and verifies that every inventory entry has a matching fingerprint row. - If both a file-level onboarding document and a repo entity catalog need updates, handle both in the same pass when the task materially affects both.
- This package may be invoked immediately from
c-01-findings-capturewhen a verified factual current-state clarification qualifies for onboarding propagation. - When updating
Docs References,Repo-Internal References, orCross-Repo References, do not optimize by deleting existing explanation. Investigate the existing prose, correct it if needed, and back it with citations. - Start reference discovery from the
c-08-ar-coordination-context-resolverskill resolvedsystem/sources.md, then use itsDomain Documentationcategory as the required domain-evidence input for the file or entity being documented. - Treat onboarding as supporting context, not as a substitute for the
Domain Documentationcategory. - Treat the
c-08-ar-coordination-context-resolverskill resolvedsystem/sources.mdas a routing index only. Never cite it as evidence, and never let it stand in for the direct proof that belongs inDocs References,Repo-Internal References, orCross-Repo References. - Reference health checking is mandatory during onboarding maintenance. Do not assume existing
Docs References,Repo-Internal References, orCross-Repo Referencesare still valid. Update Historysections are append-only: preserve existing entries and add newer entries for corrections, superseded notes, or follow-up clarification.- When changed paths imply route-level creation, refresh, move, or deletion, route to the
c-03-repo-bootstrapskillexisting-memory-slice-maintenancemode before creating piecemeal file-level onboarding. - After creating, updating, moving, or deleting route overviews or file-level sidecars, refresh generated route indexes with MCP
route_index_refresh. - Keep each route overview's
## Hot Path Summaryshort and current; it is copied into generated indexes forc-04-retrieval-strategy-routerskill discovery. - Do not delete onboarding for moved, split, merged, or deleted source until checking whether its documented behavior can be moved into a current onboarding target.
- Body before metadata: a changed source file's sidecar (and the nearest governing route overview) needs a real content update plus an
Update Historyentry, or an explicitNo content impact:/No route impact:reviewed-no-impact history entry. The curator's scoped handoff enforces this and surfaces attested documents; header-only or unmarked history-only refreshes fail. Closeout consumes that handoff and does not rerun a memory-quality gate. - In a worktree-backed task, run
worktree_statusand any neededworktree_syncbefore starting onboarding writes so memory entries are based on the current parent branch.
Route Index Refresh
Route indexes are generated availability metadata. Do not hand-maintain long missing-sidecar lists in overview prose.
Use (route_index_refresh applies by default; preview first with
route_index_refresh(repo_id="<repo-id>", dry_run=true)):
route_index_refresh(repo_id="<repo-id>")In a worktree-backed leaf, pass the leaf's enclosure contract path. This tool WRITES, and
repo_id alone resolves the official memory repo — so an unscoped call from inside a leaf
generates indexes into a repository the session does not own, leaves it dirty (which blocks the
next worktree_start), and leaves the leaf's own memory worktree stale:
route_index_refresh(repo_id="<repo-id>", contract_path="<enclosure-contract-path>")Check onboardingRoot in the response: it is the tree that was written.
The generator:
- discovers every
overview.mdunder the resolved onboarding root - writes adjacent
overview.index.jsonfiles - derives child routes from nested overviews
- derives
coveredFilesfrom existing file-level sidecars whose source files still exist - derives route source scope from the overview route
- copies a bounded
## Hot Path SummaryintohotPath.summary - derives
hotPath.candidateHintsandhotPath.anchorHintsmechanically - lets the
c-04-retrieval-strategy-routerskill infer absent sidecars from source scope plus generated coverage
If the generator reports stale or surprising coverage, fix the onboarding
structure or source-sidecar mismatch before treating the index as current.
If hotPath.summary is empty or stale, update the owning overview; do not hand
edit the generated index.
The skill tree is instruction-only; installed and development workflows use the MCP/package route.
Source Discovery Rule
Before writing or revising onboarding content, read the c-08-ar-coordination-context-resolver skill resolved system/sources.md and use its Domain Documentation category as the required discovery path for technical and behavioral documentation.
- Use the
Domain Documentationcategory from the resolvedsystem/sources.mdas the discovery plan forDocs Referencesand any load-bearing explanatory prose that depends on external technical or domain documentation. - Preserve useful adjacent onboarding context, but do not let it replace the required
Domain Documentationpass. - Do not hard-code one external documentation system into this package. The operative rule is to use whatever sources are listed under
Domain Documentationin the resolvedsystem/sources.md. - If
Domain Documentationincludes both a local mirror/cache and a live retrieval path, treat the live source named by the registry as authoritative and the local material as an orientation cache. Use local material only for quick reading and line discovery, then verify relevance against the live source when the domain fact matters. Emit onboarding links to the canonical live reference, never filesystem paths to local documentation mirrors. - If the local mirror/cache has no matching page, appears stale, or lacks enough evidence, immediately search or retrieve the live documentation source through the registry's named tool or MCP before recording that no domain documentation exists.
- If no relevant material is found after checking the live
Domain Documentationsource, or live retrieval is blocked, record what was checked and any blocker instead of pretending the search space was limited to onboarding or local files only. - Do not put the resolved
system/sources.md, source registries, search result pages, or “see this source list” rows in citation tables. After using the registry to choose where to look, cite the actual documentation, source file, generated artifact, onboarding file, or boundary document that directly proves the statement. - If the registry points to a documentation source but the live source does not prove anything relevant for the file, say that no relevant documentation was found in
Docs References. Route same-repository implementation facts toRepo-Internal References, and useCross-Repo Referencesonly when the evidence proves a real repository or external-system boundary.
Reference Section Rule
Docs References, Repo-Internal References, and Cross-Repo References are explanation-first sections.
- Explain domain behavior, same-repository implementation context, or system-boundary interactions in prose.
- Correct outdated or unsupported prose instead of deleting it reflexively.
- Add citation-backed tables so the explanation is auditable.
- Do not treat the citation table as a replacement for the explanation when the section is carrying real behavioral context.
- In
Docs References, link the last-column cell to the canonical online document URL even when the cited lines were read from a local mirror. - In
Repo-Internal References, link same-repository code, onboarding, config, tests, or generated artifacts with workspace-relative markdown paths. Never emit absolute filesystem paths. - In
Cross-Repo References, use workspace-relative markdown paths when the proving boundary target is available in the workspace, and otherwise link to the canonical external document or system reference. - Every citation table row must point to evidence, not to the discovery registry that helped find evidence.
- Reference health checking is mandatory during create and maintain passes.
- For
Docs References, verify the canonical online URL still resolves to the intended document when retrieval tools are available. If it cannot be verified, record the blocker instead of leaving the entry implicitly trusted. - For
Repo-Internal References, verify each workspace-relative target still exists and that the cited lines still support the stated finding. Repair or remove broken entries before finishing. - For
Cross-Repo References, verify each cited boundary target still exists, still supports the stated boundary, and still belongs in this bucket rather thanRepo-Internal References.
Lifecycle Rules
When code changes
- update the relevant onboarding sections that no longer match the code — body updates come first; metadata and history updates never substitute for them
- refresh verification metadata after the content update
- append a newest-first
Update Historyentry instead of deleting or rewriting earlier history - pair every body update with its
Update Historyentry in the same pass: the curator scoped handoff rejects a changed source whose sidecar gained only metadata or history edits, and rejects a body edit without a new history entry - when a changed source genuinely warrants no onboarding content change (for
example a version bump), record an explicit reviewed-no-impact entry instead
of skipping silently:
No content impact: <reason>in the file sidecar'sUpdate History, orNo route impact: <reason>in a governing route overview'sUpdate History. These markers are deliberate attestations after reviewing the document against the change — never a default shortcut — and the curator handoff surfaces every attested document in its report for the owning seat
When code is moved, split, merged, or deleted
- classify the source change as one-to-one move, split, merge, behavior relocation, true deletion, or route-level move/deletion
- for behavior-preserving one-to-one moves, move the mirrored onboarding file to match the real source tree and update metadata, governing overview links, references, route indexes, and
Update History - for splits, merges, or behavior relocation, reuse accurate old onboarding content in the new target sidecars or route overview before deleting the old mirrored file
- update overview indexes and cross-references that point at the old location
- check whether repo-level entity catalogs or related onboarding now need cleanup
- when an entity fingerprint goes stale because an evidence path disappeared or a fingerprint row has no matching inventory entry, verify whether the entity was removed, renamed, or moved before deleting catalog content or evidence paths
- delete or retire onboarding only after proving that the documented behavior is gone and no safe current target remains
- if a package, module, feature area, or source route moved or disappeared, route to the
c-03-repo-bootstrapskillexisting-memory-slice-maintenancemode for coordinated route-local overview, child onboarding, and bootstrap artifact cleanup
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

