add-buck-target

Automate Buck2 cross-compilation target setup with platform and toolchain definitions.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/rsJames-ttrpg/kerrigan --skill add-buck-target
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-buck-target
Source: https://github.com/rsJames-ttrpg/kerrigan/tree/main/.claude/skills/add-buck-target
Command: npx skills add https://github.com/rsJames-ttrpg/kerrigan --skill add-buck-target

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill simplifies the process of integrating a new cross-compilation target into Buck2, ensuring platform constraints and toolchains are defined consistently across builds.

Core Features & Use Cases

  • Platform definition updates: add a new Buck2 platform with correct cpu/os constraints for a target.
  • Toolchain integration: install and reference the appropriate rust-std archives to enable cross-compilation.
  • Validation & reuse: verify the new target with buck2 targets and reuse existing patterns for future targets.

Quick Start

Add a new cross-compilation target to Buck2 by updating platforms and toolchains, then verify the configuration with buck2 targets.

Frequently Asked Questions about add-buck-target

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

FAQPage Schema
How do I add a new cross-compilation target in Buck2?

Adding a Buck2 cross-compile target involves creating platform definitions with correct CPU and OS constraints, integrating toolchain entries, and referencing rust-std artifacts via http_archive to ensure consistent reproducible builds across architectures.

What do I need to configure for Rust cross-compilation toolchains in Buck2?

Configuring Rust cross-compilation toolchains in Buck2 requires installing and referencing the appropriate rust-std archives using http_archive, ensuring platform constraints and toolchains are defined consistently across different operating systems and architectures.

How do Buck2 platform definitions and constraint mappings work for cross-compiling?

Buck2 platform definitions use constraint mappings to specify CPU and OS constraints for a target, ensuring that platform constraints and toolchains are defined consistently and applied correctly during cross-compilation builds.

Does configuring a Buck2 cross-compile target require rust-std artifacts?

Yes, configuring a Buck2 cross-compile target requires adding rust-std artifacts via http_archive to install and reference the appropriate toolchain entries needed to enable Rust cross-compilation across different architectures.

What is the best way to validate a new Buck2 platform configuration?

The best way to validate a new Buck2 platform configuration is to verify the new target using the buck2 targets command, ensuring the platform definitions and toolchain entries are correctly integrated for build automation.

Can I reuse existing Buck2 cross-compilation patterns for future build targets?

Yes, you can reuse existing patterns when adding a new Buck2 cross-compilation target, allowing you to consistently define platform constraints and toolchains for future target architectures and operating systems.