hitkeep: Skill for Claude Code

.agents/skills/fileflow-pathologize/SKILL.md

fileflow-pathologize is a skill for Claude Code from PascaleBeier/hitkeep. It costs 151 tokens per session (3,226 once invoked), scanned A, a copy of fileflow-pathologize, MIT.

A guide to two Go libraries for moving files safely and making filenames valid across operating systems. It covers moves, copies, renames, downloads, extraction, imports, and generated paths.

In plain words
What is it for?
Use it when moving or copying files, handling name conflicts, processing user-provided filenames, or building download and upload workflows in Go.
Why use it?
Basic file operations can fail when source and destination are on different filesystems, overwrite existing data, or create names that work on one operating system but not another. These libraries address those cases.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

This is PascaleBeier/hitkeep's own configuration. It tells Claude Code how to work on hitkeep 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 hitkeep configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is pathologize.Join("/data", "../../etc", "pass:wd") // "/data/etc/passwd" — contained + cleaned.

Part of the fileflow-pathologize plugin — 1 skill shipped together

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/PascaleBeier/hitkeep/main/.agents/skills/fileflow-pathologize/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/PascaleBeier/hitkeep

Made for: Claude Code.

Or install fileflow-pathologize, the plugin that ships this one along with the rest of its 1 skill.

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 fileflow-pathologize

README.md
[![agentmods](https://agentmods.dev/badge/skills/pascalebeier/hitkeep/fileflow-pathologize/github.svg)](https://agentmods.dev/skills/pascalebeier/hitkeep/fileflow-pathologize)
Your own site
<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.

agentmods 80×15 button for fileflow-pathologize

Your own site · 80×15
<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>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,226 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 warn 7 Sept 2026
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.
How audits are shown
Origin 100% copy Near-identical to another mod 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.00151 $0.03226
Opus 5.5 $0.00060 $0.01290
Sonnet 5.5 $0.00030 $0.00645
Haiku 4.5 $0.00015 $0.00323

Measured 1mo ago against content hash 46737a2f2bd1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

Origin

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.

.agents/skills/fileflow-pathologize/SKILL.md · 306 lines

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 / EXDEV from os.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.Clean by 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).

Read the full file on GitHub · 306 lines

Files

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.

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. 1mo ago First seen · 306 lines · 151 tokens per session scan A 46737a2f2bd1

Subscribe to this mod's changes

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.