Back to Skills

buck2-rule-basics

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.

4,225stars322forksUpdated 1/21/2026

Security Assessment

Safe(100/100)
Security Score100/100

About buck2-rule-basics

The 'buck2-rule-basics' skill is designed to guide users through the process of writing their first Buck2 rule, helping them understand the fundamental concepts of the Buck2 build system. This interactive tutorial addresses the common challenge of grasping the intricacies of rule-writing by providing hands-on practice. Users will learn about rules, actions, targets, configurations, and the analysis phase, all while engaging in a practical coding experience that demystifies the Buck2 model.

FAQ

How do I start the tutorial?

You can start the tutorial by checking if the tutorial directory exists and determining your progress within it.

What command should I use for the tutorial?

You should use the system 'buck2' command for building and testing, not './buck2.py'.

Can I skip steps if I already understand a concept?

Yes, if you're advanced, you can request to skip basic explanations.

Is there any prerequisite knowledge needed?

Basic understanding of build systems and programming would be beneficial, but the tutorial is designed for beginners.

What if I encounter issues while following the tutorial?

If you encounter issues, you can ask questions, and help will be provided to debug and clarify concepts.

All Files

2 files
SKILL.md25.0 KB
View
README.md6.1 KB
View

Install buck2-rule-basics

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

facebook/buck2