Agent skill

File Management

by aipoch in aipoch/medical-research-skills

Organize, back up, compress, split, and merge files/folders using rule-driven plans; use when you need safe previews, conflict handling, and verification before executing file operations.

MITAuto-check passedProductivity & Automation

Install File Management

skills CLI
$ npx skills add aipoch/medical-research-skills --skill file-management -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills file-management --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/scientific-skills/Other/file-management .claude/skills/file-management && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
file-management
GitHub stars
2k
Token cost
~1.6k tokens
SKILL.md length
375 words
Files
5 (incl. scripts, references)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

Organize, back up, compress, split, and merge files/folders using rule-driven plans; use when you need safe previews, conflict handling, and verification before executing file operations.

  • Works in 4 steps: Organize files with a preview plan… → Backup + hash manifest (PowerShell) → Compress a folder (PowerShell) → …
  • You need safe previews
  • SKILL.md covers When to Use, Key Features, Dependencies and Example Usage, plus 1 more section
  • Runs Python scripts from its folder; calls python

What it does

File Management is an agent skill from aipoch/medical-research-skills. Organize, back up, compress, split, and merge files/folders using rule-driven plans; use when you need safe previews, conflict handling, and verification before executing file operations.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `file-management_audit_result_v1.json`, `references/rule-schema.md` and `scripts/merge_parts.py`).

It sits in Productivity & Automation, covering File organization. It works with PowerShell. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • You need safe previews
  • Conflict handling
  • Verification before executing file operations

Example prompts

  • “/file-management”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Organize files with a preview plan (PowerShell)
  2. Backup + hash manifest (PowerShell)
  3. Compress a folder (PowerShell)
  4. Split and merge a large file (Python)

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

File Management loads about 1.6k tokens when it runs, and up to ~1.9k if it reads all its reference files. Until then it costs about 51 tokens; SKILL.md has 375 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 375 words, ~1,622 tokens.

Download SKILL.mdSave it as .claude/skills/file-management/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
file-management
description
Organize, back up, compress, split, and merge files/folders using rule-driven plans; use when you need safe previews, conflict handling, and verification before executing file operations.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

File Management

When to Use

  • You need to reorganize a directory (move/copy/rename) based on include/exclude patterns and a target folder structure.
  • You want a repeatable backup workflow (copy or archive) with optional retention rules and verification manifests.
  • You need to compress a folder or a set of files to reduce size or package deliverables.
  • You must split very large files into fixed-size parts for transfer/storage limits (binary-safe).
  • You need to merge previously split parts back into the original file reliably (binary-safe).

Key Features

  • Safety-first planning: generate a preview/manifest of intended actions before writing changes.
  • Rule-driven scope control: root path + include/exclude patterns + thresholds + target structure (see references/rule-schema.md).
  • Conflict handling: default to skip/rename on collisions; overwrite only with explicit confirmation.
  • Non-destructive defaults: avoid deletion unless explicitly requested.
  • Verification support: compare counts/sizes and optionally generate hashes for critical backups.
  • Binary-safe split/merge: split by fixed size and merge parts without corrupting binary data (scripts/).

Dependencies

  • PowerShell 5.1+ (Windows PowerShell) or PowerShell 7+
    • Cmdlets used: Get-ChildItem, Copy-Item, Move-Item, Compress-Archive, Get-FileHash
  • Python 3.8+ (for split/merge scripts)
    • scripts/split_file.py
    • scripts/merge_parts.py

Example Usage

1) Organize files with a preview plan (PowerShell)
powershell
# Inputs (adjust to your case)
$Root = "D:\Inbox"
$Target = "D:\Organized"
$Include = @("*.pdf","*.docx")
$ExcludeDirs = @("node_modules",".git")
$WhatIf = $true  # set to $false to execute

# Build a manifest (preview plan)
$files = Get-ChildItem -Path $Root -Recurse -File |
  Where-Object {
    ($Include | ForEach-Object { $_ }) -contains $_.Extension -eq $false
  }

# Practical include filter (simple example)
$files = Get-ChildItem -Path $Root -Recurse -File -Include $Include

# Exclude directories by path segment
$files = $files | Where-Object {
  $p = $_.FullName
  -not ($ExcludeDirs | Where-Object { $p -match [regex]::Escape("\$_\") })
}

$plan = foreach ($f in $files) {
  # Example target structure: by extension
  $ext = $f.Extension.TrimStart(".").ToLower()
  $destDir = Join-Path $Target $ext
  $destPath = Join-Path $destDir $f.Name

  [pscustomobject]@{
    Source = $f.FullName
    Destination = $destPath
    Action = "Copy"  # start with Copy; switch to Move after verification
  }
}

# Preview
$plan | Format-Table -AutoSize

# Execute (safe defaults: create dirs; do not overwrite unless you decide to)
foreach ($item in $plan) {
  $destDir = Split-Path $item.Destination -Parent
  if (-not (Test-Path $destDir)) { New-Item -ItemType Directory -Path $destDir | Out-Null }

  if (Test-Path $item.Destination) {
    # Default conflict strategy: rename
    $base = [IO.Path]::GetFileNameWithoutExtension($item.Destination)
    $ext  = [IO.Path]::GetExtension($item.Destination)
    $dir  = Split-Path $item.Destination -Parent
    $item.Destination = Join-Path $dir ("{0}_{1}{2}" -f $base, (Get-Date -Format "yyyyMMddHHmmss"), $ext)
  }

  if ($item.Action -eq "Copy") {
    Copy-Item -LiteralPath $item.Source -Destination $item.Destination -WhatIf:$WhatIf
  } else {
    Move-Item -LiteralPath $item.Source -Destination $item.Destination -WhatIf:$WhatIf
  }
}
2) Backup + hash manifest (PowerShell)
powershell
$Source = "D:\Project"
$BackupRoot = "E:\Backups"
$Stamp = Get-Date -Format "yyyyMMdd_HHmmss"
$BackupDir = Join-Path $BackupRoot ("Project_{0}" -f $Stamp)

# Copy backup
Copy-Item -Path $Source -Destination $BackupDir -Recurse

# Create a hash manifest for verification
$manifestPath = Join-Path $BackupDir "hash-manifest.sha256.txt"
Get-ChildItem -Path $BackupDir -Recurse -File |
  ForEach-Object {
    $h = Get-FileHash -Algorithm SHA256 -LiteralPath $_.FullName
    "{0}  {1}" -f $h.Hash, ($_.FullName.Substring($BackupDir.Length + 1))
  } | Set-Content -Encoding UTF8 $manifestPath
3) Compress a folder (PowerShell)
powershell
$SourceDir = "D:\Project"
$ZipPath = "E:\Archives\Project.zip"

Compress-Archive -Path (Join-Path $SourceDir "*") -DestinationPath $ZipPath -Force
4) Split and merge a large file (Python)
bash
# Split into 100MB parts (binary-safe)
python scripts/split_file.py --input "E:\ISO\big.iso" --part-size 100MB --output-dir "E:\ISO\parts"

# Merge parts back (binary-safe)
python scripts/merge_parts.py --input-dir "E:\ISO\parts" --output "E:\ISO\big.iso"

Note: CLI flags may vary depending on the scripts’ implementation. If the scripts do not expose flags, adapt the commands to match their actual parameters.

Show full SKILL.md (148 more words)Show less

Implementation Details

  • Rule schema and planning

    • Prefer structured rules to define:
      • rootPath
      • include/exclude patterns (glob-like)
      • optional size thresholds (e.g., split if > N MB)
      • target structure mapping (e.g., by extension/date/project)
      • conflict strategy (skip, rename, overwrite)
    • Use references/rule-schema.md as the canonical format for describing these rules.
  • Preview-first execution

    • Generate a manifest/plan listing (source, destination, action) before any write operation.
    • Use PowerShell -WhatIf (or an explicit “dry run” mode) to validate the plan.
  • Conflict handling

    • Default behavior should be non-destructive:
      • If destination exists: rename (append timestamp or counter) or skip
      • Only overwrite after explicit user confirmation
  • Verification

    • Basic checks: file counts and total sizes before/after.
    • Strong checks for critical backups: SHA256 via Get-FileHash, stored as a manifest for later validation.
  • Binary-safe splitting/merging

    • Splitting should read/write raw bytes in fixed-size chunks (no text encoding).
    • Merging should concatenate parts in deterministic order (e.g., numeric suffix ordering) to reproduce the original byte stream exactly.

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references) in scientific-skills/Other/file-management of aipoch/medical-research-skills.

  • SKILL.md
  • file-management_audit_result_v1.json
  • references/rule-schema.md
  • scripts/merge_parts.py
  • scripts/split_file.py

Open the folder on GitHubat commit 686e09d

Compare with similar skills

File Management next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

File Management compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
File Management this skillaipoch/medical-research-skills2k—~1.6kAutomated safety check: PassMIT
Feishu Driveraucvr/Group-Goki1123 repos~587Automated safety check: PassMIT
Azldev Comp Tomlmicrosoft/azurelinux5.3k—~1.8kAutomated safety check: PassMIT
PikpakBengerthelorf/pikpaktui120—~1.2kAutomated safety check: PassApache-2.0
Code Organizationusenotra/notra256—~893Automated safety check: PassAGPL-3.0
Coworkerplatonai/Browser41.2k—~3.9kAutomated safety check: PassApache-2.0

Similar skills

  • Feishu Drive

    raucvr/Group-Goki

    Feishu cloud storage file management. An agent skill from raucvr/Group-Goki.

    112 GitHub starsUsed in 3 repos~587 tokens
    Productivity & AutomationAuto-check passed
  • Azldev Comp Toml

    microsoft/azurelinux

    Official

    Read this before authoring, editing, or reviewing a .comp.toml file; do not work from memory.

    5.3k GitHub stars~1.8k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Pikpak

    Bengerthelorf/pikpaktui

    Manage PikPak cloud storage — browse, upload, download, stream, share, and organize files via CLI.

    120 GitHub stars~1.2k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Code Organization

    usenotra/notra

    Repo file-organization convention for TypeScript projects. An agent skill from usenotra/notra.

    256 GitHub stars~893 tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Coworker

    platonai/Browser4

    Reference for the Coworker file-queue automation system: task lifecycle, directory state machine, PowerShell workers, scheduler configuration, and operational conventions.

    1.2k GitHub stars~3.9k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Hunting For Suspicious Scheduled Tasks

    mukul975/Anthropic-Cybersecurity-Skills

    Hunts for adversary persistence and execution via Windows scheduled tasks (T1053.005) by analyzing Security Event ID 4698 task-creation events, suspicious task properties, and unusual execution…

    34k GitHub stars~1.2k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    2k GitHub stars~2.2k tokensUpdated 22 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    2k GitHub stars~1.4k tokensUpdated 22 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    2k GitHub stars~3.7k tokensUpdated 22 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    2k GitHub stars~1.8k tokensUpdated 22 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    2k GitHub stars~1.7k tokensUpdated 22 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    2k GitHub stars~1.3k tokensUpdated 22 days ago
    Auto-check passed

Works with

Questions about File Management

What does File Management do?

Organize, back up, compress, split, and merge files/folders using rule-driven plans; use when you need safe previews, conflict handling, and verification before executing file operations. File Management is an agent skill from aipoch/medical-research-skills. Organize, back up, compress, split, and merge files/folders using rule-driven plans; use when you need safe previews, conflict handling, and verification before executing file operations.

When should I use File Management?

File Management fits situations like: you need safe previews; conflict handling; verification before executing file operations.

How do I install File Management in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill file-management -a claude-code`. Or copy the skill folder (scientific-skills/Other/file-management in aipoch/medical-research-skills) into .claude/skills/file-management in your project. Claude Code loads it when a task matches its description.

How do I install File Management in Codex?

Run `npx skills add aipoch/medical-research-skills --skill file-management -a codex`. Or copy the skill folder (scientific-skills/Other/file-management in aipoch/medical-research-skills) into .agents/skills/file-management in your project. Codex loads it when a task matches its description.

Can I use File Management in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill file-management -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/file-management, .gemini/skills/file-management, .github/skills/file-management and .opencode/skills/file-management in your project.

What does File Management need to run?

Going by SKILL.md and its folder, File Management needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does File Management access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is File Management safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does File Management use?

File Management is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does File Management use?

About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 288 tokens, read only when the agent opens those files.

What are the alternatives to File Management?

Skills that share tags, products or a category with File Management: Feishu Drive (raucvr/Group-Goki, 112 stars), Azldev Comp Toml (microsoft/azurelinux, 5.3k stars), Pikpak (Bengerthelorf/pikpaktui, 120 stars) and Code Organization (usenotra/notra, 256 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains File Management?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,978 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.