Tool usage

Enforce Bazelisk for builds and pre-commit checks in Carbon Language development.

33.9k|1.7k|Updated Apr 27, 2020
One-click install
npx skills add https://github.com/carbon-language/carbon-lang --skill tool-usage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Tool usage
Source: https://github.com/carbon-language/carbon-lang/tree/main/.agents/skills/tool_usage
Command: npx skills add https://github.com/carbon-language/carbon-lang --skill tool-usage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guidelines for selecting and using the correct development tools in the Carbon Language project, reducing misconfigurations and unsafe tool usage.

Core Features & Use Cases

  • Enforces the use of Bazelisk for building and testing to align with project standards.
  • Mandates running pre-commit checks to ensure code quality before commits.
  • Provides clear, repeatable tooling guidance for common development tasks in Carbon.

Quick Start

Always use Bazelisk for builds and tests and run pre-commit checks before committing changes.

Frequently Asked Questions about Tool usage

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

FAQPage Schema
What tool should I use to build and test Carbon language code?

Run pre-commit checks before committing Carbon language code to ensure code quality and validate formatting. This mandatory step prevents unsafe commits and maintains project standards across local development and code reviews.

How do I set up local development tooling for the Carbon Language project?

Set up Carbon Language local development by installing Bazelisk for builds and tests, then configuring pre-commit checks. This provides clear, repeatable tooling guidance that reduces misconfigurations and aligns with CI conventions.

Can I use Bazel directly instead of Bazelisk for Carbon builds?

Use Bazelisk instead of Bazel directly for Carbon builds to enforce project tooling conventions. Bazelisk manages the correct Bazel version automatically, reducing unsafe tool usage and preventing version mismatches across CI and local environments.

Why do I need to run pre-commit checks for Carbon language code?

Pre-commit checks are required for Carbon language code to enforce quality standards before changes are submitted. Mandating these checks prevents unsafe commits and ensures consistency across CI, local development, and code reviews.

What are the limitations of using standard build tools for Carbon language development?

Standard build tools bypass Carbon language project conventions, risking misconfigurations and unsafe tool usage. Without Bazelisk and pre-commit checks, builds and tests may fail CI validation or introduce unvalidated code into the repository.