agentleFS
fusebase-devfusebase-dev/fusebase-flow/.agents/skills/repo-onboarding-context-map/SKILL.md

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.

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
  1. Distinctive:

    After a major structural change (large rename, monorepo split, framework swap)

    line 31
  2. Very specific:

    When docs/specs/repo-context.md is missing or older than 90 days

    line 32
  3. Very specific:

    Read root README.md if present.

    line 52
  4. Very specific:

    If this is the Fusebase CLI edition or a downstream Fusebase Apps project, read docs/fusebase-cli-edition.md and record which CLI provider …

    line 53
  5. Distinctive:

    Run git log --oneline -30 to read commit cadence + recent areas of activity.

    line 57
  6. Distinctive:

    Do not silently write AGENTS.md updates — propose, get operator approval, then write

    line 85
  7. Very specific:

    Do not commit policies/protected-paths.yml candidates without operator approval

    line 86
  8. Distinctive:

    Do not save permanent memories about the repo without operator confirmation

    line 87
  9. Distinctive:

    Do not invoke during an in-flight spec — context-mapping is a separate, longer-running task

    line 88

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.md is missing or older than 90 days

Do not invoke when

  • A current repo-context.md exists 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

InputWhere it livesIf missing
Repo rootgit rootStop; ask operator to confirm working directory
Package/project filespackage.json, pyproject.toml, Cargo.toml, etc.Note "no manifest detected"; describe based on file extensions only
Existing READMEsREADME.md, docs/, etc.Note absence; flag as Phase-4 onboarding gap
CLI edition map, for this editiondocs/fusebase-cli-edition.mdContinue with generic repo map, but mark CLI provider asset mapping unknown

Procedure

  1. List repo root files (top level only). Identify project type (Node/Python/Go/Rust/etc.) and frontend/backend split if visible.
  2. Read root README.md if present. Read up to 3 most-referenced docs in docs/.
  3. If this is the Fusebase CLI edition or a downstream Fusebase Apps project, read docs/fusebase-cli-edition.md and record which CLI provider assets are present and relevant.
  4. Detect build/test/lint commands from manifest files. Capture exact commands.
  5. Identify protected-path candidates: long-lived worker code, generated files, migration files, deployment configs.
  6. Identify risky system boundaries: external APIs, database migrations, auth surfaces, file system writes outside repo.
  7. Run git log --oneline -30 to read commit cadence + recent areas of activity.
  8. Save findings to docs/specs/repo-context.md using templates/spec.md adapted for context-mapping (see template). Stamp a Generated: <YYYY-MM-DD> line in the header — workflows/session-initiation.md step 5 uses it for the 90-day freshness gate.
  9. Propose updates to AGENTS.md "project-specific values" section. Show the diff in chat. Do NOT apply unless operator says "apply".
  10. Propose initial policies/protected-paths.yml candidates. Save as draft if operator approves; do NOT auto-write.

Output artifacts

ArtifactPathMode
Repo context mapdocs/specs/repo-context.mdMode B (full)
AGENTS.md project-specific updates (proposed)chat diffMode A
Protected paths candidatespolicies/protected-paths.yml (proposed; commit only on operator approval)Mode B (full, YAML)

Failure cases

Failure modeDetectionResponse
Repo has no manifest, no README, no docsInitial scan returns nothing identifyingCapture 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 conventionsMultiple package.json / pyproject.toml at different pathsMap each subdir separately. Flag in repo-context.md "monorepo: yes".
Repo uses git submodules.gitmodules existsNote 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.md updates — propose, get operator approval, then write
  • Do not commit policies/protected-paths.yml candidates 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.