repo-onboarding-context-map
Skill9 starsChanged 28 days agoMITView on GitHub
Use on first Fusebase Flow install, opening an unfamiliar repo, or after major restructuring; produces durable context map (commands, structure, protected paths, risky boundaries). Do NOT use for routine ticket investigation.
In this repository119 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/fusebase-flow-always.mdcCursor rule
- .cursor/rules/fusebase-flow-implementation.mdcCursor rule
- .cursor/rules/fusebase-flow-security.mdcCursor rule
- .cursor/rules/fusebase-flow-specs.mdcCursor rule
- .cursor/rules/fusebase-flow-validation.mdcCursor rule
- api-explorationSkill
- app-api-contract-testingSkill
- app-backendSkill
- app-business-docsSkill
- app-dev-practicesSkill
- app-e2e-testsSkill
- app-quality-patternsSkill
- app-routingSkill
- app-secretsSkill
- app-sidecarSkill
- app-ui-designSkill
- business-logic-guardianSkill
- client-vs-internalSkill
- code-reviewSkill
- comment-policySkill
- communicationSkill
- design-discovery-ideationSkill
- dev-debug-logsSkill
- documentation-budgetSkill
- file-uploadSkill
- find-wasted-codeSkill
- find-wasted-effortSkill
- fusebase-cliSkill
- fusebase-dashboardsSkill
- fusebase-flow-health-checkSkill
- fusebase-gateSkill
- fusebase-portal-specific-appsSkill
- git-history-diagnosticSkill
- git-workflowSkill
- handling-authentication-errorsSkill
- handoffSkill
- implementation-planningSkill
- invite-with-passwordSkill
- lightweight-laneSkill
- liveness-disciplineSkill
- managed-integrationsSkill
- mcp-gate-debugSkill
- module-size-disciplineSkill
- north-starSkill
- phase-auditSkill
- product-apps-decompositionSkill
- product-docs-firstSkill
- product-ownerSkill
- project-onboardingSkill
- release-deploy-reportingSkill
- remote-logsSkill
- requirements-specificationSkill
- role-disciplineSkill
- security-permissions-reviewSkill
- skill-authoringSkill
- smoke-testingSkill
- task-delegationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
After a major structural change (large rename, monorepo split, framework swap)
- Very specific: line 32
When docs/specs/repo-context.md is missing or older than 90 days
- Very specific: line 52
Read root README.md if present.
- Very specific: line 53
If this is the Fusebase CLI edition or a downstream Fusebase Apps project, read docs/fusebase-cli-edition.md and record which CLI provider …
- Distinctive: line 57
Run git log --oneline -30 to read commit cadence + recent areas of activity.
- Distinctive: line 85
Do not silently write AGENTS.md updates — propose, get operator approval, then write
- Very specific: line 86
Do not commit policies/protected-paths.yml candidates without operator approval
- Distinctive: line 87
Do not save permanent memories about the repo without operator confirmation
- Distinctive: line 88
Do not invoke during an in-flight spec — context-mapping is a separate, longer-running task
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Repo Onboarding & Context Map
Purpose
Inspect an unfamiliar repo and produce a durable context map so future sessions know the project's structure, commands, protected paths, and risky system boundaries without re-investigating each session.
Named reader: workflows/session-initiation.md step 5 — every new session reads docs/specs/repo-context.md when it exists and is <90 days old, instead of re-investigating. The map header MUST carry Generated: <YYYY-MM-DD> so readers can apply the freshness gate.
When to invoke
- First-time installation of Fusebase Flow into an existing repo
- Operator says "I'm picking up this repo" / "what's in this codebase?" / "set up flow here"
- After a major structural change (large rename, monorepo split, framework swap)
- When
docs/specs/repo-context.mdis missing or older than 90 days
Do not invoke when
- A current
repo-context.mdexists and the repo hasn't changed structurally - Operator is asking a code-specific question — use code-review or normal investigation
- A spec is in flight — don't pivot to onboarding mid-ticket
Required inputs
| Input | Where it lives | If missing |
| Repo root | git root | Stop; ask operator to confirm working directory |
| Package/project files | package.json, pyproject.toml, Cargo.toml, etc. | Note "no manifest detected"; describe based on file extensions only |
| Existing READMEs | README.md, docs/, etc. | Note absence; flag as Phase-4 onboarding gap |
| CLI edition map, for this edition | docs/fusebase-cli-edition.md | Continue with generic repo map, but mark CLI provider asset mapping unknown |
Procedure
- List repo root files (top level only). Identify project type (Node/Python/Go/Rust/etc.) and frontend/backend split if visible.
- Read root
README.mdif present. Read up to 3 most-referenced docs indocs/. - If this is the Fusebase CLI edition or a downstream Fusebase Apps project, read
docs/fusebase-cli-edition.mdand record which CLI provider assets are present and relevant. - Detect build/test/lint commands from manifest files. Capture exact commands.
- Identify protected-path candidates: long-lived worker code, generated files, migration files, deployment configs.
- Identify risky system boundaries: external APIs, database migrations, auth surfaces, file system writes outside repo.
- Run
git log --oneline -30to read commit cadence + recent areas of activity. - Save findings to
docs/specs/repo-context.mdusingtemplates/spec.mdadapted for context-mapping (see template). Stamp aGenerated: <YYYY-MM-DD>line in the header —workflows/session-initiation.mdstep 5 uses it for the 90-day freshness gate. - Propose updates to
AGENTS.md"project-specific values" section. Show the diff in chat. Do NOT apply unless operator says "apply". - Propose initial
policies/protected-paths.ymlcandidates. Save as draft if operator approves; do NOT auto-write.
Output artifacts
| Artifact | Path | Mode |
| Repo context map | docs/specs/repo-context.md | Mode B (full) |
| AGENTS.md project-specific updates (proposed) | chat diff | Mode A |
| Protected paths candidates | policies/protected-paths.yml (proposed; commit only on operator approval) | Mode B (full, YAML) |
Failure cases
| Failure mode | Detection | Response |
| Repo has no manifest, no README, no docs | Initial scan returns nothing identifying | Capture what's visible (file extensions, recent commits). Mark repo-context.md as partial and ask operator to fill the gaps. |
| Repo is a monorepo with conflicting conventions | Multiple package.json / pyproject.toml at different paths | Map each subdir separately. Flag in repo-context.md "monorepo: yes". |
| Repo uses git submodules | .gitmodules exists | Note submodules in repo-context.md but do not recurse into them; map a submodule only if the operator explicitly asks. |
Escalation path
- Repo too large to scan in one pass (>10k files) → ask operator which subdirs to prioritize
- Build commands fail when run → file backlog ticket for build-environment-fix; do not propose flow installation until build is healthy
Anti-patterns
- Do not silently write
AGENTS.mdupdates — propose, get operator approval, then write - Do not commit
policies/protected-paths.ymlcandidates without operator approval - Do not save permanent memories about the repo without operator confirmation
- Do not invoke during an in-flight spec — context-mapping is a separate, longer-running task
Clean-room note
Original Fusebase Flow content. Designed after reviewing public AI coding workflow patterns; no third-party code, prompts, skill files, or hook scripts are copied. See docs/source-map.md.
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.

