Borrowing it
Nothing to install: this file belongs to PascaleBeier/hitkeep. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/PascaleBeier/hitkeep/main/.agents/skills/fileflow-pathologize/SKILL.mdgit clone --depth 1 https://github.com/PascaleBeier/hitkeepWrote 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/pascalebeier/hitkeep/fileflow-pathologize)<a href="https://agentmods.dev/skills/pascalebeier/hitkeep/fileflow-pathologize"><img src="https://agentmods.dev/badge/skills/pascalebeier/hitkeep/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/pascalebeier/hitkeep/fileflow-pathologize"><img src="https://agentmods.dev/badge/skills/pascalebeier/hitkeep/fileflow-pathologize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 242 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
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.00151 | $0.03226 |
| Opus 5.5 | $0.00060 | $0.01290 |
| Sonnet 5.5 | $0.00030 | $0.00645 |
| Haiku 4.5 | $0.00015 | $0.00323 |
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 1mo 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.
This is a copy
100% identical to fileflow-pathologize — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 306 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Safe File Operations: fileflow & pathologize
Two small, composable spf13 libraries that handle the two things naive file code
gets wrong: moving files safely (fileflow) and making names safe
(pathologize).
When to Activate
- Moving, copying, or renaming files — especially across drives/volumes
- Handling the "destination already exists" case without clobbering data
- Seeing
invalid cross-device link/EXDEVfromos.Rename - Building a destination path from a filename, user input, or a regex capture
- Downloaders, extractors, importers, file organizers, upload handlers
- Anywhere you were about to write
os.Rename+io.Copy+filepath.Cleanby hand
Why These Over the Standard Library
os.Rename fails across filesystems (EXDEV) and silently overwrites the
destination. filepath.Clean normalizes .. but does not remove characters
that are illegal on other operating systems, and does nothing about reserved
names (CON, NUL). And path/filepath validates against the host OS only —
a name that is fine on Linux can break the moment the file syncs to a Windows
client. These libraries close all of these gaps and compose cleanly.
The Core Pattern: Join a trusted root with untrusted parts, then move
The single most important pattern. Use pathologize.Join to combine a
trusted root with untrusted path parts (regex captures, user input,
scraped titles), then move with fileflow. Join sanitizes each part and
guarantees it stays lexically under the root — a part can't inject an absolute
path or ../ its way out.
import (
"path/filepath"
"github.com/spf13/fileflow"
"github.com/spf13/pathologize"
)
// destRoot is trusted (a configured directory); id/name are untrusted.
dstDir := pathologize.Join(destRoot, "ig", id) // parts sanitized + contained
dst := filepath.Join(dstDir, filepath.Base(src))
final, err := fileflow.Move(src, dst) // cross-fs safe, conflict safe
if err != nil {
return err
}
// final is where the file actually landed (may be suffixed on conflict).
What ships with it
1 file 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.
- 1mo ago First seen · 306 lines · 151 tokens per session scan A 46737a2f2bd1
fileflow-pathologize is a skill published in the GitHub repository PascaleBeier/hitkeep (97 stars, last pushed today), licensed MIT. It adds 151 tokens to every session and 3,226 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to fileflow-pathologize, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
use-modern-go
Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code. Apply its version-specific guidance to generated changes.
migrate-goldmark-extension-v1-to-v2
Migrate goldmark extension from goldmark v1 to v2.
jwx-guide-v4
Guide for developing Go applications with github.com/lestrrat-go/jwx v4 — parse/sign JWTs, work with JWS/JWE/JWK, pick algorithms, and avoid the common footguns. For developers using jwx, not for developing the library itself.
migrate-goldmark-app-v1-to-v2
Migrate your application from goldmark v1 to v2.
dd-code-generation
Use pup CLI for immediate Datadog operations or generate code for integration into applications.
go-127
What changed in Go 1.27 (released August 2026) and how it changes the way Go is written in pi-go. Use this skill when writing or reviewing Go that could use a 1.27 feature, when bumping the go directive in go.mod, when a build or test behaves differently after a toolchain upgrade, or when code-guidelines-go points…