cross-compile-matrix

cross-compile-matrix is a skill for Claude Code, Codex from zakelfassi/skills-driven-development. It costs 63 tokens per session (938 once invoked), scanned A, original, MIT.

A build-and-release recipe for adding a new operating-system and processor target to shipctl. It updates CI, the Makefile, and a simple test that checks the resulting program runs.

In plain words
What is it for?
Use it when adding a platform binary, such as macOS on ARM or Windows on x86-64, or when a target is missing from release artifacts.
Why use it?
It prevents a newly supported platform from being missing from automated builds or release files. It also keeps the target's build and smoke test steps together.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/zakelfassi/skills-driven-development/cross-compile-matrix
Any agent
npx skills add zakelfassi/skills-driven-development --skill cross-compile-matrix
Clone the repo
git clone --depth 1 https://github.com/zakelfassi/skills-driven-development

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cross-compile-matrix

README.md
[![agentmods](https://agentmods.dev/badge/skills/zakelfassi/skills-driven-development/cross-compile-matrix.svg)](https://agentmods.dev/skills/zakelfassi/skills-driven-development/cross-compile-matrix)
Your own site
<a href="https://agentmods.dev/skills/zakelfassi/skills-driven-development/cross-compile-matrix"><img src="https://agentmods.dev/badge/skills/zakelfassi/skills-driven-development/cross-compile-matrix.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 938 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00063 $0.00938
Opus 5 $0.00032 $0.00469
Sonnet 5 $0.00013 $0.00188
Haiku 4.5 $0.00006 $0.00094

Measured 5d ago against content hash daf10a261954, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cross-compile-matrix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/cli-tool/skills/cross-compile-matrix/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cross-Compile Matrix

Add a new target triple to the build matrix so CI produces a binary for the new platform.

Inputs

  • Target triple (e.g., aarch64-apple-darwin, x86_64-pc-windows-gnu)
  • Cross-compiler image (Docker image or native if the runner natively supports the target)
  • Smoke test command (a simple invocation to verify the binary works, e.g., shipctl --version)

Steps

  1. Verify the triple is valid

    rustup target list | grep {triple}
    

    For Go: check go tool dist list | grep {os}/{arch}.

  2. Add the target to the CI matrix Edit .github/workflows/release.yml — add the triple to the matrix.target array:

    strategy:
      matrix:
        include:
          - target: {triple}
            runner: ubuntu-latest      # or macos-latest, windows-latest
            cross: true                # false if runner supports the target natively
            image: ghcr.io/cross-rs/{triple}:latest  # omit if cross: false
    
  3. Add the Makefile target

    build-{safe-triple}:
    	cargo build --release --target {triple}
    	mkdir -p dist
    	cp target/{triple}/release/shipctl dist/shipctl-{triple}
    

    {safe-triple} replaces - with _ in Make target names.

  4. Register the rustup target (Rust only)

    rustup target add {triple}
    

    For CI: add to the rustup target add step in the workflow.

  5. Add a smoke test step in the workflow:

    - name: Smoke test ({triple})
      run: ./dist/shipctl-{triple} --version
      if: matrix.target == '{triple}'
    

    If cross-testing is not feasible (e.g., Windows binary on a Linux runner), document this in a comment.

  6. Test locally (if the host supports the target)

    make build-{safe-triple}
    ./dist/shipctl-{triple} --version
    
  7. Update the release notes template Add a row to docs/install.md:

    | {OS} | {Arch} | `{triple}` | `shipctl-{version}-{triple}.tar.gz` |
    

Read the full file on GitHub · 87 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 87 lines · 63 tokens per session scan A daf10a261954

Subscribe to this mod's changes

cross-compile-matrix is a skill published in the GitHub repository zakelfassi/skills-driven-development (18 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 938 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ci-cd-and-automation

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

addyosmani/agent-skills · 45 tokens

google-cloud-slo-alert-configuration

Configures PromQL-based Service Level Objective (SLO) alerting policies for Google Cloud resources registered in App Hub or individually specified. Generates Terraform output. Use when the user asks to configure an SLO or Service Level Objective. Don't use for standard alerting policies.

google/skills · 62 tokens

cloud-build-basics

Teaches the fundamentals of Google Cloud Build (GCB). Covers core concepts, API enablement, console navigation to the Build History page, and the end-to-end workflow for creating and manually running a basic build trigger. Do not use for managing private pools or complex pipeline architectures.

google/skills · 61 tokens

chinese-git-workflow

国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。.

jnMetaCode/superpowers-zh · 69 tokens

comet-github-ci-triage

使用 PR 当前准确 head、失败 job 日志、本地复现边界和可合并状态,诊断 Comet PR 的 GitHub Actions 与覆盖率检查。PR 出现 CI 报错、Codecov 问题、过期检查或无法解释的红色 job 时使用。.

rpamis/comet · 72 tokens

review-tooling

Detect what dev tooling infrastructure a project has and flag gaps across linters, formatters, pre-commit hooks, test runners, and CI/CD pipelines. Returns structured findings without applying changes. Use when the user asks to "review tooling", "check project tooling", "what tooling is missing", "review dev…

tobihagemann/turbo · 74 tokens