buck2-new-project

Scaffold Buck2 projects with BUILD, PACKAGE, and SPDX header boilerplate.

11|1|Updated Apr 9, 2025
One-click install
npx skills add https://github.com/thoughtpolice/a --skill buck2-new-project
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: buck2-new-project
Source: https://github.com/thoughtpolice/a/tree/main/.claude/skills/buck2-new-project
Command: npx skills add https://github.com/thoughtpolice/a --skill buck2-new-project

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and assets (resource) components.

What problem does it solve?

Buck2 project scaffolding requires repetitive boilerplate for BUILD/PACKAGE files, SPDX headers, and language templates. This skill automates scaffolding to ensure consistent structure and metadata from the start.

Core Features & Use Cases

  • Automated project scaffolding for Rust binaries/libraries, Deno tools, and C++ components.
  • Generates BUILD and PACKAGE files with depot shims, SPDX headers, and language-specific templates.
  • Provides ready-to-run scripts and templates to bootstrap new Buck2 modules quickly.

Quick Start

Invoke the scaffolder to generate a new Buck2 project by specifying its type, name, and destination path (for example, type rust_binary, name mytool, path src/tools/mytool).

Frequently Asked Questions about buck2-new-project

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

FAQPage Schema
How do I scaffold a new Buck2 project with consistent BUILD files and SPDX headers?

To scaffold a Buck2 project, this tool automates the generation of BUILD and PACKAGE files, applying depot shims, SPDX headers, and language-specific templates to ensure consistent structure from the start.

What Buck2 module types are supported for automated project scaffolding?

Automated Buck2 project scaffolding supports Rust binaries and libraries, Deno tools, and C++ components, providing ready-to-run templates and populated metadata for each specific language type.

How do I generate a new Rust binary in a Buck2 monorepo using a scaffolder?

You generate a new Rust binary by invoking the scaffolder script, specifying the type as rust_binary, providing a name, and designating a destination path to instantly populate the required boilerplate.

Do I need to manually create PACKAGE files when bootstrapping Buck2 modules?

No, you do not need to manually create PACKAGE files; the scaffolding script automatically generates them alongside BUILD files, complete with depot shims and SPDX header boilerplate.

What's the best way to automate boilerplate creation for multiple Buck2 language targets?

The best way to automate boilerplate creation across Rust, Deno, and C++ targets is using a dedicated scaffolding script that standardizes BUILD files and metadata templates across the monorepo.

Why does setting up a new Buck2 module require so much repetitive boilerplate?

Setting up a new Buck2 module requires repetitive boilerplate because BUILD and PACKAGE files, SPDX headers, and language templates must follow strict structural conventions, which this tool automates to eliminate manual overhead.