Files
Giancarmine SalucciandClaude Opus 4.8 fc7f825268 build: bundle cpd/scc/biome/ruff for all 5 platforms via Git LFS
Completes the self-contained, offline-from-clone engine set (ast-grep + cpd + scc +
biome + ruff) across linux x64/arm64, darwin x64/arm64, win32 x64. checksums.txt now
covers all 25 tool×platform binaries; manifest + first-run fetch kept ready in case we
switch to fetch-on-demand later.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 02:35:44 +02:00
..

Bundled ast-grep binaries

The skill ships a self-contained ast-grep binary per platform so it works with no install step and offline. SKILL.md (Step 0) detects <os>-<arch> and runs the matching binary; if it can't (rare arch, or macOS Gatekeeper / Windows SmartScreen blocking an unsigned binary) it falls back to a PATH ast-grep, then to LLM-heuristic detection.

Layout

bin/
├── linux-x64/ast-grep
├── linux-arm64/ast-grep
├── darwin-x64/ast-grep
├── darwin-arm64/ast-grep
└── win32-x64/ast-grep.exe

Populating / updating the binaries (packaging step)

These are not source; they are fetched at package time from the official releases (MIT-licensed): https://github.com/ast-grep/ast-grep/releases

For each platform, download the release archive, extract the ast-grep binary into the matching bin/<os>-<arch>/ directory, and record its SHA-256 in checksums.txt. Pin a single upstream version across all platforms (see VERSION).

Engines (per platform): ast-grep ~51 MB, biome ~60 MB, ruff ~27 MB, scc ~4 MB, cpd ~4 MB → ~146 MB/platform (~875 MB across all 6 platform slots). Versions/URLs in manifest.json; SKILL.md Step 0 selects/fetches per platform and verifies checksums.txt.

Size note: the ast-grep binary is ~50 MB per platform (~250 MB total). The binaries are committed via Git LFS (.gitattributes), so a clone is fully self-contained and offline. After cloning, ensure git lfs is installed and run git lfs pull if the files are still pointers. As a fallback (no lfs), SKILL.md Step 0 fetches the pinned release (VERSION) and verifies it against checksums.txt.

Verification

SKILL.md may verify a binary against checksums.txt before first use. Never run a binary whose checksum does not match.