divine-mobile: Skill for Claude Code

.agents/skills/fastly-compute-native-test-linker-failure/SKILL.md

fastly-compute-native-test-linker-failure is a skill for Claude Code, Codex from divinevideo/divine-mobile. It costs 186 tokens per session (2,392 once invoked), scanned A, original, MPL-2.0.

A testing guide for Fastly Compute Rust crates that fail while linking native test programs. Rust crates are packages, and linking combines compiled code into a runnable program.

In plain words
What is it for?
Use it to understand why cargo test fails even when tests do not call Fastly code and to structure tests so they can run without native linking errors.
Why use it?
Fastly SDK symbols exist only in the wasm32-wasip1 deployment environment, so ordinary host builds such as macOS or Linux cannot link the test binary.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents).

This is divinevideo/divine-mobile's own configuration. It tells Claude Code and Codex how to work on divine-mobile itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything divine-mobile configures →

Reuse

Borrowing it

Nothing to install: this file belongs to divinevideo/divine-mobile. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/divinevideo/divine-mobile/main/.agents/skills/fastly-compute-native-test-linker-failure/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/divinevideo/divine-mobile

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 fastly-compute-native-test-linker-failure

README.md
[![agentmods](https://agentmods.dev/badge/skills/divinevideo/divine-mobile/fastly-compute-native-test-linker-failure/github.svg)](https://agentmods.dev/skills/divinevideo/divine-mobile/fastly-compute-native-test-linker-failure)
Your own site
<a href="https://agentmods.dev/skills/divinevideo/divine-mobile/fastly-compute-native-test-linker-failure"><img src="https://agentmods.dev/badge/skills/divinevideo/divine-mobile/fastly-compute-native-test-linker-failure/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 fastly-compute-native-test-linker-failure

Your own site · 80×15
<a href="https://agentmods.dev/skills/divinevideo/divine-mobile/fastly-compute-native-test-linker-failure"><img src="https://agentmods.dev/badge/skills/divinevideo/divine-mobile/fastly-compute-native-test-linker-failure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 186 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,392 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00186 $0.02392
Opus 5 $0.00093 $0.01196
Sonnet 5 $0.00037 $0.00478
Haiku 4.5 $0.00019 $0.00239

Measured 11d ago against content hash 9a424ec4f14d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

fastly-compute-native-test-linker-failure 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 11d 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.

.agents/skills/fastly-compute-native-test-linker-failure/SKILL.md · 215 lines

How it starts

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

Fastly Compute native test linker failure

Problem

Fastly Compute Rust binaries link against libfastly, which provides FFI symbols that only exist when targeting wasm32-wasip1. On a native host (macOS, Linux x86_64, Linux arm64), the FFI symbols are absent, so linking a test binary for the Fastly Compute crate fails with errors like:

"_version_set", referenced from:
    fastly::http::response::handle::ResponseHandle::set_version::h234bdb33f8878476 in libfastly-XXXX.rlib
"_body_new", referenced from:
    fastly::http::body::Body::new::hYYYY in libfastly-XXXX.rlib
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1
error: could not compile `fastly-blossom` (bin "fastly-blossom" test)

The error appears during cargo test even if none of your tests actually call Fastly SDK code — cargo still tries to compile and link the entire binary as a test target.

This has a nasty consequence: any #[cfg(test)] mod tests { ... } block inside a file compiled into the binary crate is effectively dead code. It never runs via cargo test because cargo can't link the test binary. Developers add tests, the compiler accepts them, they're visible in the source tree — but they never execute. Tests that were meant to regression-guard behavior silently become documentation that rots.

Context / Trigger Conditions

  • Fastly Compute Rust project with fastly = "0.11.x" (or similar) as a dependency
  • The crate has both src/main.rs and src/lib.rs OR only src/main.rs
  • cargo test fails at link time with _version_set / _body_new / _req_send undefined
  • cargo check --target wasm32-wasip1 succeeds
  • cargo check (native) succeeds (library code compiles, just can't link the binary)
  • You added tests in src/admin.rs, src/blossom.rs, src/metadata.rs, or any file that's mod-included from src/main.rs but NOT from src/lib.rs

Root cause

Fastly's Rust SDK (fastly crate) is designed exclusively for wasm32-wasip1. Its public API calls unsafe FFI functions (_version_set, _req_send, _body_new, etc.) that the Fastly Compute runtime provides at execution time inside the POP. On a native host, the rustc compiler still compiles the library crate, but the linker can't resolve those FFI symbols because libfastly-native doesn't exist.

Read the full file on GitHub · 215 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. 11d ago First seen · 215 lines · 186 tokens per session scan A 9a424ec4f14d

Subscribe to this mod's changes

fastly-compute-native-test-linker-failure is a skill published in the GitHub repository divinevideo/divine-mobile (265 stars, last pushed today), licensed MPL-2.0. It adds 186 tokens to every session and 2,392 once invoked, about $0.0009 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.