# buck2-rule-basics

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

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/library/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

- [fix](https://omgskills.com/library/facebook/react/fix/index.md) — Used when you have lint errors, formatting issues, or before committing code to ensure it passes CI.
   - [@facebook](https://omgskills.com/library/facebook/index.md) · 253k stars
- [relay-best-practices](https://omgskills.com/library/facebook/relay/relay-best-practices/index.md) — Best practices for writing idiomatic Relay code.
   - [@facebook](https://omgskills.com/library/facebook/index.md) · 19k stars
