askill
build-profiles

build-profilesSafety 95Repository

Instructions for build profiles.

558 stars
11.2k downloads
Updated 3/7/2026

Package Files

Loading files...
SKILL.md

priority: critical

Build Profiles

BUILD_PROFILE environment variable controls build mode (default: "release").

Available Profiles:

  1. dev: Fast iteration, debug symbols, no optimizations. Use for development/testing.

    • Cargo profile: debug
    • Optimization: -C opt-level=0
    • Usage: BUILD_PROFILE=dev task rust:build or task rust:build:dev
  2. release: Optimized production builds, minimal debug symbols. Use for production/benchmarking.

    • Cargo profile: release
    • Optimization: -C opt-level=3
    • Usage: BUILD_PROFILE=release task rust:build or task rust:build:release
  3. ci: Release optimizations + debug symbols for troubleshooting. Use in CI/CD pipelines.

    • Cargo profile: release
    • Debug: enabled
    • Usage: BUILD_PROFILE=ci task rust:build (automatically set in GitHub Actions)

Profile Mapping:

  • BUILD_PROFILE=dev → CARGO_PROFILE_DIR=debug
  • BUILD_PROFILE=release → CARGO_PROFILE_DIR=release
  • BUILD_PROFILE=ci → CARGO_PROFILE_DIR=release (but with debug info)

Usage Examples:

# Dev builds (fast, debug symbols)
BUILD_PROFILE=dev task rust:build
BUILD_PROFILE=dev task build:all

# Release builds (optimized)
BUILD_PROFILE=release task rust:build
task build:all:release

# CI builds (optimized + debug)
BUILD_PROFILE=ci task build:all

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

77/100Analyzed 3/8/2026

This is a well-structured skill documenting build profiles for a Rust project. It clearly explains the BUILD_PROFILE environment variable and provides details for dev, release, and ci profiles with specific optimization settings and usage commands. The skill has good actionability with executable examples and includes tags for discoverability. However, it's quite specific to this Rust/Cargo project and located in an internal agent config path (.codex), which limits its reusability. The content is accurate and properly structured, but lacks a dedicated 'when to use' trigger section and some context like prerequisite information."

95
80
60
70
85

Metadata

Licenseunknown
Version-
Updated3/7/2026
Publisherkreuzberg-dev

Tags

ci-cdgithubgithub-actions