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

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is run: ./dist/shipctl-{triple} --version.

Good fit 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.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cross-compile-matrix

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00063 $0.00938
Opus 5.5 $0.00025 $0.00375
Sonnet 5.5 $0.00013 $0.00188
Haiku 4.5 $0.00006 $0.00094

Measured 3mo ago against content hash daf10a261954, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 28d ago), licensed MIT. It adds 63 tokens to every session and 938 once invoked, about $0.0003 per session on Opus 5.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

cross-compile-matrix compared with skills from other repositories

cross-compile-matrix next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cross-compile-matrixzakelfassi/skills-driven-developmentSkill1828d agoMITA63Claude Code, Codex
ci-cd-and-automationaddyosmani/agent-skillsSkill123k2d agoMITA45Claude Code
google-cloud-slo-alert-configurationgoogle/skillsSkill26ktodayApache-2.0A65Claude Code, Codex
google-cicd-pipeline-designgoogle/skillsSkill26ktodayApache-2.0A132Claude Code, Codex
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.7k3d agoMITA69Claude Code
factoryBuilderIO/skillsSkill4.7k2d agoMITA32Claude Code
kotlin-tooling-gradle-to-kotlin-toolchain-projectKotlin/kotlin-agent-skillsSkill1.2kyesterdayApache-2.0A83Claude Code, Codex