
limrun-bazel
The default way to build any Bazel workspace on Limrun: build its iOS and Android targets on Limrun's shared build plane with lim bazel setup and bazel build --config=limrun, from any environment (Linux, Windows, macOS, VM, container, CI), with one remote cache shared across the organization. Use when the project is a Bazel workspace (MODULE.bazel) with rulesapple or rulesandroid and the user wants to build it remotely, run the built app on a Limrun simulator or emulator, set up Bazel remote execution in CI, or fix a --config=limrun build that fails on authentication, workers, or missing MODULE.bazel lines. limrun-xcode-bazel covers only the legacy lim xcode rbe flow; use it only when the workspace already runs on lim xcode rbe or the user asks for it. For non-Bazel Android builds, use limrun-gradle.
- Installs
- 27.7K
- Last 24h
- +43
- Trending rank
- #3697
- Security
- Pass
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/limrun-inc/skills --skill limrun-bazel- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads limrun-bazel automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
Security audits
Independent scans of the skill's instructions and bundled files.
SKILL.md
The instructions your agent reads when the skill is triggered.
Bazel on Limrun's build plane
lim bazel setup points a Bazel workspace at Limrun's build plane: Apple
actions run on Limrun's Macs, Android actions on Limrun's Linux workers, and
every build of the organization shares one remote cache. Bazel keeps running
where it already does; no local Xcode or Android SDK is needed for the
remote actions.
Auth and CLI
Install with npm: npm install --global lim (0.44.0 or later). The npm
package also installs lim-bazel-credentials, the credential helper Bazel
calls; the standalone tarball and DotSlash builds do not put it on PATH,
so Bazel cannot authenticate with them. Auth is lim login or LIM_API_KEY
(it may already be set even when the shell does not show it; check before
asking). The helper reads only lim login or LIM_API_KEY, never a key
passed with --api-key. The CLI is the source of truth: if a flag errors,
check lim bazel setup --help instead of guessing.
Set up
Run inside the workspace (it walks up to the directory with MODULE.bazel):
lim bazel setup
It needs Bazel 8 or later and rules_apple or rules_android in the root
MODULE.bazel. It writes a gitignored .limrun/ with the --config=limrun
configuration and adds a try-import to .bazelrc. Nothing secret is
written: Bazel asks the credential helper for a short-lived token.
- Region: setup picks the closest region that runs a build plane.
--region <name>pins one. - Android: Linux workers need
rules_cc,rules_java,protobufandhermetic_android_toolchainsin the rootMODULE.bazel. Setup prints the missing lines and asks;--yesadds them without asking. Without a terminal and without--yesit stops and prints the lines, so pass--yesin scripts and CI. - Java runtime: a
--java_runtime_versionalready in.bazelrcis kept; otherwise the limrun config usesremotejdk_17. - Re-run setup after upgrading the CLI or when the workspace starts using
Apple or Android rules. Do not hand-edit
.limrun/.
Build
bazel build --config=limrun //your:target
Build actions run remotely and Bazel downloads only the top-level outputs
(the .apk or .ipa). Without --config=limrun, Bazel builds as before.
Own flags for the limrun path go in user.limrun.bazelrc at the workspace
root; the generated config imports it last and it survives re-running setup.
In CI: install lim from npm, set LIM_API_KEY as a secret, run
lim bazel setup --yes, then build with --config=limrun.
Run the app
Build for the simulator or emulator, then install the .ipa or .apk path
Bazel prints:
lim ios create && lim ios sync bazel-bin/App/App.ipa
lim android create && lim android install-app bazel-bin/app/app.apk
Re-run lim ios sync after each rebuild; it sends only the difference. To
drive the running app, use limrun-ios-simulator or limrun-android-emulator.
Check results
The console's Bazel page (https://console.limrun.com/bazel) lists the
organization's builds from every region, with live output for running builds
and the remote cache hit rate per build.
When a build fails
- Bazel cannot authenticate or reports a credential helper error: check
that
lim-bazel-credentialsis onPATH(npm install) and thatlim loginorLIM_API_KEYis set where Bazel runs. - "the build plane could not start a worker" or "no linux worker is free": transient capacity; retry the build.
- Missing
@androidsdkor Android toolchain errors: theMODULE.bazellines are missing. Re-runlim bazel setupand accept them. - Each region keeps its own cache: the first build in a new region starts cold.
FAQ
What does the limrun-bazel skill do?
The default way to build any Bazel workspace on Limrun: build its iOS and Android targets on Limrun's shared build plane with lim bazel setup and bazel build --config=limrun, from any environment (Linux, Windows, macOS, VM, container, CI), with one remote cache shared across the organization. Use when the project is a Bazel workspace (MODULE.bazel) with rulesapple or rulesandroid and the user wants to build it remotely, run the built app on a Limrun simulator or emulator, set up Bazel remote execution in CI, or fix a --config=limrun build that fails on authentication, workers, or missing MODULE.bazel lines. limrun-xcode-bazel covers only the legacy lim xcode rbe flow; use it only when the workspace already runs on lim xcode rbe or the user asks for it. For non-Bazel Android builds, use limrun-gradle.
How do I install limrun-bazel?
Run npx skills add https://github.com/limrun-inc/skills --skill limrun-bazel in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/limrun-bazel/ (personal) or .claude/skills/limrun-bazel/ (project).
Which AI agents can use limrun-bazel?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is limrun-bazel safe to install?
Security partners have reviewed it: Gen Agent Trust Hub passed; Socket passed; Snyk passed. As with any skill, read the SKILL.md and bundled scripts before installing.
Who maintains limrun-bazel?
It is published by limrun-inc in limrun-inc/skills. It has 27,678 recorded installs.
More from limrun-inc/skills
limrun-ios-simulator
limrun-inc/skills
Drive an app running on a Limrun cloud iOS simulator: launch, tap, type, read the accessibility element tree, read app logs and simulator syslog, screenshot, record video, connect the app to local services or a private tunnel, play a video file as the camera, send all traffic through the user's proxy and trust its CA, set the clipboard, read and write user defaults, post notifications, and run timed action chains. Use after a build (from any builder) when the user wants to see, test, or interact with their app on a simulator, or says 'show me a screenshot', 'tap', 'run the UI test', 'record a video', 'read the logs', 'connect localhost', 'reach my local server from the simulator', 'route all traffic through my proxy', 'trust my CA', 'mock the camera', 'paste into the app', 'change the language', 'simulate Face ID', or 'launch on simulator'. To build the app first, use limrun-xcode-bazel (Bazel workspaces) or limrun-xcode (xcodebuild projects).
limrun-xcode
limrun-inc/skills
Build an iOS / Apple app on remote Xcode with lim xcode build instead of local xcodebuild, run project commands with lim xcode run, or run its XCTest suites with lim xcode test, from any environment (Linux, Windows, macOS, VM, container). Use for non-Bazel projects (an .xcodeproj / .xcworkspace, an XcodeGen project.yml with a gitignored project, React Native / Expo native build) when the user wants to build, compile, run code generation or Make targets, test, inspect build logs, reload, produce a preview build, or ship a signed device IPA. To run, tap, screenshot, or otherwise interact with the result on a simulator, use limrun-ios-simulator. For Bazel workspaces, use limrun-xcode-bazel.
limrun-expo-development
limrun-inc/skills
Prepare and run Expo / React Native apps on Limrun with Expo dev-client iteration. Use when the user wants an Expo dev build, Metro tunnel, hot reload, JS/TS iteration without repeated native rebuilds, or to run/test an Expo app on a remote iOS simulator or Android emulator.
limrun-detox-testing
limrun-inc/skills
Configure, run, or debug Detox on Limrun iOS simulators. Use when attaching the Limrun Detox runtime to an app, wiring Detox mediator connectivity, or validating app/tester connections over destination tunnels.
limrun-xcode-bazel
limrun-inc/skills
Legacy: build a Bazel iOS app with lim xcode rbe on a dedicated Xcode sandbox and install it on a remote iOS simulator attached to that sandbox. Use only when the workspace already runs on lim xcode rbe (its .limrun/ came from lim xcode rbe) or the user explicitly asks for it, or when a lim xcode rbe build, upload, or install misbehaves. For every other Bazel build, including new workspaces, iOS or Android, and running the app on a simulator, use limrun-bazel. To tap, type, screenshot, or otherwise interact with the running app, use limrun-ios-simulator.
limrun-maestro-testing
limrun-inc/skills
Run Maestro YAML flows against a Limrun cloud iOS simulator with lim ios maestro, from any environment (Linux, Windows, macOS, VM, container). Use when the user wants to run, write, or debug Maestro flows or maestro test on iOS, migrate an existing Maestro suite to remote simulators, or asks for UI testing with Maestro. iOS simulators only today. For Detox suites use limrun-detox-testing; for driving the simulator without a test framework use limrun-ios-simulator.
Popular mobile skills
design-mobile-apps
designed-by-ai/skills
Design mobile app screens with Sleek, edit Sleek projects, and implement their designs in React Native or HTML.
ios-design
uizze.sh
Design and review iOS UI/UX for iPhone apps in SwiftUI, UIKit, or React Native. Use for mobile app design, screen redesigns, navigation flows, typography, forms, keyboard and safe-area layout, and accessibility checks. Apply Apple Human Interface Guidelines and consult real product references through the optional Uizze connection.
vercel-react-native-skills
vercel-labs/agent-skills
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
animate-expo
emilkowalski/skills
Build animations in React Native and Expo, making the decisions in the order that determines whether they feel right — should it animate, which thread it runs on, which properties, spring or timing, how the gesture hands off, how it degrades. Writes the implementation with Reanimated, Gesture Handler, Expo Router and expo-haptics. Use when animating anything in an Expo app, adding gestures, sheets, screen transitions, press feedback or haptics, or fixing motion that stutters on device. For web animation use animate.
write-swift
emilkowalski/skills
How to write modern Swift well — modeling with value types, Swift 6 data-race safety and approachable concurrency (@concurrent, main-actor-by-default, actors, task groups), protocols and generics (some vs any), API design, performance and ARC, Swift Testing, macros, and the modern language features agents don't know about yet. Use when writing, reviewing, or migrating Swift, or when a concurrency error, a hang, a data race, a retain cycle, or a performance problem needs fixing.
xcode-project-setup
firebase/agent-skills
Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).