agentleFS
shihwesleyshihwesley/Orbit/skills/orbit/SKILL.md

orbit

Skill0 starsChanged 10 months agoMITView on GitHub

This skill should be used when the user says '/orbit', '/orbit init', '/orbit status', '/orbit test', '/orbit staging', '/orbit use', '/orbit sidecars', '/orbit logs', '/orbit stop', '/orbit check', '/orbit templates', asks about environment status or switching, wants to run tests in Docker containers, needs to manage dev/test/staging environments, or asks about sidecar services like PostgreSQL or Redis for their project.

  • Installs packages

8 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use threat-model.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    threat-model

    Claude Security plugin: create or update a repository's threat model, or check the findings of a report that this plugin wrote against how the system is deployed.

    Also in 3 projects that use this

  • Other versions8 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 8

    1. me2resh/apexyard★ 542same name
    2. simota/agent-skills★ 106same name
    3. mbwsims/claude-universe★ 71same name
    4. epicsagas/epic-harness★ 22same name
    5. orbcli/orbit★ 9same name
    6. Abdulaziz-almoshen/orbit★ 4same name
    7. miguelribeirovie-coder/orbit★ 0same name
    8. solankipravin374/visuals-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    If unsupported (swift|no or xcode|no):

    line 107
  2. Distinctive:

    Run tests in fresh Docker container.

    line 136
  3. Very specific:

    Stop all Orbit containers.

    line 352
  4. Distinctive:

    Check version parity between local toolchain and project requirements.

    line 377

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “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

Orbit Environment Manager

Ambient environment management for ~/Source/ projects.

MCP Tools

The Orbit MCP server provides these tools. Prefer MCP tools when available:

ToolPurpose
orbit_statusGet current environment status
orbit_switch_envSwitch to dev/test/staging
orbit_get_stateQuery projects, audit log, registry
orbit_sidecarsList/start/stop sidecars
orbit_stop_allStop all Orbit containers

Command Routing

Parse user input:

  • /orbit or /orbit status → Status
  • /orbit init → Init
  • /orbit test [--fresh] → Test Suite
  • /orbit staging → Staging
  • /orbit use <env> → Use
  • /orbit sidecars [action] [name] → Sidecars
  • /orbit logs [limit] → Logs
  • /orbit stop → Stop All
  • /orbit check → Parity Check
  • /orbit templates → Templates


/orbit status

Show current environment state.

With MCP (preferred)

Call orbit_status with project_path = <cwd>

Without MCP

# Check initialization
if [ ! -f ".orbit/config.json" ]; then
  echo "Project not initialized. Run /orbit init"
  exit 1
fi

# Show config
cat .orbit/config.json

# Query state
sqlite3 ~/.orbit/state.db "SELECT current_env, last_activity FROM project_state WHERE project = '$(pwd)';"
sqlite3 ~/.orbit/state.db "SELECT timestamp, command, success FROM audit_log WHERE project = '$(pwd)' ORDER BY timestamp DESC LIMIT 5;"

Output format

Project: <name>
Type: <node|python|go|rust>
Environment: <dev|test|staging>
Sidecars: <running sidecars or "none">

Recent activity:
  <timestamp> <command> <success/fail>
  ...

/orbit init

Initialize Orbit for current project.

Step 1: Detect type

${CLAUDE_PLUGIN_ROOT}/scripts/detect-project.sh .

Returns type|supported (e.g., node|yes).

Step 2: Confirm with user

Use AskUserQuestion:

question: "Detected project type: <type>. Initialize Orbit?"
options:
  - "Yes, initialize as <type>"
  - "No, cancel"

If unsupported (swift|no or xcode|no):

Orbit currently supports: Node.js, Python, Go, Rust
Swift/Xcode support planned for future release.

Stop here.

Step 3: Initialize

${CLAUDE_PLUGIN_ROOT}/scripts/orbit-init.sh . <type>

Step 4: Confirm

Orbit initialized for <project>
Type: <type>
Config: .orbit/config.json

Edit .orbit/config.json to add sidecars if needed.

Test Suite

Run tests in fresh Docker container.

Prerequisites

  • Docker installed and running
  • Project initialized

Execution

${CLAUDE_PLUGIN_ROOT}/scripts/orbit-test.sh [--fresh] .

What happens

  1. Checks Docker available
  2. Starts declared sidecars
  3. Sets NODE_ENV=test and CI=true
  4. Builds Docker image in isolation
  5. Runs tests in container
  6. Logs result to audit
  7. Reports pass/fail with duration

If Docker unavailable

Docker required for /orbit test.
Install: brew install --cask docker (macOS)
         sudo apt-get install docker.io (Linux)

/orbit staging

Switch to staging environment (Docker with staging env vars).

With MCP (preferred)

Call orbit_switch_env with:
  environment: "staging"
  project_path: <cwd>

Without MCP

# Check Docker
${CLAUDE_PLUGIN_ROOT}/scripts/check-docker.sh check || {
  echo "Docker required for staging environment"
  exit 1
}

# Start sidecars
SIDECARS=$(python3 -c "import json; print(' '.join(json.load(open('.orbit/config.json')).get('sidecars', [])))")
for sidecar in $SIDECARS; do
  docker compose -f ${CLAUDE_PLUGIN_ROOT}/docker/docker-compose.yml --profile sidecar-$sidecar up -d
done

# Update state
sqlite3 ~/.orbit/state.db "UPDATE project_state SET current_env = 'staging', last_activity = datetime('now') WHERE project = '$(pwd)';"

Output

Switched to staging environment (Production-Mimic)
Sidecars started: <list>
NODE_ENV: production
CI: true

Result

Orbit no longer manages production deployments directly. Staging is the final high-fidelity local validation step.


/orbit use <env>

Manually override environment (dev/test/staging).

With MCP (preferred)

Call orbit_switch_env with:
  environment: <env>
  project_path: <cwd>

Without MCP

Switch to dev:

# Stop containers (dev is local)
docker compose -f ${CLAUDE_PLUGIN_ROOT}/docker/docker-compose.yml down 2>/dev/null || true

# Update state
sqlite3 ~/.orbit/state.db "UPDATE project_state SET current_env = 'dev', sidecars_running = '[]', last_activity = datetime('now') WHERE project = '$(pwd)';"

echo "Switched to dev (local) environment"

Switch to test/staging:

# Requires Docker
${CLAUDE_PLUGIN_ROOT}/scripts/check-docker.sh check || exit 1

# Start sidecars
# ... (same as staging)

# Update state
sqlite3 ~/.orbit/state.db "UPDATE project_state SET current_env = '<env>', last_activity = datetime('now') WHERE project = '$(pwd)';"

/orbit sidecars

Manage sidecar services.

With MCP (preferred)

# List
Call orbit_sidecars with action: "list"

# Start
Call orbit_sidecars with action: "start", sidecar: "<name>"

# Stop
Call orbit_sidecars with action: "stop", sidecar: "<name>"

Available sidecars

NameServicePort
postgresPostgreSQL 155432
redisRedis 76379
mysqlMySQL 83306
mongodbMongoDB 727017
rabbitmqRabbitMQ 35672, 15672
awsLocalStack4566

Configure in project

Edit .orbit/config.json:

{
  "sidecars": ["postgres", "redis"]
}

Manual control

# Start
docker compose -f ${CLAUDE_PLUGIN_ROOT}/docker/docker-compose.yml --profile sidecar-<name> up -d

# Stop
docker compose -f ${CLAUDE_PLUGIN_ROOT}/docker/docker-compose.yml --profile sidecar-<name> down

# Status
docker compose -f ${CLAUDE_PLUGIN_ROOT}/docker/docker-compose.yml ps

/orbit logs

Show recent audit log entries.

With MCP (preferred)

Call orbit_get_state with:
  query_type: "audit"
  project_path: <cwd>
  limit: 20

Without MCP

sqlite3 -header -column ~/.orbit/state.db \
  "SELECT timestamp, command, environment,
          CASE success WHEN 1 THEN 'ok' ELSE 'fail' END as result,
          duration_ms
   FROM audit_log
   WHERE project = '$(pwd)'
   ORDER BY timestamp DESC
   LIMIT 20;"

Output format

Recent activity for <project>:

TIMESTAMP            COMMAND    ENV      RESULT  DURATION
2024-01-15 10:30:00  test       test     ok      12500ms
2024-01-15 10:25:00  init       dev      ok      -
...

/orbit stop

Stop all Orbit containers.

With MCP (preferred)

Call orbit_stop_all with confirm: true

Without MCP

docker compose -f ${CLAUDE_PLUGIN_ROOT}/docker/docker-compose.yml down

# Clear sidecar state for all projects
sqlite3 ~/.orbit/state.db "UPDATE project_state SET sidecars_running = '[]';"

echo "Stopped all Orbit containers"


/orbit check

Check version parity between local toolchain and project requirements.

Execution

${CLAUDE_PLUGIN_ROOT}/scripts/check-parity.sh .

Output

{
  "status": "ok|warning",
  "project_type": "node",
  "tool": "node",
  "local_version": "20.10.0",
  "required_version": "20",
  "warnings": []
}

If mismatch detected

Version parity warning:
Project expects Node 20, you have Node 18
Consider updating or use /orbit test for consistent environment

/orbit templates

Copy GitHub Actions workflow templates to project.

Available templates

TemplateFilePurpose
cici.ymlBasic CI (build + test)
vercelvercel-deploy.ymlDeploy to Vercel
railwayrailway-deploy.ymlDeploy to Railway

Usage

mkdir -p .github/workflows
cp ${CLAUDE_PLUGIN_ROOT}/templates/<template>.yml .github/workflows/

Example

/orbit templates ci
> Copies ci.yml to .github/workflows/ci.yml
   Edit to uncomment your project type (Node/Python/Go/Rust)

Workspace Support

Orbit detects monorepos/workspaces automatically during /orbit init:

Detected workspace types

TypeDetection
npmpackage.json with workspaces
pnpmpnpm-workspace.yaml
cargoCargo.toml with [workspace]
gogo.work file

Workspace behavior

  • Root project registered in registry
  • Sub-projects tracked in .orbit/config.json
  • Shared sidecars across sub-projects

Check workspace

${CLAUDE_PLUGIN_ROOT}/scripts/detect-workspace.sh .
# Returns: type|subprojects (e.g., "npm|packages/a,packages/b")

Quick Reference

CommandAction
/orbitShow status
/orbit initInitialize project
/orbit testRun tests in Docker
/orbit test --freshRun tests (no cache)
/orbit stagingSwitch to staging
/orbit use devSwitch to local dev
/orbit use testSwitch to test env
/orbit sidecarsList sidecars
/orbit sidecars start postgresStart PostgreSQL
/orbit sidecars stop redisStop Redis
/orbit logsShow audit history
/orbit stopStop all containers
/orbit checkVersion parity check
/orbit templates ciCopy CI template

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.