agentleFS
yuelenghanyuelenghan/orbit/CLAUDE.md

orbit

CLAUDE.md0 starsChanged 5 months agoMITView on GitHub

Orbit is a repository of reusable skills for AI agents. Most directories under skills/ are skill packages driven by SKILL.md contracts and supporting references/ / examples/ content, not a single deployable application (README.md). Orbit is organized as a catalog of independent skills rather than a monolithic app. The main routing layer is skills/using-orbit/SKILL.md, which maps user intents to scenario skills such as change-implementation, code-review, delivery-metrics, or security-fix-guide. Shared behavior for those workflows is centralized in skills/using-orbit/references/, especially: This means many…

The file

We split this CLAUDE.md into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Search / explain / diff-impact queries: skills/repo-understanding/scripts/lib/query-actions.mjs

    line 53
  2. Distinctive:

    When editing a skill, preserve these boundaries instead of silently broadening scope to external systems or unrelated repositories.

    line 69
  3. Distinctive:

    Run from the repository root.

    line 87
  4. Very specific:

    Keep skill contributions self-contained and update the relevant SKILL.md when behavior changes (CONTRIBUTING.md).

    line 168
  5. Very specific:

    Document runtime assumptions when they matter, and keep examples public/generic (CONTRIBUTING.md).

    line 169

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Repository purpose

Orbit is a repository of reusable skills for AI agents. Most directories under skills/ are skill packages driven by SKILL.md contracts and supporting references/ / examples/ content, not a single deployable application (README.md).

Working shape of the repository

  • skills/ is the product surface. Each top-level directory is an installable skill.
  • Most skills are documentation-first packages: SKILL.md defines the agent contract, while references/ and examples/ hold command references and operating guidance.
  • Some integration skills are packaged CLIs with launchers in bin/ and compiled runtime code under app/dist/ (for example skills/bitbucket, skills/jira). Their packaged README files document installation/runtime behavior.
  • skills/repo-understanding is the main source-code-heavy skill. It includes a Node.js CLI entrypoint, local-cache logic, structure indexing, query actions, and automated tests.
  • LICENSES/ and per-skill LICENSES/NOTICE.txt files matter when adapting or redistributing third-party material.

Architecture overview

Skill package model

Orbit is organized as a catalog of independent skills rather than a monolithic app. The main routing layer is skills/using-orbit/SKILL.md, which maps user intents to scenario skills such as change-implementation, code-review, delivery-metrics, or security-fix-guide. Shared behavior for those workflows is centralized in skills/using-orbit/references/, especially:

  • safety-rules.md for write-confirmation and stop conditions
  • provider-resolution.md for choosing installed provider skills
  • cli-patterns.md and output-conventions.md for execution/output expectations

This means many behavior changes are made by editing skill contracts and shared references together, not by changing executable code in one place.

Capability-first routing model

Scenario skills declare normalized capability needs such as repo, tracker, docs, ci, security_scan, and quality (skills/using-orbit/references/capability-contracts.md) rather than binding directly to provider names like Jira, GitHub, Bitbucket, or GitLab. Shared inputs are normalized in skills/using-orbit/references/common-input-contract.md (REPO_PROVIDER, REPO_NAMESPACE, REPO_NAME, PR_NUMBER, and related fields), and actual provider choice is deferred to skills/using-orbit/references/provider-resolution.md. When editing scenario flows, preserve that provider-agnostic layer instead of reintroducing provider-specific field names into shared contracts.

Scenario skills vs packaged provider skills

There are two major kinds of skills in this repo:

  1. Scenario/workflow skills such as using-orbit, change-implementation, code-review, sprint-kickoff, and knowledge-capture. These are primarily prompt contracts plus references.
  2. Packaged provider/integration skills such as bitbucket, jira, github, gitlab, github-issue, github-workflow, confluence, obsidian, jenkins, fortify, and sonarqube. These ship executable launchers (bin/) plus runtime payloads (app/dist/, assets, manifests).

Workflow skills depend on provider skills conceptually through documented capability resolution, not through local source imports. Not every request should route through using-orbit: jenkins is the main direct-use packaged skill for controller/job/build operations, and repo-understanding is the direct local-analysis helper. When adjusting workflow behavior, inspect both the scenario skill and the referenced shared rules before changing commands or required inputs.

Packaged provider runtime model

Packaged provider skills are self-contained CLIs: the launcher in bin/ detects platform/runtime requirements, prefers a compatible system Node, bootstraps a cached runtime when necessary, then execs the compiled entrypoint under app/dist/cli.js (for example skills/github/bin/github). Treat each package's README.txt as the source of truth for installation and local verification, while SKILL.md defines agent behavior and boundaries. Fortify is a carve-out on macOS/Linux: prefer bash "<path>/bin/fortify" because extracted packages may lose executable bits.

repo-understanding execution model

skills/repo-understanding is the clearest example of actual program flow in this repository:

  • CLI entrypoint: skills/repo-understanding/scripts/repo_understanding_cli.mjs
  • Structural indexing: skills/repo-understanding/scripts/lib/structure-index.mjs
  • Repository inventory and git-aware file enumeration: skills/repo-understanding/scripts/lib/file-inventory.mjs
  • Search / explain / diff-impact queries: skills/repo-understanding/scripts/lib/query-actions.mjs
  • Local cache management: skills/repo-understanding/scripts/lib/cache-paths.mjs
  • Tests: skills/repo-understanding/tests/repo-understanding.test.mjs

The CLI always emits JSON to stdout and supports four actions: refresh, search, explain, and diff-impact. refresh builds or updates a repository-local cache under ~/.config/repo-understanding/; later query actions load that persisted structure/semantic state and fail with REFRESH_REQUIRED until the cache exists.

structure-index.mjs builds a repository model from file inventory, language heuristics, import resolution, and path-based classification. It turns files into nodes like file, test, config, pipeline, and script, then derives layers and edges such as imports, contains, tested_by, and configures. If you change indexing behavior, inspect both the library code and the test fixture expectations.

Local-first design

A recurring repository pattern is local-first execution with explicit runtime boundaries:

  • repo-understanding persists local cache under ~/.config/repo-understanding/.
  • change-implementation documents local state under ~/.config/change-implementation/ and requires repository discovery to stay inside user-provided ROOT_DIR.
  • using-orbit shared rules prohibit guessing providers and require preflight checks only for selected providers.

When editing a skill, preserve these boundaries instead of silently broadening scope to external systems or unrelated repositories.

Common commands

Inspect repository-level docs

find . -maxdepth 2 \( -name "README.md" -o -name "CONTRIBUTING.md" -o -name "SECURITY.md" -o -name "CLAUDE.md" \)

Survey skill packages with launchers or tests

find ./skills -maxdepth 3 \( -name "SKILL.md" -o -name "README.txt" -o -path "*/bin/*" -o -path "*/tests/*" \) | sort

repo-understanding development commands

Run from the repository root.

Refresh cache

node skills/repo-understanding/scripts/repo_understanding_cli.mjs refresh /path/to/repo --mode full
node skills/repo-understanding/scripts/repo_understanding_cli.mjs refresh /path/to/repo --mode incremental
node skills/repo-understanding/scripts/repo_understanding_cli.mjs refresh /path/to/repo --mode semantic-only --annotations-file /tmp/semantic-annotations.json

Search / explain / diff impact

node skills/repo-understanding/scripts/repo_understanding_cli.mjs search /path/to/repo "login token refresh timeout"
node skills/repo-understanding/scripts/repo_understanding_cli.mjs explain /path/to/repo src/auth/service.ts
node skills/repo-understanding/scripts/repo_understanding_cli.mjs explain /path/to/repo src/auth/service.ts:refreshToken
node skills/repo-understanding/scripts/repo_understanding_cli.mjs diff-impact /path/to/repo --base-ref origin/master

Run tests

node --test skills/repo-understanding/tests/repo-understanding.test.mjs

Run a single test by name

node --test --test-name-pattern "buildStructureIndex" skills/repo-understanding/tests/repo-understanding.test.mjs

Packaged integration skill verification

These skills ship their own launchers. Use the local packaged launcher rather than assuming a globally installed command.

./skills/github/bin/github version
./skills/github/bin/github doctor
./skills/gitlab/bin/gitlab version
./skills/gitlab/bin/gitlab doctor
./skills/github-issue/bin/github-issue version
./skills/github-issue/bin/github-issue doctor
./skills/github-workflow/bin/github-workflow version
./skills/github-workflow/bin/github-workflow doctor
./skills/bitbucket/bin/bitbucket version
./skills/bitbucket/bin/bitbucket doctor
./skills/jira/bin/jira version
./skills/jira/bin/jira doctor
./skills/jenkins/bin/jenkins version
./skills/jenkins/bin/jenkins doctor
./skills/confluence/bin/confluence version
./skills/obsidian/bin/obsidian version
./skills/obsidian/bin/obsidian doctor
bash ./skills/fortify/bin/fortify config get
bash ./skills/fortify/bin/fortify fcli -- --help

For normal task execution, prefer the shortest task-specific command path instead of starting with diagnostics. See each packaged skill's README.txt and references/commands.md for the real command surface.

What is not currently present at repo root

As of the current repository state, there is no root-level package.json, lockfile, Makefile, CI workflow, repo-wide lint config, or repo-wide build/test entrypoint. Do not invent global commands such as npm test, pnpm lint, or make build unless those files are added later.

Workflow by change type

  • Workflow/scenario skill edits - read that skill's SKILL.md first, then skills/using-orbit/references/ when the flow routes, selects providers, or performs writes.
  • Packaged integration skill edits - use SKILL.md for agent behavior and README.txt / references/commands.md for the real runtime command surface.
  • repo-understanding edits - verify against both scripts/ implementation files and tests/repo-understanding.test.mjs.
  • Repository doc audits - include SECURITY.md along with README.md, CONTRIBUTING.md, and CLAUDE.md.

Current top-level skill groups

  • Workflow orchestration - using-orbit, change-implementation, gate-remediation
  • Engineering context and review - repo-understanding, code-review
  • Delivery workflows - sprint-kickoff, delivery-metrics, knowledge-capture
  • Release and operations workflows - release-orchestration, deployment-verification, incident-response, monitor-check
  • Security workflows - security-fix-guide, pentest, api-pentest, network-pentest, cloud-pentest
  • Packaged integrations - jira, bitbucket, github, gitlab, github-issue, github-workflow, jenkins, confluence, obsidian, sonarqube, fortify

Repository-specific instructions

  • Keep skill contributions self-contained and update the relevant SKILL.md when behavior changes (CONTRIBUTING.md).
  • Document runtime assumptions when they matter, and keep examples public/generic (CONTRIBUTING.md).
  • Preserve attribution and license notices when adapting third-party material (CONTRIBUTING.md, README.md).
  • For workflow skills, check shared rules in skills/using-orbit/references/ before editing command flows or write behavior.
  • For packaged skills, keep SKILL.md focused on agent behavior and keep package/runtime details in the packaged README/reference files (skills/bitbucket/README.txt).
  • repo-understanding is local-only in v1; do not add dashboard/browser flows or make it depend on an external upstream checkout (skills/repo-understanding/SKILL.md, skills/repo-understanding/references/usage.md).
  • repo-understanding treats structure as source of truth and semantic annotations as cache; do not write partial semantic entries that lack provenance fields (skills/repo-understanding/references/usage.md).
  • Scenario skills that perform writes rely on explicit write confirmation according to skills/using-orbit/references/safety-rules.md; preserve that contract when changing workflow steps.

Files worth reading first for common tasks

  • Routing or workflow selection: skills/using-orbit/SKILL.md
  • Skill authoring and contract deduplication: skills/using-orbit/references/scenario-skill-shape.md, skills/using-orbit/references/provider-skill-shape.md
  • Shared safety/provider behavior: skills/using-orbit/references/safety-rules.md
  • Local repository analysis changes: skills/repo-understanding/SKILL.md, skills/repo-understanding/references/commands.md, skills/repo-understanding/scripts/
  • Jira-to-code automation flow: skills/change-implementation/SKILL.md
  • Packaged repo/tracker/ci/docs command surface: skills/bitbucket/references/commands.md, skills/github/references/commands.md, skills/gitlab/references/commands.md, skills/jira/references/commands.md, skills/github-issue/references/commands.md, skills/github-workflow/references/commands.md, skills/confluence/references/commands.md, skills/obsidian/references/commands.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.