Skip to content
Automation
Skill

/file_name_add_prefix

给文件名批量增加指定前缀。当用户提到加前缀、文件名前缀、批量加前缀时使用。

BOOST
From plugin
python-office
1.4k74 skills
Install
$ npx -y skills add coderwanfeng/python-office --skill file_name_add_prefix --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/file_name_add_prefix

Context preview

The summary Claude sees to decide when to auto-load this skill.

给文件名批量增加指定前缀。当用户提到加前缀、文件名前缀、批量加前缀时使用。

SKILL.md

file_name_add_prefix.SKILL.md
name: file_name_add_prefix
description: 给文件名批量增加指定前缀。当用户提到加前缀、文件名前缀、批量加前缀时使用。

file_name_add_prefix Skill

> 批量重命名:给文件名增加前缀

功能描述

给指定文件的文件名增加指定的前缀。

所属分类

`office/skills/file/file_name_add_prefix/`

调用方式

from skills.file import file_name_add_prefix

file_name_add_prefix(
    file_path='./test.txt',
    prefix_content='prefix_'
)

参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| | `file_path` | str | 是 | - | 文件路径 | | `prefix_content` | str | 是 | - | 前缀内容 |

返回值

`None`

使用示例

from skills.file import file_name_add_prefix
file_name_add_prefix(file_path='./doc.txt', prefix_content='backup_')

原始函数

`office.api.file.file_name_add_prefix`

Ships withpython-office

pip install python-office 自动化办公专用库

Get the whole plugin
Stats
1,358
Stars
303
Forks
Maintained
Maintenance
Python
Language
Apache-2.0
License
1mo ago
Last commit
4y ago
Created
1d ago
Added

Repo: coderwanfeng/python-office

Other skills on python-office.