Skip to content
cccskills

carbon-language

@carbon-language

Organization

15 skills1 repository 33.9K

Skills (15)

Refine in search

Toolchain tests

FreeSummary

Use this guide to create, structure, and run Carbon toolchain tests with the `file_test` infrastructure. It explains test headers, split cases, failure prefixes, focused SemIR output, and how to regenerate expected output with the updater.

  • Creating a file_test for a toolchain change
  • Splitting passing and failing test cases
  • Choosing fail_ and todo_ test prefixes
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Agent tools

FreeSummary

Use this skill to guide an AI assistant working in the Carbon repository on viewing, searching, and editing files with specialized environment tools. It also sets rules for temporary files and when custom programs may be used.

  • Choosing approved tools to view, search, or edit files
  • Checking where temporary analysis and test files belong
  • Deciding when a custom transformation program is allowed
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Bazel usage

FreeSummary

Follow the Carbon project's Bazel workflow through Bazelisk, a version-managing launcher. Learn commands for building targets, running tests and binaries, enabling AddressSanitizer, and refreshing cached state after system dependency changes.

  • Building a Carbon target
  • Running focused project tests
  • Launching a Bazel-built binary
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Use this guide to manage Carbon repository changes with Jujutsu (jj), a Git-compatible version control system. It covers status, diffs, commits, remote syncing, and change stacks, including how to identify a stack's base and handle history safely.

  • Checking repository status and change history
  • Fetching remote changes and starting work on trunk
  • Committing or reviewing a change with jj
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Use this skill to write a complete report of changes in Carbon toolchain testdata. It shows how to identify diffs, extract input and output changes, group related edits, list affected files, and validate that every change is represented.

  • Summarizing testdata changes in a code review
  • Grouping related test input and output edits
  • Listing every affected testdata file
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Proposals

FreeSummary

Prepare and manage Carbon evolution proposals using the project’s template and conventions. Connect the proposal to project goals, explain alternatives and tradeoffs, incorporate decisions from a lead issue, and keep its abstract aligned with the pull request description.

  • Drafting a new Carbon evolution proposal
  • Turning a decided issue into a standalone proposal
  • Comparing design alternatives and tradeoffs
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Use this skill to implement builtin functions in the Carbon compiler, from registering a function name and checking its signature to evaluating constant calls and generating LLVM IR for runtime calls. It also covers prelude bindings and focused tests.

  • Registering a new Carbon builtin function
  • Adding compile-time evaluation behavior
  • Lowering runtime builtins to LLVM IR
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Code style

FreeSummary

Apply Carbon toolchain conventions for formatting Bazel, C++, Carbon, Markdown, and Python files. The skill also covers clear comments and documentation, accurate names, design choices, and concise commit descriptions.

  • Formatting a changed source file
  • Writing or revising code comments
  • Choosing names that match their meaning
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Use this skill to read GitHub issue details and comments from the command line with `gh`. It covers issues referenced by number or URL, including issues in other repositories, and keeps access read-only so issue state is not changed.

  • Reading an issue and its full comment history
  • Opening an issue referenced by URL
  • Viewing an issue from another repository
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Prek

FreeSummary

Run `prek`, Carbon's pre-submit style and lint checker, across all files or selected changes. The skill explains its Jujutsu helper, how to handle hooks that rewrite files, and a `gpkg` workaround for dependency or security policy errors.

  • Checking all files before submitting changes
  • Checking only selected files
  • Running checks in a Jujutsu workspace
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Diagnostics

FreeSummary

Use this skill to add or revise diagnostics in the Carbon toolchain. It explains how to register message kinds, format typed arguments, attach source labels and context, and verify that diagnostics follow the project’s wording and test coverage rules.

  • Adding an error or warning to the Carbon compiler
  • Attaching source locations and explanatory labels
  • Checking diagnostic wording and formatting conventions
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

GitHub CLI usage

FreeSummary

Use `gh`, the GitHub command-line tool, to list, inspect, and search issues, pull requests, repositories, and code. The skill also explains read-only REST and GraphQL queries, pagination, and ways to filter or format returned data.

  • Checking an issue or pull request
  • Searching issues, code, or repositories
  • Querying GitHub data with the API
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Use this skill to review changes in compiler test output and decide whether they match the intended code change. It explains how to assess user-visible diagnostics separately from internal output, spot hidden regressions, and verify tests after automatic updates.

  • Reviewing compiler test output changes after an autoupdate
  • Checking whether changed diagnostics reflect intended behavior
  • Assessing internal output churn and unexplained structural differences
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Language server

FreeSummary

Use this skill when developing Carbon’s language server or its VS Code extension. It describes request handling, document types, the SemIR text reader, and how to write and update file-based tests that exercise LSP requests and responses.

  • Understanding the language server’s request flow
  • Adding or changing an LSP handler
  • Writing or updating file-based server tests
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Use this skill to navigate and work on the Carbon compiler toolchain. It explains the compiler phases, code organization, build and test commands, debugging practices, and implementation conventions so you can make and investigate changes consistently.

  • Finding where a toolchain phase is implemented
  • Building or testing the Carbon toolchain
  • Debugging compiler behavior or crashes
carbon-language/carbon-lang33.9KUpdated Oct 26, 2026

Is this your account? Link GitHub to bring it onto your creator page (Japanese)