bazel-target-open

Resolve Bazel labels from terminal output and open matching BUILD targets.

6|Updated Jul 9, 2019
One-click install
npx skills add https://github.com/sluongng/dotfiles --skill bazel-target-open
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bazel-target-open
Source: https://github.com/sluongng/dotfiles/tree/main/config/claude/skills/bazel-target-open
Command: npx skills add https://github.com/sluongng/dotfiles --skill bazel-target-open

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When working with Bazel, developers often need to quickly locate and inspect the exact BUILD target corresponding to a label shown in terminal output. This skill streamlines that workflow by providing a dedicated CLI path to jump from a label to its BUILD file.

Core Features & Use Cases

  • Resolve a Bazel label from terminal output and open the matching BUILD file target in the local workspace.
  • Works offline relative to the workspace and supports read-only inspection and dry-run previews.
  • Integrates with tmux-fingers or interactive terminals to speed up navigation during development.

Quick Start

Open a label directly from your terminal by running bazel-target-open on the label you want to inspect.

Frequently Asked Questions about bazel-target-open

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I open a Bazel BUILD file from a label in terminal output?

You can open a Bazel BUILD file from a label in terminal output by running the bazel-target-open CLI, which resolves the label relative to your current workspace and opens the target file.

Can I use tmux-fingers to select and open Bazel labels?

Yes, you can use tmux-fingers to select and open Bazel labels, as this CLI integrates with interactive terminal workflows to speed up navigation during development sessions.

Does opening Bazel targets from terminal output require network access?

No, opening Bazel targets from terminal output requires no network access because the CLI operates offline relative to the current Bazel workspace to resolve labels locally.

What is the best way to inspect Bazel BUILD targets during interactive terminal development?

The best way to inspect Bazel BUILD targets during interactive terminal development is using a dedicated CLI to locate labels from terminal output and open the matching files for read-only inspection or dry-run previews.

Do I need a local Bazel workspace to resolve labels from terminal output?

Yes, you need a locally installed bazel-target-open CLI and an active local Bazel workspace, because the tool resolves labels relative to the current workspace environment.