spf13/go-skills/afero
Use when Go code reads, writes, or walks files and must be unit-tested without touching disk. Injects afero.Fs in place of os, tests in memory with MemMapFs, layers ReadOnlyFs, CopyOnWriteFs and BasePathFs, bridges to io/fs, and covers where MemMapFs differs from a real disk. Also for a --dry-run that must not write, and for choosing between afero, io/fs with testing/fstest, and os.Root. Defers to go for filesystem code with no test seam, and to fileflow-pathologize for turning untrusted names i
Agent skill · version 0.0.0-main.1794692238.g383c2f8 · from spf13/go-skills
Install
npx yarkr-cli add skill:spf13/go-skills/aferoWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:spf13/go-skills/afero
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:spf13/go-skills/aferoOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:spf13/go-skills/aferoWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.