# buck2-rule-basics

> Claude/Codex skill by [@facebook](https://omgskills.com/library/facebook/index.md) · 4.4k stars · Updated 2026-08-31

Guide users through writing their first Buck2 rule to learn fundamental concepts including rules, actions, targets, configurations, analysis, and select(). Use this skill when users want to learn Buck2 basics hands-on or need help understanding rule writing.

## Install

```sh
git clone https://github.com/facebook/buck2 /tmp/buck2 && ln -s /tmp/buck2/.claude/skills/buck2-rule-basics ~/.claude/skills/buck2-rule-basics
```

## From README

Buck2 Rule Basics - Interactive Tutorial Overview This is an interactive, step-by-step tutorial that teaches Buck2 fundamentals through hands-on practice. You'll guide users through writing a simple text processing rule that converts text to uppercase, explaining core concepts as they encounter them.

## Links

- HTML page: https://omgskills.com/skills/facebook/buck2/buck2-rule-basics/
- GitHub: https://github.com/facebook/buck2
- Author: [@facebook](https://omgskills.com/library/facebook/index.md)

## More skills by this author

- [extract-errors](https://omgskills.com/skills/facebook/react/extract-errors/index.md) — Used when adding new error messages to React, or seeing "unknown error code" warnings.
   - [@facebook](https://omgskills.com/library/facebook/index.md) · 250k stars
- [feature-flags](https://omgskills.com/skills/facebook/react/feature-flags/index.md) — Used when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test...
   - [@facebook](https://omgskills.com/library/facebook/index.md) · 248k stars
- [flags](https://omgskills.com/skills/facebook/react/flags/index.md) — Used when you need to check feature flag states, compare channels, or debug why a feature behaves differently across...
   - [@facebook](https://omgskills.com/library/facebook/index.md) · 248k stars
