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.
npx skills add spf13/go-skills --skill fileflow-pathologizegit clone --depth 1 https://github.com/spf13/go-skillsWrote 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.
[](https://agentmods.dev/skills/spf13/go-skills/fileflow-pathologize)<a href="https://agentmods.dev/skills/spf13/go-skills/fileflow-pathologize"><img src="https://agentmods.dev/badge/skills/spf13/go-skills/fileflow-pathologize/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.
<a href="https://agentmods.dev/skills/spf13/go-skills/fileflow-pathologize"><img src="https://agentmods.dev/badge/skills/spf13/go-skills/fileflow-pathologize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00110 | $0.02238 |
| Opus 5.5 | $0.00044 | $0.00895 |
| Sonnet 5.5 | $0.00022 | $0.00448 |
| Haiku 4.5 | $0.00011 | $0.00224 |
Grade A, and why
fileflow-pathologize 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 18d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- fileflow-pathologize — 100% identical, 383 lines differ
How it starts
The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Safe File Operations
Two rules decide whether file code is safe. spf13/fileflow and
spf13/pathologize are one reference implementation of them — the rules
hold whether or not you use those packages, and the code below is what correct
call sites look like.
- A destination is a trusted root plus sanitized parts. Untrusted input never chooses a path level or a separator.
- Never assume the file landed where you asked. Conflict handling picks the real name; act on the path the operation returns.
If you have neither package, the stdlib path is: os.OpenRoot (Go 1.24+) for
kernel-enforced containment, rename-then-copy for EXDEV, and your own suffix
loop. The same two rules still decide whether that code is correct.
Signatures, Flow options, the naming matrix, and error types live in
references/fileflow-api.md.
When to Activate
- Moving, copying, or renaming files, especially across drives/volumes
invalid cross-device link/EXDEVfromos.Rename- "destination already exists" where clobbering loses data
- Building a destination from a filename, user input, or a regex capture
- Downloaders, extractors, importers, organizers, upload handlers
- About to write
os.Rename+io.Copy+filepath.Cleanby hand
When NOT to Use This Skill
For general file I/O patterns use go. For CLI file commands use cobra-viper. For desktop file dialogs use wails. This skill is for cross-filesystem moves and untrusted filename sanitization.
Rule 1: Trusted root, sanitized parts
pathologize.Join takes the root verbatim (separators, drive and UNC
prefixes preserved, never sanitized) and runs every untrusted part through
Clean: split on / and \, drop empty/./.. segments, cap each at 255
bytes, defuse reserved device names (CON → CON_), strip control characters
and the characters illegal on any OS (\ / : * ? " < > |), and keep the
result lexically under the root. A part cannot inject an absolute path or
../ its way out. The root must come from configuration, never from the
request.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 18d ago Changed · -161 lines · -41 tokens per session c94e594a5991
- 1mo ago Changed · +30 lines 844463d49014
- 3mo ago First seen · 306 lines · 151 tokens per session scan A 46737a2f2bd1
fileflow-pathologize is a skill published in the GitHub repository spf13/go-skills (727 stars, last pushed 19d ago), licensed MIT. It adds 110 tokens to every session and 2,238 once invoked, about $0.0004 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.
fileflow-pathologize compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fileflow-pathologizespf13/go-skills | Skill | 727 | 19d ago | MIT | A | 110 | Claude Code |
| golang-testingaffaan-m/ECC | Skill | 315k | yesterday | MIT | A | 37 | Claude Code, Kiro |
| golang-patternsaffaan-m/ECC | Skill | 315k | yesterday | MIT | A | 45 | Claude Code, Kiro |
| golang-testingsamber/cc-skills-golang | Skill | 4.0k | 2d ago | MIT | A | 115 | Claude Code |
| golang-samber-oopssamber/cc-skills-golang | Skill | 4.0k | 2d ago | MIT | A | 74 | Claude Code |
| golang-uber-fxsamber/cc-skills-golang | Skill | 4.0k | 2d ago | MIT | A | 122 | Claude Code |
| ax-go-agent-optimizeax-llm/ax | Skill | 3.0k | yesterday | Apache-2.0 | A | 51 | Claude Code, Codex |