🔍
AutomationPython

Get Files

by CoderWanFeng

Get Files is an Automation skill for Claude Code, published by CoderWanFeng in python-office.

1.3K stars299 forkson CoderWanFeng/python-officeAdded 2026/07/20Repository updated 2026/08/04
officepippypipythonweixin
Install in seconds
Install Get Files
Copy Get Files into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/CoderWanFeng/python-office/tree/develop/skills/file/get_files ~/.claude/skills/get_files

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/CoderWanFeng/python-office.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/file/get_files/SKILL.md in CoderWanFeng/python-office
Installs to
~/.claude/skills/get_files
Collection
One of 50 skills cataloged from this repository
Category
Automation2226 skills

What Get Files does

Searches for files in a specified path and returns a list of file paths, with support for filtering by suffix, subdirectory, and depth level. Use when the user needs to get a file list, find files of a specific type, or list all files.

Get Files is cataloged under Automation on DirSkills. Get Files comes from a repository tagged office, pip, pypi, python and weixin.

Documentation

README

get_files Skill

搜索当前路径下所有指定类型的文件,并以列表形式返回

功能描述

在指定路径下搜索文件,支持按文件名、后缀、子目录等条件过滤,返回文件路径列表。

所属分类

office/skills/file/get_files/

调用方式

from skills.file import get_files

files = get_files(
    path='./data',
    name='report',
    suffix='.txt',
    sub=False,
    level=0
)

参数说明

参数 类型 必填 默认值 说明
path str - 路径
name str '' 文件名
suffix str None 文件后缀
sub bool False 是否搜索子目录
level int 0 搜索层级

返回值

list:文件路径列表

使用示例

from skills.file import get_files
# 获取所有 .txt 文件
txt_files = get_files(path='./docs', suffix='.txt', sub=True)
# 获取所有名为 report 的文件
reports = get_files(path='./data', name='report', sub=True)

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Get Files

  • What else does CoderWanFeng publish alongside Get Files?

    Get Files is one of 50 skills that DirSkills catalogs from CoderWanFeng/python-office, the repository it ships in. Its siblings there include Add Image Watermark, Add Line by Type and Add Text Watermark. Each one is a separate skill with its own page in this directory, installs the same way Get Files does, and is maintained by CoderWanFeng in that same repository. The rest of the collection is listed on the CoderWanFeng/python-office page.

  • How does Get Files compare to other Automation skills?

    Get Files ranks #656 by stars among the 2226 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Get Files against them. Open each page to compare what they document and how they install.