agentleFS
yuelenghanyuelenghan/orbit/skills/repo-understanding/SKILL.md

repo-understanding

Skill0 starsChanged 5 months agoMITView on GitHub

Use when an AI agent needs grounded repository context before implementation, review, or diff-impact analysis, and the needed understanding should be cached locally for reuse.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill as a thin repository-understanding surface for AI agents.

    line 11
  2. Very specific:

    Ask for any missing required inputs in one plain-text message.

    line 27
  3. Distinctive:

    Use that root as the local cache base.

    line 46
  4. Very specific:

    Use each per-repo directory for manifest.json, structure-index.json, semantic-cache.json, diff-cache/, snapshots/, and logs/.

    line 52
  5. Very specific:

    Run refresh before the first search, explain, or diff-impact call for a repository.

    line 56
  6. Very specific:

    Use search to map Story text or bug text to likely files and symbols.

    line 57
  7. Very specific:

    Use explain to assemble grounded local context for the top candidate files or symbols.

    line 58
  8. Very specific:

    Use diff-impact after a patch plan or local changes exist.

    line 59
  9. Distinctive:

    no ReactFlow or browser token behavior

    line 64
  10. Distinctive:

    no dependency on an external upstream checkout

    line 65
  11. Distinctive:

    no direct Jira, Confluence, Bitbucket, or Jenkins orchestration from this skill

    line 66
  12. Distinctive:

    no semantic cache entries without provenance fields

    line 67
  13. Distinctive:

    every returned node is traceable to repository paths or symbols

    line 74

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

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

Repo Understanding

Use this skill as a thin repository-understanding surface for AI agents.

This skill is a source-first local analysis helper and a code-heavy carve-out within Orbit. It is not a scenario router and should keep its local-only CLI and cache lifecycle intact.

Inputs

VariableRequiredDescriptionExample
REPO_ROOTYesLocal repository root to analyze/path/to/workspace/sample-org/sample-service
ACTIONYesOne of refresh, search, explain, diff-impactsearch
MODEFor refreshOne of full, incremental, semantic-onlyincremental
ANNOTATIONS_FILEFor refresh with MODE=semantic-onlyLocal path to the semantic annotations payload to merge/tmp/semantic-annotations.json
QUERYFor searchStory text, AC, bug description, or intent textlogin timeout after token refresh
TARGETFor explainFile path or path:symbol selectorsrc/auth/service.ts:refreshToken
BASE_REFOptionalGit base ref for diff impactorigin/master

Ask for any missing required inputs in one plain-text message. Do not guess outside REPO_ROOT.

Before You Start

Read:

  • references/usage.md
  • references/commands.md

This skill is local-only in v1. It must not start a dashboard, depend on the upstream Understand-Anything checkout at runtime, or create PRs, Jira tickets, or Confluence pages.

Local Persistence

Persist local state under:

~/.config/repo-understanding/

Use that root as the local cache base. Store repository-specific data under:

~/.config/repo-understanding/repos/<repo-fingerprint>/

Use each per-repo directory for manifest.json, structure-index.json, semantic-cache.json, diff-cache/, snapshots/, and logs/.

Workflow

  1. Run refresh before the first search, explain, or diff-impact call for a repository.
  2. Use search to map Story text or bug text to likely files and symbols.
  3. Use explain to assemble grounded local context for the top candidate files or symbols.
  4. Use diff-impact after a patch plan or local changes exist.

Forbidden Behavior

  • no dashboard startup
  • no ReactFlow or browser token behavior
  • no dependency on an external upstream checkout
  • no direct Jira, Confluence, Bitbucket, or Jenkins orchestration from this skill
  • no semantic cache entries without provenance fields

Completion

A repo-understanding call is complete only when:

  • the requested action succeeds against local cache or explicitly reports the missing cache reason
  • every returned node is traceable to repository paths or symbols
  • semantic fields are clearly marked as cached annotations instead of source-of-truth structure

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.